.sci-gallery { display: grid; width: 100%; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); margin-block: 1.5rem; }
.sci-gallery--columns-1 { grid-template-columns: minmax(0, 1fr); }
.sci-gallery--columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sci-gallery--columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sci-gallery--columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sci-gallery .sci-gallery__card { margin: 0; min-width: 0; width: 100%; max-width: none; }
.sci-gallery .sci-gallery__image { display: block; width: 100%; max-width: 100%; height: auto; border-radius: .375rem; }
.sci-gallery figcaption { padding-block: .75rem; }
.sci-gallery .sci-gallery__title { margin: 0 0 .5rem; }
.sci-gallery__note { overflow-wrap: anywhere; }
.sci-gallery__note > :first-child { margin-top: 0; }
.sci-gallery__note > :last-child { margin-bottom: 0; }
.sci-gallery .sci-gallery__toggle { display: block; box-sizing: border-box; width: 100%; max-width: none; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; line-height: 0; }
.sci-gallery .sci-gallery__toggle:focus-visible { outline: 3px solid #2271b1; outline-offset: 4px; }
.sci-gallery__toggle > span { display: block; }
.sci-gallery__toggle > [hidden] { display: none !important; }
.sci-gallery__hint { display: block; margin-top: .5rem; }
@media (max-width: 600px) { .sci-gallery { grid-template-columns: minmax(0, 1fr); } }
