/* Overrides for galleries and for blocks Squarespace only revealed via JS.
   Loaded after site.css / static.css.

   Note: elements carrying [data-animation-role] are deliberately NOT forced
   visible here - assets/js/animations.js drives the scroll fade-in using
   Squarespace's own .preFade / .fadeIn classes. Because .preFade is added by
   JS, content stays visible if scripting is unavailable. */

/* gallery items are positioned by assets/js/gallery.js */
.gallery-strips-wrapper,
.gallery-grid-wrapper,
.gallery-masonry-wrapper {
  font-size: 0; /* kill inline-block whitespace gaps in the strips layout */
}

.gallery-strips-item,
.gallery-grid-item,
.gallery-masonry-item {
  font-size: 1rem;
}

/* the <img> itself always fills its figure; the fade is applied to the
   wrapper element, so forcing the image opaque here is safe */
.gallery-strips-item img,
.gallery-grid-item img,
.gallery-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.gallery-strips-item-wrapper,
.gallery-grid-item-wrapper,
.gallery-masonry-item-wrapper {
  width: 100%;
  height: 100%;
}
