/* =========================================================
   Video Hero
   Shortcode: [gm_page_hero]
   ========================================================= */

.gm-video-hero {
  --gm-video-hero-x: var(--secspa-x);
  --gm-video-hero-y: var(--secspa-y);
  --gm-video-hero-content-x: var(--spacing-128);
  --gm-video-hero-content-y: 60px;
  --gm-video-hero-content-bottom-y: calc(
    var(--gm-video-hero-content-y) - var(--spacing-12)
  );
  --gm-video-hero-container-x: var(--secspa-x);
  --gm-video-hero-min-height: 100vh;
  --gm-video-hero-image-min-height: 460px;
  --gm-video-hero-frame-min-height: calc(
    var(--gm-video-hero-min-height) - (var(--spacing-12) * 2)
  );
  --gm-video-hero-shade-bottom-opacity: 0.85;
  --gm-video-hero-shade-top-opacity: 0.8;

  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--gm-video-hero-min-height);
  margin-inline: 0;
  padding: var(--spacing-12);
  overflow: hidden;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  isolation: isolate;
}

@supports (min-height: 100svh) {
  .gm-video-hero {
    --gm-video-hero-min-height: 100svh;
  }
}

.gm-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/main-pattern-3.svg");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.25;
  pointer-events: none;
}

.gm-video-hero,
.gm-video-hero * {
  box-sizing: border-box;
}

.gm-video-hero__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
}

.gm-video-hero__swiper {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.gm-video-hero__stage {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.gm-video-hero__swiper .swiper-wrapper {
  align-items: stretch;
  min-height: var(--gm-video-hero-frame-min-height);
}

.gm-video-hero__stage > .gm-video-hero__slide {
  flex: 1 1 auto;
  width: 100%;
}

.gm-video-hero__slide {
  display: flex;
  height: auto;
  min-height: var(--gm-video-hero-frame-min-height);
}

.gm-video-hero__panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: var(--gm-video-hero-frame-min-height);
}

.gm-video-hero__media {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-2);
  isolation: isolate;
}

.gm-video-hero__poster,
.gm-video-hero__image,
.gm-video-hero__video,
.gm-video-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gm-video-hero__image {
  z-index: 2;
  display: block;
  overflow: hidden;
  object-fit: cover;
  object-position: center top;
}

.gm-video-hero picture.gm-video-hero__image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.gm-video-hero picture.gm-video-hero__image > img,
.gm-video-hero img.gm-video-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.gm-video-hero__poster {
  z-index: 2;
  display: block;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.gm-video-hero picture.gm-video-hero__poster {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.gm-video-hero picture.gm-video-hero__poster > img,
.gm-video-hero img.gm-video-hero__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.gm-video-hero__video {
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  border: 0;
  object-fit: cover;
  object-position: center top;
}

.gm-video-hero__slide.is-video-playing .gm-video-hero__poster {
  opacity: 0;
  visibility: hidden;
}

.gm-video-hero__shade {
  z-index: 3;
  /* No mix-blend-mode: WebKit recomposites blended layers on every frame of
     Swiper's slide transform, which flickers the gradient in and out mid-swipe. */
  background: linear-gradient(
    0deg,
    rgba(40, 39, 36, var(--gm-video-hero-shade-bottom-opacity)) 0%,
    rgba(40, 39, 36, 0) 48%,
    rgba(40, 39, 36, var(--gm-video-hero-shade-top-opacity)) 100%
  );
  pointer-events: none;
  /* Force its own compositing layer: iOS Safari otherwise defers painting
     this overlay (sitting over a <video>) until after the swipe's transform
     animation settles, which reads as the gradient "popping in" post-swipe. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gm-video-hero--image {
  --gm-video-hero-image-min-height: 520px;
  --gm-video-hero-min-height: calc(
    var(--gm-video-hero-image-min-height) + var(--spacing-12)
  );
  --gm-video-hero-frame-min-height: var(--gm-video-hero-image-min-height);

  padding: var(--spacing-12) 0 0 0;
}

.gm-video-hero--image .gm-video-hero__panel {
  position: relative;
  min-height: var(--gm-video-hero-frame-min-height);
}

.gm-video-hero--image .gm-video-hero__media {
  min-height: var(--gm-video-hero-frame-min-height);
}

.gm-video-hero--image-short {
  --gm-video-hero-image-min-height: 300px;
}

.gm-video-hero__content {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
  row-gap: 16px;
  align-items: start;
  width: min(
    calc(100vw - (var(--gm-video-hero-container-x) * 2)),
    var(--content-default)
  );
  max-width: 100%;
  margin: 0 auto;
  padding: var(--gm-video-hero-content-y) 0
    var(--gm-video-hero-content-bottom-y);
}

.gm-video-hero__content--overlay {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 40px;
  z-index: 4;
  padding: 0;
  color: var(--color-cream);
  transform: translateX(-50%);
}

.gm-video-hero__content--overlay .gm-video-hero__copy {
  display: block;
}

.gm-video-hero .gm-video-hero__content--overlay h2.gm-video-hero__title,
.gm-video-hero__content--overlay .gm-video-hero__body,
.gm-video-hero__content--overlay .gm-video-hero__body p,
.gm-video-hero__content--overlay .gm-video-hero__body ul,
.gm-video-hero__content--overlay .gm-video-hero__body ol {
  color: var(--color-cream);
}

.gm-video-hero .gm-video-hero__content--overlay h2.gm-video-hero__title {
  grid-column: auto;
  grid-row: auto;
  margin-bottom: 0;
  padding-right: 0;
  text-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.4);
}

.gm-video-hero__content--overlay .gm-video-hero__body {
  grid-column: auto;
  grid-row: auto;
}

.gm-video-hero__copy {
  display: contents;
  min-width: 0;
  max-width: 56rem;
}

.gm-video-hero h2.gm-video-hero__title {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.75rem + 1.25vw, 2.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0;
  padding-right: 0;
}

.gm-video-hero__body,
.gm-video-hero__body p,
.gm-video-hero__body ul,
.gm-video-hero__body ol {
  color: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5774;
  font-weight: var(--body-copy-font-weight);
}

.gm-video-hero__body {
  grid-column: 2;
  grid-row: 1;
}

.gm-video-hero--video .gm-video-hero__body,
.gm-video-hero--video .gm-video-hero__body p,
.gm-video-hero--video .gm-video-hero__body ul,
.gm-video-hero--video .gm-video-hero__body ol {
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--type-body-large-size);
  font-style: normal;
  font-weight: var(--body-copy-font-weight);
  line-height: var(--type-body-large-line);
}

.gm-video-hero__body > *:last-child {
  margin-bottom: 0;
}

.gm-video-hero__ctas {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--spacing-12);
  min-width: 0;
}

.gm-video-hero__cta-wrap {
  display: inline-flex;
}

.gm-video-hero__cta {
  white-space: normal;
  text-align: center;
}

.gm-video-hero__inner > .gm-video-hero__control-group {
  display: none;
}

.gm-video-hero__media > .gm-video-hero__control-group {
  position: absolute;
  left: 50%;
  bottom: clamp(var(--spacing-16), 2.5vw, var(--spacing-32));
  z-index: 4;
  display: flex;
  width: min(
    calc(100vw - (var(--gm-video-hero-container-x) * 2)),
    var(--content-default)
  );
  max-width: 100%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24);
  pointer-events: none;
}

.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__pause,
.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__arrow {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--color-white) !important;
  outline: 0;
  padding: 0 !important;
}

.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__pause:hover,
.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__pause:active,
.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__pause:focus,
.gm-video-hero
  .gm-video-hero__control-group
  button.gm-video-hero__pause:focus-visible,
.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__arrow:hover,
.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__arrow:active,
.gm-video-hero .gm-video-hero__control-group button.gm-video-hero__arrow:focus,
.gm-video-hero
  .gm-video-hero__control-group
  button.gm-video-hero__arrow:focus-visible {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--color-white) !important;
  outline: 0;
}

.gm-video-hero .gm-video-hero__control-group .gm-icon,
.gm-video-hero .gm-video-hero__control-group .gm-icon path {
  fill: var(--color-white) !important;
}

.gm-video-hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-white);
  line-height: 1;
  cursor: pointer;
  backdrop-filter: none;
  transition:
    color 180ms ease,
    opacity 160ms ease,
    transform 180ms ease;
  pointer-events: auto;
}

.gm-video-hero__pause {
  width: auto;
  height: auto;
  font-size: 1rem;
}

.gm-video-hero__pause:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.gm-video-hero__pause:hover,
.gm-video-hero__pause:active,
.gm-video-hero__pause:focus,
.gm-video-hero__pause:focus-visible {
  border: none;
  background-color: transparent;
  box-shadow: none;
  color: var(--color-white);
  outline: 0;
}

.gm-video-hero__pause-icon {
  fill: var(--color-white);
}

.gm-video-hero__pause-icon--play {
  display: none;
}

.gm-video-hero[data-gm-video-hero-paused="true"]
  .gm-video-hero__pause-icon--pause {
  display: none;
}

.gm-video-hero[data-gm-video-hero-paused="true"]
  .gm-video-hero__pause-icon--play {
  display: block;
}

.gm-video-hero__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
}

.gm-video-hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--color-white);
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.gm-video-hero__arrow.gm-video-hero__arrow--prev,
.gm-video-hero__arrow.gm-video-hero__arrow--next {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--color-white);
  font-size: 20px;
  line-height: 1;
}

.gm-video-hero__arrow.gm-video-hero__arrow--prev:hover,
.gm-video-hero__arrow.gm-video-hero__arrow--next:hover,
.gm-video-hero__arrow.gm-video-hero__arrow--prev:active,
.gm-video-hero__arrow.gm-video-hero__arrow--next:active,
.gm-video-hero__arrow.gm-video-hero__arrow--prev:focus,
.gm-video-hero__arrow.gm-video-hero__arrow--next:focus,
.gm-video-hero__arrow.gm-video-hero__arrow--prev:focus-visible,
.gm-video-hero__arrow.gm-video-hero__arrow--next:focus-visible {
  border: none;
  background-color: transparent;
  box-shadow: none;
  color: var(--color-white);
  outline: 0;
}

.gm-video-hero__arrow--prev:hover {
  transform: translateX(-0.125rem);
}

.gm-video-hero__arrow--next:hover {
  transform: translateX(0.125rem);
}

.gm-video-hero__arrow-icon {
  fill: var(--color-white);
}

.gm-video-hero__arrow-icon--next {
  transform: rotate(180deg);
}

.gm-video-hero__arrow.swiper-button-lock {
  display: none;
}

.gm-video-hero .gm-video-hero__pagination {
  position: static;
  display: flex;
  align-items: center;
  gap: 16px;
  width: auto;
}

.gm-video-hero .gm-video-hero__pagination.swiper-pagination-lock {
  display: none;
}

.gm-video-hero
  .gm-video-hero__pagination.swiper-pagination-bullets
  .swiper-pagination-bullet {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  margin: 0;
  border-radius: 999px;
  background-color: var(--color-white);
  opacity: 0.45;
}

.gm-video-hero
  .gm-video-hero__pagination.swiper-pagination-bullets
  .swiper-pagination-bullet-active {
  opacity: 1;
}

.gm-video-hero__mobile-controls {
  display: none;
}

.gm-video-hero .gm-icon {
  fill: currentColor;
}

@media (max-width: 1024px) {
  .gm-video-hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-24);
  }

  .gm-video-hero__copy {
    display: block;
  }

  .gm-video-hero h2.gm-video-hero__title,
  .gm-video-hero__body,
  .gm-video-hero__ctas {
    grid-column: auto;
    grid-row: auto;
  }

  .gm-video-hero__ctas {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .gm-video-hero {
    --gm-video-hero-frame-min-height: calc(
      var(--gm-video-hero-min-height) - var(--spacing-12)
    );

    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: var(--spacing-12) 0 0;
    background-color: var(--color-cream-alt);
    color: var(--color-cream);
  }

  .gm-video-hero::after {
    display: none;
  }

  .gm-video-hero__inner {
    width: 100%;
  }

  .gm-video-hero__swiper {
    overflow: hidden;
  }

  .gm-video-hero__stage {
    overflow: hidden;
  }

  .gm-video-hero__panel {
    position: relative;
    display: flex;
    min-height: var(--gm-video-hero-frame-min-height);
    padding: var(--gm-video-hero-y) var(--gm-video-hero-x);
    flex-direction: column;
    justify-content: flex-end;
    color: var(--color-cream);
    isolation: isolate;
    overflow: hidden;
  }

  .gm-video-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .gm-video-hero__poster {
    object-fit: cover;
  }

  .gm-video-hero__image {
    object-fit: cover;
  }

  .gm-video-hero__mobile-controls {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 0 var(--spacing-24);
    padding-bottom: var(--spacing-20);
    border-bottom: 1px solid rgba(255, 243, 229, 0.48);
  }

  .gm-video-hero__mobile-controls:empty {
    display: none;
  }

  .gm-video-hero__mobile-controls > .gm-video-hero__control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-20);
    pointer-events: none;
  }

  .gm-video-hero__content {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 0;
    color: var(--color-cream);
  }

  .gm-video-hero h2.gm-video-hero__title {
    max-width: 12em;
    margin-bottom: var(--spacing-16);
    color: var(--color-cream);
    text-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.48);
  }

  .gm-video-hero__body,
  .gm-video-hero__body p,
  .gm-video-hero__body ul,
  .gm-video-hero__body ol,
  .gm-video-hero--video .gm-video-hero__body,
  .gm-video-hero--video .gm-video-hero__body p,
  .gm-video-hero--video .gm-video-hero__body ul,
  .gm-video-hero--video .gm-video-hero__body ol {
    color: var(--color-cream);
  }

  body.home .gm-video-hero__body {
    display: none;
  }

  .gm-video-hero__ctas {
    justify-content: flex-start;
    margin-top: var(--spacing-24);
  }

  .gm-video-hero--image {
    --gm-video-hero-min-height: calc(
      var(--gm-video-hero-image-min-height) + var(--spacing-12)
    );
    --gm-video-hero-frame-min-height: var(--gm-video-hero-image-min-height);

    padding: var(--spacing-12) 0 0;
    background-color: var(--color-cream-alt);
  }

  .gm-video-hero--image::before {
    display: block;
  }

  .gm-video-hero--image .gm-video-hero__panel {
    min-height: var(--gm-video-hero-frame-min-height);
    padding: 0;
    color: var(--color-cream);
  }

  .gm-video-hero--image .gm-video-hero__media {
    position: relative;
    inset: auto;
    z-index: 1;
    min-height: var(--gm-video-hero-frame-min-height);
    border-radius: var(--radius-2);
  }

  .gm-video-hero--image .gm-video-hero__content {
    position: absolute;
    left: var(--gm-video-hero-x);
    right: var(--gm-video-hero-x);
    bottom: 40px;
    z-index: 2;
    width: auto;
    padding: 0;
    color: var(--color-cream);
    transform: none;
  }
}

@media (max-width: 480px) {
  .gm-video-hero__mobile-controls > .gm-video-hero__control-group {
    gap: var(--spacing-12);
  }

  .gm-video-hero--image .gm-video-hero__panel {
    padding: 0;
  }
}
