@import url('basic.css');
/*
 * style33.css - Apple Store style lightbox slider
 *
 * Slides show only the background image; title, subtitle and description are
 * hidden until the image is clicked, then a dimmed overlay and a rounded
 * lightbox reveal them. All lightbox classes are sm33- prefixed and the box is
 * appended to <body>, so no other stylesheet's slide-* rules leak into it.
 */


.swiper-manager-container.swiper-style33 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.swiper-manager-container.swiper-style33 {
    width: 100%;
    position: relative;
    font-family: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.5;
}

/* Hide text content and the darkening overlay on the slides themselves */
.swiper-manager-container.swiper-style33 .slide-content,
.swiper-manager-container.swiper-style33 .slide-overlay {
    display: none !important;
}

/* Clickable background image */
.swiper-manager-container.swiper-style33 .slide-background-img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

.swiper-manager-container.swiper-style33 .slide-background-img:hover {
    opacity: 0.92;
}

/* ---------- Swiper structure (adapted from style1.css) ---------- */

.swiper-manager-container.swiper-style33 .main-swiper {
    height: auto;
    min-height: 10vh;
}

.swiper-manager-container.swiper-style33 .main-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    min-height: 150px;
}

/* Fixed-height mode: image/video fills the 550px slide and crops evenly */
.swiper-manager-container.swiper-style33 .fixedheight .swiper-slide > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-manager-container.swiper-style33 .fixedheight .slide-background-img {
    height: 100%;
    object-fit: cover;
}

.swiper-manager-container.swiper-style33 .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.swiper-manager-container.swiper-style33 .video-container iframe,
.swiper-manager-container.swiper-style33 .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation arrows: frosted dark circles, Apple Store-like */
.swiper-manager-container.swiper-style33 .swiper-button-prev,
.swiper-manager-container.swiper-style33 .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: background 0.2s ease, color 0.2s ease;
}

.swiper-manager-container.swiper-style33 .swiper-button-prev {
    left: 16px;
}

.swiper-manager-container.swiper-style33 .swiper-button-next {
    right: 16px;
}

.swiper-manager-container.swiper-style33 .swiper-button-prev:hover,
.swiper-manager-container.swiper-style33 .swiper-button-next:hover {
    background: #ffffff;
    color: #1d1d1f;
}

.swiper-manager-container.swiper-style33 .swiper-button-prev:after,
.swiper-manager-container.swiper-style33 .swiper-button-next:after {
    font-size: 17px;
    font-weight: 600;
}

/* Pagination bullets */
.swiper-manager-container.swiper-style33 .swiper-pagination {
    bottom: 10px;
}

.swiper-manager-container.swiper-style33 .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.swiper-manager-container.swiper-style33 .swiper-pagination-bullet-active {
    background: #ffffff;
}

/* Thumbnail strip */
.swiper-manager-container.swiper-style33 .thumbs-swiper {
    width: 100%;
    padding: 10px;
    overflow: hidden;
}

.swiper-manager-container.swiper-style33 .thumbs-swiper .swiper-slide {
    width: 106px;
    aspect-ratio: 16 / 9;
    margin: 0 5px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.swiper-manager-container.swiper-style33 .thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.08);
}

.swiper-manager-container.swiper-style33 .thumbs-swiper .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .swiper-manager-container.swiper-style33 .thumbs-swiper {
        padding: 8px;
    }

    .swiper-manager-container.swiper-style33 .thumbs-swiper .swiper-slide {
        width: 64px;
        margin: 0 3px;
    }
}

/* ---------- Lightbox ---------- */

/*
 * The overlay itself scrolls: the panel keeps its natural height and the
 * darkened layer moves with it, so scrolling feels like scrolling the whole
 * page (body scroll stays locked while it is open).
 */
.sm33-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.sm33-overlay[hidden] {
    display: none;
}

.sm33-overlay.sm33-open {
    opacity: 1;
}

.sm33-panel {
    position: relative;
    width: min(920px, 100%);
    /* Centers the panel when it is shorter than the viewport */
    margin: auto 0;
    background: #ffffff;
    border-radius: 18px;
    /*
     * 76px on desktop, shrinking proportionally with the viewport on tablets
     * and phones (≈56px at 768px, ≈30px at 400px, floored at 24px).
     */
    padding: clamp(24px, 7.4vw, 76px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sm33-overlay.sm33-open .sm33-panel {
    transform: scale(1) translateY(0);
}

/* Close button, inside the panel's top-right corner */
.sm33-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f5f5f7;
    color: #424245;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.sm33-close:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.sm33-close svg {
    width: 18px;
    height: 18px;
}

.sm33-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 28px;
    border-radius: 12px;
}

.sm33-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.sm33-title a {
    color: inherit;
    text-decoration: none;
}

.sm33-subtitle {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    color: #6e6e73;
    margin-bottom: 18px;
}

.sm33-description {
    font-size: 17px;
    line-height: 1.47;
    color: #1d1d1f;
}

.sm33-description p {
    margin-bottom: 0.85em;
}

.sm33-description p:last-child {
    margin-bottom: 0;
}

.sm33-description a {
    color: #0066cc;
    text-decoration: none;
}

.sm33-description a:hover {
    text-decoration: underline;
}

/*
 * Link button. It reuses the slide's .btn.slide-link classes, but lives
 * outside the .swiper-manager-container (the lightbox is appended to body),
 * so the shared basic.css button rules do not reach it.
 */
.sm33-panel .slide-link-container {
    margin-top: 22px;
}

.sm33-panel .slide-link {
    display: inline-block;
    padding: 10px 24px;
    background: #cce7ff;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.sm33-panel .slide-link:hover {
    background: #b3d8ff;
}

@media (max-width: 600px) {
    .sm33-overlay {
        padding: 12px;
    }

    .sm33-image {
        margin-bottom: 20px;
    }

    .sm33-title {
        font-size: 23px;
    }

    .sm33-subtitle {
        font-size: 17px;
    }

    .sm33-description {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm33-overlay,
    .sm33-panel,
    .swiper-manager-container.swiper-style33 .slide-background-img {
        transition: none;
    }

    .sm33-panel {
        transform: none;
    }
}
