/* Responsive fixes for the static Squarespace export. */

html {
  overflow-x: hidden;
}

body,
#siteWrapper {
  min-width: 0;
}

.gallery-masonry {
  box-sizing: border-box;
  margin-right: 0 !important;
  width: 100%;
}

.gallery-masonry-wrapper {
  column-count: 3;
  column-gap: clamp(22px, 4vw, 70px);
  display: block !important;
  height: auto !important;
  max-width: 100%;
  width: 100% !important;
}

.gallery-masonry-item {
  break-inside: avoid;
  display: inline-block !important;
  margin: 0 0 clamp(22px, 4vw, 70px) !important;
  position: static !important;
  transform: none !important;
  width: 100% !important;
}

.gallery-masonry-item-wrapper,
.gallery-masonry-image-link,
.gallery-masonry-lightbox-link {
  display: block;
  width: 100%;
}

.gallery-masonry img {
  display: block;
  height: auto !important;
  max-width: 100%;
  object-fit: cover;
  width: 100% !important;
}

.sqs-video-wrapper,
.embed-block-wrapper,
.sqs-block-video .sqs-block-content {
  max-width: 100%;
}

.sqs-video-wrapper iframe,
.embed-block-wrapper iframe,
.sqs-block-video iframe {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 1000px) {
  .gallery-masonry-wrapper {
    column-count: 2;
    column-gap: clamp(18px, 4vw, 44px);
  }

  .gallery-masonry-item {
    margin-bottom: clamp(18px, 4vw, 44px) !important;
  }
}

@media (max-width: 640px) {
  .gallery-masonry-wrapper {
    column-count: 1;
    column-gap: 0;
  }

  .gallery-masonry-item {
    margin-bottom: 28px !important;
  }

  .content-wrapper,
  .page-section > .content-wrapper {
    box-sizing: border-box;
    width: 100%;
  }
}
