/*
 Theme Name:   base 
 Theme URI:    https://generatepress.com
 Description:  base's GeneratePress Child
 Author:       Rob
 Author URI:   https://robertobriceno.eu
 Template:     generatepress
 Version:      0.1
*/

/* For browsers that support clamp  */
@supports (font-size: clamp(1rem, 1vi, 1rem)) {
  :root {
		--fs-sm: clamp(0.89rem, 0.18vi + 0.84rem, 0.99rem);
		--fs-base: 1rem
		--fs-md: clamp(1.13rem, 0.55vi + 0.99rem, 1.43rem);
		--fs-lg: clamp(1.3rem, 2.5vw, 1.8rem);
		--fs-xl: clamp(1.8rem, 3.5vw, 2.8rem);
		--fs-xxl: clamp(2.4rem, 5vw, 4rem);
		--fs-xxxl: clamp(2.4rem, 5vw, 4rem);
  }
}
/* For browsers that don't support clamp */
@supports not (font-size: clamp(1rem, 1vi, 1rem)) {
  :root {
		--fs-sm: 0.89rem;
		--fs-base: 1rem;
		--fs-md: 1.13rem;
		--fs-lg: 1.27rem;
		--fs-xl: 1.42rem;
		--fs-xxl: 1.6rem;
		--fs-xxxl: 1.8rem;
  }
  @media screen and (min-width: 1280px) {
    :root {
			--fs-sm: 0.99rem;
			--fs-base: 1rem;
			--fs-md: 1.43rem;
			--fs-lg: 1.71rem;
			--fs-xl: 2.05rem;
			--fs-xxl: 2.46rem;
			--fs-xxxl: 2.95rem;
    }
  }
}

/* Fluid Typography Scale */

p {
  font-size: var(--fs-base);
}
h1 {
  font-size: var(--fs-xxl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-base);
}
h5 {
  font-size: var(--fs-base);
}
h6 {
  font-size: var(--fs-base);
}

/*Overrides (Maybe put it in a separate file?) */

/*.site-header,
.is_stuck .inside-navigation .main-nav {
  padding-inline: var(--padding-d);
}*/

:is(h1, h2, h3, h4, h5, h6),
.balance {
  text-wrap: balance;
}

p,
blockquote,
li {
  text-wrap: pretty;
}

p:last-child:last-of-type {
  margin-bottom: 0px;
}


/* Transitions */

.transition {
  transition: all 0.25s ease-in-out;
}

/* Borrowed from Bootstrap */
/* Tutorial: https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l */
/* Make sure you only have ONE link inside your card 😅 or this will not work!  */

.stretch-link:hover {
  opacity: 0.8;
}

.stretch-link {
  position: relative;
}

.stretch-link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
  outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
  outline: none;
}

/* Hover Tweak for Main Menu Accessibility Stuff*/

#site-navigation ul.submenu {
  display: block;
}

#site-navigation li:hover .gp-icon svg {
  transform: rotate(180deg);
}

#site-navigation li:hover .submenu {
  visibility: visible;
}



/*Header Video BG*/

.background-video #metaslider-id-161 {
  /* Replace with metaslider ID */
  /*position: fixed;*/
  left: 0;
  top: 0;
  z-index: 0;
  width: 100vw !important;
  height: 100vh !important;
  background: #fff;
}
.background-video #metaslider_container_161 img {
  /* Replace with metaslider ID */
  object-fit: cover;
  height: 100vh;
}

.background-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.4;
  overflow: hidden;
}

.background-video-content {
  position: relative;
  z-index: 1;
}

/*video[poster] {
    object-fit: cover;
    width: 100%;
    height: 100%;
}*/

/*Metaslider Ken Burns Knock Off*/

.zoom-in-slideshow ul.slides li {
  overflow: hidden;
}

.zoom-in-slideshow ul.slides li img {
  transition: all 3s ease-in-out;
  transform: scale(1);
}
.zoom-in-slideshow ul.slides li.flex-active-slide img {
  transform: scale(1.03);
}

/* Scroll Icon Animation */

.scrolldown-icon {
  position: absolute;
  top: calc(100vh - 110px);
  left: calc(50% - 0px);
  width: 0;
  height: 40px;
  border: 1px solid var(--base-2);
  border-radius: 1px;
  animation: jumpInfinite 1.5s infinite;
}

.scrolldown-icon:after {
  content: " ";
  position: absolute;
  top: 20px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--base-2);
  border-right: 2px solid var(--base-2);
  border-radius: 2px;
  transform: rotateZ(45deg);
}

@keyframes jumpInfinite {
  0% {
    margin-top: 0;
  }
  50% {
    margin-top: 20px;
  }
  100% {
    margin-top: 0;
  }
}
