.wc-poster-gallery-section {
    padding: 36px 0 8px;
    background: #f8f9fb;
}

.wc-poster-gallery {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wc-poster-gallery__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.wc-poster-gallery__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wc-poster-gallery__track::-webkit-scrollbar {
    display: none;
}

.wc-poster-gallery__slide {
    flex: 0 0 min(100%, 860px);
    margin: 0;
    scroll-snap-align: center;
}

.wc-poster-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ece7dc;
    cursor: zoom-in;
    box-shadow: 0 12px 32px rgba(31, 27, 22, 0.12);
}

.wc-poster-gallery__thumb img {
    display: block;
    width: 100%;
    height: min(52vw, 420px);
    object-fit: cover;
    object-position: center;
}

.wc-poster-gallery__slide figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.88rem;
    color: #6b7280;
}

.wc-poster-gallery__nav {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.wc-poster-gallery__nav:hover,
.wc-poster-gallery__nav:focus {
    border-color: #b88a3b;
    color: #b88a3b;
}

.wc-poster-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 6px;
}

.wc-poster-gallery__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
}

.wc-poster-gallery__dot.is-active {
    background: #b88a3b;
    width: 20px;
    border-radius: 999px;
}

.wc-poster-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wc-poster-modal[hidden] {
    display: none !important;
}

.wc-poster-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
}

.wc-poster-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 100%);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-poster-modal__dialog img {
    max-width: min(92vw, 1100px);
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: #111;
}

.wc-poster-modal__close,
.wc-poster-modal__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

.wc-poster-modal__close {
    top: -12px;
    right: -12px;
}

.wc-poster-modal__nav--prev {
    left: -8px;
}

.wc-poster-modal__nav--next {
    right: -8px;
}

.wc-poster-modal__caption {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .wc-poster-gallery-section {
        padding-top: 24px;
    }

    .wc-poster-gallery__nav {
        display: none;
    }

    .wc-poster-gallery__slide {
        flex-basis: 88%;
    }

    .wc-poster-gallery__thumb img {
        height: 210px;
    }

    .wc-poster-modal__nav--prev {
        left: 4px;
    }

    .wc-poster-modal__nav--next {
        right: 4px;
    }

    .wc-poster-modal__close {
        top: -8px;
        right: 0;
    }
}
