/* Dedicated Project Detail Pages — Editorial Cinema Aesthetic */

.project-page{
  padding:100px 24px 60px;
  max-width:1320px;
  margin:0 auto;
}

.project-breadcrumb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 18px;
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--bone);
  margin-bottom:28px;
  transition:transform .2s ease, background .2s ease;
}
.project-breadcrumb:hover{
  transform:translateX(-3px);
  background:rgba(242,239,233,.22);
}

.project-intro{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:32px;
  flex-wrap:wrap;
  margin-bottom:36px;
  border-bottom:1px solid var(--bone-line);
  padding-bottom:28px;
}
.project-intro-main{
  max-width:820px;
}
.project-intro-main small{
  display:block;
  margin-bottom:10px;
  font-size:.7rem;
  letter-spacing:.14em;
  color:var(--bone-muted);
}
.project-intro-main h1{
  font-size:clamp(2.4rem,6vw,4.5rem);
  line-height:.98;
  letter-spacing:-.02em;
}

.project-meta-chips{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.project-meta-chips div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.project-meta-chips span{
  color:var(--bone-muted);
  font-size:.62rem;
}
.project-meta-chips strong{
  color:var(--bone);
  font-weight:600;
}

/* Featured Media Section — Fill The Frame */
.featured-media{
  width:100%;
  height:54vh;
  min-height:360px;
  max-height:640px;
  border-radius:18px;
  overflow:hidden;
  background:#070706;
  border:1px solid rgba(242,239,233,.14);
  box-shadow:0 24px 70px rgba(0,0,0,.65);
  margin-bottom:44px;
  position:relative;
}
.featured-media video,
.featured-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 25%;
  background:#070706;
}
.featured-media.ar-4-3{aspect-ratio:4/3;height:auto;min-height:0;max-height:none}
.featured-media.ar-16-9{aspect-ratio:16/9;height:auto;min-height:0;max-height:none}
.featured-media.ar-4-3 video,
.featured-media.ar-4-3 img,
.featured-media.ar-16-9 video,
.featured-media.ar-16-9 img{
  width:100%;
  height:100%;
}

/* Editorial Story Section */
.project-story{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:48px;
  align-items:start;
  margin-bottom:64px;
  padding:32px 0;
  border-bottom:1px solid var(--bone-line);
}
.project-story-lead{
  font-family:var(--font-display);
  font-size:clamp(1.15rem,1.8vw,1.45rem);
  line-height:1.48;
  color:var(--bone);
  font-weight:400;
}
.project-story-lead strong{
  font-weight:800;
}
.project-story-meta{
  display:flex;
  flex-direction:column;
  gap:16px;
  font-family:var(--font-mono);
  font-size:.78rem;
  line-height:1.6;
  color:var(--bone-muted);
}
.project-story-meta h4{
  font-family:var(--font-display);
  font-size:.86rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--bone);
  margin-bottom:4px;
}

/* Secondary Video Grid (for multi-video projects like Gym and Reception cuts) */
.video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:20px;
  margin-bottom:60px;
}
.video-card{
  border-radius:14px;
  overflow:hidden;
  background:#070706;
  border:1px solid rgba(242,239,233,.12);
  display:flex;
  flex-direction:column;
}
.video-card video{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#000;
  display:block;
}
.video-card.vertical video{
  aspect-ratio:9/16;
  max-height:560px;
  object-fit:cover;
}
.video-card-info{
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.video-card-info h3{
  font-size:.85rem;
  letter-spacing:.04em;
}

/* Photo Gallery & Stills Masonry */
.gallery-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.gallery-head h2{
  font-size:clamp(1.5rem,3.2vw,2.4rem);
}
.gallery-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.gallery-filter-btn{
  padding:8px 16px;
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--bone-muted);
  cursor:pointer;
  transition:.25s ease;
  background:rgba(242,239,233,.08);
  border:1px solid rgba(242,239,233,.2);
}
.gallery-filter-btn:hover{
  color:var(--bone);
  border-color:rgba(242,239,233,.45);
}
.gallery-filter-btn.active{
  background:var(--bone);
  color:var(--bg);
  border-color:var(--bone);
  font-weight:600;
}

/* Bento Masonry Grid — Zero Cropping (Natural Aspect Ratios) */
.gallery-bento{
  column-count:3;
  column-gap:16px;
  margin-bottom:72px;
}
.gallery-bento .gallery-item{
  break-inside:avoid;
  margin-bottom:16px;
  border-radius:14px;
  overflow:hidden;
  background:#070706;
  border:1px solid rgba(242,239,233,.1);
  position:relative;
  cursor:pointer;
  transition:border-color .3s ease, transform .3s ease;
}
.gallery-bento .gallery-item:hover{
  border-color:rgba(242,239,233,.38);
  transform:translateY(-2px);
}
.gallery-bento .gallery-item img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  border-radius:13px;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.gallery-bento .gallery-item:hover img{
  transform:scale(1.02);
}
.gallery-bento .gallery-item.hidden{
  display:none;
}
.gallery-bento .item-badge{
  position:absolute;
  bottom:10px;
  left:12px;
  padding:4px 10px;
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:.6rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--bone);
  background:rgba(11,11,10,.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(242,239,233,.2);
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}
.gallery-bento .gallery-item:hover .item-badge{
  opacity:1;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:16px;
  margin-bottom:72px;
}
.gallery-item{
  border-radius:12px;
  overflow:hidden;
  background:#070706;
  position:relative;
  cursor:pointer;
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.gallery-item:hover img{
  transform:scale(1.03);
}

@media(max-width:960px){
  .gallery-bento{column-count:3;column-gap:10px}
  .gallery-bento .gallery-item{margin-bottom:10px}
}
@media(max-width:640px){
  .gallery-bento{
    column-count:2;
    column-gap:8px;
    margin-bottom:40px;
  }
  .gallery-bento .gallery-item{
    margin-bottom:8px;
    border-radius:8px;
  }
  .gallery-bento .gallery-item img{
    border-radius:7px;
  }
  .gallery-bento .item-badge{
    opacity:1;
    font-size:.52rem;
    padding:2px 6px;
    bottom:6px;
    left:6px;
  }
}

/* Pagination / Next Project Bar */
.project-pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:40px 0;
  border-top:1px solid var(--bone-line);
  margin-top:40px;
  flex-wrap:wrap;
}
.pagination-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:.76rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--bone);
  transition:.25s ease;
}
.pagination-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(242,239,233,.18);
}
.pagination-btn.next{
  background:var(--bone);
  color:var(--bg);
  font-weight:600;
}

/* Lightbox overlay for clicking on still photos in project pages */
.photo-lightbox{
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(11,11,10,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.photo-lightbox.open{
  opacity:1;
  pointer-events:auto;
}
.photo-lightbox img{
  max-width:94vw;
  max-height:92vh;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 24px 80px rgba(0,0,0,.85);
}
.photo-lightbox-close{
  position:absolute;
  top:24px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:1.1rem;
}

@media(max-width:840px){
  .project-page{padding:80px 12px 36px}
  .project-intro{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:24px}
  .featured-media{height:46vh;min-height:260px;max-height:440px;margin-bottom:24px}
  .featured-media img, .featured-media video{width:100%;height:100%;object-fit:cover;object-position:center 25%}
  .featured-media.ar-4-3{aspect-ratio:4/3;height:auto;min-height:0;max-height:none}
  .gallery-head{margin-bottom:16px}
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:40px}
  .gallery-item{border-radius:8px}
  .video-grid{grid-template-columns:1fr;gap:14px}
}
