/* Replaces layout work that Squarespace JS used to do at runtime. */

html, body { overflow-x: clip; }

/* wavy marquee: the frozen SVG scales with the page; give phones bigger text like the original */
@media (max-width: 767px) {
  .Marquee { overflow: hidden; }
  .Marquee-svg { width: 200% !important; margin-left: -50%; }
}

/* masonry gallery (static-fix.js splits figures into .sf-col columns) */
.static-masonry { column-count: var(--cols, 3); column-gap: var(--gap, 10px); height: auto !important; }
.static-masonry.sf-ready { display: flex; align-items: flex-start; gap: var(--gap, 10px); column-count: auto; }
.static-masonry .sf-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap, 10px); }
.static-masonry figure { position: static !important; width: auto !important; margin: 0 0 var(--gap, 10px) !important; break-inside: avoid; opacity: 1 !important; transform: none !important; }
.static-masonry.sf-ready figure { margin: 0 !important; }
.static-masonry .gallery-masonry-item-wrapper { overflow: hidden; }
.static-masonry img, .static-strips img { position: static !important; width: 100% !important; height: 100% !important; object-fit: cover; display: block; }

/* strips gallery */
.static-strips { display: flex; flex-wrap: wrap; gap: var(--gap, 10px); }
.static-strips::after { content: ''; flex-grow: 1000000; }
.static-strips > figure { flex: calc(var(--ar) * 1000) 1 calc(var(--ar) * var(--row)); margin: 0 !important; position: static !important; opacity: 1 !important; }
.static-strips .gallery-strips-item-wrapper { aspect-ratio: var(--ar); overflow: hidden; }
@media (max-width: 767px) { .static-strips { --row: 160px !important; } }

/* legacy slider gallery (blog posts): swipeable strip instead of the JS carousel */
.sqs-gallery-design-strip .sqs-wrapper { position: absolute !important; inset: 0; left: 0 !important; width: auto !important; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sqs-gallery-design-strip .sqs-wrapper::-webkit-scrollbar { display: none; }
.sqs-gallery-design-strip .sqs-wrapper img { position: static !important; flex: none; height: 100% !important; width: auto !important; scroll-snap-align: center; }

/* lightbox */
.sf-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 10, 10, .95); display: flex; align-items: center; justify-content: center; }
.sf-lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.sf-lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 40px/1 sans-serif; padding: 20px; cursor: pointer; }
.sf-lightbox .sf-close { top: 0; right: 0; }
.sf-lightbox .sf-prev { left: 0; top: 50%; transform: translateY(-50%); }
.sf-lightbox .sf-next { right: 0; top: 50%; transform: translateY(-50%); }
[data-sf-lightbox] img { cursor: zoom-in; }

/* accordion */

.accordion-item__dropdown.sf-open { display: block !important; height: auto !important; opacity: 1 !important; }

/* form feedback */
.sf-form-msg { margin-top: 1em; }
