/* Gallery page. */
.gallery-block { text-align: center; }

.gallery-title {
    margin: 0;
    color: var(--ink);
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: .05em;
}
.gallery-title::after {
    content: "";
    display: block;
    width: 240px;
    max-width: 60%;
    height: 3px;
    margin: .9rem auto 0;
    background: linear-gradient(90deg,
        rgba(224,133,107,0) 0%, var(--primary) 50%, rgba(224,133,107,0) 100%);
    border-radius: 3px;
}
.gallery-subtitle {
    margin: .8rem 0 2.5rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
}
.gallery-empty { color: var(--ink-soft); padding: 3rem 1rem; }
.gallery-empty code {
    color: var(--primary-dark);
    background: var(--mint);
    padding: .15rem .4rem;
    border-radius: 4px;
}

/* Masonry mediante columnas CSS */
.gallery-grid { column-count: 3; column-gap: 1rem; }

.gallery-item {
    position: relative;
    display: block;
    margin: 0 0 1rem;
    break-inside: avoid;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(74, 48, 40, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(224, 133, 107, .35);
}
.gallery-item img { display: block; width: 100%; height: auto; }

.gallery-item__date {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem .9rem .6rem;
    text-align: left;
    color: #fff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(60,30,20,.75) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-item:hover .gallery-item__date { opacity: 1; }

@media (max-width: 760px) { .gallery-grid { column-count: 2; } }
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }
