header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: #00008B;
  text-decoration: none;
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #00008B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #4169E1;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.home-icon {
  display: none;
}

.home-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(ellipse 100% 100% at 50% 100%, #333333, #000000);
    color: white;
    overflow: hidden;
}

.family-films-page header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.family-films-page .logo,
.family-films-page .nav-link,
.family-films-page .hamburger {
    color: white;
}

main {
    height: calc(100vh - 80px); /* Adjust 80px to match your header height */
    overflow-y: auto;
    margin-top: 80px; /* Should match your header height */
    max-width: 1200px;
    width: 95%; /* Add this line */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

main::before {
    content: '';
    position: fixed;
    top: 80px; /* Should match your header height */
    left: 0;
    right: 0;
    height: 10px; /* Adjust for desired fade effect */
    background: linear-gradient(to bottom, rgba(51,51,51,0.5) 0%, rgba(51,51,51,0) 100%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-section {
    margin-bottom: 60px;
}

.video-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%; /* Add this line */
}

.video-content.reverse {
    flex-direction: row-reverse;
}

.video-info, .video-embed {
    flex: 1;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

main.scrolling::before {
    opacity: 1;
}

.director-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.director-info .light-gray {
    color: #999999;
}

.director-info .white {
    color: white;
    font-weight: bold;
}

@media screen and (max-width: 1028px) {
  header {
    padding: 1rem 2rem;
  }

  .home-icon {
    display: block;
  }

  .nav-list {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem 2rem;
    box-sizing: border-box;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    width: auto;
    text-align: right;
  }

  .nav-link {
    padding: 0.5rem 0;
  }

}

@media screen and (max-width: 768px) {
  .video-content, .video-content.reverse {
      flex-direction: column;
      align-items: center; /* Add this line */
  }

  .video-info, .video-embed {
      width: 90%; /* Change from 100% to 90% */
      max-width: 560px; /* Add this line */
  }

  main {
      width: 100%; /* Add this line */
  }
}
