/* Gallery Slide Swiper Styles */
.gallery-slide-wrapper {
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}

.gallery-slide-swiper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.gallery-slide-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.gallery-slide-swiper .swiper-slide {
    width: 100% !important;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background-color: #f5f5f5;
    display: block;
}

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    z-index: 10;
    font-size: 14px;
}

.gallery-slide-swiper .swiper-pagination {
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    position: absolute !important;
    width: 100% !important;
    text-align: center;
    z-index: 20;
    margin: 0;
}

.gallery-slide-swiper .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 6px !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    transition: all 0.3s ease;
    border: 2px solid #fff !important;
    cursor: pointer;
    display: inline-block !important;
}

.gallery-slide-swiper .swiper-pagination-bullet-active {
    background: #007bff !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    border: 2px solid #007bff !important;
}

/* Responsive for Mobile Devices */
@media (max-width: 767px) {
    .gallery-slide-wrapper {
        margin: 15px 0;
    }
    .gallery-slide-swiper {
        height: 250px; /* Giảm chiều cao cho mobile */
    }
    .gallery-slide-caption {
        padding: 10px;
        font-size: 12px; /* Text nhỏ hơn trên mobile */
    }
    .gallery-slide-swiper .swiper-pagination {
        bottom: 10px !important;
    }
    .gallery-slide-swiper .swiper-pagination-bullet {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
        margin: 0 4px !important;
    }
    .gallery-slide-swiper .swiper-pagination-bullet-active {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }
}

/* Responsive for Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-slide-swiper {
        height: 320px; /* Chiều cao vừa phải cho tablet */
    }
    .gallery-slide-caption {
        padding: 12px;
        font-size: 13px;
    }
    .gallery-slide-swiper .swiper-pagination {
        bottom: 15px !important;
    }
    .gallery-slide-swiper .swiper-pagination-bullet {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
        margin: 0 5px !important;
    }
    .gallery-slide-swiper .swiper-pagination-bullet-active {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }
}

/* Responsive for Small Mobile (< 480px) */
@media (max-width: 479px) {
    .gallery-slide-swiper {
        height: 200px; /* Nhỏ hơn nữa cho điện thoại nhỏ */
    }
    .gallery-slide-caption {
        padding: 8px;
        font-size: 11px;
    }
    .gallery-slide-swiper .swiper-pagination {
        bottom: 8px !important;
    }
    .gallery-slide-swiper .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
        max-width: 10px !important;
        max-height: 10px !important;
        margin: 0 3px !important;
    }
    .gallery-slide-swiper .swiper-pagination-bullet-active {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
        max-width: 10px !important;
        max-height: 10px !important;
    }
}

