/**
 * Reusable styles for the Swiper.js gallery slider.
 * Applied to mobile view and desktop modal.
 */

.gallery-swiper {
    position: relative; /* Clave para que los controles se posicionen dentro de este contenedor */
    width: 100%;
    height: 100%; /* The parent container will define the final height */
    --swiper-navigation-color: #ffffff;
    --swiper-pagination-color: #ffffff;
}

/* On mobile, we want a consistent height and rounded corners */
.mobile-only .gallery-swiper {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111; /* Dark background for loading or letterboxing */
}

.gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Unificado: Todas las vistas usan cover para un look consistente */
}

/* En el modal, queremos que la imagen se contenga, no se recorte. */
/* .gallery-modal .gallery-swiper .swiper-slide img {
    object-fit: contain;
} */

/* Navigation Buttons (Arrows) Styling */
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.gallery-swiper .swiper-button-prev {
    left: 16px;
}
.gallery-swiper .swiper-button-next {
    right: 16px;
}

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

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 20px; /* Smaller arrow icon */
    font-weight: 700;
}

/* Pagination (Dots) Styling */
.gallery-swiper .swiper-pagination {
    bottom: 16px !important;
    /* A more robust way to center: make the container full width and center the text inside. */
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
}

.gallery-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6);
    width: 8px;
    height: 8px;
    opacity: 1;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background-color: #ffffff;
} 