* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: #f2f2f2;
  font-family: "Athelas", bold;
  overflow-x: hidden;
  width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: center;
  left: 0;
  mix-blend-mode: difference;
  padding: 40px 60px;
  position: fixed;
  text-transform: uppercase;
  top: 0;
  width: 100%;
  z-index: 100;
}

.site-logo {
  border-bottom: none;
  box-shadow: none;
  color: #f2f2f2;
  font-size: 1.4rem;
  font-weight: 700;
  left: 60px;
  position: absolute;
  text-decoration: none;
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.site-nav a {
  color: #f2f2f2;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease;
}
.site-nav a:hover {
  opacity: 0.7;
}

.gallery-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  margin-top: 30px;
}

.project-intro {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 70px;
}

.page-title {
  color: #010101;
  font-family: "Athelas", bold;
  font-size: 2.5rem;
  margin-top: 140px;
  margin-bottom: 32px;
}

.project-intro-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  margin-top: 130px;
}

.project-intro-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.project-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-intro-text p {
  color: #010101;
  font-family: "Helvetica", normal;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
  align-items: start;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  background-color: #f5f5f5;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
  animation: none !important;
}

.gallery-item:hover,
.gallery-item:focus,
.gallery-item:active {
  transform: none !important;
  box-shadow: none !important;
  cursor: default;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.gallery-item:hover img,
.gallery-item:focus img,
.gallery-item:active img {
  transform: none !important;
}

.gallery-item.item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.item-1 img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background-color: transparent;
}

.gallery-item.item-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.gallery-item.item-3 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.gallery-item.item-4 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  margin-top: -40px;
}

.gallery-item.item-5 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-item.item-6 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    margin-top: 20px;
}

.gallery-item.item-7 {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
}

.gallery-item.item-8 {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
    margin-top: -40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-header {
    justify-content: flex-start;
    padding: 20px 20px;
  }
  .site-logo {
    font-size: 1.3rem;
    left: auto;
    position: static;
  }
  .site-nav {
    margin-left: auto;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  .gallery-page {
  max-width: 900px;
  margin: 0;
  padding: 40px 40px;
  margin-bottom: 50px;
}

  .project-intro {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .page-title {
  color: #010101;
  font-family: "Athelas", bold;
  font-size: 2.3rem;
  margin-top: 45px;
  margin-left: 45px;
  margin-bottom: 20px;
}

  .project-intro-image {
  width: 100%;
  margin-top: 80px;
}

.project-intro-image img {
  width: 60%;
  display: block;
  object-fit: cover;
  margin-left: 100px;
    margin-top: 88px;
}

  .project-intro-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-left: 45px;
    margin-right: 45px;
    padding-bottom: 16px;
    padding-top: 0;
    text-align: justify;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }


  .gallery-item.item-1,
  .gallery-item.item-4,
  .gallery-item.item-2,
  .gallery-item.item-3,
  .gallery-item.item-5,
  .gallery-item.item-6,
  .gallery-item.item-7,
  .gallery-item.item-8 {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    width: 100%;
  }

  .gallery-item.item-1 {
    grid-column: span 2;
  }

  .gallery-item.item-4 {
    margin-top: 150px;
  }

  .gallery-item.item-5 {
    margin-top: -40px;
  }

  .gallery-item.item-6,
  .gallery-item.item-7 {
    margin-top: 70px;
  }

  .gallery-item.item-8 {
    grid-column: span 2;
    margin-top: -20px;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .site-header {
    padding: 18px 16px;
  }
  .site-nav {
    gap: 10px;
  }
  .site-nav a {
    font-size: 0.68rem;
  }

  .gallery-page {
    padding: 60px 20px;
  }

    .gallery-page {
  margin-bottom: 20px;
}

  .page-title {
    margin-top: 50px;
    font-size: 2rem;
  }

  .project-intro-image {
  width: 100%;
  margin-top: 70px;
}

.project-intro-image img {
  width: 80%;
  display: block;
  object-fit: cover;
  margin-left: 40px;
    margin-top: 70px;
}

  .project-intro-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item.item-1,
  .gallery-item.item-4,
  .gallery-item.item-2,
  .gallery-item.item-3,
  .gallery-item.item-5,
  .gallery-item.item-6,
  .gallery-item.item-7,
  .gallery-item.item-8 {
    margin-left: 0;
  }

  .gallery-item.item-1,
  .gallery-item.item-8 {
    grid-column: auto;
  }

   .gallery-item.item-4,
  .gallery-item.item-5 {
    margin-top: 0px;
  }

  .gallery-item.item-6,
  .gallery-item.item-7 {
    margin-top: 10px;
  }

  .gallery-item.item-8 {
    margin-top: 10px;
    width: 100%;
  }
}
