/**
 * SimpleLightbox styles, themed to the lp-* design system.
 *
 * simple-lightbox.js builds .sl-* DOM nodes at runtime but ships no CSS of its
 * own, so this stylesheet provides the overlay / stage / chrome. Enqueued as a
 * dependency of the `lightbox` script (see functions.php).
 */

body.hidden-scroll { overflow: hidden; }

.sl-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #0A1F1E; /* --teal-deep */
    display: none;
    z-index: 10000;
}

.sl-wrapper {
    z-index: 10010;
}
.sl-wrapper,
.sl-wrapper * { box-sizing: border-box; }

.sl-wrapper button {
    border: 0;
    background: transparent;
    font-size: 28px;
    padding: 0;
    cursor: pointer;
    color: #F5F7F6; /* --paper */
    line-height: 1;
    transition: color 0.2s ease;
}
.sl-wrapper button:hover { color: #C89B3C; /* --magenta */ }

.sl-wrapper .sl-close {
    position: fixed;
    right: 20px;
    top: 18px;
    z-index: 10060;
    width: 44px;
    height: 44px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sl-wrapper .sl-counter {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10060;
    color: rgba(245, 247, 246, 0.75);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.sl-wrapper .sl-navigation { width: 100%; }
.sl-wrapper .sl-navigation button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    height: 56px;
    width: 44px;
    line-height: 46px;
    display: block;
    z-index: 10060;
    font-size: 44px;
}
.sl-wrapper .sl-navigation button.sl-next { right: 12px; }
.sl-wrapper .sl-navigation button.sl-prev { left: 12px; }

.sl-wrapper .sl-image {
    position: fixed;
    z-index: 10020;
}
.sl-wrapper .sl-image img {
    margin: 0;
    padding: 0;
    display: block;
    border: 4px solid #F5F7F6;
    width: 100%;
    height: auto;
}

.sl-wrapper .sl-image .sl-caption {
    display: none;
    padding: 12px 16px;
    color: #F5F7F6;
    background: rgba(10, 31, 30, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}
.sl-wrapper .sl-image .sl-caption.pos-bottom { position: absolute; bottom: 0; left: 0; }
.sl-wrapper .sl-image .sl-caption.pos-top { position: absolute; top: 0; left: 0; }

.sl-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10007;
    margin: -20px 0 0 -20px;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(245, 247, 246, 0.4);
    border-top-color: #C89B3C;
    border-radius: 50%;
    animation: sl-spin 0.7s linear infinite;
}
@keyframes sl-spin { to { transform: rotate(360deg); } }

.sl-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (max-width: 640px) {
    .sl-wrapper .sl-navigation button { height: 44px; width: 36px; font-size: 34px; }
    .sl-wrapper .sl-close { right: 12px; top: 12px; }
}
