/* ==========================================================
   GALERIA PÚBLICA
========================================================== */

.galeria-publica {
    background: #f8f9fa;
    min-height: 100vh;
}


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

.galeria-header {
    padding: 60px 0 40px;
    background: #fff;
}


.galeria-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 25px;

    color: #6c757d;
    text-decoration: none;

    font-size: 14px;
}


.galeria-voltar:hover {
    color: #000;
}


.galeria-titulo {
    margin: 0;

    font-size: clamp(
        30px,
        5vw,
        52px
    );

    font-weight: 700;

    line-height: 1.15;
}


.galeria-data {
    margin-top: 15px;

    color: #6c757d;

    font-size: 16px;
}


.galeria-descricao {
    max-width: 800px;

    margin: 20px auto 0;

    color: #666;

    line-height: 1.7;
}


.galeria-total {
    margin-top: 20px;

    font-size: 14px;

    color: #777;
}


/* ==========================================================
   CAPA
========================================================== */

.galeria-capa {
    padding: 0 0 40px;
}


.galeria-capa-container {
    max-width: 1200px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 12px;
}


.galeria-capa-imagem {
    display: block;

    width: 100%;

    max-height: 600px;

    object-fit: cover;
}


/* ==========================================================
   FOTOS
========================================================== */

.galeria-fotos {
    padding: 20px 0 80px;
}


.galeria-foto {
    display: block;

    position: relative;

    width: 100%;

    padding: 0;

    border: 0;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #eee;

    cursor: pointer;
}


.galeria-foto img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.galeria-foto:hover img {
    transform: scale(1.05);
}


.galeria-foto-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

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

    color: #fff;

    font-size: 28px;

    opacity: 0;

    transition:
        opacity .3s ease,
        background .3s ease;
}


.galeria-foto:hover
.galeria-foto-overlay {

    opacity: 1;

    background: rgba(
        0,
        0,
        0,
        .35
    );
}


/* ==========================================================
   LIGHTBOX
========================================================== */

.lightbox-content {
    background: rgba(10, 10, 10, .97);

    border: 0;

    position: relative;

    overflow: hidden;
}


.lightbox-area {
    width: 100%;
    height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 60px 100px 40px;
}


.modal-foto-imagem {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;

    -webkit-user-drag: none;
}


/* ==========================================================
   FECHAR
========================================================== */

.lightbox-fechar {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 20;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    background: rgba(0,0,0,.45);

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.lightbox-fechar:hover {
    background: rgba(255,255,255,.15);

    transform: scale(1.05);
}


/* ==========================================================
   NAVEGAÇÃO
========================================================== */

.lightbox-navegar {
    position: absolute;

    top: 50%;

    z-index: 20;

    transform: translateY(-50%);

    width: 52px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 8px;

    background: rgba(0,0,0,.45);

    color: #fff;

    font-size: 34px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.lightbox-navegar:hover {
    background: rgba(255,255,255,.15);

    transform:
        translateY(-50%)
        scale(1.05);
}


.lightbox-anterior {
    left: 25px;
}


.lightbox-proxima {
    right: 25px;
}


/* ==========================================================
   INFORMAÇÕES
========================================================== */

.lightbox-informacoes {
    width: 100%;

    max-width: 900px;

    margin-top: 15px;

    text-align: center;

    color: #fff;
}


.lightbox-titulo {
    margin: 0 0 5px;

    font-size: 18px;

    font-weight: 600;
}


.lightbox-legenda {
    color: rgba(255,255,255,.75);

    font-size: 14px;

    line-height: 1.5;
}


.lightbox-contador {
    margin-top: 8px;

    color: rgba(255,255,255,.5);

    font-size: 13px;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .lightbox-area {
        padding: 70px 20px 30px;
    }


    .modal-foto-imagem {
        max-width: 100%;

        max-height: 70vh;
    }


    .lightbox-navegar {
        width: 42px;
        height: 52px;

        font-size: 26px;
    }


    .lightbox-anterior {
        left: 8px;
    }


    .lightbox-proxima {
        right: 8px;
    }


    .lightbox-fechar {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;
    }


    .lightbox-titulo {
        font-size: 16px;
    }


    .lightbox-legenda {
        font-size: 13px;
    }

}

/* ==========================================================
   PÁGINA DE GALERIAS
========================================================== */

.pagina-galerias {
    padding: 70px 0 90px;

    background: #f8f9fa;

    min-height: 70vh;
}


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

.pagina-cabecalho {
    max-width: 760px;

    margin: 0 auto 55px;
}


.pagina-kicker {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    color: #0d6efd;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.pagina-titulo {
    margin: 0;

    font-size: clamp(
        34px,
        5vw,
        48px
    );

    font-weight: 800;

    line-height: 1.15;
}


.pagina-descricao {
    max-width: 650px;

    margin: 18px auto 0;

    color: #6c757d;

    font-size: 16px;

    line-height: 1.7;
}


/* ==========================================================
   CARD
========================================================== */

.galeria-card {
    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e9ecef;

    border-radius: 12px;

    box-shadow:
        0 4px 18px rgba(
            0,
            0,
            0,
            .05
        );

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.galeria-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(
            0,
            0,
            0,
            .10
        );
}


/* ==========================================================
   IMAGEM
========================================================== */

.galeria-card-imagem {
    display: block;

    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #e9ecef;

    text-decoration: none;
}


.galeria-card-imagem img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;
}


.galeria-card:hover
.galeria-card-imagem img {
    transform: scale(1.05);
}


/* ==========================================================
   SEM CAPA
========================================================== */

.galeria-card-sem-capa {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #adb5bd;

    font-size: 55px;

    background: #f1f3f5;
}


/* ==========================================================
   OVERLAY
========================================================== */

.galeria-card-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(
        0,
        0,
        0,
        .40
    );

    opacity: 0;

    transition:
        opacity .25s ease;
}


.galeria-card:hover
.galeria-card-overlay {
    opacity: 1;
}


.galeria-card-overlay span {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    border: 1px solid rgba(
        255,
        255,
        255,
        .6
    );

    border-radius: 6px;

    color: #fff;

    font-size: 14px;

    font-weight: 600;
}


/* ==========================================================
   QUANTIDADE
========================================================== */

.galeria-card-quantidade {
    position: absolute;

    right: 12px;
    bottom: 12px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    background: rgba(
        0,
        0,
        0,
        .65
    );

    color: #fff;

    border-radius: 5px;

    font-size: 12px;
}


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

.galeria-card-conteudo {
    padding: 22px;
}


.galeria-card-data {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    color: #6c757d;

    font-size: 13px;
}


.galeria-card-titulo {
    margin: 0 0 10px;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.3;
}


.galeria-card-titulo a {
    color: #212529;

    text-decoration: none;
}


.galeria-card-titulo a:hover {
    color: #0d6efd;
}


.galeria-card-descricao {
    margin: 0 0 18px;

    color: #6c757d;

    font-size: 14px;

    line-height: 1.6;
}


.galeria-card-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0d6efd;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


.galeria-card-link:hover {
    gap: 10px;
}


/* ==========================================================
   VAZIO
========================================================== */

.galerias-vazio {
    max-width: 600px;

    margin: 0 auto;

    padding: 70px 20px;

    text-align: center;

    color: #6c757d;
}


.galerias-vazio i {
    display: block;

    margin-bottom: 20px;

    font-size: 60px;

    color: #adb5bd;
}


.galerias-vazio h3 {
    margin-bottom: 10px;

    color: #343a40;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .pagina-galerias {
        padding: 45px 0 60px;
    }


    .pagina-cabecalho {
        margin-bottom: 35px;
    }


    .galeria-card-conteudo {
        padding: 18px;
    }


    .galeria-card-titulo {
        font-size: 18px;
    }

}