/* Gallery Sections */
.gallery-padding {
    padding-block: 6rem;
}

.gallery-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.gallery-desc {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
    margin-bottom: 2rem;
}

.accent-bar {
    height: 4px;
    width: 96px;
    background-color: var(--primary);
    margin-bottom: 2rem;
}

/* Masonry-style Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--surface-variant);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: grayscale(100%); */
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 28, 28, 0.8), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

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

.gallery-item-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffdf9d;
    margin-bottom: 0.5rem;
}

.gallery-item-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
}

.gallery-item-desc {
    font-size: 0.875rem;
    color: #e4e2e2;
    margin-top: 0.5rem;
}