/* ============================================================
   lang.css — Language-switcher bar styles moved to redesign.css
   This file now contains only the gallery lightbox modal.
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX MODAL
   ════════════════════════════════════════════════════════════ */

.sf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.sf-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.sf-modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 92vh;
}

/* Loading spinner shown while full image loads */
.sf-modal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #e8b84b;
    border-radius: 50%;
    animation: sf-spin 0.7s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
.sf-modal-spinner.active {
    display: block;
}
@keyframes sf-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sf-modal-img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sf-modal-img.sf-loaded {
    opacity: 1;
}
.sf-modal-meta {
    margin-top: 14px;
    text-align: center;
}
.sf-modal-caption {
    color: #ddd;
    font-size: 13px;
    margin-bottom: 4px;
}
.sf-modal-counter {
    color: #666;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* Arrow buttons */
.sf-modal-prev,
.sf-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ddd;
    font-size: 26px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    z-index: 10000;
}
.sf-modal-prev { left: 14px; }
.sf-modal-next { right: 14px; }
.sf-modal-prev:hover,
.sf-modal-next:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Close button */
.sf-modal-close {
    position: fixed;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #888;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: color 0.15s;
    padding: 4px;
}
.sf-modal-close:hover {
    color: #fff;
}

/* Full-page link */
.sf-modal-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: all 0.15s;
    letter-spacing: 0.2px;
}
.sf-modal-link:hover {
    color: #e8b84b;
    border-color: #e8b84b;
}

@media (max-width: 600px) {
    .sf-modal-prev { left: 4px; width: 38px; height: 38px; font-size: 20px; }
    .sf-modal-next { right: 4px; width: 38px; height: 38px; font-size: 20px; }
    .sf-modal-img { max-height: 75vh; }
}
