/* ==========================================================================
   ID Popup — Frontend Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */
.id-popup-overlay {
    position: fixed;
    inset: 0;                        /* top/right/bottom/left: 0 */
    z-index: 9998;
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   Popup Container
   -------------------------------------------------------------------------- */
.id-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    background: transparent;
    max-width: 90vw;    /* Safety cap — overridden per-popup via inline style */
    width: 100%;
}

/* --------------------------------------------------------------------------
   Popup Images
   -------------------------------------------------------------------------- */
.id-popup-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Desktop image shown by default, mobile image hidden */
.id-popup-container .desktop-image {
    display: block;
}

.id-popup-container .mobile-image {
    display: none;
}

/* --------------------------------------------------------------------------
   Close Button
   -------------------------------------------------------------------------- */
.id-popup-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    cursor: pointer;
    color: #e11d48;
    font-size: 28px;
    width: 36px;
    height: 36px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.id-popup-close-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Mobile Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .id-popup-container {
        width: 88vw;
        max-width: 88vw;
    }

    .id-popup-container .desktop-image {
        display: none;
    }

    .id-popup-container .mobile-image {
        display: block;
    }
}