/**
 * Studio1 Invitation - Parents Photo Lightbox CSS
 * Fullscreen responsive image zoom modal
 */

/* Hover & zoom affordance on trigger images */
.turut-parents-frame {
    position: relative;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.turut-parents-frame:hover {
    transform: translateY(-3px) scale(1.015);
}

.turut-parents-photo {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.turut-parents-frame .zoom-hint-badge,
.zoom-hint-badge {
    display: none !important;
}

/* Lightbox Modal Overlay (Strictly hidden and pointer-events none when inactive) */
#parentsPhotoLightboxModal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    background: rgba(10, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

#parentsPhotoLightboxModal.active {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1;
}

/* Lightbox Container */
.parents-lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#parentsPhotoLightboxModal.active .parents-lightbox-container {
    transform: scale(1);
}

/* Lightbox Top Header Bar */
.parents-lightbox-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.parents-lightbox-title {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

/* Close Button */
.parents-lightbox-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.parents-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: scale(1.1) rotate(90deg);
}

.parents-lightbox-close:active {
    transform: scale(0.95);
}

/* Image wrapper */
.parents-lightbox-img-wrap {
    position: relative;
    max-width: 95vw;
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #0b1120;
}

/* The Zoomed Image */
.parents-lightbox-img {
    display: block;
    max-width: 95vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    transition: opacity 0.2s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    #parentsPhotoLightboxModal {
        padding: 10px;
    }
    
    .parents-lightbox-container {
        max-width: 98vw;
        max-height: 96vh;
    }
    
    .parents-lightbox-img-wrap {
        max-width: 98vw;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .parents-lightbox-img {
        max-width: 98vw;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .parents-lightbox-title {
        font-size: 13px;
    }
    
    .parents-lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
