/* ======================================================
   GALLERY
====================================================== */

.gallery{

    padding: 130px 8%;

    background: #0d0d0d;

    position: relative;

    overflow: hidden;

}


/* ======================================================
   HEADER
====================================================== */

.gallery-header{

    max-width: 760px;

    margin: 0 auto 70px;

    text-align: center;

}


.gallery-header .section-subtitle{

    display: inline-block;

    color: var(--gold);

    text-transform: uppercase;

    letter-spacing: 4px;

    font-size: .85rem;

    font-weight: 600;

    margin-bottom: 18px;

}


.gallery-header h2{

    font-family: 'Cormorant Garamond', serif;

    font-size: 4rem;

    font-weight: 500;

    line-height: 1.1;

    color: var(--white);

    max-width: 900px;

    margin: 15px auto 20px;

}


.gallery-header p{

    color: #bdbdbd;

    font-size: 1rem;

    line-height: 1.8;

}


/* ======================================================
   GRID
====================================================== */

.gallery-grid{

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-auto-rows: 280px;

    gap: 18px;

}


/* ======================================================
   ITEMS
====================================================== */

.gallery-item{

    position: relative;

    overflow: hidden;

    background: #151515;

    cursor: pointer;

}


/* ======================================================
   IMAGES
====================================================== */

.gallery-item img{

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* ======================================================
   GALLERY - HOVER ZOOM
====================================================== */

.gallery-item:hover img{

    transform: scale(1.07);

}


/* ======================================================
   IMAGEN GRANDE
====================================================== */

.gallery-item-large{

    grid-row: span 2;

}


/* ======================================================
   IMAGEN ANCHA
====================================================== */

.gallery-item-wide{

    grid-column: span 2;

}


/* ======================================================
   OVERLAY
====================================================== */

.gallery-overlay{

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.85),
            rgba(0,0,0,.15) 65%,
            transparent
        );

    opacity: 0;

    z-index: 2;

    transition: opacity .45s ease;

    pointer-events: none;

}


/* ======================================================
   OVERLAY TEXT
====================================================== */

.gallery-overlay span{

    color: var(--gold);

    font-size: .7rem;

    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 8px;

}


.gallery-overlay h3{

    color: var(--white);

    font-family: 'Cormorant Garamond', serif;

    font-size: 1.8rem;

    font-weight: 500;

}


/* ======================================================
   OVERLAY HOVER
====================================================== */

.gallery-item:hover .gallery-overlay{

    opacity: 1;

}


/* ======================================================
   BUTTON
====================================================== */

.gallery-button{

    display: flex;

    justify-content: center;

    margin-top: 55px;

}


.gallery-btn{

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 16px 30px;

    border: 1px solid var(--gold);

    color: var(--gold);

    font-size: .85rem;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: all .35s ease;

}


.gallery-btn i{

    transition: transform .35s ease;

}


.gallery-btn:hover{

    background: var(--gold);

    color: #111;

}


.gallery-btn:hover i{

    transform: translateX(6px);

}


/* ======================================================
   GALLERY — RESPONSIVE MÓVIL
====================================================== */

@media (max-width: 768px){

    .gallery{

        padding: 80px 6%;

    }


    .gallery-header{

        margin-bottom: 45px;

    }


    .gallery-header h2{

        font-size: 3rem;

        line-height: 1.05;

        white-space: normal;

        max-width: 100%;

        margin: 15px auto 20px;

    }


    .gallery-header p{

        font-size: .95rem;

        line-height: 1.7;

    }


    .gallery-grid{

        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: 220px;

        gap: 12px;

        width: 100%;

    }


    .gallery-item-large{

        grid-row: span 2;

    }


    .gallery-item-wide{

        grid-column: span 2;

    }


    .gallery-overlay{

        padding: 18px;

    }


    .gallery-overlay h3{

        font-size: 1.4rem;

    }


    .gallery-button{

        margin-top: 40px;

    }


    .gallery-btn{

        width: 100%;

        justify-content: center;

    }

}