.img-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(188px, 100%), 1fr));
    align-items: start;
    gap: 1.25em;
}

.img-gallery figure {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.85em;
}

.img-gallery a {
    display: block;
    width: fit-content;
}

.img-gallery a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.img-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-gallery figcaption {
    margin-top: 0.5em;
    line-height: 1.4;
}

.pswp__dynamic-caption {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
}
