/* Styles moved from the <head> of project-experience.aspx on the .NET site. */

.gallery ul li a img
    {
        max-width:100%;
    }


/* Thumbnail grid (Image Gallery section without extra spacing, e.g. Infrastructure): 4 photos per row */
.gallery.gallery--4col {
    float: none;
    width: 100%;
}

.gallery--4col ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 3px; /* cards side by side, as on the live site */
    row-gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery--4col ul li {
    float: none;
    width: auto !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
}

.gallery--4col ul li a img {
    display: block;
    width: 100% !important;
    height: auto;
    aspect-ratio: 245 / 250;
    object-fit: cover;
}

@media (max-width: 991px) {
    .gallery--4col ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gallery--4col ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* small phones: one photo per row, as before */
@media (max-width: 480px) {
    .gallery--4col ul {
        grid-template-columns: minmax(0, 1fr);
    }
}