/* Specific Gallery Overrides */
.gallery-header {
    padding: 120px 0 60px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

@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-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #F2F2F2;
    border-radius: 12px;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.0);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.02);
}

.gallery-name {
    transition: text-shadow 0.6s ease;
}

.gallery-card:hover .gallery-name {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-info {
    text-align: center;
    color: var(--color-secondary);
}

.gallery-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-graphite);
    margin-bottom: 0.5rem;
    display: block;
}

/* Contact section overrides for gallery page */
#contact .section-title,
#contact .contact-intro {
    text-align: left;
}

.gallery-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}
