/* Overrides that stand in for Squarespace's JavaScript on the static copy */

/* Elements Squarespace fades in with JS: always visible */
[data-animation-role], .preFade, .preSlide, .preScale, .preClip, .preFlex {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* Gallery grids */
.gallery-grid--layout-grid .gallery-grid-wrapper {
  grid-template-columns: repeat(var(--sb-cols, 3), minmax(0, 1fr));
  gap: var(--sb-gutter, 2vw);
}
@media screen and (max-width: 767px) {
  .gallery-grid--layout-grid .gallery-grid-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4vw;
  }
}

/* Lightbox images */
.gallery-lightbox-item-src img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}
.gallery-lightbox-item[data-active="true"] { pointer-events: auto; }

/* Contact note that replaces the Squarespace form */
.sb-contact-email { font-size: 1.1rem; padding: 1em 0; }
.gallery-lightbox-item-img { opacity: 1 !important; height: 100%; }

/* CV page: keep the exhibition photo at the bottom of its box so its caption sits right under it */
@media (min-width: 768px) {
  .fe-block-cf74ae309b3293c14ac4 img { object-position: 50% 100% !important; }
}
