/* Global. */
*, *:before, *:after {
  box-sizing: border-box;
}

body {
  background: white;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.3;	
}

p {
  margin: 0.5em 0;
}

@media (max-width: 800px) {
  body {
    font-size: 13px;
    line-height: 1.3;	
  }
}

a:link, a:visited, a:hover {
  color: blue;
}

/* Header. */
.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 250px;
  min-height: 80vh;
  padding: 0 5px;
}

.header__video {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 1000px 1000px 0 0;
  background-color: silver;
}

.header__text {
  display: flex;
  justify-content: space-between;
  text-transform: lowercase;
  text-wrap: nowrap;
  font-size: 16px;
}

/* Section. */
.section {
  display: flex;
  flex-direction: column;
  gap: 3vw;
  max-width: 1500px;
  position: relative;
  padding: 15vh 25px;
  margin: 0 auto;
}

.section__group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw;
}

.section__text {
  text-align: center;
  text-wrap: balance;
  max-width: 60ch;
  margin: 0 auto;
  font-style: italic;
}

.video {
  position: relative;
  width: 33.3%;
  aspect-ratio: 9/16;
  background-color: silver;
  overflow: hidden;
}

.video--aspect-2 {
  aspect-ratio: 3/4;
}

.video--unloaded video {
  opacity: 0;
}

.video video {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: all 300ms ease;
  opacity: 1;
}

.video__poster {
  position: absolute;
  width: 100%;
  top: 0;
  image-rendering: pixelated;
}

.footer {
  text-align: center;
  padding: 15vh 25px;
}

.play-sound-button {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
}
