.site-hero .gallery-media__hero {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  pointer-events: none;
}

.site-hero video.gallery-media__hero:not([data-has-frame]) {
  visibility: hidden;
}

.gallery-media {
  position: relative;
  isolation: isolate;
}

.gallery-media__layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gallery-media__layer :is(img, video),
.gallery-media__layer::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-media__layer :is(img, video) {
  object-fit: cover;
}

.gallery-media__layer::after {
  content: "";
}

.gallery-media--brief .gallery-media__layer {
  background: #e9e3d7;
}

.gallery-media--brief img {
  object-position: 62% 57%;
}

.gallery-media--brief .gallery-media__layer::after {
  background: linear-gradient(105deg, rgba(247, 243, 233, .91), rgba(244, 239, 227, .79) 65%, rgba(234, 227, 214, .59));
}

.gallery-media--checklist .gallery-media__layer {
  background: #eee9de;
}

.gallery-media--checklist video {
  object-position: 55% 50%;
}

.gallery-media--checklist .gallery-media__layer::after {
  background: linear-gradient(105deg, rgba(247, 243, 233, .94), rgba(245, 240, 229, .83) 64%, rgba(235, 231, 219, .76));
}

.gallery-media__toggle {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1224px) / 2));
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(249, 246, 238, .46);
  border-radius: 50%;
  color: #f9f6ee;
  background: #233442;
  font: 600 15px/1 system-ui, sans-serif;
  cursor: pointer;
}

.site-hero > .gallery-media__toggle {
  right: auto;
  left: max(24px, calc((100% - 1224px) / 2));
}

.gallery-media__toggle[hidden] { display: none; }
.gallery-media__toggle:focus-visible { outline: 2px solid #88a6a5; outline-offset: 2px; }

@media (max-width: 700px) {
  .site-hero[data-gallery-motion] > .site-hero__shade {
    background: linear-gradient(180deg, rgba(22, 39, 48, .62), rgba(25, 42, 55, .74) 40%, rgba(35, 52, 66, .69) 69%, rgba(35, 52, 66, .55));
  }
  .gallery-media--brief .gallery-media__layer::after {
    background: linear-gradient(160deg, rgba(247, 243, 233, .91), rgba(242, 236, 224, .80));
  }
  .gallery-media--checklist .gallery-media__layer::after {
    background: linear-gradient(160deg, rgba(247, 243, 233, .92), rgba(242, 236, 224, .83));
  }
  .gallery-media__toggle { right: 18px; bottom: 14px; }
  .site-hero > .gallery-media__toggle { left: 18px; }
}

@media (min-width: 901px) {
  #top.site-hero[data-gallery-motion] {
    min-height: max(560px, 92vh);
    min-height: max(560px, 92svh);
  }
}

body:is(.page-id-22, .page-id-40) .zodar-shared-footer-surface {
  --zodar-closing-surface: #fff;
}

#top[data-gallery-motion] > .site-hero__inner {
  min-height: inherit;
  padding-block: clamp(112px, 15vh, 150px) 84px;
}

#top[data-gallery-motion] .sanitary-hero-copy {
  width: 100%;
  max-width: none;
  color: #fffdf7;
}

.sanitary-hero-copy .site-breadcrumb {
  margin-block: 0 clamp(14px, 2vh, 22px);
}

#top .sanitary-hero-copy .sanitary-hero-brand {
  margin-block: 0 8px;
  color: #e5f1ed;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.45;
}

#top .sanitary-hero-copy h1 {
  max-width: none;
  margin-block: 0 clamp(13px, 2vh, 21px);
  color: #fffdf7;
  font-size: clamp(40px, 4.25vw, 74px);
  line-height: 1.08;
  text-wrap: balance;
}

html[lang="en"] #top .sanitary-hero-copy h1 {
  font-size: clamp(37px, 3.65vw, 63px);
}

#top .sanitary-hero-copy .sanitary-hero-intro {
  width: min(100%, 39rem);
  max-width: none;
  margin-block: 0;
  color: #fffdf7;
  font-size: clamp(15px, 1.13vw, 18px);
  font-weight: 500;
  line-height: 1.65;
}

#top .sanitary-hero-copy .sanitary-hero-intro + .sanitary-hero-intro {
  margin-block-start: .8em;
}

.sanitary-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-block-start: clamp(17px, 2.5vh, 26px);
}

#top .sanitary-hero-actions .sanitary-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .6em;
  min-height: 44px;
  padding: .6em 1em;
  border: 1px solid rgba(255, 253, 247, .76);
  border-radius: 999px;
  background: #172d3bcc;
  color: #fffdf7;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

#top .sanitary-hero-actions .sanitary-hero-action--catalogue {
  background: #f6f3e9;
  color: #233442;
}

#top .sanitary-hero-actions .sanitary-hero-action:hover {
  background: #dcece7;
  color: #233442;
}

#top .sanitary-hero-actions .sanitary-hero-action:focus-visible {
  outline: 2px solid #fffdf7;
  outline-offset: 3px;
}

@media (min-width: 701px) {
  #top[data-gallery-motion] > .site-hero__shade {
    background: linear-gradient(90deg, #182e39ed, #233747cc 43%, #293e4a88 67%, #22364133 100%),
      linear-gradient(0deg, #233442b0, transparent 52%);
  }
}

@media (max-width: 900px) {
  #top[data-gallery-motion] > .site-hero__inner { padding-block: 138px 77px; }
}

@media (max-width: 500px) {
  #top .sanitary-hero-copy h1 { font-size: clamp(28px, 7.7vw, 39px); }
  html[lang="en"] #top .sanitary-hero-copy h1 { font-size: clamp(29px, 8.3vw, 41px); }
  #top .sanitary-hero-copy .sanitary-hero-intro { line-height: 1.58; }
}
