@import url('https://swipermanager.com/wp-content/plugins/swiper-manager/assets/css/basic.css');

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

.swiper-manager-container.swiper-style4 {
    width: 100%;
    position: relative;
    perspective: 1200px; /* 为coverflow效果提供透视效果 */
    font-family: "SF Pro Text","SF Pro Icons",'Segoe UI', "Helvetica Neue","Helvetica", "Arial", sans-serif;
    --color:#fff;
    --title-font-size: 1.7em;
    --subtitle-font-size: 1.5em;
    --description-font-size: 1em;
    --btn-font-size: 17px;
    --text-align :center;
}

.swiper-manager-container.swiper-style4.color-white .slide-content {--color:#fff;}
.swiper-manager-container.swiper-style4.color-black .slide-content {--color:#000;}
.swiper-manager-container.swiper-style4.color-gray .slide-content {--color:#999;}

.swiper-manager-container.swiper-style4.content-align-center .slide-content {--text-align :center; }
.swiper-manager-container.swiper-style4.content-align-left .slide-content {--text-align :left; }
.swiper-manager-container.swiper-style4.content-align-right .slide-content {--text-align :right; }

/* Coverflow Effect Specific Styles */
.swiper-manager-container.swiper-style4 .main-swiper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* 保持3D变换风格 */
    margin:0px auto;
}

.swiper-manager-container.swiper-style4 .swiper-slide {
    position: relative;
    overflow: hidden;
    min-height: 350px; /* 为coverflow效果设置合适的最小高度 */
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
}

/* Background Image and Video Styles */
.swiper-manager-container.swiper-style4 .fixedheight .swiper-slide > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background Image and Video Styles */
.swiper-manager-container.swiper-style4 .slide-background-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.swiper-manager-container.swiper-style4 .fixedheight .slide-background-img {
        height: 100%;
        }



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

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

/* Content Container Styles */
.swiper-manager-container.swiper-style4 .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    color: var(--color);
    padding: 2em 4em;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    text-align: var(--text-align);
    transform-style: preserve-3d;
    transform: translateZ(50px);
    pointer-events: none;
}

/* Text Styles */
.swiper-manager-container.swiper-style4 .slide-title {
    font-size: var(--title-font-size);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--color);
}

.swiper-manager-container.swiper-style4 .slide-subtitle {
    font-size: var(--subtitle-font-size);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--color);
}

.swiper-manager-container.swiper-style4 .slide-description {
    font-size: var(--description-font-size);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    color: var(--color);
}

  

/* Overlay to make text clearer */
.swiper-manager-container.swiper-style4 .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 3;
    pointer-events: none;
}



  
        /* Thumbnail Slider Styles */
        .swiper-manager-container.swiper-style4 .swiper-thumbs-container {
            position: relative;
            width: 100%;
            z-index: 5;
        }
        
        .swiper-manager-container.swiper-style4 .thumbs-swiper {
            padding: 10px;
            border-radius: 4px;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            overflow: hidden;
        }
        
        .swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
        }
        
        .swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide {
            width: 80px !important;
            height: 50px;
            aspect-ratio: 16/9;
            margin: 0 5px;
            opacity: 0.6;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 50px;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide-thumb-active {
            opacity: 1;
            border: 2px solid gray;
            transform: scale(1.15);
        }
        
        .swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            display: block;
            margin: 0;
            padding: 0;
            border: none;
            object-position: center center;
        }
        
        .swiper-manager-container.swiper-style4 .thumbs-swiper .swiper-slide .thumb-title {
            display: none; /* 缩略图中标题可能太小，暂时隐藏 */
        }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper-manager-container.swiper-style4 .slide-title {
        font-size: 2rem;
    }
    
    /* Mobile 1:1 aspect ratio for background images and videos */
    .swiper-manager-container.swiper-style4 img.md-squre,
    .swiper-manager-container.swiper-style4 iframe.md-squre,
    .swiper-manager-container.swiper-style4 video.md-squre {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover !important;
    }
    
    .swiper-manager-container.swiper-style4 iframe.md-squre { border: none; }
    
    .swiper-manager-container.swiper-style4 .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .swiper-manager-container.swiper-style4 .swiper-thumbs .swiper-slide {
        height: 60px;
    }
}