html {
  font-size: 10px;
  font-family: "Fira Sans", sans-serif;
}

#page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  width: 64px;
  height: 64px;
}

.page-title {
  font-weight: 800;
  text-align: left;
  font-size: 4rem;
  margin: 0;
  padding: 0 0 0 10px;
}

body {
  padding: 0 20px;
}

.logo {
  display: block;
  max-width: 100%;
}

a {
  color: #000000;
  text-decoration: none;
}

nav {
  font-weight: 500;
  display: flex;
  font-size: 2rem;
  gap: 30px;
  margin-left: auto;
  a:hover{
    text-decoration: underline;
  }
}

header {
  display: flex;
  gap: 5px;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 10px 0px;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

hr {
  color: black;
}

.carousel {
  position: relative;
  max-width: 1440px;
  height: 600px;
  overflow: hidden;
  margin: 20px auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.exit-left {
  opacity: 0;
  transform: translateX(-100%);
}

.slide.exit-right {
  opacity: 0;
  transform: translateX(100%);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arrow {
  position: absolute;
  top: 50%;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 4rem;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateY(100%);
}

.carousel:hover .arrow {
  opacity: 1;
  transform: translateY(-50%);
}

.arrow.prev { left: 12px; }
.arrow.next { right: 12px; }

.section-title {
  display: flex;
  justify-content: left;
  align-items: center;
}

.underline-link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.album-grid {
  width: 100%;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(100px, auto);
  margin-bottom: 30px;
}

.album {
  border: 2px black solid;
  overflow: hidden;
  box-shadow: 5px 5px 2px 2px gray;
  font-size: 2rem;
  font-weight: 500;
  padding: 10px;
  img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
}

.album-caption {
  font-size: 3rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intro {
  font-size: 2.5rem;
}

.profile-pic {
  max-width: 600px;
}

.contact-link {
  p {
    font-size: 2.5rem;
  }
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 20px;
  p:hover {
    text-decoration: underline;
  }
  img {
    width: 50px;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
  }
}

#album-page-header {
  display: flex;
  justify-content: space-between;
  font-size: 4rem;
  margin: 10px 0;
  font-weight: 500;
}

#album-exit {
  background: none;
  border: none;
  display: flex;
  justify-content: right;
  font-size: 1.2rem;
  padding: 5px 0 0 0;
}

.photo-grid {
  display: grid;
  width: 100%;
  gap: 20px 10px;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.photo {
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  object-fit: contain;
}

.overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

#overlay-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  background: none;
  color: white;
  border: none;
  font-size: 5rem;
  cursor: pointer;
  z-index: 10;
  transform: translateY(-50%);
}

#photo-arrow-prev { right: 93% }
#photo-arrow-next { left: 93% }

.exit {
  position: absolute;
  top: 5%;
  left: 90%;
  font-size: 5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

.photo-arrow.hidden { display: none }

.prints-text {
  p, a {
    font-size: 1.9rem;
  }
}


@media (max-width: 1024px) {
  html {
    font-size: 7px;
  }

  nav {
    gap: 15px;
  }

  .logo {
    max-width: 40px;
    max-height: 40px;
  }

  .page-title {
    font-size: 25px;
    padding: 0 0 0 5px;
  }

  .carousel {
    height: 350px;
  }

  .album-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .album-grid img {
    max-height: 140px;
  }

  .album {
    padding: 5px;
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(350px, auto);
    object-fit: contain;
  }

  .profile-pic {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .contact-link {
    img {
      height: 40px;
      width: 40px;
    }
    p {
      font-size: 20px;
      gap: 10px;
    }
  }

  .arrow {
    opacity: 1;
    transform: translateY(-50%);
    padding: 3px;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 4px;
  }

  nav {
    gap: 9px;
  }

  .logo {
    max-width: 30px;
    max-height: 30px;
  }

  .page-title {
    font-size: 13px;
  }

  .carousel {
    height: 350px;
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .album-grid img {
    max-height: 80px;
  }

  .album {
    padding: 5px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(120px, auto);
  }

  .profile-pic {
    max-width: 250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .contact-link {
    img {
      height: 25px;
      width: 25px;
    }
    gap: 10px;
  }

  .arrow {
    opacity: 1;
    transform: translateY(-50%);
    padding: 3px;
  }
}