/* =========================================
   PROJECT PAGE SPECIFIC STYLES
   (Link this AFTER style.css)
   ========================================= */

/* --- 1. Project Hero Section --- */
.project-hero {
  height: 75vh; /* Large cinematic start */
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end; /* Pushes text to bottom */
  padding: 0 5vw 80px;
  margin-top: 60px; /* Offset for Fixed Nav */
}

.top-nav {
  right: 20px;
  top: 20px; /* Adjusted for better spacing */
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-media img, 
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
}

.project-title-box {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

.project-meta {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #ccc;
  text-transform: uppercase;
}

.project-title-box h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
  color: #fff;
}

/* --- 2. The Editorial Grid Layout --- */
.project-container {
  display: grid;
  /* Columns: Text(30%) | Gap | Images(60%) | Gap | Deco(Tiny) */
  grid-template-columns: 3fr 6fr 0.5fr; 
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
}


/* Left Column: Sticky Information */
.sticky-col {
  /* This enables the stickiness */
  height: 100%; 
}

.info-wrapper {
  position: sticky;
  top: 80px; /* Stops 150px from top of screen */
  padding-right: 20px;
}

.info-wrapper h2 {
  font-family: "Bodoni Moda", serif;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.info-wrapper p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 30px;
}

/* Credits Box */
.credits-list {
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.credits-list h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #666;
  font-family: "Inter", sans-serif;
}

.credits-list ul {
  list-style: none;
}

.credits-list li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  color: #999;
  display: flex;
  justify-content: space-between; /* Spreads Role and Name */
}

.credits-list strong {
  color: #fff;
  font-weight: 500;
}

/* Right Column: Scrolling Gallery */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Space between gallery items */
}

.gallery-item {
  width: 100%;
}

.gallery-item img, 
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}

/* Row for two smaller images */
.gallery-row {
  display: flex;
  gap: 20px;
}

.gallery-item.half {
  flex: 1;

  .codpod-video {
  /* This is a special class for the CODPOD video to make it taller */
  grid-row: span 2; /* Makes it span 2 rows, making it taller */
}
}


.caption {
  display: block;
  font-size: 0.75rem;
  color: #555;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Vertical Decorative Text (Right side) */
.vertical-deco {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg); 
  position: sticky;
  top: 150px;
  height: fit-content;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: #333;
  text-transform: uppercase;
  text-align: center;
}

/* --- 3. Next Project Footer (Overrides Global Footer) --- */
.next-project-link {
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #222;
  background: #000;
  text-decoration: none;
  text-align: center;
  transition: background 0.5s ease;
}

.next-project-link:hover {
  background: #0a0a0a;
}

.next-project-link:hover h2 {
  transform: scale(1.05);
}

.next-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
}

.next-project-link h2 {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  text-transform: uppercase;
  transition: transform 0.5s ease;
}

/* Animation Keyframe */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .project-container {
    grid-template-columns: 1fr; /* Stack into 1 column */
    padding-top: 60px;
  }
  
  /* Disable sticky on mobile */
  .info-wrapper {
    position: relative;
    top: 0;
    margin-bottom: 40px;
    padding-right: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 40px;
  }

  /* Hide vertical text on mobile */
  .vertical-deco {
    display: none;
  }
}