/* ==========================================================
   LIGHTBOX — shared image gallery (single product + front page)
   Any element marked [data-scrm-lightbox] opens this viewer.
   ========================================================== */
[data-scrm-lightbox] {
    cursor: zoom-in;
}
.scrm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 18, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}
.scrm-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.scrm-lightbox-figure {
    position: relative;
    max-width: min(92vw, 1080px);
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.scrm-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(88vh - 56px);
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.scrm-lightbox-caption {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 40px;
}
.scrm-lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    position: absolute;
    top: -28px;
    right: 0;
}
.scrm-lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 150ms ease, border-color 150ms ease;
}
.scrm-lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.7);
}
.scrm-lightbox-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.scrm-lightbox-prev { left: -60px; }
.scrm-lightbox-next { right: -60px; }
.scrm-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.scrm-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .scrm-lightbox-prev { left: 8px; }
    .scrm-lightbox-next { right: 8px; }
    .scrm-lightbox-caption { padding: 0 8px; }
    .scrm-lightbox-counter { top: -24px; }
}
