section.intro {
  font-family: 'FT System Blank Medium';
  font-size: 36px;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 10px;

  position: sticky;
  position: -webkit-sticky;
  top: 0;

  align-items: center; /* Vertically centers content */
  padding: 0; /* Remove padding for accurate centering */

  height: 60vh;

  z-index: -3;
}

section.intro h1 {
  grid-column: span 6; /* Retains horizontal position */
}

section.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  margin: 0 -10px;

  background-color: var(--offwhite);
}

div.media-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Set the desired width */
  height: 100%; /* Set the desired height */
  overflow: hidden; /* Crop content that exceeds container bounds */
}

div.media-container video,
div.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire container while maintaining aspect ratio */
}

section.hero div.container {
  width: 100%;
  text-decoration: none;
  color: var(--light-color);
  z-index: 3;
  cursor: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 4px;
  position: absolute;
  bottom: 16px;

  grid-template-rows: auto auto; /* Two rows for stacking */
}

section.hero div.container h4.client {
  grid-column: 1 / span 6;
  grid-row: 1;
  font-family: 'FT System Blank Bold';
}

section.hero div.container h4.project {
  grid-column: 1 / span 6;
  grid-row: 2;
  font-family: 'FT System Blank Book';
}

section.hero div.container h4.project,
section.hero div.container h4.client {
  margin: 0 0 0 10px;
  font-size: 18px;
}

.clickable-area {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50vw;
  cursor: url('../svgs/arrow.svg');
  z-index: 2;
}

.left-area {
  left: 0;
  cursor: none;
}

.right-area {
  right: 0;
  cursor: none;
}

.fade-out {
  opacity: 0;
}

@media (max-width: 720px) {
  section.intro h1 {
    font-size: 24px;
    grid-column-start: 1;
    grid-column-end: 10;
  }

  div.container {
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 5px;
    font-size: 14px;
  }

  h4.client,
  h4.project {
    grid-column-start: 3;
    grid-column-end: 7;
  }
}

@media (max-width: 428px) {
  section.hero div.container h4.project,
  section.hero div.container h4.client {
    font-size: 14px;
  }
}
