.thecore-gallery {
    display: grid;
    grid-template-columns: repeat(var(--thecore-gallery-columns, 4), minmax(0, 1fr));
    gap: var(--thecore-gallery-gap, 10px);
    align-items: start;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
}
.thecore-gallery > .thecore-gallery__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    align-self: start;
}
.thecore-gallery .thecore-gallery__media {
    display: block;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
}
.thecore-gallery .thecore-gallery__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
}
.thecore-gallery[data-thecore-gallery-layout="tiles"] .thecore-gallery__media {
    aspect-ratio: var(--thecore-gallery-ratio, 4 / 3);
    overflow: hidden;
}
.thecore-gallery[data-thecore-gallery-layout="tiles"] .thecore-gallery__image {
    height: 100%;
    object-fit: cover;
}
.thecore-gallery .thecore-gallery__caption {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}
.thecore-gallery .thecore-gallery__media:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
.thecore-gallery > .thecore-gallery__status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    border: 1px dashed currentColor;
    font: inherit;
    overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
    .thecore-gallery {
        grid-template-columns: repeat(var(--thecore-gallery-tablet-columns, 2), minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .thecore-gallery {
        grid-template-columns: repeat(var(--thecore-gallery-mobile-columns, 1), minmax(0, 1fr));
    }
}
