body {
  font-family: "Libre Baskerville", serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
/*------------------- PROJECT PAGE ----------------------*/

.heroimage {
  display: flex;
  gap: 20px;

}

.heroimage img {
  flex: 1;
  width: 0;
  height: auto;
}

.projtext {
  text-align: center;
  padding: 2%;
}

.mainimage {
  display: flex;
  gap: 20px;
  padding-top: 2%;
  padding-bottom: 2%;
}

.mainimage img {
  flex: 1;
  width: 0;
  height: auto;
}

.caption {
  text-align: center;
}
/* -------------------- TYPOGRAPHY -------------------- */

.title {
    color: black;
}

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

.home .title {
    color: white;
}

.home .navigation a {
    color: greenyellow;
}

a {
    color: rgb(119, 180, 27);
}

.space {
  text-align: center;
  letter-spacing: 5px;
}
/* -------------------- NAVIGATION -------------------- */

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation li {
  list-style: none;
}

.navigation a {
    margin-left: 20px;
    text-decoration: none;
}

.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: transparent;
  flex-shrink: 0; /* prevents shrinking */
}

/* -------------------- SCROLL GALLERY -------------------- */

.scroll-gallery {
    flex: 1; /* fills remaining screen height */
    height: auto;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.scroll-gallery img {
    height: 100%;
    width: auto;
    display: inline-block;
    object-fit: cover;
    margin-right: 10px;
}

.scroll-gallery iframe {
  height: 100%;
  aspect-ratio: 16 / 9;
  width: auto;
  max-width: 100vw;
  margin-right: 20px;
  flex-shrink: 0;
  border: none;
}

/* -------------------- VIDEO BACKGROUND -------------------- */

.home .showreel-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.home .showreel-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home .showreel-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* -------------------- BIO SECTION -------------------- */

.bio-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5%;
  gap: 40px;
}

.bio {
  line-height: 2;
  max-width: 600px;
  text-align: right;
}

.icon {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.availability {
  line-height: 2;
  max-width: 600px;
  text-align: right;
  color: rgb(4, 150, 72);
}

.contact {
  line-height: 2;
  max-width: 600px;
  letter-spacing: 2px;
  text-align: center;
}

/* -------------------- FOOTER -------------------- */

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #777;
}

/* ========================================================= */
/* ===================== RESPONSIVE ========================= */
/* ========================================================= */

@media (max-width: 768px) {

  /* allow scrolling again on mobile */
  body {
    height: auto;
    overflow: auto;
  }

  /* NAVIGATION */
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  .navigation a {
    margin-left: 0;
    margin-right: 15px;
  }

  /* BIO SECTION */
  .bio-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .bio,
  .availability {
    text-align: center;
    max-width: 100%;
  }

  /* GALLERY */
  .scroll-gallery {
    height: auto;
  }

  .scroll-gallery img,
  .scroll-gallery iframe {
    height: auto;
    width: 90vw;
  }
}