/* ITU Popup Ad — front-end styles */

.itu-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 15, 20, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.itu-popup-overlay[hidden] {
    display: none;
}

.itu-popup-overlay.is-visible {
    opacity: 1;
}

/* No border, just a drop shadow. line-height:0 removes the inline-image gap. */
.itu-popup-box {
    position: relative;
    width: 100%;
    max-width: 800px; /* overridden inline with the image's natural width */
    line-height: 0;
    border: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.25s ease;
}

.itu-popup-overlay.is-visible .itu-popup-box {
    transform: none;
}

.itu-popup-link {
    display: block;
}

.itu-popup-box img {
    display: block;
    width: 100%;
    height: auto;
}

/* Transparent clickable strip across the top of the image that closes the popup.
   Height is set inline (px) and refined by JS to scale with the displayed image. */
.itu-popup-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* fallback; overridden inline + by JS */
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

/* Lock background scroll while the popup is open */
html.itu-popup-open {
    overflow: hidden;
}
