.layout {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 100px 0;
  padding: 20px;
}
.layout .block-text {
  line-height: 1.875;
}

.layout-item {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}
@media screen and (min-width: 640px) {
  .layout-item {
    grid-template-columns: 1fr 1fr;
  }
}
.layout-item.is-half {
  max-width: 1140px;
}
.layout-item .column {
  grid-column: span var(--span, 1);
  gap: 20px;
}
.layout-item .blocks h2 {
  margin: 0;
  font-size: 2.25rem;
}
.layout-item .blocks p {
  margin-top: 0;
}
.layout-item .blocks .block-video {
  width: 100%;
}
.layout-item .blocks .block-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.layout-item .blocks a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.layout-item.is-full .blocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  gap: 30px;
}
.layout-item.is-full .block:not(.block-gallery) {
  max-width: 1140px;
}

.embla {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}
.embla:has(figcaption) .embla-prev,
.embla:has(figcaption) .embla-next {
  transform: translateY(-2rem);
}

.embal__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  gap: 20px;
}

.embla__slide {
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
}
.embla__slide:has(figcaption) {
  padding-bottom: 4rem;
}
.embla__slide figure {
  display: block;
  height: calc(100vh - 100px);
  min-height: 400px;
  position: relative;
  width: 100%;
  width: auto;
}
@media screen and (orientation: portrait) {
  .embla__slide figure {
    width: auto;
    height: 100vw;
    min-height: unset;
  }
}
.embla__slide .slide-caption {
  align-items: center;
  bottom: 0px;
  font-size: 14px;
  height: 4rem;
  left: 0;
  max-width: 100%;
  overflow: hidden;
  position: absolute;
  right: 0;
  transform: translateY(100%);
}
.embla__slide .slide-caption p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: 14px;
  line-clamp: 2;
  margin: 0.625rem 0 0 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-overflow: ellipsis;
  width: 100%;
}
.embla__slide img {
  width: auto;
  height: calc(100vh - 100px);
  min-height: 400px;
}
@media screen and (orientation: portrait) {
  .embla__slide img {
    height: 100vw;
    min-height: unset;
  }
}

.controls {
  max-width: 1140px;
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}

.embla-prev,
.embla-next {
  align-items: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  height: 46px;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
  width: 46px;
}
.embla-prev:disabled,
.embla-next:disabled {
  opacity: 0.5;
  cursor: auto;
}
.embla-prev:active,
.embla-next:active {
  transform: scale(1.1);
  transform-origin: center center;
}
.embla-prev svg,
.embla-next svg {
  color: #111;
  width: 32px;
  height: 32px;
}

body {
  margin: 0;
}

.hero {
  align-items: flex-end;
  aspect-ratio: 16/9;
  background-color: #ddd;
  color: #fff;
  display: flex;
  justify-content: center;
  max-height: 100vh;
  padding: 20px;
  position: relative;
  width: 100%;
}
@media screen and (orientation: portrait) {
  .hero {
    min-height: 100vw;
  }
}
.hero article {
  border-left: 2px solid;
  margin-bottom: 4vw;
  max-width: 1140px;
  padding: 0 0 0 20px;
  padding: 15px;
  position: relative;
  width: 100%;
  z-index: 10;
}
.hero article * {
  max-width: 640px;
  margin: 0;
}
.hero article h1 {
  margin-bottom: 0.25em;
}
.hero article h4 {
  font-weight: 400;
  font-size: small;
}
.hero img {
  height: 100%;
  left: 0;
  -o-object-fit: cover;
     object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}
