/* ========== GALLERY - BROWN ========== */

.gallery {
    background: linear-gradient(180deg, var(--dark) 0%, var(--primary) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(307deg, var(--primary), #14141485);}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .3);
}

.gallery-placeholder i {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    transform: translateY(100%);
    transition: transform .3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1rem;
    margin-bottom: .3rem;
}

.gallery-caption p {
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
}

.gallery-item a,
.gallery-item a:link,
.gallery-item a:visited {
    color: inherit;
    text-decoration: none;
}

a.gallery-item,
a.gallery-item:link,
a.gallery-item:visited,
a.gallery-item:hover,
a.gallery-item:active {
    text-decoration: none;
    color: inherit;
}

a.gallery-item .gallery-placeholder span,
a.gallery-item .gallery-caption h4,
a.gallery-item .gallery-caption p {
    text-decoration: none;
}

.gallery-item,
.gallery-item * {
    color: inherit;
}

.gallery-item:hover,
.gallery-item:hover .gallery-placeholder,
.gallery-item:hover .gallery-caption,
.gallery-item:hover .gallery-caption h4,
.gallery-item:hover .gallery-caption p,
.gallery-item:hover .gallery-placeholder span {
    color: var(--light);
}