/* Shared editorial galleries, including native paginated items. */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 16px 0 24px;
    align-items: start;
    box-sizing: border-box;
}

.content-gallery__item {
    min-width: 0;
}

.content-gallery__item a {
    display: block;
}

.content-gallery__item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.content-gallery .content-gallery__image {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.content-gallery__item > div {
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .content-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
}

@media (max-width: 360px) {
    .content-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}
