
/* =========================================================
   TIO MÁ
   PÁGINA: GALERIA
   4-galeria.css
========================================================= */


/* =========================================================
   HERO
========================================================= */

.galeria-hero {

    width: 100%;

    min-height: 500px;

    padding: 80px 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

    background-color: #f5f5f5;

    border-bottom: 1px solid #eeeeee;
}


.galeria-hero-conteudo {

    max-width: 850px;
}


.galeria-subtitulo {

    display: inline-block;

    padding: 8px 14px;

    margin-bottom: 22px;

    background-color: #ffc400;

    color: #111111;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;
}


.galeria-hero h1 {

    margin: 0;

    color: #111111;

    font-size: clamp(45px, 5vw, 72px);

    line-height: 0.95;

    letter-spacing: -3px;

    font-weight: 900;
}


.galeria-hero h1 span {

    color: #ffc400;

    -webkit-text-stroke: 1px #111111;
}


.galeria-hero-conteudo > p:last-child {

    max-width: 550px;

    margin-top: 30px;

    color: #555555;

    font-size: 17px;

    line-height: 1.7;
}



/* =========================================================
   NÚMERO
========================================================= */

.galeria-hero-numero {

    width: 220px;

    height: 220px;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background-color: #ffc400;

    color: #111111;

    transform: rotate(5deg);
}


.galeria-hero-numero strong {

    font-size: 70px;

    line-height: 0.9;

    letter-spacing: -4px;
}


.galeria-hero-numero span {

    margin-top: 10px;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}



/* =========================================================
   FOTOS
========================================================= */

.galeria-fotos {

    width: 100%;

    padding: 120px 6%;

    background-color: #ffffff;
}


.titulo-galeria p,
.titulo-videos p {

    margin-bottom: 15px;

    color: #d49f00;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}


.titulo-galeria h2,
.titulo-videos h2 {

    margin: 0;

    color: #111111;

    font-size: clamp(40px, 4vw, 60px);

    line-height: 0.95;

    letter-spacing: -2px;
}


.titulo-galeria h2 span,
.titulo-videos h2 span {

    color: #ffc400;

    -webkit-text-stroke: 1px #111111;
}



/* =========================================================
   GRID DA GALERIA
========================================================= */

.grid-galeria {

    width: 100%;

    margin-top: 65px;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    grid-auto-rows: 260px;

    gap: 15px;
}



/* =========================================================
   CADA FOTO
========================================================= */

.foto-galeria {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    padding: 0;

    margin: 0;

    border: none;

    appearance: none;

    position: relative;

    overflow: hidden;

    display: block;

    cursor: pointer;

    background-color: #eeeeee;
}


.foto-galeria.foto-grande {

    grid-column: span 2;

    grid-row: span 2;
}



/* =========================================================
   IMAGEM
========================================================= */

.foto-galeria img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center center;

    background-color: #eeeeee;

    transition: transform 0.5s ease;
}


.foto-galeria:hover img {

    transform: scale(1.06);
}



/* =========================================================
   ESCURECIMENTO AO PASSAR O MOUSE
========================================================= */

.foto-galeria::after {

    content: "";

    position: absolute;

    inset: 0;

    background-color: rgba(0, 0, 0, 0);

    transition: background-color 0.3s ease;

    pointer-events: none;
}


.foto-galeria:hover::after {

    background-color: rgba(0, 0, 0, 0.20);
}



/* =========================================================
   BOTÃO +
========================================================= */

.icone-ampliar {

    position: absolute;

    right: 18px;

    bottom: 18px;

    z-index: 3;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: #ffc400;

    color: #111111;

    font-size: 25px;

    font-weight: 700;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.foto-galeria:hover .icone-ampliar {

    opacity: 1;

    transform: translateY(0);
}



/* =========================================================
   VÍDEOS
========================================================= */

.galeria-videos {

    width: 100%;

    padding: 120px 6%;

    background-color: #111111;

    color: #ffffff;
}


.titulo-videos p {

    color: #ffc400;
}


.titulo-videos h2 {

    color: #ffffff;
}


.titulo-videos h2 span {

    color: #ffc400;
}



/* =========================================================
   GRID DE VÍDEOS
========================================================= */

.videos-grid {

    width: 100%;

    margin-top: 65px;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 360px));

    justify-content: center;

    gap: 30px;
}



/* =========================================================
   CARD DO VÍDEO
========================================================= */

.video-card {

    width: 100%;

    max-width: 360px;

    aspect-ratio: 9 / 16;

    margin: 0 auto;

    position: relative;

    overflow: hidden;

    background-color: #222222;
}


.video-card video {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    background-color: #222222;
}



/* =========================================================
   CTA
========================================================= */

.galeria-cta {

    width: 100%;

    padding: 100px 6%;

    text-align: center;

    background-color: #ffc400;
}


.galeria-cta > p {

    margin-bottom: 18px;

    color: #111111;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}


.galeria-cta h2 {

    margin: 0;

    color: #111111;

    font-size: clamp(40px, 5vw, 65px);

    line-height: 0.95;

    letter-spacing: -2px;
}


.galeria-cta h2 span {

    color: #ffffff;

    -webkit-text-stroke: 1px #111111;
}


.botao-galeria {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    margin-top: 35px;

    padding: 17px 25px;

    background-color: #111111;

    color: #ffffff;

    font-size: 13px;

    font-weight: 900;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.botao-galeria span {

    color: #ffc400;

    font-size: 20px;

    transition: transform 0.3s ease;
}


.botao-galeria:hover {

    background-color: #ffffff;

    color: #111111;

    transform: translateY(-3px);
}


.botao-galeria:hover span {

    color: #111111;

    transform: translateX(5px);
}



/* =========================================================
   MODAL
========================================================= */

.modal-foto {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background-color: rgba(0, 0, 0, 0.92);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.modal-foto.aberto {

    opacity: 1;

    visibility: visible;
}


.modal-foto img {

    max-width: 90vw;

    max-height: 88vh;

    width: auto;

    height: auto;

    display: block;

    object-fit: contain;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.35);
}


.fechar-modal {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 50px;

    height: 50px;

    padding: 0;

    border: none;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: #ffc400;

    color: #111111;

    cursor: pointer;

    font-size: 35px;

    line-height: 1;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}


.fechar-modal:hover {

    background-color: #ffffff;

    transform: rotate(90deg);
}


body.modal-aberto {

    overflow: hidden;
}



/* =========================================================
   RESPONSIVIDADE
   ATÉ 900PX
========================================================= */

@media (max-width: 900px) {


    .galeria-hero {

        padding: 70px 7%;

        flex-direction: column;

        align-items: flex-start;

    }


    .galeria-hero-numero {

        width: 170px;

        height: 170px;

        align-self: flex-end;

    }


    .galeria-hero-numero strong {

        font-size: 60px;

    }


    .galeria-fotos {

        padding: 90px 7%;

    }


    .grid-galeria {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-auto-rows: 250px;

    }


    .foto-galeria.foto-grande {

        grid-column: span 2;

        grid-row: span 2;

    }


    .galeria-videos {

        padding: 90px 7%;

    }


    .videos-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;

    }


    .video-card {

        max-width: 300px;

    }

}



/* =========================================================
   RESPONSIVIDADE
   ATÉ 600PX
========================================================= */

@media (max-width: 600px) {


    .galeria-hero {

        padding: 55px 6% 65px;

    }


    .galeria-subtitulo {

        font-size: 10px;

    }


    .galeria-hero h1 {

        font-size: 42px;

        letter-spacing: -2px;

    }


    .galeria-hero-conteudo > p:last-child {

        font-size: 15px;

        margin-top: 25px;

    }


    .galeria-hero-numero {

        width: 145px;

        height: 145px;

        align-self: flex-end;

    }


    .galeria-hero-numero strong {

        font-size: 50px;

    }


    /* ---------- FOTOS ---------- */

    .galeria-fotos {

        padding: 70px 6%;

    }


    .titulo-galeria h2,
    .titulo-videos h2 {

        font-size: 40px;

    }


    .grid-galeria {

        margin-top: 45px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 160px;

        gap: 10px;

    }


    .foto-galeria.foto-grande {

        grid-column: span 2;

        grid-row: span 2;

    }


    .foto-galeria img {

        width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center center;

    }


    .icone-ampliar {

        width: 35px;

        height: 35px;

        right: 10px;

        bottom: 10px;

        font-size: 21px;

        opacity: 1;

        transform: none;

    }


    /* ---------- VÍDEOS ---------- */

    .galeria-videos {

        padding: 70px 6%;

    }


    .videos-grid {

        grid-template-columns: 1fr;

        gap: 35px;

        margin-top: 45px;

    }


    .video-card {

        width: min(100%, 360px);

        max-width: 360px;

    }


    /* ---------- CTA ---------- */

    .galeria-cta {

        padding: 70px 6%;

    }


    .galeria-cta h2 {

        font-size: 40px;

    }


    .botao-galeria {

        width: 100%;

        justify-content: space-between;

    }


    /* ---------- MODAL ---------- */

    .modal-foto {

        padding: 20px;

    }


    .modal-foto img {

        max-width: 96vw;

        max-height: 80vh;

    }


    .fechar-modal {

        top: 15px;

        right: 15px;

        width: 45px;

        height: 45px;

        font-size: 30px;

    }

}



/* =========================================================
   RESPONSIVIDADE
   ATÉ 400PX
========================================================= */

@media (max-width: 400px) {


    .galeria-hero {

        padding: 45px 5% 55px;

    }


    .galeria-hero h1 {

        font-size: 36px;

    }


    .galeria-hero-numero {

        width: 125px;

        height: 125px;

    }


    .galeria-hero-numero strong {

        font-size: 45px;

    }


    .galeria-fotos {

        padding: 60px 5%;

    }


    .titulo-galeria h2,
    .titulo-videos h2 {

        font-size: 34px;

    }


    .grid-galeria {

        grid-auto-rows: 130px;

    }


    .galeria-videos {

        padding: 60px 5%;

    }


    .video-card {

        width: 100%;

    }


    .galeria-cta {

        padding: 55px 5%;

    }


    .galeria-cta h2 {

        font-size: 34px;

    }

}

