/* Full-bleed Divi wrapper and overlay for the four pergola pages. */
body.bravest-pergola-slider-page .bravest-header.et_pb_section,
body.bravest-pergola-slider-page.et-db #et-boc .et-l .bravest-header.et_pb_section {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent !important;
}

.et_pb_section.brv-pergola-hero-section,
.et_pb_row.brv-pergola-hero-row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brv-pergola-hero-row > .et_pb_column,
.brv-pergola-hero-row .et_pb_text {
  width: 100% !important;
  margin: 0 !important;
}

.et_pb_section.brv-pergola-breadcrumb-section {
  padding: 0 !important;
}

.brv-pergola-breadcrumb {
  color: #393536;
  font-size: 14px;
  line-height: 1.7;
  scroll-margin-top: 24px;
}

.brv-pergola-breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brv-pergola-hero {
  --brv-pergola-height: clamp(550px, min(65vw, 100vh), 1080px);
  --brv-pergola-zoom: 1.09;
  --brv-pergola-top: clamp(126px, 14vh, 175px);
  position: relative;
  isolation: isolate;
  width: 100%;
  color: #fff;
  background: #292728;
  font-family: var(--bravest-body, 'Work Sans', Arial, sans-serif);
}

@supports (height: 1svh) {
  .brv-pergola-hero {
    --brv-pergola-height: clamp(550px, min(65vw, 100svh), 1080px);
    --brv-pergola-top: clamp(126px, 14svh, 175px);
  }
}

.brv-pergola-hero__slide {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: var(--brv-pergola-height);
  overflow: hidden;
  background: #292728;
}

.brv-pergola-hero [hidden] {
  display: none !important;
}

.brv-pergola-hero .brv-pergola-hero__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--brv-pergola-focus-x, 50%) var(--brv-pergola-focus-y, 50%);
}

.brv-pergola-hero__slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: '';
  background:
    linear-gradient(180deg, #080809bf 0%, #08080913 34%, #0808090a 66%, #08080999 100%),
    linear-gradient(90deg, #09090ac4 0%, #09090a8f 40%, #09090a27 70%, transparent 100%);
}

.brv-pergola-hero__copy {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(73.3%, 1400px);
  margin: 0 auto;
  padding: var(--brv-pergola-top) 0 clamp(98px, 11vh, 140px);
  color: #fff;
}

.brv-pergola-hero .brv-pergola-hero__eyebrow,
.brv-pergola-hero .brv-pergola-hero__title,
.brv-pergola-hero .brv-pergola-hero__lead {
  margin: 0;
  padding: 0;
  color: #fff;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 12px #080809b3;
}

.brv-pergola-hero .brv-pergola-hero__eyebrow {
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brv-pergola-hero .brv-pergola-hero__title {
  max-width: 15em;
  font-family: var(--bravest-display, 'Zalando Sans Expanded', Arial, sans-serif);
  font-size: clamp(42px, 5.3vw, 94px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.brv-pergola-hero .brv-pergola-hero__lead {
  max-width: min(35em, 52vw);
  margin-top: clamp(14px, 2vw, 24px);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.52;
}

.brv-pergola-hero .brv-pergola-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  margin-top: clamp(23px, 3vw, 36px);
  padding: 12px clamp(16px, 2vw, 27px);
  color: #fff;
  background: #c81820;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.brv-pergola-hero .brv-pergola-hero__cta:hover {
  color: #fff;
  background: #a2141a;
}

.brv-pergola-hero__cta svg,
.brv-pergola-hero__controls svg,
.brv-pergola-hero__rotation svg {
  flex: none;
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.brv-pergola-hero__controls {
  position: absolute;
  inset: auto 0 clamp(18px, 3vw, 38px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto;
  padding: 0 12px;
  pointer-events: none;
}

.brv-pergola-hero__controls button,
.brv-pergola-hero__rotation {
  display: inline-grid;
  flex: none;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffffbc;
  border-radius: 0;
  color: #fff;
  background: #09090aaa;
  cursor: pointer;
  pointer-events: auto;
}

.brv-pergola-hero__rotation {
  position: absolute;
  right: clamp(12px, 4vw, 64px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 3;
}

.brv-pergola-hero__rotation span {
  display: grid;
  place-items: center;
}

.brv-pergola-hero__controls button:hover,
.brv-pergola-hero__rotation:hover {
  border-color: #fff;
  background: #a2141a;
}

.brv-pergola-hero :is(.brv-pergola-hero__cta, .brv-pergola-hero__controls button, .brv-pergola-hero__rotation):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px #151314b0;
}

.brv-pergola-hero__controls [data-brv-hero-dots] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.brv-pergola-hero__controls [data-brv-hero-dots] button {
  width: 34px;
  border: 0;
  background: transparent;
}

.brv-pergola-hero__controls [data-brv-hero-dots] button::before {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  background: #141113a8;
  content: '';
}

.brv-pergola-hero__controls [data-brv-hero-dots] button[aria-current='true']::before {
  background: #fff;
}

.brv-pergola-hero__controls [data-brv-hero-dots] button:not([aria-current='true']):hover::before {
  background: #a2141a;
}

.brv-pergola-hero__page-title,
.brv-pergola-hero__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.brv-pergola-hero[data-brv-hero-enhanced='true'] .brv-pergola-hero__slides {
  touch-action: pan-y pinch-zoom;
}

.brv-pergola-hero[data-brv-hero-enhanced='true'] .brv-pergola-hero__photo {
  animation: brv-pergola-hero-pullback var(--brv-pergola-interval, 3500ms) linear both;
}

@media (prefers-reduced-motion: no-preference) {
  .brv-pergola-hero__slide[data-brv-hero-entering='true'] .brv-pergola-hero__photo {
    animation: brv-pergola-hero-pullback var(--brv-pergola-interval, 3500ms) linear both, brv-pergola-hero-reveal 500ms ease-out both;
  }
}

.brv-pergola-hero[data-brv-hero-motion-paused] .brv-pergola-hero__slide .brv-pergola-hero__photo {
  animation: none;
}

@keyframes brv-pergola-hero-pullback {
  from { transform: translate3d(-.75%, .3%, 0) scale(var(--brv-pergola-zoom)); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes brv-pergola-hero-reveal {
  from { opacity: .68; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .brv-pergola-hero {
    --brv-pergola-top: 112px;
    --brv-pergola-zoom: 1.075;
  }

  .brv-pergola-hero__copy {
    width: 84%;
  }

  .brv-pergola-hero .brv-pergola-hero__lead {
    max-width: min(33em, 100%);
  }
}

@media (max-width: 600px) {
  .brv-pergola-hero {
    --brv-pergola-height: clamp(420px, 133vw, 680px);
    --brv-pergola-top: clamp(83px, 27vw, 108px);
    --brv-pergola-zoom: 1.06;
  }

  .brv-pergola-hero__slide::after {
    background: linear-gradient(180deg, #080809c9 0%, #0808096e 30%, #08080977 64%, #080809ca 100%);
  }

  .brv-pergola-hero__copy {
    width: 88%;
    padding-bottom: clamp(83px, 25vw, 110px);
  }

  .brv-pergola-hero .brv-pergola-hero__eyebrow {
    margin-bottom: 11px;
    font-size: 12px;
  }

  .brv-pergola-hero .brv-pergola-hero__title {
    font-size: clamp(32px, 7.8vw, 46px);
  }

  .brv-pergola-hero .brv-pergola-hero__lead {
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .brv-pergola-hero__controls { padding-inline-end: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .brv-pergola-hero { --brv-pergola-zoom: 1.045; }
}
