/* =========================================
   CONFIGURAÇÕES GERAIS
========================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f6f6f6;

    color: #1d1d1f;
}



/* =========================================
   CABEÇALHO
========================================= */

header {

    background: #ffffff;

    border-bottom:
        1px solid #e5e5e5;

    padding:
        22px 40px;
}


.marca {

    max-width: 1300px;

    margin: auto;

    display: flex;

    align-items: center;
}


/* LOGO */

.logo-gondopar {

    display: block;

    width: 330px;

    max-width: 100%;

    height: auto;

    object-fit: contain;
}



/* =========================================
   CONTEÚDO
========================================= */

main {

    max-width: 1300px;

    margin: auto;

    padding:
        60px 30px 80px;
}



/* =========================================
   APRESENTAÇÃO
========================================= */

.apresentacao {

    max-width: 850px;

    margin-bottom: 45px;
}


.categoria {

    display: block;

    color: #d80019;

    font-size: 44px;

    font-weight: 700;

    line-height: 1.1;

    letter-spacing: 0;

    margin-bottom: 12px;
}


.apresentacao h1 {

    margin:
        0 0 15px;

    font-size: 44px;

    line-height: 1.1;

    font-weight: 700;
}


.apresentacao p {

    margin: 0;

    max-width: 760px;

    color: #666;

    font-size: 17px;

    line-height: 1.7;
}



/* =========================================
   GALERIA
========================================= */

.galeria {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.foto {

    overflow: hidden;

    border-radius: 10px;

    background: #ddd;
}


.foto img {

    display: block;

    width: 100%;

    height: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    cursor: pointer;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.foto:hover img {

    transform:
        scale(1.035);

    filter:
        brightness(0.92);
}



/* FOTO PRINCIPAL */

.foto.destaque {

    grid-column:
        span 2;

    grid-row:
        span 2;
}


.foto.destaque img {

    aspect-ratio: auto;

    min-height: 100%;
}



/* =========================================
   MODAL
========================================= */

.modal {

    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.94);

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    visibility: hidden;

    transition: 0.25s;

    z-index: 9999;
}


.modal.ativo {

    opacity: 1;

    visibility: visible;
}


.modal img {

    max-width: 88vw;

    max-height: 85vh;

    object-fit: contain;
}



/* =========================================
   CONTROLES DA GALERIA
========================================= */

.fechar,
.anterior,
.proxima {

    position: absolute;

    border: none;

    background: transparent;

    color: white;

    cursor: pointer;

    z-index: 10000;
}


.fechar {

    top: 20px;

    right: 30px;

    font-size: 48px;

    font-weight: 200;
}


.anterior {

    left: 25px;

    top: 50%;

    transform:
        translateY(-50%);

    font-size: 65px;
}


.proxima {

    right: 25px;

    top: 50%;

    transform:
        translateY(-50%);

    font-size: 65px;
}


.contador {

    position: absolute;

    bottom: 25px;

    color: white;

    font-size: 14px;

    letter-spacing: 1px;
}



/* =========================================
   RODAPÉ
========================================= */

footer {

    background: #111;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    padding: 30px;
}


footer strong {

    color: #d80019;
}


footer span {

    color: #aaa;
}



/* =========================================
   CELULAR / TABLET
========================================= */

@media (max-width: 800px) {


    header {

        padding:
            18px 20px;
    }


    .logo-gondopar {

        width: 260px;

        max-width: 90%;
    }


    main {

        padding:
            40px 18px 60px;
    }


    .categoria {

        font-size: 34px;

        margin-bottom: 10px;
    }


    .apresentacao h1 {

        font-size: 34px;
    }


    .apresentacao p {

        font-size: 16px;
    }


    /* GALERIA */

    .galeria {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .foto.destaque {

        grid-column: auto;

        grid-row: auto;
    }


    .foto.destaque img,
    .foto img {

        aspect-ratio: 4 / 3;
    }


    /* MODAL */

    .anterior {

        left: 8px;

        font-size: 50px;
    }


    .proxima {

        right: 8px;

        font-size: 50px;
    }


    .modal img {

        max-width: 95vw;

        max-height: 80vh;
    }


    /* RODAPÉ */

    footer {

        flex-direction: column;

        text-align: center;
    }

}
