.box-section.box-content-tour-detail {
    background-color: var(--color-background-100);
}

/* FOTOS */
.container-banner-activities .row {
    height: 600px;
    /* Altura fija para el contenedor principal */
}

.container-banner-activities .col-lg-7,
.container-banner-activities .col-lg-5 {
    height: 100%;
}

.container-banner-activities .col-lg-7 .rounded-12 {
    height: 100%;
}

.container-banner-activities .col-lg-5 .d-flex {
    height: 100%;
}

.container-banner-activities .col-lg-5 .flex-column {
    height: 100%;
}

.container-banner-activities .w-100 {
    height: 100%;
}

.object-fit-cover {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Asegurar que las imágenes más pequeñas mantengan su relación de aspecto */
.rounded-12 {
    position: relative;
    overflow: hidden;
}

.rounded-12 a {
    display: block;
    height: 100%;
    width: 100%;
}

/* Para el contenedor de miniaturas */
.col-lg-5 .d-flex.gap-3 {
    height: 100%;
}

/* Ajustar el tamaño de las miniaturas */
.col-lg-5 .flex-column>div {
    height: calc(50% - 0.75rem);
    /* Restar el gap (1.5rem / 2) */
}

/* Media queries para responsividad */
@media (max-width: 991.98px) {
    .container-banner-activities .row {
        height: auto;
    }

    .container-banner-activities .col-lg-7,
    .container-banner-activities .col-lg-5 {
        height: 400px;
        /* Altura para móviles */
    }
}

/* para centrar verticalmente la flecha */
.contenedor-centrado {
    display: flex;
    justify-content: center;
    /* centra horizontal */
    align-items: center;
    /* centra vertical */
    height: 26px;
    /* alto total de la pantalla */
}

/* Estilos para el carrusel móvil */
.mobile-gallery {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mobile-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ajustes para diferentes tamaños de pantalla */
@media (min-width: 576px) {
    .mobile-gallery {
        height: 400px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Botones de navegación */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Paginación */
.swiper-pagination {
    bottom: 15px !important;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.8;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #007bff;
    transform: scale(1.3);
    opacity: 1;
}

/* =========================
    CONTROL DE GALERÍAS POR RESOLUCIÓN
    ========================= */

/* Por defecto: mostrar galería desktop */
.desktop-gallery {
    display: block;
}

.mobile-gallery-wrapper {
    display: none;
}

/* SOLO pantallas chicas: slider */
@media (max-width: 999.98px) {
    .desktop-gallery {
        display: none;
    }

    .mobile-gallery-wrapper {
        display: block;
    }
}

.container-banner-activities .row,
.container-banner-activities .col-lg-7,
.container-banner-activities .col-lg-5 {
    height: auto !important;
}

.container-banner-activities .col-lg-7,
.container-banner-activities .col-lg-5 {
    overflow: hidden !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;

}

.object-fit-cover {
    height: auto !important;
    max-height: 100% !important;
}

.container-banner-activities img {
    height: auto !important;
    max-width: 100% !important;
}

.rounded-12 a {
    height: auto !important;
}

.object-fit-cover {
    height: auto !important;
    width: 100% !important;
}

.container-banner-activities .d-flex {
    /* height: auto !important; */
    align-items: stretch !important;
}

.container-banner-activities .rounded-12 a {
    height: auto !important;
}

.container-banner-activities .rounded-12 img {
    width: 100% !important;
}

.container-banner-activities .rounded-12 {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
}

.container-banner-activities img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.d-flex {
    display: flex !important;
}

.container-banner-activities .row {
    overflow-x: hidden !important;
}

/* el contenedor define el ratio */
.container-banner-activities .rounded-12 {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* el link ocupa toda la caja */
.container-banner-activities .rounded-12 > a {
    position: absolute;
    inset: 0;
    display: block;
}

/* la imagen NO define altura, solo llena */
.container-banner-activities .rounded-12 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay 100% superpuesto */
.container-banner-activities .image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    z-index: 2;
}

/* Lightbox Gallery */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-lightbox.show {
    display: flex;
    opacity: 1;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slider {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
}

.gallery-slide.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Botones de navegación */
.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-close {
    top: 20px;
    right: 20px;
}

.gallery-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-close:hover {
    transform: scale(1.1);
}