/**
 * Gallery section - style homepage
 */
.gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.gallery-item-inner {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-inner img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.gallery-item-caption {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.gallery-item {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.35s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 35px rgba(0,123,255,0.2);
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
