/* ============================================================
   NEXT-LEVEL GEMS — hero overrides (Figma 480:33478)
   Dark page (reuses project.css). Hero = sticky behaviour with
   tag chips (bottom-left) + white "See the work" CTA (bottom-right),
   same pattern as Jan / Ranketta / VUT. Gem image carries a baked
   bottom fade into black. Self-contained (.gems-hero).
   ============================================================ */

.gems-hero { background: #000000; }

.gems-hero__tags {
  position: absolute;
  bottom: 54px;
  left: var(--page-padding);
  display: flex;
  gap: 9px;
  z-index: 3;
  pointer-events: none;
}
.gems-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: auto;
}

.gems-hero .proj-hero__cta {
  top: auto;
  bottom: 54px;
  left: auto;
  right: var(--page-padding);
  background-color: #ffffff;
  color: #1d1d1f;
}
.gems-hero .proj-hero__cta:hover {
  background-color: #ffffff;
  color: #1d1d1f;
  transform: translateY(-2px);
}

@media (max-width: 1023px) {
  .gems-hero__tags { position: static; margin: 16px 0 0; flex-wrap: wrap; }
  .gems-hero .proj-hero__cta { position: static; margin-top: 16px; }
}

/* ============================================================
   GEMS — video lightbox (click reel → enlarged + sound + scrub)
   Mirrors the Spider pattern. Cards become clickable, with a
   small sound badge; only the opened video plays with audio.
   ============================================================ */
.proj-grid__card--clickable { position: relative; cursor: pointer; }

.video-sound {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5); border-radius: 50%;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; z-index: 2; pointer-events: none;
  transition: background 0.2s var(--ease-out);
}
.proj-grid__card--clickable:hover .video-sound { background: rgba(0, 0, 0, 0.78); }

.video-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-out);
}
.video-lightbox.is-open { opacity: 1; visibility: visible; }
.video-lightbox__video {
  max-width: 100%; max-height: 90vh;
  border-radius: 12px; background: #000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.video-lightbox__close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.video-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

/* ============================================================
   GEMS — Projects masonry (Figma 540:19241)
   Reels stay 9:16 (lightbox via .proj-grid__card video); the two
   mockup cards span wider. align-items:start = masonry rhythm.
   ============================================================ */
.gems-masonry { align-items: start; column-gap: 22px; row-gap: 44px; }
.gems-masonry .proj-item--span2 { grid-column: span 2; }
.gems-masonry .proj-item--span3 { grid-column: span 3; }
.gems-masonry .proj-item--span2 .proj-grid__card { aspect-ratio: 703 / 468; }
.gems-masonry .proj-item--span3 .proj-grid__card { aspect-ratio: 1067 / 533; }
.gems-masonry .proj-item--span2 .proj-grid__media,
.gems-masonry .proj-item--span3 .proj-grid__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 1023px) {
  .gems-masonry .proj-item--span2,
  .gems-masonry .proj-item--span3 { grid-column: 1 / -1; }
}
