/* =========================================================
   ENCABEZADO GALERÍA
========================================================= */
.eco-gallery__header {
    width: calc(100% - 40px);
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}
.eco-gallery__title {
    margin: 0 0 14px;

    font-family: 'Oswald', Arial, sans-serif;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #0C6600;
}
.eco-gallery__description {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: #5f6368;
}
/* =========================================================
   GALERÍA ECOVASOS
========================================================= */
.eco-gallery {
  width: 100%;
    background: #ffffff;
    padding: 55px 0 80px;
    box-sizing: border-box;
}
.eco-gallery *,
.eco-gallery *::before,
.eco-gallery *::after {
    box-sizing: border-box;
}
/* =========================================================
   CONTENEDOR
========================================================= */
.eco-gallery__container {
    width: calc(100% - 120px);
    max-width: 1440px;
    margin: 0 auto;
}
/* =========================================================
   GRID
========================================================= */
.eco-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
/* =========================================================
   CARD
========================================================= */
.eco-gallery-card {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.05);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
.eco-gallery-card:hover {
    border-color: #d2d2d2;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.eco-gallery-card,
.eco-gallery-card:hover,
.eco-gallery-card:focus,
.eco-gallery-card:active {
    outline: none;
}
.eco-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.35s ease;
}
.eco-gallery-card:hover img {
    transform: scale(1.025);
}
/* =========================================================
   LIGHTBOX
========================================================= */
.eco-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 100px;
    background: rgba(0, 0, 0, 0.90);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.eco-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.eco-gallery-lightbox__image-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eco-gallery-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1100px, 100%);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.40);
}
/* =========================================================
   CERRAR
========================================================= */
.eco-gallery-lightbox__close {
    position: absolute;
    top: 24px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}
.eco-gallery-lightbox__close:hover,
.eco-gallery-lightbox__close:focus,
.eco-gallery-lightbox__close:active {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    outline: none;
}
/* =========================================================
   FLECHAS
========================================================= */
.eco-gallery-lightbox__arrow {
    position: absolute;

    top: 50%;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);

    color: #ffffff;

    cursor: pointer;
}
.eco-gallery-lightbox__arrow:hover,
.eco-gallery-lightbox__arrow:focus,
.eco-gallery-lightbox__arrow:active {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    outline: none;
}
.eco-gallery-lightbox__arrow svg {
    display: block;

    width: 14px;
    height: 25px;
}
.eco-gallery-lightbox__arrow--prev {
    left: 28px;
}
.eco-gallery-lightbox__arrow--next {
    right: 28px;
}


body.eco-gallery-open {
    overflow: hidden !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .eco-gallery__container {
        width: calc(100% - 60px);
    }


    .eco-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
    
    .eco-gallery__header {
    width: calc(100% - 40px);
    margin-bottom: 30px;
    }
    
    
    .eco-gallery__title {
        margin-bottom: 10px;
    
        font-size: 30px;
        line-height: 1.2;
    
        letter-spacing: -0.5px;
    }
    
    
    .eco-gallery__description {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    
        font-size: 15px;
        line-height: 1.5;
    }
    
    
    .eco-gallery__desktop-break {
        display: none;
    }

    .eco-gallery {
        padding: 30px 0 50px;
    }


    .eco-gallery__container {
        width: calc(100% - 30px);
    }


    .eco-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }


    .eco-gallery-card {
        border-radius: 10px;
    }


    .eco-gallery-lightbox {
        padding: 70px 15px 90px;
    }


    .eco-gallery-lightbox__close {
        top: 15px;
        right: 15px;

        width: 44px;
        height: 44px;

        font-size: 31px;
    }


    .eco-gallery-lightbox__arrow {
        top: auto;
        bottom: 20px;

        width: 48px;
        height: 48px;

        transform: none;
    }


    .eco-gallery-lightbox__arrow--prev {
        left: calc(50% - 60px);
    }


    .eco-gallery-lightbox__arrow--next {
        right: calc(50% - 60px);
    }

}


/* =========================================================
   MOBILE PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .eco-gallery__container {
        width: calc(100% - 20px);
    }


    .eco-gallery__grid {
        gap: 10px;
    }

}