/* =====================================================
   GALERIA DE CASAMENTOS
   Miguel Roman Fotografia
===================================================== */


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

.galeria-header {

    width: 100%;

    background: #000;

}


.galeria-header-inner {

    width: 90%;

    max-width: 1280px;

    min-height: 95px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.galeria-logo img {

    width: 170px;

    height: auto;

    display: block;

}


.galeria-menu {

    display: flex;

    align-items: center;

    gap: 32px;

}


.galeria-menu a {

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    transition: color .3s ease;

}


.galeria-menu a:hover {

    color: #b08d45;

}



/* =====================================================
   INTRO
===================================================== */

.galeria-intro {

    max-width: 850px;

    margin: auto;

    padding: 130px 30px 90px;

    text-align: center;

}


.galeria-label {

    display: block;

    margin-bottom: 20px;

    color: #b08d45;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 4px;

}


.galeria-intro h1 {

    margin: 0 0 30px;

    color: #111;

    font-size: 50px;

    line-height: 1.12;

    font-weight: 500;

}


.galeria-intro p {

    max-width: 650px;

    margin: auto;

    color: #666;

    font-size: 15px;

    line-height: 1.9;

}



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

.galeria-casamentos {

    width: 90%;

    max-width: 1200px;

    margin: auto;

    display: grid;

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

    grid-auto-flow: dense;

    gap: 18px;

}


.foto-item {

    position: relative;

    margin: 0;

    overflow: hidden;

    background: #eee;

    cursor: pointer;

}


.foto-item.vertical {

    grid-row: span 2;

    aspect-ratio: 4 / 6;

}


.foto-item.horizontal {

    grid-column: span 2;

    aspect-ratio: 16 / 10;

}


.foto-item img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .7s ease,
        filter .5s ease;

}


.foto-item:hover img {

    transform: scale(1.05);

    filter: brightness(.75);

}



/* =====================================================
   DESCRIÇÃO
===================================================== */

.foto-item figcaption {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    padding: 45px 20px 20px;

    color: #fff;

    font-size: 11px;

    letter-spacing: 2px;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.75)
        );

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity .4s ease,
        transform .4s ease;

}


.foto-item:hover figcaption {

    opacity: 1;

    transform: translateY(0);

}



/* =====================================================
   CTA
===================================================== */

.galeria-cta {

    margin-top: 140px;

    padding: 120px 30px;

    text-align: center;

    background: #f4f2ed;

}


.galeria-cta h2 {

    margin: 0 0 20px;

    color: #111;

    font-size: 42px;

    font-weight: 500;

}


.galeria-cta p {

    margin: 0 auto 35px;

    color: #666;

    line-height: 1.8;

}


.galeria-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 220px;

    min-height: 50px;

    padding: 0 30px;

    background: #000;

    color: #fff;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;

    transition: all .3s ease;

}


.galeria-btn:hover {

    background: #b08d45;

}



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

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 9999;

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

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}


.lightbox.aberto {

    opacity: 1;

    visibility: visible;

}


.lightbox-conteudo {

    position: relative;

    width: calc(100% - 180px);

    height: calc(100% - 100px);

    display: flex;

    align-items: center;

    justify-content: center;

}


.lightbox-conteudo img {

    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    box-shadow:
        0 20px 60px rgba(0,0,0,.5);

}


/* =====================================================
   BOTÕES LIGHTBOX
===================================================== */

.lightbox button {

    position: absolute;

    z-index: 5;

    border: none;

    background: transparent;

    color: #fff;

    cursor: pointer;

}


.lightbox-fechar {

    top: 25px;

    right: 30px;

    font-size: 42px;

    font-weight: 200;

}


.lightbox-prev,
.lightbox-next {

    top: 50%;

    transform: translateY(-50%);

    width: 70px;

    height: 100px;

    font-size: 65px;

    font-weight: 200;

}


.lightbox-prev {

    left: 25px;

}


.lightbox-next {

    right: 25px;

}


.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-fechar:hover {

    color: #b08d45;

}



/* =====================================================
   CONTADOR
===================================================== */

.lightbox-contador {

    position: absolute;

    left: 50%;

    bottom: -35px;

    transform: translateX(-50%);

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

    font-size: 10px;

    letter-spacing: 3px;

}



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

@media (max-width: 1000px) {

    .galeria-casamentos {

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

    }


    .foto-item.vertical {

        grid-row: span 1;

    }


    .foto-item.horizontal {

        grid-column: span 2;

    }


    .galeria-menu {

        gap: 18px;

    }

}



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

@media (max-width: 600px) {

    .galeria-header-inner {

        flex-direction: column;

        padding: 25px 0;

        gap: 25px;

    }


    .galeria-logo img {

        width: 145px;

    }


    .galeria-menu {

        flex-wrap: wrap;

        justify-content: center;

        gap: 12px 18px;

    }


    .galeria-menu a {

        font-size: 12px;

    }


    .galeria-intro {

        padding: 80px 25px 60px;

    }


    .galeria-intro h1 {

        font-size: 34px;

    }


    .galeria-casamentos {

        width: 90%;

        grid-template-columns: 1fr;

        gap: 12px;

    }


    .foto-item.vertical,
    .foto-item.horizontal {

        grid-column: span 1;

        grid-row: span 1;

        aspect-ratio: 4 / 5;

    }


    .foto-item figcaption {

        opacity: 1;

        transform: none;

    }


    .lightbox-conteudo {

        width: calc(100% - 80px);

        height: calc(100% - 120px);

    }


    .lightbox-prev {

        left: 5px;

    }


    .lightbox-next {

        right: 5px;

    }


    .lightbox-prev,
    .lightbox-next {

        width: 35px;

        font-size: 45px;

    }


    .lightbox-fechar {

        top: 10px;

        right: 15px;

    }

}
