/* ================================
   Poppins – self-hosted @font-face
   ================================ */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Poppins-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Poppins-LightItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Poppins-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Poppins-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Poppins-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Poppins-MediumItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Poppins-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Poppins-SemiBoldItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Poppins-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Poppins-BoldItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Poppins-ExtraBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Poppins-ExtraBoldItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/Poppins-Black.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/Poppins-BlackItalic.woff2') format('woff2');
}

/*  Now use it as your primary sans: */
body {
  font-family: 'Poppins', sans-serif;
}

/* General Body Styling */
body {
  font-weight: normal;
  margin: 20px;
  padding: 20px;
  background-color: white;
  opacity: 0; /* Start fully transparent */
  animation: fadeIn 2s ease-in-out forwards; /* Fade in animation */
}

@keyframes fadeIn {
  from {
    opacity: 0; /* Fully transparent */
  }
  to {
    opacity: 1; /* Fully visible */
  }
}

/* ---------------------------------
   1) Base Header + Video Styling
   --------------------------------- */
.header-video-container {
  position: relative;
  /* pull out the left/right “gutters” */
  width: calc(100% + 40px);
  margin: 0 -20px;
  height: 332px;
  overflow: hidden;
}

/* belt-and-suspenders: ensure no accidental borders/outlines */
.header-video-container,
.header-video-container video {
  border: none !important;
  outline: none !important;
  display: block;
}

.header-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 30vh;
}

.header-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  padding: 20px;
  border-radius: 10px;
  pointer-events: none; /* allow clicks on underlying elements */
}

.header-overlay h1 {
  font-family: 'Poppins', sans-serif; !important;
  font-size: 7.5em;
  margin: 0;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}

.header-overlay p {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2em;
  margin-top: 5px;
  line-height: 1.2;
}

/* Default desktop logo size */
.header-overlay img {
  display: block;
  width: 600px;
  max-width: 90%; /* caps size on very narrow desktops */
  height: auto;
  margin: 0 auto;
}

/* Global img/video scaling */
img, video {
  max-width: 100%; /* Scale down to fit the container */
  height: auto; /* Maintain aspect ratio */
}

/* Contact Info Styling */
.contact-info {
  text-align: center;
  margin: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  color: #444;
  font-weight: 200;
}

.contact-info a {
  color: #444;
  text-decoration: none;
  margin: 0 10px;
}

.contact-info span {
  color: #444;
  margin: 0 5px;
}

/* Lightbox for Bio */
#bio-lightbox {
  display: none;
  position: fixed;
  top: 50%; /* Start vertically centered */
  left: 50%; /* Start horizontally centered */
  transform: translate(-50%, -50%); /* Center both horizontally and vertically */
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto; /* Enable scrolling inside the Lightbox */
  padding: 20px; /* Add padding for better spacing */
}

/* Lightbox Content */
#bio-lightbox .lightbox-content {
  position: relative;
  width: 90%; /* Set width to fit smaller screens */
  max-width: 900px; /* Limit max width */
  max-height: 90%; /* Ensure height fits within the screen */
  background: #fff;
  padding: 15px; /* Adjust padding to avoid text cutoff */
  border-radius: 8px;
  text-align: justify;
  color: #333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto; /* Enable scrolling inside the Lightbox */
  box-sizing: border-box; /* Include padding and border in width calculations */
}


#bio-lightbox h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  margin-top: 0;
  font-size: 20px;
}

#bio-lightbox p {
    font-family: 'Poppins', sans-serif;
  font-weight: 200;
  font-size: 16px;
  line-height: 1.5;
}

#bio-lightbox .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* Fiction, Documentary etc Titles */
.title-section h2 {
font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #111;
}

.year {
  font-size: 1em;
  font-weight: 200;
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  color: #444;
        display: block;
        min-height: 25px; /* Ensures all rows align properly */
        width: 100%;
        margin-bottom: 5px;
}





/* Wrapper for thumbnail gallery with arrows */
.thumbnail-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  width: 100%;
  overflow: hidden;
}

/* Thumbnail scroller with hidden scrollbar */
.thumbnail-scroller {
  display: flex;
  gap: 15px;
  padding-bottom: 10px;
  width: 100%;
  overflow-x: scroll;
  scroll-behavior: smooth;
}

.thumbnail-scroller::-webkit-scrollbar {
  display: none;
}

/* Ensure the thumbnail-gallery displays groups and thumbnails in a single row */
.thumbnail-gallery {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  align-items: flex-start;
  white-space: nowrap;
}

/* Ensure the thumbnail group aligns properly */
.thumbnail-group {
  display: inline-block;
  width: max-content;
  text-align: center;
  margin-right: -10px;
  margin-top: 5px;
  position: relative;
}

/* Wrapper for each thumbnail with optional year */
.thumbnail-container {
  display: inline-block;
  width: 400px;
  margin-right: 10px;
  vertical-align: top;
  position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    display: none; /* Start hidden */
}

.thumbnail-container:hover .overlay {
    display: block; /* Show overlay on hover */
}

/* Thumbnail image styling */
.thumbnail {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border: 0px solid #ccc;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

/* Overlay text styling (your existing rule) */
.overlay-text {
  margin-top: 6px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #444;
  text-align: center;
  line-height: 1.3;   /* so the title & director lines have breathing room */
}

/* New: film title on its own line */
.overlay-text .film-title {
  display: block;
  font-weight: 500;
  /* font-size inherits from .overlay-text (16px) */
}

/* New: director name on its own line */
.overlay-text .director-name {
  display: block;
  font-weight: 300;
  font-size: 14px;    /* slightly smaller if you like */
  color: #666;        /* a touch lighter than the title */
  margin-top: 2px;
}



/*MANY WOUNDS - Not Available
/* Target only the .many-wounds container */
.many-wounds .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.many-wounds:hover .hover-image {
    opacity: 1 !important;
}

.many-wounds .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.many-wounds .thumbnail:hover {
  transform: none;
}


.many-wounds:hover .thumbnail {
    opacity: 0 !important;
}

/*DO IT FOR HER - Not Available
/* Target only the .doitforher container */
.doitforher .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.doitforher:hover .hover-image {
    opacity: 1 !important;
}

.doitforher .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.doitforher .thumbnail:hover {
  transform: none;
}


.doitforher:hover .thumbnail {
    opacity: 0 !important;
}


/*CHRIS BOUCHER - Not Available
/* Target only the .chrisboucher container */
.chrisboucher .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.chrisboucher:hover .hover-image {
    opacity: 1 !important;
}

.chrisboucher .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.chrisboucher .thumbnail:hover {
  transform: none;
}


.chrisboucher:hover .thumbnail {
    opacity: 0 !important;
}

/*SILENT NIGHT DEADLY NIGHT - Not Available
/* Target only the .silent-night container */
.silent-night .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.silent-night:hover .hover-image {
    opacity: 1 !important;
}

.silent-night .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.silent-night .thumbnail:hover {
  transform: none;
}


.silent-night:hover .thumbnail {
    opacity: 0 !important;
}

/*MOURIR EN VIE - Not Available
/* Target only the .mourir container */
.mourir .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.mourir:hover .hover-image {
    opacity: 1 !important;
}

.mourir .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.mourir .thumbnail:hover {
  transform: none;
}


.mourir:hover .thumbnail {
    opacity: 0 !important;
}


/*THE DETECTIVES - Not Available
/* Target only the .detectives container */
.detectives .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.detectives:hover .hover-image {
    opacity: 1 !important;
}

.detectives .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.detectives .thumbnail:hover {
  transform: none;
}


.detectives:hover .thumbnail {
    opacity: 0 !important;
}

/*MYSTERIES OF THE OUTDOORS - Not Available
/* Target only the .mysteries container */
.mysteries .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.mysteries:hover .hover-image {
    opacity: 1 !important;
}

.mysteries .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.mysteries .thumbnail:hover {
  transform: none;
}


.mysteries:hover .thumbnail {
    opacity: 0 !important;
}

/*BRAZIL UNTAMED - Not Available
/* Target only the .brazil container */
.brazil .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.brazil:hover .hover-image {
    opacity: 1 !important;
}

.brazil .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.brazil .thumbnail:hover {
  transform: none;
}


.brazil:hover .thumbnail {
    opacity: 0 !important;
}

/*PARCOMETRE BLUES - Not Available
/* Target only the .parcometre container */
.parcometre .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.parcometre:hover .hover-image {
    opacity: 1 !important;
}

.parcometre .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.parcometre .thumbnail:hover {
  transform: none;
}


.parcometre:hover .thumbnail {
    opacity: 0 !important;
}

/*CHASING MONSTERS - Not Available
/* Target only the .chasing container */
.chasing .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.chasing:hover .hover-image {
    opacity: 1 !important;
}

.chasing .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.chasing .thumbnail:hover {
  transform: none;
}


.chasing:hover .thumbnail {
    opacity: 0 !important;
}

/*WHEELS THAT FAIL - Not Available
/* Target only the .wheels container */
.wheels .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.wheels:hover .hover-image {
    opacity: 1 !important;
}

.wheels .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.wheels .thumbnail:hover {
  transform: none;
}


.wheels:hover .thumbnail {
    opacity: 0 !important;
}

/*RESTORATION GARAGE - Not Available
/* Target only the .restoration container */
.restoration .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.restoration:hover .hover-image {
    opacity: 1 !important;
}

.restoration .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.restoration .thumbnail:hover {
  transform: none;
}

.restoration:hover .thumbnail {
    opacity: 0 !important;
}

/*LICENSE TO DRILL - Not Available
/* Target only the .license container */
.license .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.license:hover .hover-image {
    opacity: 1 !important;
}

.license .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.license .thumbnail:hover {
  transform: none;
}

.license:hover .thumbnail {
    opacity: 0 !important;
}

/*VICE ESSENTIALS - Not Available
/* Target only the .vice container */
.vice .thumbnail {
  transition: opacity 0.5s ease;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  top: 0;
  left: 0;
  display: block; /* Prevent inline spacing issues */
}

.vice:hover .hover-image {
    opacity: 1 !important;
}

.vice .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.vice .thumbnail:hover {
  transform: none;
}

.vice:hover .thumbnail {
    opacity: 0 !important;
}





/* Arrows styling */
.arrow {
  display: flex; /* Make arrows visible */  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Background overlay for Lightbox */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 999;
  pointer-events: none;
}

.background-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Lightbox styling */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  z-index: 1001;
}

.lightbox-content video {
  width: 100%;
  height: auto;
  border: 2px solid white;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

/* Remove border and shadow in full-screen mode */
.lightbox-content video:fullscreen {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* For webkit browsers (Safari, older Chrome versions) */
.lightbox-content video:-webkit-full-screen {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Default close button styling (hidden) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  }

/* ==============
   Banner Logo & Poster Swap
   ============== */

/* Base: let the logo size by viewport or fall back to max-width */
.header-overlay img {
  display: block;
  max-width: 90%;     /* prevents overflow on very small screens */
  height: auto;
  margin: 0 auto;
}

/* 1) Phone only (<768px): 500px logo, move 37% down & shrink banner height ~30% */
@media only screen and (max-width: 767px) {
  /* shrink the banner container by ~30% (332px → ~230px) */
  .header-video-container {
    height: 170px !important;
  }

  /* center the overlay container a bit higher */
  .header-overlay {
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* force the logo to 500px on phones */
  .header-overlay img {
    width: 500px !important;
    max-width: none !important;
  }

  /* swap out video for poster on phones */
  .header-video {
    display: none !important;
  }
  .header-poster {
    display: block !important;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* 2) Tablet (768–1024px): intermediate logo size */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* slightly smaller responsive logo on tablets */
  .header-overlay img {
    width: 700px !important;
    max-width: none !important;
  }
}

/* 3) Desktop (>1024px): big logo */
@media only screen and (min-width: 1025px) {
  .header-overlay img {
    width: 900px !important;
    max-width: none !important;
  }
}

/* Poster image styling (hidden on desktop, shown on phone) */
.header-poster {
  display: none;           /* hide by default (desktop) */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================
   Hide thumbnail scroll arrows on phones (<768px)
   ============================================== */
@media only screen and (max-width: 767px) {
  /* target both left & right buttons inside your scrollers */
  .thumbnail-wrapper .arrow {
    display: none !important;
  }
}

/* ==============================================
   Portrait thumbnails on phones (<768px wide)
   ============================================== */
@media only screen and (max-width: 767px) {
  /* shrink each thumb to ~70% (200→140) */
  .thumbnail-container {
    width: 145px !important;
    margin-right: 7px !important; /* 10px × 0.7 */
  }

  /* force 140×280 portrait crop */
  .thumbnail {
    width: 100% !important;      /* 100% of the new 140px container */
    height: 280px !important;     /* 400×0.7 */
    object-fit: cover;
  }

  /* ensure the scroller shows multiple thumbs */
  .thumbnail-scroller {
    gap: 10px; /* tighten gap if needed */
    padding-bottom: 0;
  }

  /* (optional) reduce arrow size or hide them on phone */
  .arrow {
    display: none !important;
  }
}

/* ======================================================
   Prevent overly long titles from overflowing on phones
   ====================================================== */
@media only screen and (max-width: 767px) {
  /* wrap long words if absolutely necessary */
  .overlay-text {
    overflow-wrap: break-word;
    word-break: break-word;
    /* slightly smaller text so more fits horizontally */
    font-size: 14px; /* down from 16px */
  }

  /* allow both title and director to wrap onto as many lines as needed */
  .overlay-text .film-title,
  .overlay-text .director-name {
    display: block;
    white-space: normal !important;       /* let line-breaks occur */
    overflow: visible !important;         /* don’t clip */
    text-overflow: clip !important;       /* no “…” */
    overflow-wrap: break-word;            /* break long words if needed */
    word-break: break-word;               /* ensure wrap on very long strings */
  }
}

/* ==========================================================================
   Contact-links hover “magnify” effect on desktop only
   ========================================================================== */
@media only screen and (min-width: 769px) {
  .contact-info a {
    display: inline-block;               
    transition: transform 0.2s ease-in-out;
  }
  .contact-info a:hover {
    transform: scale(1.1);               
  }
}


/* ---------- Preview placeholders (hover-only, no PNGs) ---------- */
.thumbnail-container.preview-soon,
.thumbnail-container.preview-na {
  position: relative; /* context for ::before */
}

/* hidden by default */
.thumbnail-container.preview-soon::before,
.thumbnail-container.preview-na::before {
  position: absolute;
  left: 0;
  right: 0;

  /* anchor to the image area, not the container */
  top: var(--thumb-top, 0px);
  height: var(--thumb-h, 225px);   /* fallback; real height set via JS */

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* KEY: allow \A to create a line break */
  white-space: pre-line;           /* <— add this */
  line-height: 1.25;               /* optional, nicer spacing */

  font-family: 'Poppins', 'Gilroy', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--year-color, #444);
  background: #fff;
  z-index: 2;
  pointer-events: none;

  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
}

/* label text per state */
.thumbnail-container.preview-soon::before { content: "Preview\A Coming Soon"; }
.thumbnail-container.preview-na::before   { content: "Preview\A Not Available"; }

/* show on hover (desktop) */
.thumbnail-container.preview-soon:hover::before,
.thumbnail-container.preview-na:hover::before {
  opacity: 1;
  visibility: visible;
}

/* never show old PNG overlays */
.thumbnail-container .hover-image { display: none !important; }



/* ===== Bio Lightbox (NEW) ===== */
:root {
  --bio-card: #141414;
  --bio-text: #e8e8e8;
  --bio-overlay: rgba(0,0,0,0.6);
  --bio-radius: 16px;
  --bio-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.bio-lightbox {
  position: fixed;
  inset: 0;
  display: grid;                 /* keep in flow so transitions work */
  place-items: center;
  z-index: 1000;
  pointer-events: none;          /* disabled when hidden */
  opacity: 0;                    /* hidden by default */
  transition: opacity .25s ease; /* fade container (including overlay) */
}
.bio-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.bio-lightbox[aria-hidden="false"] { display: grid; }
.bio-lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0; /* behind dialog, above page */
  background: rgba(0,0,0,0.80);  /* stronger dim */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity .25s ease; /* fade the dim layer too */
}
.bio-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  height: min(88vh, 1000px);
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
} /* ensure modal sits above overlay */

.bio-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  height: min(88vh, 1000px);
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  height: min(88vh, 1000px);
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.bio-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.5;
}
.bio-close:hover,
.bio-close:focus-visible { opacity: 0.75; outline: none; }

.bio-left {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.8) 100%), #0f0f0f;
}
.bio-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.bio-right {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.bio-right h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 6px 0;
  color: var(--bio-text);
}
.bio-copy {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--bio-text);
  padding-right: 12px;
}

/* Hide scrollbar but keep scroll functionality */
.bio-copy {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bio-copy::-webkit-scrollbar { display: none; }

/* Lock page scroll when lightbox is open */
body.bio-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .bio-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  height: min(88vh, 1000px);
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
  .bio-left { height: 42vh; }
}


/* Ensure light text inside the bio modal */
.bio-right, .bio-right h2, .bio-right p, .bio-copy, .bio-copy p, .bio-copy em, .bio-copy a {
  color: #e8e8e8 !important;
}
.bio-copy a { text-decoration: underline; }



/* Solid black card behind content */
.bio-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  height: min(88vh, 1000px);
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Keep columns clean */
.bio-right, .bio-left { background-color: transparent; }
.bio-right, .bio-right h2, .bio-right p, .bio-copy { color: #e8e8e8 !important; }


/* ===== Bio Lightbox (modern) ===== */
.bio-lightbox {
  position: fixed;
  inset: 0;
  display: grid;                 /* needed for fade transitions */
  place-items: center;
  z-index: 1000;
  pointer-events: none;          /* disabled when hidden */
  opacity: 0;                    /* hidden by default */
  transition: opacity .25s ease; /* fade container */
}
.bio-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* Dimmed/blurred site backdrop */
.bio-lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;                    /* beneath dialog, above page */
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .25s ease;
}

/* Modal card */
.bio-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  height: min(88vh, 1000px);
  background: #000;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.bio-lightbox[aria-hidden="false"] .bio-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.bio-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.55;
}
.bio-close:hover,
.bio-close:focus-visible { opacity: 0.75; outline: none; }

/* Columns */
.bio-left {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.8) 100%), #0f0f0f;
}
.bio-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;           /* preserve LS framing */
  object-position: top center;
}

.bio-right {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.bio-right h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 6px 0;
  color: #e8e8e8;
}
.bio-copy {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: #e8e8e8;
  padding-right: 12px; /* width stable on iOS */
}

/* Hide scrollbar but keep scroll functionality */
.bio-copy {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge legacy */
}
.bio-copy::-webkit-scrollbar {    /* Chrome/Safari/WebKit */
  display: none;
}

/* Lock page scroll when lightbox is open */
body.bio-modal-open { overflow: hidden; }

/* ===== Mobile polish (forced, to beat old rules) ===== */
@media (max-width: 820px) {
  html { -webkit-text-size-adjust: 100%; } /* stop iOS auto-zooming text */

  .bio-dialog {
    grid-template-columns: 1fr !important;
    width: 92vw !important;
    max-width: 560px !important;
    height: 92vh !important;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .bio-left {
    height: 40vh !important;
  }
  .bio-left img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: top center !important;
  }

  .bio-right {
    padding: 16px !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  .bio-right h2 {
    font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
    margin: 0 0 4px 0 !important;
  }

  .bio-copy {
    flex: 1 1 auto !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: clamp(0.98rem, 3.6vw, 1.05rem) !important;
    line-height: 1.6 !important;
    padding-right: 8px !important;
  }

  .bio-close {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    right: 8px !important;
    width: 36px !important; height: 36px !important;
    opacity: 0.55 !important;
    z-index: 5 !important;
  }
/* Show captions for preview cards (desktop & mobile) */
.thumbnail-container.preview-na .overlay-text .film-title,
.thumbnail-container.preview-na .overlay-text .director-name,
.thumbnail-container.preview-soon .overlay-text .film-title,
.thumbnail-container.preview-soon .overlay-text .director-name {
  display: block !important;
}

/* Use an absolute ::before card INSIDE the thumbnail area (no layout shift) */
.thumbnail-container { position: relative; }

.thumbnail-container.preview-soon::before,
.thumbnail-container.preview-na::before {
  /* default text; NA version overridden below */
  content: "Preview\A Coming Soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-line;   /* let \A make a new line */
  text-align: center;
  line-height: 1.25;

  /* edge-to-edge white fill (no visible edges) */
  padding: 0 !important;
  background: #fff;
  color: #333;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;

  pointer-events: none;
  z-index: 2;
}

.thumbnail-container.preview-na::before {
  content: "Preview\A Not Available";
}

/* Remove the old hover-based caption injection that caused shifting */
.thumbnail-container.preview-na:hover .overlay-text,
.thumbnail-container.preview-soon:hover .overlay-text,
.thumbnail-container.preview-na:hover .overlay-text::before,
.thumbnail-container.preview-soon:hover .overlay-text::before {
  all: unset !important;
}

/* === Step #2: lock caption typography on mobile so tap/hover doesn't resize it === */
@media (max-width: 820px){
  /* keep caption in normal block flow on tap */
  .thumbnail-container.preview-soon:hover .overlay-text,
  .thumbnail-container.preview-na:hover .overlay-text{
    display: block !important;
  }

  /* stop any card/thumbnail hover scale/filters that could “enlarge” the caption */
  .thumbnail:hover,
  .thumbnail-container.preview-soon:hover,
  .thumbnail-container.preview-na:hover,
  .thumbnail-container.preview-soon:hover .thumbnail,
  .thumbnail-container.preview-na:hover .thumbnail,
  .thumbnail-container.preview-soon:hover .overlay-text,
  .thumbnail-container.preview-na:hover .overlay-text{
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
    transition: none !important;
  }

  /* iOS Safari: prevent automatic text size boosting */
  .thumbnail-container .overlay-text,
  .thumbnail-container .overlay-text .film-title,
  .thumbnail-container .overlay-text .director-name{
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  /* hard-lock caption sizes on mobile */
  .thumbnail-container .overlay-text .film-title{
    font-size: 16px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    font-weight: inherit !important;
  }
  .thumbnail-container .overlay-text .director-name{
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    font-weight: inherit !important;
  }

  /* even on tap/hover, keep those exact sizes */
  .thumbnail-container.preview-soon:hover .overlay-text .film-title,
  .thumbnail-container.preview-na:hover   .overlay-text .film-title{
    font-size: 16px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    transform: none !important;
    transition: none !important;
  }
  .thumbnail-container.preview-soon:hover .overlay-text .director-name,
  .thumbnail-container.preview-na:hover   .overlay-text .director-name{
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    transform: none !important;
    transition: none !important;
  }
/* Lock the caption gap for preview cards on mobile */
@media (max-width: 820px){
  .thumbnail-container.preview-soon .overlay-text,
  .thumbnail-container.preview-na   .overlay-text,
  .thumbnail-container.preview-soon:hover .overlay-text,
  .thumbnail-container.preview-na:hover   .overlay-text{
    margin-top: 6px !important;  /* match the base rule */
    padding-top: 0 !important;
    transform: none !important;
  }
}  /* <-- closes the @media block */