/* ==========================================================================
   Jervis Bay School of Music - site styles
   Recreates the Squarespace 7.0 "Brine" template look used on the old site.
   Fonts: Jost stands in for Futura PT, Mulish stands in for Europa (see NOTES.md).
   ========================================================================== */

:root {
  --dark: #201a16;            /* header, footer, mobile menu */
  --dark-90: rgba(32, 26, 22, .9);
  --text: #1f1f1f;
  --heading: #1c1c1c;
  --muted: rgba(31, 31, 31, .5);
  --accent: #9c9999;          /* active nav, banner subtitles */
  --prefooter: #f0f0f0;
  --font-head: "Jost", "Futura PT", Futura, "Century Gothic", sans-serif;
  --font-body: "Mulish", "Europa", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-max: 1020px;
  --gutter: 17px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#siteWrapper {
  position: relative;
  min-height: 100vh;
  background: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: .1px; /* Europa used .5px; Mulish runs a little wider */
  line-height: 1.6em;
  color: var(--text);
  transition: transform .3s ease-in-out;
}

img { max-width: 100%; height: auto; border: 0; }
iframe { max-width: 100%; }
/* long web addresses written out in old posts must wrap on phones */
#content { overflow-wrap: break-word; }
a { color: inherit; }
strong, b { font-weight: 700; }

/* Jost runs about 10% wider than Futura PT, so heading sizes are ~8% smaller
   than the old site's settings with slightly tighter tracking to keep line breaks similar. */
h1, h2, h3, .entry-title {
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1.2em;
  margin: 0 0 .5em;
}
h1, .entry-title { font-size: 39px; color: var(--heading); }
h2 { font-size: 30px; }
h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.3em;
}

p { margin: 1em 0; }

/* Pre-launch SEO pass: each page has exactly one <h1>. Where a heading had to
   change level, these classes keep it looking exactly as before. */
.as-h1 { font-size: 39px; color: var(--heading); }   /* an h2 that looks like an h1 */
.as-h2 { font-size: 30px; color: inherit; }           /* an h1 that looks like an h2 */
.as-h3 {                                              /* an h1 that looks like an h3 */
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.3em;
  color: inherit;
}
h1.filter-heading { line-height: inherit; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
#header {
  position: relative;
  z-index: 1000;
  width: 100%;
  padding: 0 20px;
  background: var(--dark);
}
.transparent-header #header {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
}
.header-inner {
  display: table;
  width: 100%;
  padding: 20px 0;
}
#logoWrapper, #headerNav { display: table-cell; vertical-align: middle; }
#logoWrapper { width: 1%; white-space: nowrap; padding-right: 24px; }
#logoImage { margin: 0; font-size: 0; line-height: 0; }
#logoImage img { height: 100px; width: auto; max-width: none; }
#headerNav { text-align: right; white-space: nowrap; }

#mainNavigation > div { display: inline-block; vertical-align: middle; }
#mainNavigation a,
#mobileNavigation a {
  display: block;
  padding: .75em 1em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: color .1s ease-in-out, background-color .1s ease-in-out;
}
#mainNavigation a:hover,
#mainNavigation .active a,
#mobileNavigation a:hover,
#mobileNavigation .active a { color: var(--accent); }
#mainNavigation > div:last-child a {
  margin-left: 1em;
  padding: 1em 1.5em;
  border: 2px solid #fff;
  color: #fff;
}
#mainNavigation > div:last-child a:hover { background: #fff; color: var(--dark); }

/* "show on scroll" fixed header (index page only) */
@media (min-width: 641px) {
  .show-on-scroll.header-fixed #header {
    position: fixed;
    background: var(--dark-90);
    animation: header-in .14s ease-in-out;
  }
}
@keyframes header-in { from { top: -20px; opacity: 0; } to { top: 0; opacity: 1; } }

/* mobile toggle + sidecar menu */
.mobile-nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 1002;
}
.mobile-nav-toggle span {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .15s ease-in-out, top .15s .15s ease-in-out, opacity 0s .15s;
}
.mobile-nav-toggle .middle-bar { top: 7px; }
.mobile-nav-toggle .bottom-bar { top: 14px; }
.nav-open .mobile-nav-toggle span { transition: top .15s ease-in-out, transform .15s .15s ease-in-out, opacity 0s .15s; }
.nav-open .mobile-nav-toggle .top-bar,
.nav-open .mobile-nav-toggle .bottom-bar { top: 7px; }
.nav-open .mobile-nav-toggle .top-bar { transform: rotate(45deg); }
.nav-open .mobile-nav-toggle .bottom-bar { transform: rotate(-45deg); }
.nav-open .mobile-nav-toggle .middle-bar { opacity: 0; }

#sidecarNav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  padding: 24px 36px;
  overflow-y: auto;
  background: var(--dark);
  visibility: hidden;
}
#mobileNavigation a { padding: .75em 0; }
#mobileNavigation > div:last-child a {
  display: inline-block;
  margin-top: 1em;
  padding: 1em 1.5em;
  border: 2px solid #fff;
}
.nav-open #sidecarNav { visibility: visible; }
.nav-open #siteWrapper { transform: translateX(-260px); }
.nav-open #siteWrapper::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
}

/* ---------- banners ---------- */
.banner-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  padding: 180px 0 155px;
  background: var(--dark);
}
.banner-image {
  position: absolute;
  inset: 0;
  margin: 0;
}
.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-thumbnail-wrapper .color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(32, 26, 22, .2);
}
.desc-wrapper,
.blog-item-wrapper {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}
.desc-wrapper p {
  margin: 20px auto;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 4px;
  line-height: 1.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.desc-wrapper p > strong,
.blog-item-wrapper .post-title {
  display: block;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 79px;
  letter-spacing: -.01em;
  line-height: 1.1em;
  text-transform: none;
  color: #fff;
}

/* ---------- page containers ---------- */
#page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 96px 32px;
}
.collection-type-index #page { max-width: none; padding: 0; }
.collection-type-blog #content { max-width: 700px; margin: 0 auto; }
.index-section-wrapper {
  max-width: calc(var(--page-max) + 64px);
  margin: 0 auto;
  padding: 96px 32px;
}

/* ---------- Squarespace block grid ---------- */
.sqs-layout > .sqs-row { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.sqs-row::after { content: ""; display: table; clear: both; }
.sqs-layout .col { float: left; min-height: 1px; }
.sqs-col-1 { width: 8.3333%; }  .sqs-col-2 { width: 16.6667%; } .sqs-col-3 { width: 25%; }
.sqs-col-4 { width: 33.3333%; } .sqs-col-5 { width: 41.6667%; } .sqs-col-6 { width: 50%; }
.sqs-col-7 { width: 58.3333%; } .sqs-col-8 { width: 66.6667%; } .sqs-col-9 { width: 75%; }
.sqs-col-10 { width: 83.3333%; } .sqs-col-11 { width: 91.6667%; } .sqs-col-12 { width: 100%; }

.sqs-block {
  position: relative;
  clear: both;
  padding: 17px var(--gutter);
}
.sqs-row .sqs-block:first-child { padding-top: 0; }
.sqs-row .sqs-block:last-child { padding-bottom: 0; }
.sqs-row + .sqs-row .sqs-block:first-child { padding-top: 17px; }
.sqs-row + .sqs-row:not(:last-child) .sqs-block:last-child { padding-bottom: 17px; }
.sqs-block-spacer .sqs-block-content { visibility: hidden; height: 0; line-height: 1px; overflow: hidden; }
.sqs-block-spacer.sized.vsize-1 .sqs-block-content { height: 34px; }

/* social icon blocks placed inside page content */
.sqs-svg-icon--list { display: flex; justify-content: center; gap: 12px; }
.sqs-svg-icon--wrapper { position: relative; display: block; width: 20px; height: 20px; }
.sqs-svg-icon--social { position: absolute; top: -10px; left: -10px; width: 40px; height: 40px; }
.sqs-use--icon { fill: var(--text); }
.sqs-use--mask { fill: transparent; }
.sqs-block-code p:empty { margin: 0; }

.sqs-html-content :is(p, h1, h2, h3, h4) { white-space: pre-wrap; }
.sqs-html-content p:empty::before { content: "\200b"; } /* keep blank lines like Squarespace */
.sqs-html-content .as-h1 { margin: 0 0 21px; }
.sqs-html-content .as-h2 { margin: 32px 0 16px; }
.sqs-html-content .as-h3 { margin: 18px 0 9px; }
.sqs-html-content > *:first-child { margin-top: 0; }
.sqs-html-content > *:last-child { margin-bottom: 0; }
.sqs-html-content h1 { margin: 0 0 21px; }
.sqs-html-content h2 { margin: 32px 0 16px; }
.sqs-html-content h3 { margin: 18px 0 9px; }
.sqs-html-content ul, .sqs-html-content ol { padding-left: 40px; margin: 1em 0; }
.sqs-html-content li p { margin: 8px 0; }
.sqs-html-content a,
.entry-content a,
.product-excerpt a { color: var(--muted); text-decoration: none; }
.sqs-html-content a:hover,
.entry-content a:hover { color: var(--text); }
blockquote { margin: 1em 0; padding: 0 0 0 1.5em; border-left: 1px solid rgba(31,31,31,.2); }
.text-align-center { text-align: center; }

/* image blocks */
.sqs-block-image figure { margin: 0; }
.sqs-block-image img { display: block; width: 100%; height: auto; }
.image-caption { margin-top: .5em; font-size: 14px; }

/* code / embed blocks */
.sqs-block-code iframe,
.sqs-block-embed iframe { max-width: 100%; }

/* ---------- buttons ---------- */
.sqs-block-button-container--left { text-align: left; }
.sqs-block-button-container--center { text-align: center; }
.sqs-block-button-container--right { text-align: right; }
.sqs-block-button-element {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-head);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 2px solid;
  background: transparent;
  transition: background-color .1s ease-in-out, color .1s ease-in-out;
}
.sqs-block-button-element--small { padding: 13px 26px; font-weight: 300; letter-spacing: 3px; font-size: 12px; color: #fff; background: #1f1f1f; border-color: #1f1f1f; }
.sqs-block-button-element--medium { padding: 21px 34px; font-weight: 500; letter-spacing: 2px; font-size: 15px; color: #111; border-color: #111; }
.sqs-block-button-element--large { display: block; padding: 25px 46px; font-weight: 500; letter-spacing: 3px; font-size: 20px; color: #272727; border-color: #272727; }
.sqs-block-button-element--medium:hover { background: #111; color: #fff; }
.sqs-block-button-element--large:hover { background: #272727; color: #fff; }

/* ---------- placeholder "instagram" square grid (index page) ---------- */
.square-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.square-grid-item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.square-grid-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- blog ---------- */
.blog-list article + article { margin-top: 128px; }
.entry-header { margin: 0 0 36px; text-align: center; }
.entry-title { margin: 12px 0; text-align: center; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { color: var(--muted); }
.entry-meta a { color: var(--muted); text-decoration: none; }
.entry-meta a:hover { color: var(--text); }
.entry-dateline::before { content: "\00B7"; margin: 0 .75em; }
.entry-footer { margin-top: 32px; text-align: center; line-height: 20px; }
.entry-tags { color: var(--muted); }
.entry-tags a { color: var(--muted); text-decoration: none; }
.entry-tags a:hover { color: var(--text); }
.filter-heading { margin: 0 0 64px; text-align: center; }
.filter-heading, .filter-heading a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.filter-heading a { padding: .5em 0; border-bottom: 2px solid var(--muted); }

.pagination { display: flex; margin: 96px 0 0; }
.pagination > div { width: 50%; }
.pagination .newer { padding-right: 16px; }
.pagination .older { padding-left: 16px; text-align: right; }
.pagination a { display: block; color: var(--muted); text-decoration: none; }
.pagination a:hover { color: var(--text); }

/* ---------- gift certificates (store) ---------- */
#productList { display: flex; flex-wrap: wrap; margin: -29px 0 0 -29px; }
#productList .product {
  display: block;
  width: calc(33.333% - 29px);
  margin: 29px 0 0 29px;
  color: var(--text);
  text-decoration: none;
}
#productList .product-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
#productList .product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#productList .product-title { margin: 20px 0 15px; font-size: 20px; line-height: 25px; text-align: center; }
#productList .product-price { margin: 8px 0 12px; line-height: 20px; text-align: center; }

#productNav { margin-bottom: 32px; }
#productNav a { text-transform: uppercase; text-decoration: none; }
#productSummary::after { content: ""; display: table; clear: both; }
#productSummary .product-title.mobile { display: none; color: var(--heading); }
#productGallery { float: left; width: 48.5%; }
#productGallery .intrinsic { display: flex; align-items: center; aspect-ratio: 1 / 1; }
#productSlideshow img { display: block; width: 100%; height: auto; }
#productDetails { float: right; width: 48.5%; }
#productDetails .product-title { margin: 0 0 21px; font-size: 39px; letter-spacing: -.01em; line-height: 1.2em; }
#productDetails .product-price { margin: 16px 0; line-height: 24px; }
.sqs-add-to-cart-button-wrapper { margin: 20px 0; }
.sqs-add-to-cart-button {
  display: inline-block;
  padding: 19.5px 52px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 3px;
  line-height: 13px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #1f1f1f;
  transition: opacity .1s ease-in-out;
}
.sqs-add-to-cart-button:hover { opacity: .8; }
.product-description { margin-top: 24px; }

/* ---------- pre-footer / footer ---------- */
#preFooter { background: var(--prefooter); }
.pre-footer-inner { max-width: var(--page-max); margin: 0 auto; padding: 32px 0; }
.social-icons { display: flex; justify-content: center; gap: 12px; }
.social-icon { position: relative; display: block; width: 20px; height: 20px; }
.social-icon svg { position: absolute; top: -10px; left: -10px; width: 40px; height: 40px; }
.social-icons .social-icon .icon { fill: var(--text); }
.social-icons .social-icon .mask { fill: transparent; }
.social-icons .social-icon:hover .icon { fill: rgba(31,31,31,.6); }

#footer { background: var(--dark); color: rgba(255,255,255,.4); }
.footer-inner { max-width: var(--page-max); margin: 0 auto; padding: 64px 32px; }
#siteInfo {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 25.6px;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255,255,255,.9);
}
#siteInfo .site-phone, #siteInfo .site-email { margin-left: 14px; }
#siteInfo a { color: inherit; text-decoration: none; }

/* mobile info bar (Email / Call / Map), phones only */
.mobile-info-bar { display: none; }

/* ---------- cover page (/) ---------- */
.cover-page-body { background: #673631; }
.cover-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  font-family: var(--font-head);
  color: #fff;
  text-align: center;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background: #673631 center / cover no-repeat;
}
.cover-scrim { position: absolute; inset: 0; background: rgb(72, 53, 52); opacity: .3; }
.cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 60px 60px;
}
.cover-logo h1, .cover-logo-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.82px;
  line-height: 1em;
  text-transform: uppercase;
  color: #fff;
}
.cover-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 0;
}
.cover-headline {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(41px, 5.8vw, 74px);
  letter-spacing: -.01em;
  line-height: 1em;
  color: #fff;
}
.cover-body p {
  max-width: 720px;
  margin: 0 auto 20px;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .04em;
  line-height: 1.4em;
}
.cover-body strong { font-weight: 700; }
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.cover-actions a,
.cover-actions button {
  display: block;
  padding: 14px 17.36px 14px 20.16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2.8px;
  line-height: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.cover-actions a:hover,
.cover-actions button:hover { background: #fff; color: #483534; }
.cover-social { display: flex; justify-content: center; gap: 6px; }
.cover-social .social-icon { width: 48px; height: 48px; }
.cover-social .social-icon svg { top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; }
.cover-social .icon { fill: transparent; }
.cover-social .mask { fill: #fff; }
.cover-social .social-icon:hover .mask { fill: rgba(255,255,255,.8); }

/* contact form overlay on the cover page */
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow-y: auto;
  background: rgba(72, 53, 52, .9);
  text-align: left;
  animation: fade-in .2s ease-out;
}
.form-overlay[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.form-overlay-inner { position: relative; max-width: 640px; margin: 0 auto; padding: 60px 20px; }
.form-overlay-close {
  position: absolute;
  top: 56px;
  right: 20px;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 22px;
  line-height: 18px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  cursor: pointer;
}
.form-title { margin: 0 0 32px; font-family: var(--font-head); font-weight: 500; font-size: 16px; letter-spacing: .04em; color: #fff; }
.sqs-form .form-item { margin: 0 0 24px; padding: 0; border: 0; }
.sqs-form fieldset.form-item { display: flex; flex-wrap: wrap; gap: 0 16px; }
.sqs-form fieldset .title { width: 100%; padding: 0; }
.sqs-form fieldset .field { flex: 1 1 0; min-width: 120px; }
.sqs-form .title { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #fff; }
.sqs-form .description { margin: -2px 0 6px; font-size: 10px; letter-spacing: .04em; color: #fff; opacity: .8; }
.sqs-form .caption { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .04em; color: #fff; opacity: .8; }
.sqs-form .field-element {
  display: block;
  width: 100%;
  padding: 6px 8px;
  font: 400 14px/1.4 var(--font-head);
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
}
.sqs-form textarea.field-element { min-height: 90px; resize: vertical; }
.sqs-form .button {
  padding: 14px 30px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  cursor: pointer;
}
.sqs-form .button:hover { background: #fff; color: #483534; }
.form-todo-message { margin-top: 16px; font-size: 14px; color: #fff; }
.form-todo-message a { color: #fff; }
.form-error-message { margin-top: 16px; font-size: 14px; color: #fff; }
.form-error-message a { color: #fff; }
.sqs-form .button:disabled { opacity: .6; cursor: wait; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.buy-todo-message { margin-top: 16px; font-size: 14px; }
body.form-open { overflow: hidden; }
.form-open .cover-content { visibility: hidden; }

/* ---------- 404 ---------- */
.not-found .sqs-html-content { max-width: 700px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
  #page { padding: 32px; }
  .cover-content { padding: 20px; }
  .cover-body p { font-size: 16px; line-height: 1.4em; }
  .cover-actions { flex-direction: column; align-items: stretch; gap: 15px; padding: 0 27.5px; }
  .cover-actions a, .cover-actions button { width: 100%; padding: 10px 12px; font-size: 10px; letter-spacing: 2px; line-height: 10px; }
  .cover-logo h1, .cover-logo-title { line-height: 1.3em; }
}

@media (max-width: 700px) {
  #productList { margin: 0; }
  #productList .product { width: 100%; margin: 0 0 40px; }
  #productSummary .product-title { display: none; }
  #productSummary .product-title.mobile { display: block; margin: 0 0 21px; font-size: 30px; }
  #productGallery, #productDetails { float: none; width: 100%; }
  #productGallery .intrinsic { aspect-ratio: auto; margin-bottom: 20px; }
}

@media (max-width: 640px) {
  .sqs-layout .col { float: none; width: auto; }
  .sqs-layout .sqs-row .sqs-block:first-child { padding-top: 17px; }
  .sqs-layout .sqs-row .sqs-block:last-child { padding-bottom: 17px; }
  #page { padding: 40px 20px; }
  .index-section-wrapper { padding: 20px; }
  h1, .entry-title { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { letter-spacing: 2px; }
  .as-h1 { font-size: 30px; }
  .as-h2 { font-size: 26px; }
  .as-h3 { letter-spacing: 2px; }
  .desc-wrapper p > strong,
  .blog-item-wrapper .post-title { font-size: 30px; }
  .desc-wrapper p { font-size: 20px; }
  .sqs-block-button-element--large { padding: 21px 34px; font-size: 15px; }

  #header { padding: 0 20px; }
  .header-inner { display: block; position: relative; }
  #logoWrapper { display: inline-block; max-width: 240px; }
  #logoImage img { height: auto; max-height: 50px; }
  #headerNav { display: none; }
  .mobile-nav-toggle { display: block; }

  .square-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { padding: 48px 20px; }
  #siteInfo span, #siteInfo a { display: block; margin: 0 !important; }

  .mobile-info-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 64px;
    background: #ebebeb;
    font-family: "Helvetica Neue", Arial, sans-serif;
  }
  .mobile-info-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #1f1f1f;
  }
  .mobile-info-bar svg { width: 20px; height: 20px; }
  #siteWrapper { padding-bottom: 64px; }
}

/* Switch to the phone menu only once the desktop menu truly can't fit */
/* (was: Switch to the phone menu before the desktop nav runs out of room, so the logo never shrinks */
/* Tighter desktop menu on smaller laptops/tablets landscape */
@media (max-width: 1150px) and (min-width: 841px) {
  #headerNav a { letter-spacing: 1px; font-size: 12px; }
  #logoImage img { height: 80px; }
}
@media (max-width: 840px) {
  .header-inner { display: block; position: relative; }
  #logoWrapper { display: inline-block; width: auto; padding-right: 0; }
  #logoImage img { height: 70px; width: auto; }
  #headerNav { display: none; }
  .mobile-nav-toggle { display: block; }
}
@media (max-width: 640px) {
  #logoImage img { height: 50px; }
}
