#gallery {
    margin-top: 36px;
}

#gallery p {
    color: #254b63;
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

#collage {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-auto-rows: 140px;
    gap: 10px;
}

#collage picture {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

#collage picture:nth-child(1) { grid-row: span 2; }
#collage picture:nth-child(4) { grid-row: span 2; }
#collage picture:nth-child(7) { grid-row: span 2; }

#collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#collage picture:hover img {
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

@media (min-width: 900px) {
    #collage {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 160px;
    }
}