/*
Theme Name: OBS
Author: Kevin Nugent
Author URI: https://nugerama.co.uk
Theme URI: https://nugerama.co.uk
Tags: full-site-editing, block-patterns
Text Domain: obs
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.1.1

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/* Styles intended only for the front.*/
html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background-image: url("assets/images/swatch.jpg");
  background-size: auto;
  background-position: 50% 0;
}

.page-template-one-pager .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.page-template-one-pager .site-header a {
  pointer-events: auto;
}
@media screen and (min-width: 768px) {
  .page-template-one-pager main .entry-content {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
  }
  .page-template-one-pager main .entry-content > .wp-block-group, .page-template-one-pager main .entry-content > .wp-block-cover {
    scroll-snap-align: start;
  }
  .page-template-one-pager main .entry-content {
    scroll-snap-type: y mandatory;
  }
}

@media screen and (max-width: 767px) {
  .site-header a {
    display: none;
  }
}
.is-style-obs-animated-cover .wp-block-cover__image-background {
  opacity: 0;
}
.is-style-obs-animated-cover .wp-block-image {
  opacity: 0;
}

.intro-cover {
  position: fixed;
  top: 0;
  left: var(--wp--style--root--padding-left, 0);
  width: 100%;
  height: 100vh;
  z-index: 10;
}

.intro-cover + * {
  margin-top: 100vh;
}

.animate-fade-in-up,
.animate-fade-in-down {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-in-up.is-animated,
.animate-fade-in-down.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in-up {
  transform: translateY(1.5rem);
}

.animate-fade-in-down {
  transform: translateY(-1.5rem);
}

.pinch-zoom {
  cursor: zoom-in;
}
.pinch-zoom.is-zoomed {
  cursor: grab;
}
.pinch-zoom.is-panning {
  cursor: grabbing;
}

.pinch-zoom__hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.5rem 0.875rem;
  border-radius: 2rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.pinch-zoom__hint.is-visible {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .wp-block-image.is-style-obs-cover-pinch-zoom {
    height: 100vh;
  }
  .wp-block-image.is-style-obs-cover-pinch-zoom img {
    object-fit: cover;
    height: 100%;
  }
}
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
  display: none;
}
.wp-block-gallery.is-style-carousel.splide .splide__slide .wp-block-image figcaption {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--contrast);
  text-shadow: none;
  padding: 1rem 4rem;
}
.wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow {
  background: transparent;
  border: none;
  border-radius: 0;
  width: 41px;
  height: 9px;
  opacity: 1;
  top: unset;
  bottom: 1.5rem;
}
.wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow svg {
  display: none;
}
.wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow::after {
  content: "";
  display: block;
  width: 41px;
  height: 9px;
  background-image: url("data:image/svg+xml,%0A%3Csvg width='41.9580425px' height='12.1426215px' viewBox='0 0 41.9580425 12.1426215' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='arrow' fill='%2308423C'%3E%3Cpath d='M28.9021047,0.0910795108 L41.9580425,6.07131077 L28.9021047,12.051542 C28.3999876,12.2815352 27.806495,12.0609352 27.5765018,11.558818 C27.3465087,11.0567009 27.5671087,10.4632083 28.0692258,10.2332151 L34.926,7.0913667 L-4.97379915e-14,7.09228952 L-4.97379915e-14,5.09228952 L35.017,5.0913667 L28.0692258,1.90940641 C27.5671087,1.67941325 27.3465087,1.08592061 27.5765018,0.583803499 C27.806495,0.0816863917 28.3999876,-0.138913652 28.9021047,0.0910795108 Z' id='Path'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow--prev {
  transform: scaleX(-1);
  left: 1rem;
}
@media screen and (min-width: calc(1214px + 1rem)) {
  .wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow--prev {
    left: calc(50vw - var(--wp--style--global--wide-size) / 2);
  }
}
.wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow--next {
  transform: none;
  right: 1rem;
}
@media screen and (min-width: calc(1214px + 1rem)) {
  .wp-block-gallery.is-style-carousel.splide .splide__arrows .splide__arrow--next {
    right: calc(50vw - var(--wp--style--global--wide-size) / 2);
  }
}
.wp-block-gallery.is-style-carousel.splide .splide__pagination {
  display: none;
}
@media screen and (min-width: 768px) {
  .wp-block-gallery.is-style-carousel.splide {
    height: 100vh;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__track {
    height: 100%;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__slide {
    height: 100%;
    margin: 0 !important;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__slide .wp-block-image {
    height: 100%;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__slide .wp-block-image img {
    padding-bottom: 55px;
  }
}
@media screen and (max-width: 767px) {
  .wp-block-gallery.is-style-carousel.splide .splide__list {
    align-items: flex-start !important;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__slide .wp-block-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__slide .wp-block-image img {
    width: 100%;
    margin: 0;
  }
  .wp-block-gallery.is-style-carousel.splide .splide__slide .wp-block-image figcaption {
    position: static;
  }
}
