/* Villa Gallery Specific Styles */
.villa-gallery-swiper {
    overflow: hidden !important; /* Override the visible overflow from homepage styles */
}

.villa-gallery-swiper .swiper-slide {
    transform: scale(1) !important; /* Override the scale from homepage styles */
    opacity: 1 !important; /* Override the opacity from homepage styles */
    transition: all 0.3s ease;
}

/* Override the active slide styles from homepage */
.villa-gallery-swiper .swiper-slide-active {
    transform: scale(1) !important;
    z-index: 1;
}

/* Override the prev/next slide styles from homepage */
.villa-gallery-swiper .swiper-slide-prev,
.villa-gallery-swiper .swiper-slide-next {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* Make sure the wrapper is properly aligned */
.villa-gallery-swiper .swiper-wrapper {
    align-items: center;
}

/* Ensure consistent styling between interior and outdoor galleries */
.interior-gallery-swiper,
.outdoor-gallery-swiper {
    width: 100%;
}

/* Only add margin to outdoor gallery */
.outdoor-gallery-swiper {
    padding-bottom: 40px;
}

/* Make outdoor gallery full width */
.outdoor-gallery {
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove padding from outdoor gallery section */
.section-gallery {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Keep the title centered with padding */
.section-gallery .section-title {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure proper slide sizing */
.swiper-interior .swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/12;
}

.swiper-interior .swiper-slide picture {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Match the border radius of the slide */
    overflow: hidden; /* Ensure the image respects the border radius */
}

.swiper-interior .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; /* Add border radius to the image */
}

/* Set minimum width for different screen sizes while maintaining aspect ratio */
@media (min-width: 1440px) {
    .swiper-interior .swiper-slide {
        min-width: 450px; /* Wider slides on large screens */
    }
}

@media (min-width: 768px) and (max-width: 1439px) {
    .swiper-interior .swiper-slide {
        min-width: 380px; /* Medium width on medium screens */
    }
}

@media (max-width: 767px) {
    .swiper-interior .swiper-slide {
        min-width: 280px; /* Smaller width on small screens */
   }
}
