/* --- GALLERY SECTION --- */
.gallery-section {
    padding: 0 5% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-category {
    margin-bottom: 6rem;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Helper to center the accent line */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    /* Auto-fill creates responsive columns that don't shrink below 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 5; /* Forces all images to an elegant portrait size */
    overflow: hidden;
    background-color: #eee; /* Light gray placeholder while the image loads */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the 4:5 box without stretching */
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.06); /* Slow, smooth zoom on hover */
}

/* Subtle dark overlay on hover to make the image "pop" */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0,0,0,0.1); /* Very light shadow overlay */
}

