.galeria-contenedor {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 40px;
    flex: 1;
}

.galeria-titulo-bar {
    padding: 24px 28px 20px;
}

.galeria-titulo-bar h1 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #E5E8E7;
    margin: 0;
}

/* === MOSAICO SIN ESPACIOS (3 COL PC / 2 COL TABLET / 1 COL MÓVIL) === */
.masonry-grid {
    column-count: 3;
    column-gap: 0;
    width: 100%;
    background: #0b0c0b;
}

@media (max-width: 1150px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .galeria-titulo-bar {
        padding: 24px 18px 16px;
    }

    .masonry-grid {
        column-count: 1;
        column-gap: 0;
    }
}

.masonry-item {
    position: relative;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #161817;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* === HOVER VELO VERDE EUCALIPTO CON '+' CENTRADO === */
.item-hover-overlay {
    position: absolute;
    inset: 0;
    background: var(--eucalipto-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.masonry-item:hover .item-hover-overlay {
    opacity: 1;
}

.masonry-item:hover img {
    transform: scale(1.04);
}

.icono-expandir {
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.icono-expandir svg {
    display: none;
}

.icono-expandir::after {
    content: "+";
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
    color: #FFFFFF;
    transform: scale(0.92);
    transition: transform 0.28s ease;
}

.masonry-item:hover .icono-expandir::after {
    transform: scale(1);
}

.galeria-vacia {
    text-align: center;
    padding: 80px 20px;
    color: #8A9490;
    font-size: 0.92rem;
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(11, 13, 12, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox.abierto {
    display: flex;
}

.lb-contenido img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 0;
}

.lb-btn {
    position: absolute;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 16px;
    opacity: 0.72;
    transition: opacity 0.2s ease;
    z-index: 1010;
}

.lb-btn:hover {
    opacity: 1;
}

.lb-cerrar {
    top: 12px;
    right: 18px;
    font-size: 2.4rem;
}

.lb-prev {
    left: 10px;
}

.lb-next {
    right: 10px;
}

.lb-contador {
    position: absolute;
    bottom: 18px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: #9CA6A2;
}