/**
 * Lightbox — the shared gallery modal (assets/js/lightbox.js).
 *
 * The script is enqueued globally, so these styles are too. They used to live inside
 * woocommerce.css, with a copy pasted into classes.css for templates that do not load
 * it; the potter spotlight on the homepage made that a third copy, so it is one file
 * now (Nick 2026-10-25).
 */
.mwp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mwp-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mwp-lightbox__img,
.mwp-lightbox__video {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    user-select: none;
}

.mwp-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.mwp-lightbox__close:hover {
    opacity: 1;
}

.mwp-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}

.mwp-lightbox__arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.mwp-lightbox__arrow--prev {
    left: 1.2rem;
}

.mwp-lightbox__arrow--next {
    right: 1.2rem;
}

.mwp-lightbox__counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .mwp-lightbox__arrow {
        width: 36px;
        height: 36px;
    }

    .mwp-lightbox__arrow--prev { left: 0.5rem; }
    .mwp-lightbox__arrow--next { right: 0.5rem; }
}
