:root {
  --page-margin: 20vw;
  --page-margin-md: 12vw;
  --page-margin-sm: 8vw;
}

html, body {
  font-family: Helvetica, Arial, sans-serif;
  background: #fff;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: #dfdfdf; }

/* ================= Slideshow ================= */

.image-slideshow,
.slides,
.slide,
.slide::before,
.slide::after {
  height: 75vh;
}

.image-slideshow { max-width: 100%; }

.slides {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::after,
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.slide::after {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.75;
}

.slide::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.05;
}

.caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  z-index: 10;
}

.caption h2 {
  font-weight: 100;
  font-size: 42px;
}

.caption p {
  font-weight: 100;
  font-size: 18px;
}

.caption h2,
.caption p { margin: 0; }

.prev, .next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 20px;
  cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover,
.next:hover { background: rgba(0,0,0,0.7); }

/* ================= Header (UNCHANGED) ================= */

.header {
  position: static;
  background-color: #fff;
  padding-top: 0px;
  padding-bottom: 0px;
}

.logo {
  position: relative;
  top: 40px;
  left: 40px;
  z-index: 10;
  display: inline-block;
}

.logo img {
  width: 150px;
  height: auto;
}

.nav-list {
  top: 30px;
  padding-right: 40px;
  z-index: 9999;
  text-align: right;
  color: #808080;
}

.nav-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-list ul li {
  line-height: 1.5;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

/* ================= Project Title ================= */

.project-title { padding-top: 80px; }

.project-title h3 {
  font-weight: 400;
  margin-bottom: 0;
  margin-left: var(--page-margin);
  font-size: 30px;
}

.project-title p {
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
  font-size: 14px;
  line-height: 1.5em;
  font-weight: 400;
  color: #808080;
  text-wrap: balance;
}

/* ================= Description ================= */

.desc-paragraph {
  display: flex;
  align-items: top;
  justify-content: space-between;
  min-height: 15vh;
  padding: 40px 40px;
  background-color: #fff;
}

.desc-paragraph p {
  margin: 0;
  max-width: 600px;
  font-size: 20px;
  color: #242424;
}

.desc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.desc-nav ul li {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.desc-nav a {
  color: #808080;
  text-decoration: none;
  text-underline-offset: 6px;
  font-size: 28px;
}

/* ================= Image Grid ================= */

.image-grid-container {
  padding-top: 0px;
  padding-bottom: 30px;
}

.image-grid {
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0px;
  padding-bottom: 80px;
}

.image-grid a {
  position: relative;
  display: block;
  overflow: hidden;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.image-grid a:hover img {
  filter: brightness(95%);
  transform: scale(1.025);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  color: white;
  transition: opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.image-grid a:hover .overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay h3 {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
}

.overlay p {
  margin: 4px 0 0;
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
  text-align: left;
}

/* ================= Footer (UNCHANGED) ================= */

.footer-bottom {
  text-align: left;
  font-size: 0.8rem;
  color: #54595a;
  background: #ededee;
  font-weight: light;
  margin-left: 0px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-bottom p{
  padding-left: 40px;
  padding-right: 40px;
  margin: 0;
}

/* ================= Breakpoints ================= */

@media (max-width: 1520px) {
  :root { --page-margin: var(--page-margin-md); }
}

@media (max-width: 768px) {
  :root { --page-margin: var(--page-margin-sm); }
}

/* ================= Mobile (UNCHANGED VISUALLY) ================= */

@media (max-width: 600px) {
  .caption { bottom: 25px; left: 25px; }

  .logo { top: 30px; left: 20px; }
  .logo img { width: 120px; }

  .nav-list {
    position: absolute;
    right: 0;
    padding-right: 25px;
    max-width: 100vw;
  }

  .nav-list ul li { font-size: 16px; }

  .desc-paragraph {
    padding: 25px 25px;
  }

  .desc-paragraph p {
    font-size: 12px;
  }

  .desc-nav a { font-size: 24px; }

  .footer-bottom {
    text-align: center;
    font-size: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer-bottom p{
    padding-left: 0;
    padding-right: 0;
    height: 40px;
  }

  .image-grid {
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 0px;
  }

  .project-title { padding-top: 40px; }

  .project-title h3 {
    margin-left: 25px;
    padding-right: 25px;
    font-size: 28px;
  }

  .project-title p {
    margin-left: 25px;
    margin-right: 25px;
    font-size: 12px;
  }
}
