@font-face {
  font-family: Lora-Regular;
  src: url(fonts/Lora-Regular.ttf);
}

@font-face {
  font-family: Lora-Medium;
  src: url(fonts/Lora-Medium.ttf);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  display: flex;
  font-family: "Lora-Regular", serif;
  color: rgb(218, 218, 218);
  background-color: rgb(0, 0, 0);
  flex-direction: column;
  min-height: 95vh;
}

header {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
}

.gallery.is-scrolling .gallery-item img {
  opacity: 1 !important;
}

.gallery {
  cursor: pointer;
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  scrollbar-width: none;
  padding-left: 2rem;
  margin-top: auto;
  height: calc(100vh - 10rem);
  align-items: flex-end;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex-shrink: 0;
  width: 30vw;
  margin: 0;
}

.gallery-item img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 100%;
  transition: opacity 0.1s ease;
}

.gallery-item:hover ~ .gallery-item img,
.gallery-item:has(~ .gallery-item:hover) img {
  opacity: 0.7;
}

figcaption {
  font-family: Lora-Regular;
  color: rgb(218, 218, 218);
  font-size: 0.9rem;
}

footer {
  font-family: Lora-Regular;
  color: #dadada;
  font-size: 0.9rem;
  padding-bottom: 0rem;
  display: flex;
  gap: 4rem;
}

header,
footer {
  padding-left: 2rem;
}

header a {
  transition: font-size 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  text-decoration: none;
  color: white;
  font-size: 3rem;
}

header.scrolled a {
  font-size: 1rem;
  transition: font-size 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

footer p:last-child {
  margin-left: auto;
  padding-right: 1rem;
}

.copy-email {
  cursor: pointer;
  display: inline-block;
  min-width: 15rem;
}

.copy-email:hover {
  cursor: pointer;
  font-size: 3.2rem;
  transition: font-size 0.4s ease;
}

@media (max-width: 768px) {
  html {
    overflow: hidden;
    height: 100dvh;
    position: fixed;
    width: 100%;
  }

  body {
    min-height: auto;
    padding-top: 0rem;
    padding-left: 1rem;
    height: 100dvh;
    overflow: hidden;
  }

  header {
    font-size: 1rem;
    padding-top: 1rem;
    padding-left: 0.5rem;
    padding-left: 0rem;
    transition: none;
    position: static;
  }

  header a {
    font-size: 1rem !important;
    transition: none !important;
  }

  header.scrolled a {
    font-size: 1rem;
    transition: none;
  }

  .copy-email {
    touch-action: manipulation;
  }
  .copy-email:hover {
    font-size: 1rem !important;
    transition: none !important;
  }

  .gallery {
    margin-top: 0.5rem;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: auto;
  }

  .gallery-item {
    width: 80vw;
    scroll-snap-align: start;
  }

  .gallery-item img {
    aspect-ratio: 9 / 16;
    object-fit: cover;
  }

  footer {
    display: none;
  }
}
