/* Static replacements for behaviour Squarespace's scripts used to provide. */
.content-fill:not(.banner-image):not(.title-desc-image):not(.sqs-video-background):not(.image-container), .sqs-image-shape-container-element, .image-block-wrapper { position: relative; overflow: hidden; }
.banner-image { overflow: hidden; }
.content-fill > img, .content-fill > a > img, .sqs-image-shape-container-element img,
.title-desc-image img, .sqs-video-background img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1;
}
img { max-width: 100%; }
.sqs-block-image img:not([style*="position"]) { height: auto; }
.title-desc-image, .sqs-video-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.sqs-video-background iframe { position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; transform: translate(-50%, -50%); }
.tff-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.tff-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* slideshows */
[data-tff-slideshow] { position: relative; }
[data-tff-slideshow] .tff-stage { position: relative; width: 100%; padding-bottom: 66.6%; background: #000; overflow: hidden; }
[data-tff-slideshow] .tff-stage .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; visibility: hidden; }
[data-tff-slideshow] .tff-stage .slide.is-active { opacity: 1; visibility: visible; }
[data-tff-slideshow] .tff-stage .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
[data-tff-slideshow].tff-cover .tff-stage .slide img { object-fit: cover; }
.tff-arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; border: 0; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 48px; text-align: center; }
.tff-arrow:hover { background: rgba(0,0,0,.6); }
.tff-arrow.prev { left: 0; } .tff-arrow.next { right: 0; }
.tff-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; justify-content: center; }
.tff-thumbs button { width: 64px; height: 44px; padding: 0; border: 0; cursor: pointer; opacity: .55; background: #000; }
.tff-thumbs button.is-active, .tff-thumbs button:hover { opacity: 1; }
.tff-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* grid galleries (blocks and Instagram) */
.sqs-gallery-block-grid .sqs-gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
.sqs-gallery-thumbnails-per-row-1 .sqs-gallery { grid-template-columns: 1fr; }
.sqs-gallery-thumbnails-per-row-2 .sqs-gallery { grid-template-columns: repeat(2, 1fr); }
.sqs-gallery-thumbnails-per-row-3 .sqs-gallery { grid-template-columns: repeat(3, 1fr); }
.sqs-gallery-thumbnails-per-row-5 .sqs-gallery { grid-template-columns: repeat(5, 1fr); }
.sqs-gallery-thumbnails-per-row-6 .sqs-gallery { grid-template-columns: repeat(6, 1fr); }
.sqs-gallery-block-grid .slide { float: none !important; width: auto !important; margin: 0 !important; }
.sqs-gallery-block-grid .slide .margin-wrapper { margin: 0 !important; }
.sqs-gallery-block-grid .slide .content-fill { display: block; padding-bottom: 100%; }
.sqs-gallery-aspect-ratio-widescreen .slide .content-fill { padding-bottom: 56.25%; }
.sqs-gallery-aspect-ratio-standard .slide .content-fill { padding-bottom: 75%; }
.sqs-gallery-aspect-ratio-three-two .slide .content-fill { padding-bottom: 66.6%; }
.sqs-gallery-block-grid .image-slide-title, .sqs-gallery-block-grid .image-slide-description { display: none; }
@media (max-width: 640px) { .sqs-gallery-block-grid .sqs-gallery { grid-template-columns: repeat(2, 1fr) !important; } }
.sqs-gallery-block-stacked .slide { margin-bottom: 16px; }
.sqs-gallery-block-stacked .slide img { position: static; width: 100%; height: auto; }

/* forms, map, product */
.tff-form { max-width: 640px; margin: 0 auto; text-align: left; }
.tff-field { margin-bottom: 18px; }
.tff-field label { display: block; margin-bottom: 6px; font-size: 14px; }
.tff-field input, .tff-field textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #ccc; background: #fafafa; font: inherit; color: #222; border-radius: 0; }
.tff-form button.tff-submit { cursor: pointer; border: 2px solid #222; background: #222; color: #fff; padding: 14px 34px; font: inherit; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.tff-form button.tff-submit:hover { background: transparent; color: #222; }
.tff-form-note { margin-top: 12px; font-size: 12px; opacity: .7; }
.tff-map-card { display: block; padding: 28px; border: 1px solid rgba(128,128,128,.4); text-align: center; text-decoration: none; }
.tff-map-card strong, .tff-map-card span, .tff-map-card em { display: block; margin: 4px 0; }
.tff-product { padding: 20px; border: 1px solid rgba(128,128,128,.4); }
.tff-product strong { display: block; margin-bottom: 8px; }

/* mobile menu button */
#mobileMenu { cursor: pointer; }
html, body { overflow-x: hidden; }

/* the template hides index content until its own script runs */
.collection-type-index #content-wrapper { opacity: 1 !important; }
.image-block-v2:not([class*="-animation-"]) { opacity: 1; }
img, .thumb-image, .custom-fallback-image, .sqs-gallery .slide img { opacity: 1 !important; }
.sqs-gallery-aspect-ratio-anamorphic-widescreen .slide .content-fill { padding-bottom: 41.67%; }
.sqs-gallery-container.tff-contain .slide img { object-fit: contain !important; }

/* logo-style galleries (fit, not fill) and wider rows */
.sqs-gallery-block-grid .slide .content-fit { display: block; position: relative; padding-bottom: 75%; }
.sqs-gallery-aspect-ratio-square .slide .content-fit { padding-bottom: 100%; }
.sqs-gallery-aspect-ratio-widescreen .slide .content-fit { padding-bottom: 56.25%; }
.sqs-gallery-block-grid .slide .content-fit img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.sqs-gallery-thumbnails-per-row-7 .sqs-gallery { grid-template-columns: repeat(7, 1fr); }
.sqs-gallery-thumbnails-per-row-8 .sqs-gallery { grid-template-columns: repeat(8, 1fr); }
.sqs-gallery-thumbnails-per-row-9 .sqs-gallery { grid-template-columns: repeat(9, 1fr); }
.sqs-gallery-thumbnails-per-row-10 .sqs-gallery { grid-template-columns: repeat(10, 1fr); }
.sqs-gallery-thumbnails-per-row-7 .sqs-gallery, .sqs-gallery-thumbnails-per-row-8 .sqs-gallery,
.sqs-gallery-thumbnails-per-row-9 .sqs-gallery, .sqs-gallery-thumbnails-per-row-10 .sqs-gallery { gap: 20px; }
@media (max-width: 640px) {
  .sqs-gallery-thumbnails-per-row-7 .sqs-gallery, .sqs-gallery-thumbnails-per-row-8 .sqs-gallery,
  .sqs-gallery-thumbnails-per-row-9 .sqs-gallery, .sqs-gallery-thumbnails-per-row-10 .sqs-gallery { grid-template-columns: repeat(3, 1fr) !important; }
}

/* section titles: the template script shrank these to fit */
h1.page-title { font-size: clamp(32px, 9vw, 82px); overflow-wrap: break-word; }

/* phone header: menu button and drawer were revealed by script */
@media only screen and (max-width: 768px) {
  #mobileMenu { visibility: visible !important; color: #fff; }
  #mobileNav { visibility: visible !important; display: block !important; }
}

/* slideshow stage must win over the generic fill rules */
[data-tff-slideshow] .tff-stage .slide { position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; width: auto !important; height: auto !important; opacity: 0 !important; }
[data-tff-slideshow] .tff-stage .slide.is-active { opacity: 1 !important; }
/* full-screen gallery pages */
.sqs-system-gallery { opacity: 1 !important; cursor: default !important; }
.sqs-system-gallery .tff-stage { padding-bottom: 0; height: 100vh; min-height: 420px; }
.sqs-system-gallery .tff-stage .slide img { object-fit: cover; }
.sqs-system-gallery .slides, .sqs-system-gallery .slides-controls { height: auto !important; }
/* inner-page banners were sized by script */
#banner-wrapper .title-desc-wrapper.has-main-image { min-height: 62vh; }
@media (max-width: 768px) { #banner-wrapper .title-desc-wrapper.has-main-image { min-height: 46vh; } }
.sqs-system-gallery .gallery-wrapper { display: block !important; }
.sqs-system-gallery .slide-meta:empty { display: none; }

/* video gallery pages: a simple grid of players */
.tff-video-grid { background: #111; }
.tff-video-grid .gallery-wrapper, .tff-video-grid .slides-controls { width: 100% !important; height: auto !important; overflow: visible !important; }
.tff-video-grid .slides { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 170px 5vw 70px; height: auto !important; width: 100% !important; box-sizing: border-box; }
.tff-video-grid .slides .slide { position: relative !important; height: auto !important; min-height: 0 !important; width: auto !important; padding: 0 !important; aspect-ratio: 16 / 9; opacity: 1 !important; overflow: hidden; }
.tff-video-grid .slides .slide .tff-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.tff-video-grid .slide-meta { display: none; }
@media (max-width: 768px) { .tff-video-grid .slides { grid-template-columns: minmax(0, 1fr); padding: 130px 20px 40px; } }

/* lightbox */
.tff-lb { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.tff-lb img { max-width: 94vw; max-height: 92vh; position: static !important; width: auto !important; height: auto !important; object-fit: contain; }
.tff-lb button { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 44px; cursor: pointer; }

/* parallax: the template pinned section images behind the page on desktop */
@media (min-width: 1025px) and (hover: hover) {
  .tff-parallax { background-image: var(--tff-bg); background-attachment: fixed; background-size: cover; background-position: center center; }
  .tff-parallax img { visibility: hidden; }
  .tff-classic .parallax-item { transform: none !important; }
}
/* the first section's title sat lower, clear of the header */
.collection-type-index .parallax-item .title-desc-wrapper.first { padding-top: 28vh; box-sizing: border-box; }

/* click-to-play posters */
.tff-video[data-embed] { cursor: pointer; background: #000; }
.tff-video[data-embed] img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.tff-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.45); cursor: pointer; padding: 0; }
.tff-play:after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }
.tff-video[data-embed]:hover .tff-play { background: rgba(0,0,0,.7); }
/* background videos */
.sqs-video-background iframe.tff-bgvideo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) !important; border: 0; pointer-events: none; visibility: visible !important; opacity: 0; transition: opacity 1.2s ease; z-index: 1; min-width: 0; min-height: 0; }
.sqs-video-background iframe.tff-bgvideo.is-on { opacity: 1 !important; }
/* video tiles inside grid galleries: one per row on phones */
@media (max-width: 640px) {
  .sqs-gallery-block-grid .sqs-gallery:has(.tff-video) { grid-template-columns: minmax(0, 1fr) !important; }
  .sqs-gallery-thumbnails-per-row-1 .sqs-gallery { grid-template-columns: minmax(0, 1fr) !important; }
}
/* forms */
.tff-name { border: 0; padding: 0; margin: 0 0 18px; }
.tff-name legend { padding: 0; margin-bottom: 6px; font-size: 14px; }
.tff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tff-row .tff-field { margin-bottom: 0; }
.tff-row label { font-size: 12px; opacity: .8; }
.tff-desc { display: block; margin: -2px 0 6px; font-size: 12px; opacity: .75; }
@media (max-width: 480px) { .tff-row { grid-template-columns: 1fr; } }
.tff-product img { position: static !important; width: 100%; height: auto; margin-bottom: 10px; }
.tff-price { display: block; margin-bottom: 8px; }
/* slideshow pause control */
.tff-pause { position: absolute; right: 8px; bottom: 8px; z-index: 5; width: 34px; height: 34px; border: 0; cursor: pointer; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; }
.tff-stage:focus-visible, .tff-arrow:focus-visible, .tff-thumbs button:focus-visible, #mobileMenu:focus-visible, .scroll-arrow:focus-visible, .tff-play:focus-visible, .folder-parent > a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* services banner: white title over a bright image needs a stronger scrim */
.title-desc-wrapper.has-main-image .image-overlay-wrapper, #banner-wrapper .image-overlay-wrapper { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(0,0,0,.2); pointer-events: none; }

.tff-video-grid .arrow, .tff-video-grid .icons { display: none !important; }
