/* Local overrides so the saved Squarespace markup renders without Squarespace scripts.
   No new design: these only stand in for what the template scripts did on the live site. */

/* Futura PT came from a Squarespace-provided Adobe Fonts kit, which is not copied.
   Use an installed Futura if the visitor has one, else a plain sans. */
@font-face { font-family: futura-pt; font-weight: 100 900; font-style: normal;
  src: local("Futura PT"), local("FuturaPT-Book"), local("Futura"), local("Century Gothic"), local("Avenir Next"), local("Helvetica Neue"), local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("DejaVu Sans"); }
@font-face { font-family: futura-pt; font-weight: 100 900; font-style: italic;
  src: local("Futura PT Book Oblique"), local("Futura Italic"), local("Century Gothic Italic"), local("Helvetica Neue Italic"), local("Arial Italic"), local("Liberation Sans Italic"), local("DejaVu Sans Oblique"); }

/* header/mobile elements the live layout hides */
.bl-hidden { display: none !important; }

/* index section background images: the live parallax script moved these behind each section */
.Index-page--has-image { position: relative; overflow: hidden; }
.Index-page--has-image > .Index-page-image { opacity: 1 !important; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: 0; overflow: hidden; z-index: 0; }
.Index-page--has-image > .Index-page-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.Index-page--has-image > .Index-page-content { position: relative; z-index: 1; }

/* video blocks: the live video script injected the YouTube iframe into this wrapper */
.sqs-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.embed-block-wrapper { position: relative; }
.bl-video-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* page banner (Intro) images: same parallax stand-in */
.Intro--has-image { position: relative; overflow: hidden; }
.Intro--has-image > .Intro-image { opacity: 1 !important; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: 0; overflow: hidden; z-index: 0; }
.Intro--has-image > .Intro-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.Intro--has-image > :not(.Intro-image) { position: relative; z-index: 1; }

/* the live HeaderOverlay script pushed the first overlaid section's content below the header */
@media screen and (min-width: 640px) {
  .Site-inner .Intro--has-image > .Intro-content,
  .Site-inner--index .Index-page:first-child > .Index-page-content { margin-top: 100px; }
}

/* the live MobileOffset script moved the page below the fixed phone bar */
@media screen and (max-width: 639px) {
  body.bl-local { margin-top: 58px; }
}

/* product list and product gallery images: the live ImageLoader script sized these to fill */
.ProductList-innerImageWrapper { overflow: hidden; }
.ProductList-innerImageWrapper img { width: 100%; height: 100%; object-fit: cover; }

/* blog list grid: the live script set data-columns from the list width (1, 2 or 3 columns;
   measured on live: 1 at 390px wide, 2 at 640-800px, 3 from about 840px).
   Same widths as the template's [data-columns] rules, driven by media queries instead. */
@media screen and (min-width: 520px) {
  .tweak-blog-list-style-grid .BlogList-item { width: calc(50% - 30px); margin-right: 60px; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(-n + 2) { margin-top: 0; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(2n) { margin-right: 0; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(2n + 1) { clear: both; }
}
@media screen and (min-width: 820px) {
  .tweak-blog-list-style-grid .BlogList-item { width: calc(33.33333333% - 40px); margin-right: 60px; clear: none; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(-n + 3) { margin-top: 0; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(n) { margin-right: 60px; clear: none; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(3n) { margin-right: 0; }
  .tweak-blog-list-style-grid .BlogList-item:nth-child(3n + 1) { clear: both; }
}

/* product list on phones: the live script set two items per row */
@media screen and (max-width: 639px) {
  .ProductList-item { width: calc(50% - 15px); }
}

/* product block image (ARC -copy page): keep the picture's own proportions as the live loader did */
.sqs-block-product .sqs-product-block-main-image { height: auto; }
