.gallery-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    margin-bottom: 5rem;
}

.gallery-container h1 {
    text-align: center;
    color: #1565c0;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    .gallery-item {
        margin-bottom: 1rem;
    }
    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-container h1 {
        font-size: 2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}