* {
  box-sizing: border-box;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.header {
  align-items: center;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px clamp(12px, 1vw, 40px);
  position: absolute;
  overflow-x: visible;
  width: 100%;
}

.logo {
  width: 55px;
  aspect-ratio: 1;
}

.hamburger {
  position: relative;
  cursor: pointer;

  svg {
    width: 50px;
    height: 50px;
  }
}

.nav {
  position: absolute;
  height: 200px;
  transition: all 0.38s cubic-bezier(0.175, 0.885, 0.28, 1.175);
  overflow-x: hidden;
  scrollbar-width: none;
}

.nav-off {
  height: 0;
  transform: translateX(80px);
}

.nav-item {
  display: block;
}

.menu-icon {
  width: 40px;
  height: 40px;
  padding: 5px;
  margin: 9px 0;
  stroke-width: 6;
}

.main {
  height: fit-content;
  margin-top: 80px;
}

.categories-area {
  width: 100%;
  height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

.categories {
  display: flex;
  justify-content: space-evenly;
  width: 80%;
  overflow-x: scroll;
  scrollbar-width: none;
}

.category {
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 7px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.07s ease-in-out;
}

.category:hover {
  transform: scale(1.06);
}

.album-area {
  padding: 60px 10%;
  height: fit-content;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.album {
  position: relative;
  width: 225px;
  margin-right: 65px;
  margin-bottom: 15px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column-reverse;
  transition: all 0.2s ease-in-out;
}

.album-name-cover {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 0;
  overflow: hidden;
  opacity: 0;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  z-index: 30;
}

.album-name {
  text-align: center;
  font-size: 1.6rem;
  color: white;
  transition: 0.18s all;
}

.album-name:hover {
  color: rgb(207, 207, 207);
}

.album:hover {
  transform: scale(1.07);
}

.album:hover .album-name-cover {
  height: 225px;
  opacity: 1;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.082);
}

.album:hover .album-img {
  transform: translateX(0);
  box-shadow: 3px 4px 8px 0px rgba(0, 0, 0, 0.247);
}

.album-img {
  position: absolute;
  box-shadow: 2px 3px 8px 0px rgba(0, 0, 0, 0.479);
  height: auto;
  object-fit: cover;
  width: 225px;
  height: 225px;
  transition: all 0.3s ease-in-out;
}

.img1 {
  z-index: 25;
}

.img2 {
  transform: translateX(20px) translateY(1%) scale(0.94) rotate(3deg);
  z-index: 20;
}

.img3 {
  transform: translateX(37px) translateY(4%) scale(0.88) rotate(5deg);
  z-index: 15;
}

.photo-display {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.705);
  backdrop-filter: blur(6px);
  display: none;
  overflow: hidden; /* avoid inner scrollbars changing viewport width */
  z-index: 40;
}

.display-on {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-area {
  padding: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-title {
  padding: 30px 80px;
  margin-top: 15px;
  font-size: 2.4rem;
}

.photo {
  height: 300px;
  object-fit: contain;
  transition: 0.14s all ease-in-out;
  cursor: pointer;
}

.photo:hover {
  transform: scale(1.03);
  z-index: 0;
}

.display-img {
  /* center absolutely so we can animate transform without affecting layout */
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 75%;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* enter from right */
.display-img.slide-in {
  transform: translate(150%, -50%);
  opacity: 0;
}

/* enter from left */
.display-img.slide-in-left {
  transform: translate(-150%, -50%);
  opacity: 0;
}

/* exit to left */
.display-img.slide-out {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.display-img.active {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.display-img.slide-out.active {
  transform: translate(-150%, -50%);
  opacity: 0;
}

/* exit to right (when navigating backwards) */
.display-img.slide-out-right.active {
  transform: translate(150%, -50%);
  opacity: 0;
}

.arrow-btn {
  width: 50px;
  stroke-width: 1.2;
  stroke: rgba(0, 0, 0, 0.568);
  position: fixed;
  top: 35%;
  cursor: pointer;
  transition: 0.02s all ease-in-out;
}

.arrow-btn:active {
  stroke: rgb(65, 65, 65);
}

.left-arrow {
  left: 38px;
}

.right-arrow {
  right: 38px;
}

.photo-bar {
  background-color: rgb(73, 73, 73);
  box-shadow: 3px 2px 17px 5px rgba(0, 0, 0, 0.24);
  position: fixed;
  bottom: 40px;
  width: 87%;
  height: 12%;
}

.photo-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  overflow-x: auto;
  box-sizing: border-box;
}

.photo-bar img.thumb {
  height: 100%;
  max-height: 100%;
  transform: scale(0.94);
  width: auto;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.07s all ease-in-out;
}

.photo-bar img.thumb.active-thumb {
  opacity: 1;
  transform: scale(1.02);
}

.contact-area {
  display: flex;
}

.contact-form {
  margin-top: 80px;
  padding: 0 50px;
}

.form-title {
  font-size: 2rem;
}

.form-text {
  padding: 30px 20px;
  font-size: 1.2rem;
  text-align: left;
  text-wrap: wrap;
}

@media only screen and (max-width: 600px) {
  .logo {
    width: 42px;
  }

  .main {
    margin-top: 60px;
  }

  .hamburger {
    svg {
      width: 44px;
      height: 44px;
    }
  }

  .categories {
    width: 90%;
  }

  .category {
    padding: 12px 7px;
    font-size: 1.1rem;
  }

  .album-area {
    padding: 20px 10%;
  }

  .album {
    width: 112px;
    margin-right: 16px;
    margin-bottom: 8px;
  }

  .album-name {
    font-size: 1.2rem;
  }

  .album-name-cover {
    height: 112px;
  }

  .album:hover .album-name-cover {
    height: 112px;
  }

  .album-img {
    width: 112px;
    height: 112px;
  }

  .img2 {
    transform: translateX(16px) translateY(1%) scale(0.94) rotate(3deg);
  }

  .img3 {
    transform: translateX(28px) translateY(4%) scale(0.88) rotate(5deg);
  }

  .album-name:hover {
    color: rgb(207, 207, 207);
  }

  .album:hover {
    transform: scale(1);
  }

  .album:hover .album-name-cover {
    height: none;
    opacity: 0;
    backdrop-filter: blur(0px);
    background: none;
  }

  .album:hover .album-img {
    transform: translate(void);
    box-shadow: 3px 4px 8px 0px rgba(0, 0, 0, 0.247);
  }

  .gallery-title {
    padding: 20px 30px;
    font-size: 1.4rem;
  }

  .photo {
    height: 105px;
  }

  .photo-bar {
    height: 10%;
    scrollbar-width: none;
  }
}
