body{
    background-color: #000000;
    font-family: "Alexandria", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000000;
  line-height: 1.5;
}

.page-bg{
  padding: 0 0 40px 0;
}

.page-container{
  background:white;
}

html {
    scroll-behavior: smooth;
    overflow-x: visible;
  }

img {
  width: 100%;
  display: block;
}

main.project {
  padding-top: 25px;
}

.nav {
  display: flex;
  gap: 10px;
}

/* base nav button */
.nav-item {
  padding: 10px 18px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background: #000000; /* same as page background */
  font-size: 30px;
}

/* active page */
.nav-item.active {
  color: #000000;
  background: white;
  font-weight: 700;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #000000;
  background: white;
}

.breadcrumb {
  font-size: 25px;
  color: #000000;
  margin: 0 0 25px 50px;
}

.breadcrumb-item {
  text-decoration: underline;
  cursor: pointer;
}

.breadcrumb-item:hover {
  color: blue;
}

.breadcrumb-sep {
  text-decoration: none;
}

.hero {
  display: grid;
  margin-bottom: 0px;
  position: relative;
}

.hero-thumbnails {
  position: absolute;
  left: 100px;
  top: 100px;

  display: flex;
  flex-direction: column;
  z-index: 20;
}

.hero-thumbnails img {
  width: 350px;
  cursor: pointer;
  margin-top: -200px; /* controls overlap */
  transition: margin-top 320ms ease-in-out, box-shadow 320ms ease-in-out;
}

.hero-thumbnails img:first-child {
  margin-top: 0;
}

.hero-image {
  margin: 0;
  width: 1728px;
  height: 1005px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 1528px;
  height: 100%;
  display: block;
  position: relative;
  margin-left: 200px;
  margin-right: 0;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
  transition: opacity 260ms ease-in-out;
}

.image-caption {
  position: absolute;
  bottom: 45px;
  right: 0;
  background: white;
  padding: 10px 50px;
  font-size: 14px;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  column-gap: 40px;
}

.project-text h2 {
  margin-top: 50px;
  font-size: 35px;
  margin-bottom: 20px;
  padding-left: 50px;
}

.project-text p {
  margin-bottom: 16px;
  font-size: 20px;
  color: #000000;
  padding-left: 50px;
}

.intro-image {
  width: 100%;
  margin: 0;
  min-width: 0;
}


.intro-image img {
  width: 100%;
  height: auto;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.image-grid figure {
  margin: 0;
}

.project-data {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  padding-right: 0;
}

.data-image {
  grid-column: 1;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.data-image img {
  width: 100%;
  height: auto;
}

.data-text {
  margin-top: 50px;
  grid-column: 2;
  font-size: 20px;
}

body.scrollama-ready .scroll-reveal-step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.scrollama-ready .scroll-reveal-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.scrollama-ready .scroll-reveal-image {
  opacity: 0;
  transition: opacity 520ms ease;
}

body.scrollama-ready .scroll-reveal-image.is-visible {
  opacity: 1;
}

.plan {
  grid-column: 1 / -1;
}

.plan {
  display: grid;
  position: relative;
}

.plan-small {
  position: absolute;
  right: 100px;
  top: 40px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.plan-small img {
  width: 250px;
  cursor: pointer;
  margin-top: -140px;
  transition: margin-top 320ms ease-in-out, box-shadow 320ms ease-in-out;
}

.hero-thumbnails img.is-active,
.plan-small img.is-active {
  position: relative;
  z-index: 3;
}

.plan-small img:first-child {
  margin-top: 0;
}

.plan-large {
  margin: 0;
  width: 1728px;
  position: relative;
  z-index: 1;
}

.plan-large img {
  width: 1528px;
  margin-left: 0;
  margin-right: 200px;
  max-height: 1005px;
  opacity: 1;
  transition: opacity 260ms ease-in-out;
}

.hero-image .image-fade-overlay,
.plan-large .image-fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 360ms ease-in-out;
}

.hero-image .image-fade-overlay.is-fading-out,
.plan-large .image-fade-overlay.is-fading-out {
  opacity: 0;
}

.data-text h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.data-text ul {
  list-style: none;
}

.data-text li {
  margin-bottom: 10px;
  font-size: 20px;
}

.plan-large figcaption {
  margin-top: 10px;
  background: black;
  color: white;
  padding: 10px;
  font-size: 14px;
}

.footer {
  background: black;
  color: white;
  padding: 60px 40px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-logo img {
  width: 375px;
  height: 132px;
}

@media (max-width: 1000px) {

  .hero-image img,
  .plan-large img {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-image,
  .plan-large {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

  .image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-data {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

}

/* Legal Notice Modal */
.legal-notice-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.legal-notice-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-notice-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.legal-notice-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
}

.legal-notice-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 14px;
}

.legal-notice-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  border: none;
  background: none;
  cursor: pointer;
  color: #000;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-notice-close:hover {
  color: #555;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}