/* ===== Project detail — showcase extras (hero showcase, carousels, reels, video lightbox) ===== */

/* ----- Hero cover: blurred backdrop + full artwork on top (works for portrait & square posts) ----- */
.section1__cover--showcase .showcase__bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(40px) saturate(1.3) brightness(0.55);
  transform: none;
  animation: none;
}
.section1__cover--showcase .showcase__media {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(18px, 3vw, 44px) 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  transform: scale(1.12) translateY(var(--parallax, 0px));
  animation: pdZoom 2.4s var(--ease) 0.7s forwards;
}
.section1__cover--logo .project__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(47, 91, 255, 0.35), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(46, 232, 111, 0.2), transparent 50%),
    #121214;
}
.section1__cover--logo .project__placeholder img { width: min(46%, 420px); height: auto; object-fit: contain; transform: none; animation: none; }

/* ----- Gallery: 3 columns suits square/portrait social posts ----- */
.gallery { columns: 3; }
.gallery__item img { height: auto; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* ----- Carousels: horizontal swipe strips ----- */
.carousel { margin-top: clamp(40px, 5vw, 70px); }
.carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.carousel__title,
.reels__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.carousel__title span,
.reels__title span {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn:hover { background: var(--green); border-color: var(--green); color: var(--black); }
.carousel__btn:disabled { opacity: 0.3; pointer-events: none; }

.carousel__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 clamp(240px, 28vw, 380px);
  margin: 0;
  scroll-snap-align: start;
  /* always visible: iPhone Safari doesn't reliably report slides inside a sideways
     scroller as "on screen", so the gallery fade-in would leave them transparent */
  opacity: 1;
  transform: none;
  aspect-ratio: var(--slide-ratio, 4 / 5);   /* keeps its size before the image arrives; set per carousel by main.js */
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }

/* the carousel fades in as a whole instead */
.carousel { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.carousel.is-in { opacity: 1; transform: none; }
.carousel__count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.7);
  backdrop-filter: blur(6px);
}

/* ----- Reels & video grid (9:16) ----- */
.reels { margin-top: clamp(50px, 6vw, 90px); }
.reels__title { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.reels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.reel {
  margin: 0;
  aspect-ratio: 9 / 16;
  cursor: pointer;
}
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.reel:hover video { transform: scale(1.05); }
.reel__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s, opacity 0.4s;
}
.reel__play svg { width: 24px; height: 24px; margin-left: 3px; }
.reel:hover .reel__play { transform: scale(1.12); background: var(--green); color: var(--black); border-color: var(--green); }
.reel.is-playing .reel__play { opacity: 0; }

/* ----- Lightbox: video + prev/next ----- */
.lightbox video {
  display: none;
  max-width: 100%;
  max-height: 88vh;
  background: #000;
  cursor: auto;
}
.lightbox.is-video img { display: none; }
.lightbox.is-video video { display: block; }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  z-index: 2;
}
.lightbox__arrow svg { width: 20px; height: 20px; }
.lightbox__arrow:hover { background: var(--green); color: var(--black); border-color: var(--green); }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }
.lightbox__close { z-index: 2; }

@media (max-width: 560px) {
  .lightbox__arrow { top: auto; bottom: 20px; margin-top: 0; }
  .reels__grid { grid-template-columns: 1fr 1fr; }
}
