.gl3-instagram-local {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(8px, 1.4vw, 14px);
    max-width: 1190px;
    margin: 0 auto 16px;
}

.gl3-instagram-local:has(> a:only-child) {
    grid-template-columns: minmax(0, 260px);
    justify-content: center;
}

.gl3-instagram-local > a {
    display: block;
    border-radius: 8px;
    background: var(--sand);
}

.gl3-instagram-local > a:hover {
    box-shadow: 0 0 0 2px var(--beige);
}

.gl3-instagram-local img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: inherit;
    object-fit: cover;
}

/* Swap out the tiles only once the visitor enables the existing full embed. */
.gl3-instagram:has([data-external-content='instagram']:not([hidden]) > iframe) .gl3-instagram-local {
    display: none;
}

@media (max-width: 600px) {
    .gl3-instagram-local {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
