body {
  width: 100vw;
  margin: 0;
  height: fit-content;
}

.img-container {
  overflow: hidden;
  position: relative;
  height: fit-content;
  min-height: 100vh;
  min-height: 100svh;
}

img.bg {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: 1250px;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  margin-bottom: calc(100lvh - 100svh);
  /* filter: brightness(0.8); */
}

.top-separator {
  border-top: 1px solid black;
  margin-top: 0;
  padding-top: 0.5em;
}

.content {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  max-width: min(45rem, 100vw - 2rem);
  min-height: 100vh;
  min-height: 100lvh;
  margin: 0 auto;
  text-align: center;
}
.content img {
  width: 100%;
  margin-bottom: 2em;
}

p {
  font-family: "Raleway", sans-serif;
  font-size: 1.4em;
  font-weight: 200;
  letter-spacing: 0.02em;
  margin-bottom: 2em;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

h1 {
  font-size: 4em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

h2 {
  font-size: 2.8em;
  margin-bottom: 1em;
}

:root {
  --small-font-factor: 0.75;
  scroll-timeline: --hide-arrow-timeline;
}

.italic {
  font-style: italic;
}

#countdown {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 4em;
  position: sticky;
  margin-bottom: 2em;
  bottom: 0;
}
#countdown h3 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-size: 3em;
  margin: 0;
}
#countdown p {
  font-family: "Raleway", sans-serif;
  font-weight: 200;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: capitalize;
  font-size: 0.8em;
}
#countdown div {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 0.8rem;
}

.on-image {
  position: absolute;
  top: 0;
  left: max((100% - 1250px) / 2, 0px);
  width: 100%;
  max-width: 1250px;
  text-align: center;
  color: white;
  text-shadow: 0px 0px 2px rgba(166, 166, 166, 0.3);
  -webkit-backdrop-filter: brightness(0.8) blur(1px);
  backdrop-filter: brightness(0.8) blur(1px);
  -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 89%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 89%, rgba(0, 0, 0, 0) 100%);
  padding: 0.8em 0 1.2em;
}
.on-image span {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1.7em;
}
.on-image h1 {
  font-family: "Playfair Display", serif;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.arrow-down {
  position: fixed;
  bottom: 0.5em;
  right: 0;
  width: 100%;
  text-align: center;
  font-size: 1.8em;
  color: black;
}
.arrow-down span {
  display: inline-block;
  background-color: white;
  border-radius: 50%;
  padding: 0.2em 0.5em;
}
.arrow-down {
  animation: bounce 1.2s linear infinite, disappear 0.5s linear 1;
  animation-timeline: auto, --hide-arrow-timeline;
  opacity: 1;
}

@keyframes disappear {
  0% {
    opacity: 1;
  }
  5% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.3em);
  }
  100% {
    transform: translateY(0);
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: calc(var(--small-font-factor) * 4em);
  }
  h2 {
    font-size: calc(var(--small-font-factor) * 2.8em);
  }
  p {
    font-size: calc(var(--small-font-factor) * 1.4em);
  }
  #countdown h3 {
    font-size: calc(var(--small-font-factor) * 3em);
  }
}
/* Set target zoom center point for larger screens */
@media (min-width: 768px) {
  img.bg {
    object-position: center 65%;
  }
}
/* Show enough content on smaller screens */
@media (max-width: 650px) {
  img.bg {
    width: 100%;
    max-width: none;
    height: auto; /* natural aspect ratio, never cropped by the box */
    object-fit: fill;
    margin: 0; /* removes the calc(100lvh - 100svh) gap */
    transform: scale(1.2);
    transform-origin: center top;
  }
}
