@import url('https://swipermanager.com/wp-content/plugins/swiper-manager/assets/css/basic.css');
/* Basic Styles */
.swiper-manager-container.swiper-style20 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        
.swiper-manager-container.swiper-style20 {
    width: 100%;
    position: relative;
    font-family: "SF Pro Text","SF Pro Icons",'Segoe UI', "Helvetica Neue","Helvetica", "Arial", sans-serif;
    --color:#fff;
    --title-font-size: 17px;
    --subtitle-font-size: 14px;
    --description-font-size: 14px;
    --btn-font-size: 17px;
    --text-align :center;
}

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

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

        .swiper-manager-container.swiper-style20.content-align-center .slide-content {padding: 2em 20%;  }
        .swiper-manager-container.swiper-style20.content-align-left .slide-content {padding: 2em 30% 2em 10%;  }
        .swiper-manager-container.swiper-style20.content-align-right .slide-content {padding: 2em 10% 2em 30%;  }


/* Make sure height is auto for all screen sizes when autoHeight is enabled */
.swiper-manager-container.swiper-style20 .main-swiper {
    height:auto;    
    margin:20px 0 0px 0;
    overflow: hidden;     
}



.swiper-manager-container.swiper-style20 .main-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0px;    
    width: auto; /* Full width to fill container */
    height: auto;
    /* Remove fixed min-height to allow autoHeight to work properly */
}
/* Background Image and Video Styles */
.swiper-manager-container.swiper-style20 .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-style20 .slide-background-img {
    position: relative; /* Ensure correct height calculation */
    width: auto;
    object-fit: cover;
    height: 100%; /* Auto height to maintain aspect ratio */
    display: block; /* Remove whitespace below the image */
    z-index: 1; /* Background image at the bottom layer */
}

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

.swiper-manager-container.swiper-style20 .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 100% height relative to parent element */
    z-index: 2; /* Video container above background image */
}

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

/* Content Container Styles */
.swiper-manager-container.swiper-style20 .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: var(--color);
    padding: 2em 4em;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0 auto;
    text-align: var(--text-align);
    pointer-events: none;
}

/* Text Styles */
.swiper-manager-container.swiper-style20 .slide-title {
    font-size: var(--title-font-size);  
    line-height:40px;  
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--color);
    text-align: left;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.swiper-manager-container.swiper-style20 .slide-subtitle {
    position: absolute;
    top:20px;
    right:20px;
    font-size: var(--subtitle-font-size);    
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--color);
    text-align: var(--text-align);
}

.swiper-manager-container.swiper-style20 .slide-description {   
    position: absolute;
    top: calc(50% - var(--description-font-size));
    left:50%;
    font-size: var(--description-font-size);
    margin-bottom: 12px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    color: var(--color);
    text-align: var(--text-align);
}

/* Link Button Styles */
.swiper-manager-container.swiper-style20 .slide-link {
    display: inline-block;
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 22px;
    background-color: rgba(0,0,0,0.2);
    color: white;
    font-size:14px;
    text-decoration: none;    
    border-radius: 980px;
    border: 1px solid #fff;
    font-weight: 400;
    transition: all 0.3s ease;
    align-self: center;
    pointer-events: all;
}

.swiper-manager-container.swiper-style20 .slide-link:hover {
    background-color: white;
    color: #000; 
    transform: translateY(1px);

    /* transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
}

.swiper-manager-container.swiper-style20 .slide-btn {
    display: inline-block;
    padding: 12px 22px;
    background-color: #f5f5f5;
    color: #000;
    font-size: var(--link-font-size);
    text-shadow: none;
    line-height: calc(var(--link-font-size) + 6);
    text-decoration: none;
    border-radius: 980px;
    margin:15px;
    transition: all 0.3s ease;
    pointer-events: all;
}

.swiper-manager-container.swiper-style20 .slide-btn:hover {
    background-color: white;
    /* transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
}


/* Link Button Styles */
.swiper-manager-container.swiper-style20 .slide-btn-transparent {
    display: inline-block;
    padding: 12px 22px;
     background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid white;
    font-size: var(--link-font-size);
    text-shadow: none;
    line-height: calc(var(--link-font-size) +6);
    text-decoration: none;
    border-radius: 980px;
    margin:15px;
    transition: all 0.3s ease;
    pointer-events: all;
}

.swiper-manager-container.swiper-style20 .slide-btn-transparent:hover {
    background-color: white;
    color:#000;
}

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

/* Navigation Button Styles */
.swiper-manager-container.swiper-style20 .swiper-button-prev, .swiper-manager-container.swiper-style20 .swiper-button-next {
    display: block;
    position: absolute;
    width: 48px;
    height: 48px;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;        
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    line-height: 48px;
    transition: all 0.3s ease;
    overflow: visible;
    pointer-events: auto;
}

.swiper-manager-container.swiper-style20 .swiper-button-prev:hover, .swiper-manager-container.swiper-style20 .swiper-button-next:hover {background-color: rgba(0,0,0,0.5);}

.swiper-manager-container.swiper-style20 .swiper-button-next svg, 
.swiper-manager-container.swiper-style20 .swiper-button-prev svg,
.swiper-manager-container.swiper-style20 .swiper-button-next:after,
.swiper-manager-container.swiper-style20 .swiper-button-prev:after {
    margin-top:20%;            
    height: 60%; /* 图标高度 = 按钮高度 */
    width: 60%;  /* 图标宽度 = 按钮宽度 */
    color:#fff;
    font-size: 14px;
}

.swiper-manager-container.swiper-style20 .swiper-button-prev {
    left: 12px;  
}

.swiper-manager-container.swiper-style20 .swiper-button-next {
    right: 12px; 
}

.swiper-manager-container.swiper-style20 .swiper-button-prev:hover, .swiper-manager-container.swiper-style20 .swiper-button-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Pagination Indicator Styles */
.swiper-manager-container.swiper-style20 .swiper-pagination {
    display: block;
    position: relative;
    margin-top: 20px;
    width: auto;    
    text-align: center;
    z-index: 1;
}

.swiper-manager-container.swiper-style20 .swiper-pagination-bullet {
    background: #777;
    width: 10px;
    height: 10px;
}

.swiper-manager-container.swiper-style20 .swiper-pagination-bullet-active {
    background: black;
    width: 32px;
    height: 12px;
    border-radius: 980px;
}

/* Thumbnail Slider Styles */
.swiper-manager-container.swiper-style20 .swiper-thumbs-container {
    position: absolute;
    bottom: 15px;   
    left: 0;         
    right: 0;
    width: 100%;
    z-index: 1;
    
}

.swiper-manager-container.swiper-style20 .thumbs-swiper {
    
    padding: 10px;
    border-radius: 4px;
    max-width: 90%;
    margin: 0 auto;
}

.swiper-manager-container.swiper-style20 .thumbs-swiper .swiper-wrapper {
    align-items: right;
    justify-content: right;
}

.swiper-manager-container.swiper-style20 .thumbs-swiper .swiper-slide {
    width: 50px !important;
    height: 50px;
    margin: 0 5px;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.swiper-manager-container.swiper-style20 .thumbs-swiper .swiper-slide-thumb-active {
    opacity:1;
    border: 2px solid #fff;
    transform: scale(1.1);
}

.swiper-manager-container.swiper-style20 .thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border-radius: 0; /* 确保图片与容器圆角一致 */
}

.swiper-manager-container.swiper-style20 .thumbs-swiper .swiper-slide .thumb-title {
    display: none; /* 缩略图中标题可能太小，暂时隐藏 */
}

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

        .swiper-manager-container.swiper-style20 iframe.md-squre {border: none;}    

    
    .swiper-manager-container.swiper-style20 .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .swiper-manager-container.swiper-style20 .thumbs-swiper {
        padding: 8px;
    }
    
    .swiper-manager-container.swiper-style20 .thumbs-swiper .swiper-slide {
        width: 60px !important;
        height: auto;
        margin: 0 3px;
    }
}