﻿/* Container & Header */
.gallery-section {
    padding: 2rem 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* The Grid: 1 col on mobile, up to 4+ on desktop automatically */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

/* Individual Card Structure */
.gallery-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

    .gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    }

/* Image Aspect Ratio Control */
.gallery-link {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

/* Typography & Content */
.gallery-body {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
}

.gallery-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #003774;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-caption {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

/* Filter Buttons */
.filter-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-filter {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}
