/* PROJECT PAGES */
.project-hero { padding: 140px 48px 64px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.project-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--burgundy); text-decoration: none; margin-bottom: 28px; transition: gap var(--transition); }
.project-back:hover { gap: 10px; }
.project-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 12px; }
.project-hero h1 { color: var(--dark); margin-bottom: 10px; }
.project-tagline { font-size: 1rem; color: var(--text-soft); margin-bottom: 22px; font-style: italic; font-family: var(--font-display); }
.project-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.meta-val { font-size: 13px; font-weight: 500; color: var(--dark); }
.project-hero-img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; background: var(--rose); }
.project-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.project-content { max-width: 1100px; margin: 0 auto; padding: 16px 48px 100px; }
.content-section { margin-bottom: 64px; }
.content-label {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; font-style: italic;
  color: var(--dark); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(103,15,12,0.12); display: block;
}
.content-note { font-size: 12.5px; color: var(--text-soft); font-style: italic; margin: 6px 0 14px; }

/* ============================================================
   GRID SYSTEM — same as pihufolioo:
   Standard CSS grid, all images same height per row (object-fit cover),
   consistent row heights, no masonry, no columns breaking.
   ============================================================ */

.img-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

/* Default: 3 columns */
.img-grid { grid-template-columns: repeat(3, 1fr); }
.img-grid.g1 { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }
.img-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.img-grid.g4 { grid-template-columns: repeat(4, 1fr); }

/* All image cells: IDENTICAL height, cover crop */
.proj-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--rose);
  aspect-ratio: 4/3;     /* every cell exactly the same */
  cursor: pointer;
  position: relative;
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}
.proj-img:hover img { transform: scale(1.03); }
.proj-img::after {
  content: '⊕';
  position: absolute; bottom: 8px; right: 10px;
  color: white; font-size: 16px; opacity: 0;
  transition: opacity 0.25s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.proj-img:hover::after { opacity: 1; }

/* Videos — 16:9, same border-radius, NOT forced into a column grid */
.proj-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16/9;
  cursor: pointer;
  position: relative;
  margin-bottom: 8px;
}
.proj-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Side-by-side videos */
.video-row { display: flex; gap: 8px; margin-bottom: 8px; }
.video-row .proj-video { flex: 1; margin-bottom: 0; aspect-ratio: 16/9; }

/* Hover play button on videos */
.proj-video::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.proj-video:hover::before { background: rgba(0,0,0,0.15); }
.proj-video::after {
  content: '▶';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white; font-size: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  line-height: 52px; text-indent: 3px;
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none; z-index: 2;
}
.proj-video:hover::after { opacity: 1; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(16,14,14,0.95); z-index: 9000; align-items: center; justify-content: center; padding: 20px; cursor: pointer; }
.lightbox.open { display: flex; }
.lb-inner { max-width: 92vw; max-height: 90vh; cursor: default; position: relative; }
.lb-inner img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-lg); display: block; box-shadow: 0 32px 80px rgba(0,0,0,0.7); }
.lb-inner video { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-lg); display: block; }
.lightbox-close { position: absolute; top: -40px; right: 0; color: rgba(255,246,234,0.8); font-size: 28px; cursor: pointer; background: none; border: none; font-family: sans-serif; line-height: 1; }

.project-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 48px; border-top: 1px solid rgba(103,15,12,0.1); margin-top: 24px; }

@media (max-width: 820px) {
  .project-hero { grid-template-columns: 1fr; gap: 36px; padding: 120px 20px 48px; }
  .project-content { padding: 16px 20px 72px; }
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .img-grid.g1 { grid-template-columns: 1fr; max-width: 100%; }
  .img-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .video-row { flex-direction: column; }
}
