/* ==========================================================================
   Home Page: Gallery Continuous Marquee
   Estructura: Base Global -> Desktop -> Móvil
   ========================================================================== */

/* =========================================
   1. ESTILOS BASE Y GLOBALES
   ========================================= */
.gallery-section {
    background-color: #faf9f6; 
    width: 100%;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 72px;
    color: #000;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.gallery-desc {
    font-family: 'General Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 400px;
    margin: 0 0 40px 0;
}

.btn-gallery-view {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 35px;
    height: 56px;
    border: 1px solid #000;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600; 
    font-size: 24px;
    color: #000;
    transition: background-color 0.3s, color 0.3s;
}

.btn-gallery-view:hover {
    background-color: #000;
    color: #fff;
}

/* =========================================
   ANIMACIÓN DEL CARRUSEL (CORREGIDA)
   ========================================= */
.marquee-track {
    display: flex;
    width: max-content; 
    animation: scrollGallery 40s linear infinite; 
}


.marquee-img {
    width: auto; /* Permite que el ancho fluya naturalmente */
    max-width: none; 
    flex-shrink: 0; /* CRUCIAL: Evita que Flexbox comprima la imagen */
    /* Eliminado el object-fit: cover para evitar el zoom/recorte */
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   2. DESKTOP VIEW (>= 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .gallery-section {
        flex-direction: row;
        align-items: center;
        padding: 100px 0 100px 5%; 
        gap: 5%;
    }

    .gallery-content-col {
        width: 30%;
        flex-shrink: 0;
    }

    .gallery-carousel-col {
        width: 65%; 
        overflow: hidden;
        height: 600px;
        display: flex;
        align-items: center;
    }

    .marquee-img {
        height: 600px; /* Forzamos el alto, el ancho se calcula solo gracias a width: auto */
    }
}

/* =========================================
   3. MOBILE VIEW (< 1024px)
   ========================================= */
@media (max-width: 1023px) {
    .gallery-section {
        /* Padding vertical general, pero sin padding horizontal para que la imagen toque los bordes */
        padding: 60px 0; 
        gap: 30px;
    }

    /* 1. REORGANIZACIÓN VISUAL (Imagen arriba, texto abajo) */
    .gallery-carousel-col {
        order: 1; /* Forzamos a la columna del carrusel a ir primero */
        width: 100%;
        overflow: hidden;
    }

    .gallery-content-col {
        order: 2; /* El texto va después */
        padding: 0 20px; /* Le damos el margen lateral solo a los textos */
    }

    /* 2. TAMAÑOS DE FUENTE EXACTOS */
    .gallery-title {
        font-size: 48px; 
    }

    .gallery-desc {
        font-size: 16px; /* Se mantiene la fuente regular base */
    }

    .btn-gallery-view {
        font-size: 20px; /* Reducción de tamaño del botón en móvil */
        height: 50px; /* Lo hacemos ligeramente más delgado para móvil */
        padding: 0 25px;
    }

    /* 3. TAMAÑO DE LA IMAGEN MÓVIL */
    .marquee-img {
        height: 359px; /* Alto exacto solicitado para la imagen móvil de 1519x359 */
    }
}