* {
  box-sizing: border-box;
}

    body, html {
      margin: 0;
      padding: 0;
      font-family: "Inter", sans-serif;
      background-color: #0d0d0d;
      color: #f0f0f0;
      scroll-behavior: smooth;
    }

      /* NAVIGATION */
    nav {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(10px);
      display: flex;
      justify-content: center;
      padding: 1rem 0;
      z-index: 1000;
    }

  nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
    }

    nav a:hover {
      color: #ccc;
    }

header h1 {
  text-align: center;
  padding: 2rem;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}




#portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 3rem;
}

/* --- COLUMN STYLES (Applies to all film types) --- */

/* Select all column types with a single rule */
.column.Feature.Films,
.column.TV.and.Online,
.column.Short.Films {
  /* Base size for large screens (3+ posters per row) */
  flex: 1 1 260px;
  max-width: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.column.Feature.Films:hover,
.column.TV.and.Online:hover,
.column.Short.Films:hover {
  transform: translateY(-6px);
}

/* Image styling */
.column.Feature.Films img,
.column.TV.and.Online img,
.column.Short.Films img {
  width: 100%;
  aspect-ratio: 182 / 268;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s ease;
}

/* Subtle zoom on hover */
.column.Feature.Films:hover img,
.column.TV.and.Online:hover img,
.column.Short.Films:hover img {
  transform: scale(1.05);
}


.filmtitle {
    text-align: center;
    padding: 2rem;
  color: #fff;
  letter-spacing: 2px;
}


/* OVERLAY STYLES (Applies to all columns) */
.middle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: background 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.text {
  text-align: left;
  color: #fff;
}

.text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.text p {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blurb3 {
text-align: center;
      font-size: 1.8rem;
  padding: 2rem;
  color: #fff;
  letter-spacing: 2px;
          font-weight: 600;
}

.blurb4 {
    
    text-align: justify;
    text-justify: inter-word;
    margin: 0.5em 0;
}

/* Show role on hover */
.column.Feature.Films:hover .text p,
.column.TV.and.Online:hover .text p,
.column.Short.Films:hover .text p {
  opacity: 0.8;
}

/* --- MEDIA QUERY FOR SMALL SCREENS (2 posters per row) --- */
@media (max-width: 600px) {
  #portfolio {
    padding: 1rem;
    gap: 16px; /* Reduce gap slightly for small screens */
  }

  /* Force all columns to fit 2 per row */
  .column.Feature.Films,
  .column.TV.and.Online,
  .column.Short.Films {
    /* 50% width minus half the new gap (16px / 2 = 8px) */
    flex: 1 1 calc(50% - 8px); 
    /* Set a small max-width to ensure they don't stretch too wide */
    max-width: 250px; 
  }
    
          nav {
    flex-wrap: nowrap; /* Forces links onto one line */
    justify-content: space-between; /* Use all available space */
    padding: 1rem 0.1rem; /* Ensure padding doesn't restrict space */
    width: 100%; /* Ensure nav container is full width */
  }

  nav a {

    margin: 0; 
    padding: 0 0.2rem;
    white-space: nowrap;
  }
    
}






/* --- Film detail improvements --- */

/* Center title and make it more prominent */
.filmtitle h1, .filmtitle h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  font-family: 'Inter', sans-serif;
}

/* Contain overall film layout */
.film-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Limit video width and center it */
.film-video-wrapper {
  max-width: 720px;
  margin: 0 auto 2rem;
}

/* Ensure embedded video scales correctly */
.film-video-wrapper iframe {
  width: 100%;
  height: auto;
  border: none;
  display: block;
}

/* Subtitle/meta info */
.blurb3 h6 {
  text-align: center;
  font-weight: 400;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Main blurb styling */
.blurb4 {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.blurb4 p {
  margin-bottom: 1rem;
}

/* Credit section formatting */
.film-credits {
  border-top: 1px solid #eee;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.95rem;
  color: #fff;
}
.film-credits p {
  margin: 0.3rem 0;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .filmtitle h1 {
    font-size: 1.8rem;
  }
  .film-video-wrapper {
    max-width: 100%;
  }
  .blurb4 {
    padding: 0 1rem;
  }
}
