



*, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  
}



body  {
  width: 100vw;
  height: 100vh;
  background-color: rgb(14, 14, 14);
  display: flex;
  flex-direction: column;
  
  
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 65vh;
  
}

.navbar {
  height: 10em;
  width: 90vw;
  margin: 0 auto;
  padding: 2em;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #F5F3ED;
  border-radius: 3em;
  position: relative;
  z-index: 100;
  
}

.navbar > ul, a {
  display: flex;
  align-items: center;
  list-style-type: none;
  text-decoration: none;
  color: inherit;
  gap: 5em;
  
}


.sub-logo img {
  width: 10em;
  transform: translateY(-10%);
  z-index: 100;
}

.navbar-line {
  width: 75vw;
  height: 3px;
  position: absolute;
  top: 7em;
  background-color: #F5F3ED;
  z-index: 100;
  
}





.slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.image-slider {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
}



.image-slider::-webkit-scrollbar{
  display: none;
}

.image-slider > img {
  
  flex: 1 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
  opacity: 40%;
  
}





.slider-nav {
  display: flex;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  bottom: 2rem;
  column-gap: 1rem;
  
}


.slider-nav a {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background-color: #F5F3ED;
  opacity: .75;
  transition: opacity ease 250ms;
}

.slider-nav a:hover {
  opacity: 1;
}


.slider-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #F5F3ED;
  z-index: 50;
  pointer-events: none; /* Allows clicks to pass through to navigation below */
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10vh; /* Added to push content down a little from the top nav */
}
.slider-text-overlay h1 {
  font-size: 5em;
  margin-bottom: 0.5em;
}

.slider-text-overlay .images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  margin-top: 2em;
}
.slider-text-overlay .images img {
  
  width: 300px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
  pointer-events: auto; /* Re-enable pointer events for hover */
  opacity: 1;
}
.slider-text-overlay .images img:hover {
  transform: scale(1.05);
}

.slider-text-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Updated CSS for the .films section */
.films {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.films p {
  margin-top: 1em;
}

.images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em; /* This spaces out the images */
}

.images img {
  width: 20em;
  height: auto;
  border-radius: 10px;
  

}

.contact, .films, .about-us, .members, .stills, .main-logo {
  position: absolute;
  top: 25%;
}





.main-logo {
  top:30%;
}

.main-logo h1 {
  font-size: 10em;
}

.films p {
  position: absolute;
  top:15% ;
}


.about-us p {
width: 40em;
}


.members {
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.member-wrapper {
  display: flex;
  
  gap: 5em;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
} 

.member img {
  width: 15em;
  border-radius: 10px;
}

.member h3 {
  font-size: 2em;
}

.member p {
  font-size: 1.2em;
}

.member a {
  pointer-events: auto;
  text-decoration: underline;
}

.upcoming-films {
  width: 100vw;
  margin-top: 5em;
  display: flex;
  justify-content: space-around;
  
}

.film {
  text-align: left;
}

.film h3 {
  font-size: 2em;
}



.redacted {
  text-decoration-line: line-through;
}

.contact-line {
  margin-top: -2em;
}




.contact-buttons {
  margin-top: 10em;
  display: flex;
  justify-content: center;
  gap: 2em;
  
}

.contact-buttons a {
  pointer-events: auto;
}

.film-poster-container {
  position: relative;
  width: 300px; /* Match the poster image size */
  height: auto;
  cursor: pointer;
  overflow: hidden;
}

.film-poster-container img {
  width: 100%;
  border-radius: 10px;
  /* display: block; */
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 14, 14, 0.85); /* Dark overlay with slight transparency */
  color: #F5F3ED;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Prevent blocking interaction unless you want clickable links inside */
}

.film-poster-container:hover .poster-overlay {
  opacity: 1;
  
}



.poster-overlay p {

  font-size: .95em; 
 padding: .5em;
}




.still-wrapper {
  display: flex;
  width: 50em;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  transform: translateY(-5%);
  /* flex-direction: column; */
}

.still-wrapper  img {
  width: 370px;
  border: 3px solid #F5F3ED;
  border-radius: 4px;
  
}






 /* Global scaling — affects all elements */
html {
  font-size: clamp(12px, 1.5vw, 18px);
}

/* Make all text responsive */
body, h1, h2, h3, h4, h5, h6, p, a, li, span {
  font-size: inherit;
  line-height: 1.2;
  word-break: break-word;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Navbar scaling */
.navbar {
  flex-wrap: wrap;
  gap: clamp(1em, 3vw, 5em);
  padding: clamp(0.5em, 2vw, 2em);
}

.navbar > ul, a {
  gap: clamp(1em, 3vw, 5em);
}

/* Hero & logo scaling */
.main-logo h1 {
  font-size: clamp(3rem, 10vw, 10em);
}

.slider-text-overlay h1 {
  font-size: clamp(2rem, 8vw, 5em);
}

.slider-text-overlay .images img {
  width: clamp(150px, 25vw, 300px);
}

/* Members & films section */
.member img {
  width: clamp(120px, 20vw, 15em);
}

.images img {
  width: clamp(10em, 25vw, 20em);
}

/* Buttons and links scaling */
.contact-buttons {
  flex-wrap: wrap;
  gap: clamp(1em, 3vw, 2em);
}

/* Responsive layout breakpoints */
@media (max-width: 1024px) {
  .header {
    margin-bottom: 40vh;
  }

  .still-wrapper img {
    width: 200px;
  }
}


@media (max-width: 990px) {
  .images {
    transform: scale(60%);
  }

.slider-nav {
  display: none;
}


}

@media (max-width: 768px) {
  .navbar-line {
    top: auto;
    position: relative;
    margin-top: 1em;
    width: 100%;
  }
  
  .navbar {
    flex-direction: column;
    height: auto;
  }

  .member-wrapper {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  
  
  .upcoming-films {
    flex-direction: column;
    align-items: center;
  }

  .films p, .slider-nav {
    display: none;
  }

  .images {
    transform: scale(60%);
    
    /* transform: translateY(0%); */
  }

}

@media (max-width: 480px) {

.slider-wrapper {
  height: 100vh;
}

.film-poster-container {
  transform: translateY(-120%)
}

.images {
  transform: scale(60%);
  
  /* transform: translateY(0%); */
}

.member-wrapper {
  gap: .2em;
}

.member {
  transform: scale(50%);
  
}


  .slider-text-overlay {
    padding-top: 5vh;
  }
  
  .about-us p {
    width: 80%;
    margin: 0 auto;
  }


  .still-wrapper {
    width: 20em;
  }
  
  .still-wrapper img {
    width: 150px;
    transform: translateY(20%);
  }


}