body {
    margin: 0;
    padding: 0;
    background-color: var(--tan);
}

.gallery {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    text-align: center;
}

.filter-buttons {
    margin-bottom: 4rem;
}

.filter-button {
    background-color: transparent;
    color: var(--txt-dark);
    border: none;
    font-size: 1rem;
    padding: 12px 24px;
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: var(--highlight);
}

#active {
    background-color: var(--dark-purple);
    color: var(--light-gold);
}

.gallery-grid {
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;

    max-width: 300px;
    max-height: 300px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hidden {
    display: none;
}





/* Larger modal image */
#modal {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    z-index: 9999;
    inset: 0;

    width: 100vw;
    height: 100vh;

    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(6px);
}

#modal-img {
    width: auto;
    height: auto;
    max-width: min(95vw, 1200px);
    max-height: 100vh;
    padding: 48px;
    /*object-fit: contain;*/

    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}