.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  padding: 0;
  height: 1px;
  margin: -1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

a,
a:visited,
a:focus {
  color: currentColor;
  text-decoration: none;
}

a.styled,
a.styled:visited {
  text-decoration: none;
  font-weight: inherit;
  position: relative;
  transition: background-size 0.3s ease;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 0 0;
  background-position: 20% min(100%, calc(0.5lh + 0.5em));
  background-repeat: no-repeat;
}

a.styled.line {
  background-size: 100% 1px;
}

a.styled:focus {
  outline: 0;
}

a.styled:hover,
a.styled:focus {
  background-size: 100% 1px;
}

a.styled.line:hover,
a.styled.line:focus {
  background-size: 100% 2px;
}

a.styled::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background-color: var(--black);
  transition: all ease 0.3s;
}

@media (prefers-reduced-motion) {

  a.styled,
  a.visited {
    transition: none;
  }
}

a.teaser {
  display: block;
  color: var(--black);
  background: var(--strawberry);
  padding: 30px;
}

article,
section {
  display: block;
}

table th {
  hyphens: manual;
}

/* Headings */
h1,
.h1 {
  font-family: 'ValizasBook';
  font-weight: 100;
  line-height: 1;
  margin: 0 auto;
  padding: 0;
  text-transform: uppercase;
  font-size: 50px;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
}

h2,
.h2 {
  font-family: 'ValizasBook';
  font-weight: 100;
  line-height: 1;
  margin: 0;
  padding: 0;
  font-size: 32px;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
}

h3,
.h3 {
  font-family: 'ValizasBook';
  font-weight: 100;
  line-height: 1;
  color: var(--black);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 40px;
  padding-bottom: 35px;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
}

h4,
.h4,
h5,
.h5 {
  font-family: 'NeueHelveticaPro55Roman';
  line-height: 1;
  color: var(--black);
  margin: 0.25em 0 0 0;
  text-transform: uppercase;
  font-size: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: 400;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
}

h5,
.h5 {
  font-family: 'NeueHelveticaPro75Bold';
  font-size: 20px;
  font-weight: bold;
}

@media (min-width: 1080px) {

  h1,
  .h1 {
    font-size: 65px;
  }

  h2,
  .h2 {
    font-size: 40px;
  }

  h3,
  .h3 {
    font-size: 62px;
  }

  h4,
  .h4 {
    font-size: 40px;
    padding-bottom: 28px;
  }
}

p,
.p {
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

.text-medium {
  font-size: 16px;
}

.nw {
  white-space: nowrap;
}

.nobr,
nobr {
  overflow-wrap: normal;
  hyphens: manual;
}

.wrap,
.container,
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

.wrap,
.container {
  margin: 0 auto;
  max-width: min(100vw, var(--content-max-width));
}

.content {
  max-width: min(calc(100vw - var(--dist-h)), var(--content-max-width));
  /* padding:var(--dist-v) 0; */
  text-align: left;
}

/* .content.split>* {
  justify-self: start;
} */

.content.split img {
  max-width: 100%;
  place-self: center;
}

.content p {
  margin-bottom: calc(var(--dist-v) / 4);
}

.content .text,
.container .text,
.wrap .text {
  text-wrap: pretty;
  hyphens: auto;
  width: 100%;
  /* max-width: calc((100% - (100% - var(--content-col-max-width) * 2)) / 2); */
  max-width: calc(100% - ((100% - var(--content-col-max-width) * 2) / 2));
}

/* @media (max-width: 1160px) {

  .content .first,
  .content .second {
    padding: var(--dist-v) calc(var(--dist-h) / 2);
  }
} */

@media (min-width: 660px) {
  .content.noright {
    padding: 0 0 0 calc(var(--dist-h) / 2);
  }

  .content.noleft {
    padding: 0 calc(var(--dist-h) / 2) 0 0;
  }
}

/* @media (min-width: 1919px) {
  .content {
    padding: 0 calc(var(--dist-h) / 2);
  }
} */

:is(.wrap, .container, .content) :is(.wrap, .container, .content) {
  max-width: 100%;
}

.container.split,
.content.split {
  display: flex;
  flex-direction: column;
}

.split .text {
  padding: var(--dist-v) 0;
}

.split .img {
  margin: var(--dist-v) auto;
}

.split .img img {
  max-height: var(--content-image-min-height);
}

.split .img {
  place-self: center;
}

.split .img.bottom {
  place-self: bottom;
}

.fbg {
  aspect-ratio: 1;
}

.fbg,
.bg {
  position: relative;
  background-size: cover;
  background-size: 0px 0px;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: var(--content-image-min-height);
  width: 100%;
  height: 100%;
}

.fbg.bottom,
.bg.bottom {
  background-position: bottom center;
}

.bg {
  min-height: calc(var(--content-image-min-height) + var(--dist-v) * 2 + var(--dist-h));
}

.fbg::after,
.bg::after {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  background: inherit;
  background-size: cover;
}

.bg::after {
  top: var(--dist-v);
  bottom: calc(var(--dist-v) + var(--dist-h));
  width: calc(100vw - var(--dist-h) * 2);
  background-size: contain;
}

@media (min-width:660px) {
  .bg {
    min-height: calc(var(--content-image-min-height) + var(--dist-v) * 2);
  }

  .fbg::after {
    left: 0;
    transform: none;
    width: min(50vw, calc(var(--content-max-width) / 2));
  }

  .bg::after {
    left: calc(var(--columngap) / 2);
    transform: none;
    bottom: var(--dist-v);
    right: 0;
    width: auto;
  }

  .reversed .fbg::after {
    right: 0;
    left: auto;
  }

  .reversed .bg::after {
    left: 0;
    right: calc(var(--columngap) / 2);
  }
}

/* width: min(calc(50vw - var(--dist-h)), calc(var(--content-max-width) / 2 - var(--dist-h))); */

@media (min-width: 660px) {

  .wrap.split,
  .container.split,
  .content.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    column-gap: var(--columngap);
    row-gap: var(--rowgap);
  }

  .reversed .split *:last-child,
  .reversed.split *:last-child {
    order: -1;
  }

  .split .text {
    place-self: center;
    max-width: calc(var(--content-col-max-width));
  }

  .split.nogap {
    grid-gap: 0;
    padding: 0;
    margin: 0 auto;
  }

  .split.nogap .text:first-child:not(:last-child) {
    padding-right: calc(var(--columngap) / 2);
  }

  .reversed .split.nogap .text:first-child:not(:last-child),
  .reversed.split.nogap .text:first-child:not(:last-child) {
    padding-right: 0;
    padding-left: calc(var(--columngap) / 2);
  }

  .split.nogap .text:last-child:not(:first-child) {
    padding-left: calc(var(--columngap) / 2);
  }

  .reversed .split.nogap .text:last-child:not(:first-child),
  .reversed.split.nogap .text:last-child:not(:first-child) {
    padding-left: 0;
    padding-right: calc(var(--columngap) / 2);
  }
}

@media (min-width: 1200px) {

  .content .text,
  .container .text,
  .wrap .text {
    margin: calc(var(--dist-v) / 2) calc(var(--dist-h) / 2);
  }

  /* .content.split .text+*,
  .container.split .text+*,
  .wrap.split .text+* {
    margin-right: calc(var(--dist-h) / 2);
  } */
}

.block {
  margin: var(--block-margin) 0;
}

/* leave room for the top bar */
.target {
  scroll-padding-top: 100px;
  scroll-margin-top: 100px;
}

.block.slim {
  margin: var(--block-margin-slim) 0;
}

.block.half {
  margin: calc(var(--block-margin) / 2) 0;
}

@media (min-width: 1080px) {
  .block.half {
    margin: 0;
  }
}

.block.slim.half {
  margin: calc(var(--block-margin-slim) / 2) 0;
}

.block.top {
  margin-bottom: 0;
}

.block.bottom {
  margin-top: 0;
}

.block:not(.top)+.block {
  margin-top: 0;
}

figure {
  margin: 0;
  padding: 0;
}

figcaption {
  font-size: .7em;
  opacity: .6;
  margin-left: calc(var(--dist-h) / 2);
  margin-top: calc(var(--dist-v) / 2);
}

#fab-wrap {
  position: sticky;
  top: auto;
  bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-items: end;
  z-index: 10;
  max-width: calc(100vw - var(--dist-h));
  pointer-events: none;
}

*[slot='footer'] {
  overflow: visible !important;
}

*[slot='footer']::before {
  content: '';
  display: block;
  position: absolute;
  top: -200px;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--fab-bg);
}

/* offset fab height */
/* .block+#fab-wrap {
  margin-top: -93.6px;
} */

.fab {
  display: inline-block;
  position: relative;
  border: 2px solid var(--strawberry);
  background: #fff;
  color: var(--strawberry);
  padding: 12px;
  /* visual alignment */
  padding-bottom: calc(12px - 0.4em);
  border-radius: 10em;
  filter: drop-shadow(1px 2px 4px rgb(0 0 0 / 0.4));
  pointer-events: auto;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: var(--columngap);
  transform: scale(1);
  transition: all 0.3s ease;
  flex: 0;
  width: fit-content;
}

.fab:hover {
  transform: scale(1.05);
}

@media (min-width: 320px) {

  /* offset fab height */
  .block+#fab-wrap {
    /* margin-top: -125.6px; */
  }

  footer {
    /* margin-top: 0; */
  }
}

@media (min-width: 660px) {
  .fab {
    padding: 22px;
    /* visual alignment */
    padding-bottom: calc(22px - 0.4em);
  }

  /* offset fab height */
  /* .block+#fab-wrap {
    margin-top: -145.6px;
    margin-top: -185.6px;
  }

  footer {
    margin-top: 0;
  } */
}

@media (min-width: 834px) {

  /* offset fab height */
  .block+#fab-wrap {
    /* margin-top: -145.6px; */
    /* margin-top: calc(-185.6px -; */
  }

  footer {
    /* margin-top: 0; */
  }
}

.slide {
  max-height: 100%;
  width: 100%;
  background-color: var(--lighter-grey);
  position: relative;
}

.slide img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-height: max(100%, var(--content-image-min-height));
  object-position: center;
  object-fit: contain;
}

figure.slide {
  position: unset;
}

figure.slide img {
  position: relative;
}

.slide figcaption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  /* transition: opacity .5s ease; */
  transition: opacity .25s linear, filter .2s .05s linear;
}

.slide:not([active]) figcaption {
  opacity: 0;
  filter: blur(5px);
}

.slide[active] figcaption {
  opacity: 1;
  filter: blur(0px);
  z-index: 2000;
}

content-slider.instant .slide figcaption {
  transition: none !important;
}

content-slider.img-bottom .slide img {
  object-position: bottom center;
}

@media (min-width: 660px) {
  .slide img {
    min-height: auto;
    /* max-width: 100; */
  }
}