/* ==================================================
   GALERÍA
================================================== */

.galeria {
    position: relative;
    background: #080808;
    padding: 100px 0 0 0;
    overflow: hidden;
}

.galeria-titulo {
    margin-bottom: 55px;
}

.galeria-titulo span {
    display: block;
    color: #e4a72c;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
}

.galeria-titulo h2 {
    margin: 5px 0 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(45px, 7vw, 80px);
    font-weight: 900;
    line-height: .95;
}

.galeria-titulo p {
    max-width: 500px;
    margin-top: 20px;
    color: #888;
    font-size: 15px;
}

.galeria-grid {
    row-gap: 0;
}

.galeria-item {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	border: solid 1px #e4a72c;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}

.galeria-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .45s ease;
}

.galeria-overlay i {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    transform: scale(.7);
    transition: transform .45s ease, background .3s ease, color .3s ease;
}

.galeria-item:hover img {
    transform: scale(1.08);
    filter: brightness(.65);
}

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

.galeria-item:hover .galeria-overlay i {
    transform: scale(1);
}

.galeria-overlay i:hover {
    background: #e4a72c;
    border-color: #e4a72c;
    color: #000;
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    max-height: 85vh;
    padding: 8px;
    background: #111;
    border: 1px solid rgba(228,167,44,.7);
    box-shadow: 0 25px 80px rgba(0,0,0,.8);
    transform: scale(.85);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 10001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.lightbox-close:hover {
    background: #e4a72c;
    color: #000;
    border-color: #e4a72c;
}

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

@media (max-width: 768px) {
    .galeria {
        padding: 70px 0;
    }
    .galeria-item {
        height: 230px;
    }
    .lightbox {
        padding: 20px;
    }
    .lightbox-content {
        max-width: 95vw;
        padding: 5px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
}