* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.body {
  background: #f7f7f7;
  color: #1a1a1a;
  font-family: "adelle-sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1vw + 12px, 18px);
  line-height: clamp(22px, 1.2vw + 18px, 24px);
}

.container {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: clamp(32px, 6vh, 7vh) clamp(20px, 5vw, 5vw)
    clamp(24px, 5vh, 5vh);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vh, 56px);
}

.row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.top-row {
  align-items: flex-start;
  flex: 0 0 auto;
  height: 25vh;
}

.top-row .column {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.footer-row {
  flex: 1 1 auto;
  width: 100%;
}

.footer-row .column {
  flex: 1 1 auto;
  min-width: 0;
}

.heading {
  font-weight: 300;
}

.hidden {
  display: none;
}

.link {
  text-decoration: none;
  color: #1a1a1a;
}

.link:hover {
  opacity: 0.6;
}

#content p,
#content .link {
  text-wrap: balance;
}

#gallery {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(26, 26, 26, 0.05);
}

.gallery_wrapper {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 250px;
  overflow: hidden;
}

.gallery_wrapper::before,
.gallery_wrapper::after {
  --cut-size: clamp(28px, 4vw, 44px);
  content: "";
  position: absolute;
  bottom: calc(var(--cut-size) * -0.5);
  width: var(--cut-size);
  height: var(--cut-size);
  background: #f7f7f7;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

.gallery_wrapper::before {
  left: calc(var(--cut-size) * -0.5);
}

.gallery_wrapper::after {
  right: calc(var(--cut-size) * -0.5);
}

.gallery_wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: galleryFade 18s infinite;
}

.gallery_wrapper img:first-child {
  opacity: 1;
  animation-delay: -3s;
}

.gallery_wrapper img:nth-child(2) {
  animation-delay: 3s;
}

.gallery_wrapper img:nth-child(3) {
  animation-delay: 9s;
}

.gallery_wrapper:hover img {
  animation-play-state: paused;
}

@keyframes galleryFade {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery_wrapper img {
    animation: none;
    opacity: 0;
  }

  .gallery_wrapper img:first-child {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .row {
    flex-direction: column;
  }

  .top-row {
    height: auto;
  }

  #content {
    height: auto;
    gap: 16px;
  }

}

@media (max-height: 700px) {
  .container {
    height: auto;
    min-height: 100vh;
  }

  .top-row {
    height: auto;
    flex: 0 0 auto;
  }

  #content {
    height: auto;
    gap: 56px;
  }

}

