
/* AI Marker Icon */
.ai-marker-wrapper {
    position: relative;
    display: inline-block;
}

.ai-marker-icon {
    --size-ai-marker: 16px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: var(--size-ai-marker);
    height: var(--size-ai-marker);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: serif;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    display: flex;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.5); */
    /* border: 1px solid #000; */
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show on hover of any potential parent wrapper */
.ai-marker-wrapper:hover .ai-marker-icon,
.pgcsimplygalleryblock-grid-item-wrap:hover .ai-marker-icon,
.pgcsimplygalleryblock-justified-item-wrap:hover .ai-marker-icon,
.simply-gallery-item:hover .ai-marker-icon,
.wp-block-image:hover .ai-marker-icon,
.martens-header:hover .ai-marker-icon {
    opacity: 1;
    visibility: visible;
}

/* Fix for Martens Header Overlay blocking the AI marker hover */
.martens-header .martens-info {
    pointer-events: none;
}
.martens-header .martens-info > * {
    pointer-events: auto;
}

.ai-marker-icon::before {
    content: "i";
    font-size: calc(var(--size-ai-marker) * .7);
    line-height: 1;
}


/* Disclaimer Overlay */
.ai-marker-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 90%;
    width: 400px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    
    /* Reset from parent .ai-marker-icon */
    font-family: sans-serif;
    font-style: normal;
    font-weight: normal;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show purely on CSS hover of the icon */
.ai-marker-icon:hover .ai-marker-overlay {
    opacity: 1;
    visibility: visible;
}
