.modular-text .columns.particles-text__layout {
    /* DOM order also defines the mobile and keyboard reading order. */
    flex-direction: row;
    row-gap: 1.5rem;
}

.modular-text .particles-text__layout > .column {
    min-width: 0;
    overflow-wrap: anywhere;
}

.modular-text .particles-text__media img {
    display: block;
    max-width: 100%;
    height: auto;
}

.particles-gallery__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
}

.particles-gallery__item {
    min-width: 0;
    margin: 0;
}

.particles-gallery__item a {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.particles-gallery__item img,
.modular-features .feature-icon .particles-feature__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.particles-gallery__item figcaption {
    padding: .65rem 0;
    overflow-wrap: anywhere;
    font-size: .9rem;
    line-height: 1.5;
}

.particles-gallery__item figcaption strong,
.particles-gallery__item figcaption span {
    display: block;
}

.particles-gallery--slideshow.particles-gallery--enhanced .particles-gallery__items {
    display: block;
    touch-action: pan-y pinch-zoom;
}

.particles-gallery--slideshow.particles-gallery--enhanced .particles-gallery__item a {
    aspect-ratio: 8 / 5;
}

.particles-gallery--slideshow.particles-gallery--enhanced .particles-gallery__item img {
    height: 100%;
}

.particles-gallery--slideshow.particles-gallery--enhanced figcaption {
    height: 6rem;
    overflow-y: auto;
}

.particles-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: .75rem 0 0;
    min-height: 2.75rem;
}

.particles-gallery__controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.particles-gallery__controls [data-gallery-position] {
    min-width: 6rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.particles-gallery__more {
    margin-top: 1rem;
}

.particles-gallery a:focus-visible,
.particles-gallery button:focus-visible,
.particles-embed button:focus-visible,
.particles-embed a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.modular-features .feature-icon .particles-feature__image {
    border-radius: 4px;
    margin: 0 0 1rem;
}

.modular-features .feature-icon.feature-icon--image {
    display: block;
    height: auto;
    font-size: inherit;
}

.modular-features .feature-content,
.modular-features .feature-icon h6,
.particles-embed {
    overflow-wrap: anywhere;
}

.particles-embed__placeholder,
.particles-embed__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.particles-embed--map .particles-embed__placeholder,
.particles-embed--map .particles-embed__frame {
    aspect-ratio: 4 / 3;
}

.particles-embed--document .particles-embed__placeholder,
.particles-embed--document .particles-embed__frame {
    aspect-ratio: 3 / 4;
    max-height: 52rem;
}

.particles-embed__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    padding: 1.5rem;
    border: 1px solid currentColor;
    text-align: center;
}

.particles-embed__placeholder p {
    max-width: 40rem;
    margin: 0;
}

.particles-embed__frame iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
}

.particles-embed__placeholder .btn,
.particles-embed__unload,
.particles-gallery__more {
    height: auto;
    min-height: 2.75rem;
    white-space: normal;
    max-width: 100%;
}

.particles-embed__unload,
.particles-embed__external {
    margin-top: .75rem;
}

.particles-empty {
    margin: 1rem 0;
}

.particles-gallery [hidden],
.particles-embed [hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .glightbox-container *,
    .glightbox-container *::before,
    .glightbox-container *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
