/*
    Colorbox Core Style:
    Modern Responsive E-KORS Lightbox Edition
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:999998; -webkit-transform: translate3d(0,0,0);}
#colorbox, #cboxWrapper {overflow: visible !important;}
#cboxWrapper {max-width:100vw;}
#cboxOverlay{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:100vw !important;
    height:100vh !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999997 !important;
    cursor: pointer !important;
}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{
    position:relative !important;
    background: transparent !important;
    margin: 0 !important;
    overflow: visible !important;
}
#cboxLoadedContent{
    overflow: hidden !important;
    -webkit-overflow-scrolling: touch;
    background: #0f172a !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75) !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 !important;
}
#cboxTitle{
    position: absolute !important;
    top: -30px !important;
    left: 4px !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 75% !important;
    margin: 0 !important;
}
#cboxCurrent{
    position: absolute !important;
    bottom: -30px !important;
    left: 0 !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: transparent !important;
    text-align: center !important;
    width: 100% !important;
}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxLoadingGraphic{background:url(../images/loading.gif) no-repeat center center;}

.cboxPhoto{
    display: block !important;
    margin: 0 auto !important;
    border: 0 !important;
    max-width: 90vw !important;
    max-height: 82vh !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 14px !important;
    -ms-interpolation-mode: bicubic;
}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0; background:#fff;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/* Prominent Circular Modern Close Button */
#cboxClose {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: #8A3324 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000005 !important;
    text-indent: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none !important;
}

#cboxClose:hover,
#cboxClose:focus {
    background: #dc2626 !important;
    transform: scale(1.08) rotate(90deg) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6) !important;
    color: #ffffff !important;
}

#cboxClose:active {
    transform: scale(0.95) rotate(90deg) !important;
}

#cboxClose:empty::after {
    content: '✕';
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

/* Floating Navigation Arrows */
#cboxPrevious,
#cboxNext {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    text-indent: 0 !important;
    font-size: 16px !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    margin: 0 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none !important;
}

#cboxPrevious { left: 12px !important; }
#cboxNext { right: 12px !important; }

#cboxPrevious:hover,
#cboxNext:hover,
#cboxPrevious:focus,
#cboxNext:focus {
    background: #8A3324 !important;
    border-color: #8A3324 !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(138, 51, 36, 0.6) !important;
    color: #ffffff !important;
}

#cboxPrevious:empty::after {
    content: '‹';
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

#cboxNext:empty::after {
    content: '›';
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

#cboxSlideshow { display: none !important; }

/* Mobile Adaptations */
@media (max-width: 768px) {
    #cboxClose {
        top: 8px !important;
        right: 8px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 16px !important;
    }
    #cboxPrevious,
    #cboxNext {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 14px !important;
    }
    #cboxPrevious { left: 6px !important; }
    #cboxNext { right: 6px !important; }
    .cboxPhoto {
        max-width: 95vw !important;
        max-height: 75vh !important;
    }
    #cboxTitle {
        top: -26px !important;
        font-size: 12px !important;
    }
    #cboxCurrent {
        bottom: -26px !important;
        font-size: 11px !important;
    }
}
