/* ==================================================
   GALERIA DE OBRAS — ESTILO EDITORIAL PREMIUM
   Masonry / Pinterest + Texto sobre imagem
   Escopo seguro | Sem impacto global
================================================== */

/* ===============================
   GRID PRINCIPAL — MASONRY
================================ */

.galeria-grid {
    max-width: 1280px;
    margin: 60px auto 80px;
    padding: 0 20px;

    column-count: 3;
    column-gap: 28px;
}

/* Responsivo */
@media (max-width: 1024px) {
    .galeria-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .galeria-grid {
        column-count: 1;
    }
}

/* ===============================
   CARD DA GALERIA
================================ */

.galeria-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;

    break-inside: avoid;
    margin-bottom: 28px;

    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s cubic-bezier(.2,.8,.2,1);
}

.galeria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.18);
}

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

.galeria-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

/* IMAGEM — ALTURA LIVRE (Pinterest) */
.galeria-img {
    width: 100%;
    height: auto;
    display: block;

    transform: scale(1);
    transition:
        transform .8s cubic-bezier(.2,.8,.2,1),
        filter .6s ease;
}

/* Zoom elegante */
.galeria-card:hover .galeria-img {
    transform: scale(1.08);
    filter: contrast(1.05) saturate(1.05);
}

/* ===============================
   OVERLAY EDITORIAL (REVISTA)
================================ */

.galeria-thumb::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.35) 35%,
        rgba(0,0,0,0) 65%
    );

    z-index: 1;
}

/* ===============================
   BADGE DE CATEGORIA
================================ */

.galeria-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;

    background: rgba(245, 124, 0, 0.95);
    color: #fff;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;

    padding: 6px 10px;
    border-radius: 6px;

    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}

/* ===============================
   TEXTO SOBRE A IMAGEM
================================ */

.galeria-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 20px;

    z-index: 2;
    color: #fff;

    transform: translateY(14px);
    opacity: 0;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        opacity .35s ease;
}

.galeria-card:hover .galeria-info {
    transform: translateY(0);
    opacity: 1;
}

/* ===============================
   TÍTULO DA OBRA
================================ */

.galeria-title-obra {
    display: inline-block;
    margin: 0;

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;

    color: #fff;
    text-decoration: none;

    position: relative;
    padding-bottom: 6px;
}

/* Linha laranja animada */
.galeria-title-obra::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0%;
    height: 3px;
    background: #f57c00;
    border-radius: 2px;

    transition: width .35s ease;
}

.galeria-card:hover .galeria-title-obra::after {
    width: 100%;
}
