/* Juniper Café & Bar — self-hosted additions on top of the original site.css */

/* ---------- index gallery slideshow (stacked + fade, as the original template) ---------- */
.collection-type-index.design-slideshow .index-gallery .gallery-wrapper .slide-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  float: none;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity .8s ease-in-out, visibility 0s linear .8s;
}
.collection-type-index.design-slideshow .index-gallery .gallery-wrapper .slide-wrapper.sqs-active-slide {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .8s ease-in-out, visibility 0s linear 0s;
}
.collection-type-index.design-slideshow .index-gallery .slide {
  position: relative;
  overflow: hidden;
}
.collection-type-index.design-slideshow .index-gallery .slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
.collection-type-index.design-slideshow .index-gallery .circles .circle {
  cursor: pointer;
  box-sizing: content-box;
}
.collection-type-index.design-slideshow .index-gallery .arrow {
  -webkit-tap-highlight-color: transparent;
}
.index-gallery .gallery-wrapper {
  touch-action: pan-y;
}

/* ---------- header / navigation ---------- */
html.no-js #headerNav {
  opacity: 1;
  position: static;
}
html.nav-open,
html.nav-open body {
  overflow: hidden;
}
#mainNavWrapper nav a:focus-visible,
#overlayNav nav a:focus-visible,
.mobile-nav-toggle-label:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* ---------- map block (keyless Google Maps embed) ---------- */
.sqs-block.map-block .sqs-block-content {
  height: 408px;
  overflow: hidden;
}
.sqs-block.map-block .map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- media never overflows ---------- */
img,
iframe {
  max-width: 100%;
}
.sqs-html-content,
.menu-block {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---------- search page ---------- */
.sqs-search-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 0 90px;
}
.sqs-search-page .search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sqs-search-page-input {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid rgba(28, 28, 28, .8);
  padding-bottom: 8px;
}
.sqs-search-page-input .search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: Abel, sans-serif;
  font-size: 28px;
  letter-spacing: .1em;
  color: #1c1c1c;
  padding: 6px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sqs-search-page-input .search-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #1c1c1c;
  color: #fff;
  font-family: Raleway, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
}
.sqs-search-page-notice {
  margin: 24px 0 0;
  font-size: 15px;
  color: rgba(0, 0, 0, .6);
}
.sqs-search-page .search-results {
  margin-top: 10px;
}
.sqs-search-page .search-result {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  color: inherit;
  text-decoration: none;
}
.sqs-search-page .search-result:hover .search-result-title {
  text-decoration: underline;
}
.sqs-search-page .search-result-section {
  display: block;
  font-family: Raleway, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .5);
  margin-bottom: 6px;
}
.sqs-search-page .search-result-title {
  display: block;
  font-family: Abel, sans-serif;
  font-size: 20px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1c1c1c;
}
.sqs-search-page .search-result-price {
  float: right;
  margin-left: 12px;
  font-size: 18px;
  color: #1c1c1c;
}
.sqs-search-page .search-result-text {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6em;
}
.sqs-search-page mark {
  background: #f6c24a;
  color: inherit;
  padding: 0 1px;
}

/* ---------- responsive ---------- */
@media only screen and (max-width: 768px) {
  .collection-type-index.design-slideshow .index-gallery .arrow {
    padding: 10px 6px;
  }
  .sqs-block.map-block .sqs-block-content {
    height: 320px;
  }
}
@media only screen and (max-width: 640px) {
  .collection-type-index.design-slideshow .index-gallery {
    padding-bottom: 75%;
  }
  .collection-type-index.design-slideshow .index-gallery .circles {
    margin: 18px 10%;
  }
  .sqs-search-page {
    padding: 36px 0 60px;
  }
  .sqs-search-page-input .search-input {
    font-size: 22px;
  }
}
