/* ==========================================================================
   BRAND DESIGNS & GRAPHIC SHOWREEL (Pixieset Masonry Showcase)
   Design DNA: Matthew Obanla Technical Blueprint & Fluid Editorial Wall
   ========================================================================== */

/* Page container */
.showreel-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   1. Showreel Layout Wrapper (Full-Width Viewport)
   -------------------------------------------------------------------------- */
.showreel-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1rem 0 5rem !important;
  box-sizing: border-box !important;
}

.showreel-content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Category Title & Sliding Navigation Track */
.category-header-wrap {
  width: min(1140px, 92vw);
  margin: 0.8rem auto 2.2rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-sizing: border-box;
  overflow: hidden;
}

.category-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.category-slider-track {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 3.5vw, 3.2rem);
  width: max-content;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  padding: 0.2rem 0;
}

.category-slide-item {
  font-family: var(--font-display, 'Archivo', sans-serif);
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-color);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  user-select: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.category-slide-item.is-active {
  opacity: 1;
  color: var(--text-color);
  cursor: default;
  pointer-events: none;
}

.category-slide-item.is-inactive {
  opacity: 0.22;
  color: var(--text-color);
  cursor: pointer;
}

.category-slide-item.is-inactive:hover {
  opacity: 0.92;
  color: var(--accent, #FA9E1C);
  transform: translateX(4px);
}

.category-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.category-meta-kicker {
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  color: var(--muted-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  transition: opacity 0.25s ease;
}

.category-step-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  background: color-mix(in srgb, var(--line) 40%, transparent);
  border: 1px solid var(--line);
  color: var(--muted-color);
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-step-btn:hover {
  background: color-mix(in srgb, var(--accent, #FA9E1C) 15%, transparent);
  border-color: var(--accent, #FA9E1C);
  color: var(--text-color);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. Dense Full-Bleed Masonry Gallery Wall (Edge-to-Edge Fluid with 4px Gutter)
   -------------------------------------------------------------------------- */
.showreel-wall-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 4px 6rem 4px !important;
  box-sizing: border-box !important;
}

/* Dense Fluid Showcase Wall (Edge-to-Edge Fluid Grid) */
.showreel-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 2200px) {
  .showreel-masonry {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4px;
  }
}

@media (max-width: 1200px) {
  .showreel-masonry {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .showreel-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
  .showreel-wall-container {
    padding: 0 3px 5rem 3px !important;
  }
}

@media (max-width: 480px) {
  .showreel-masonry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Masonry Item Block */
.masonry-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  border-radius: 2px;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 40%, #111114);
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 300px 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Video Reels (9:16 Vertical Ratio) */
.masonry-item.is-video-card {
  aspect-ratio: 9 / 16;
  height: auto;
}

/* Brand Designs & Photography Showcase (True Uncropped Full-Size Masonry) */
.showreel-masonry.category-brand,
.showreel-masonry.category-photography {
  display: block;
  column-count: 4;
  column-gap: 6px;
  width: 100%;
}

@media (min-width: 2200px) {
  .showreel-masonry.category-brand,
  .showreel-masonry.category-photography {
    column-count: 5;
    column-gap: 8px;
  }
}

@media (max-width: 1400px) {
  .showreel-masonry.category-brand,
  .showreel-masonry.category-photography {
    column-count: 3;
    column-gap: 6px;
  }
}

@media (max-width: 860px) {
  .showreel-masonry.category-brand,
  .showreel-masonry.category-photography {
    column-count: 2;
    column-gap: 4px;
  }
}

@media (max-width: 520px) {
  .showreel-masonry.category-brand,
  .showreel-masonry.category-photography {
    column-count: 1;
    column-gap: 0;
  }
}

.category-brand .masonry-item,
.category-photography .masonry-item,
.masonry-item.is-photo-card,
.masonry-item.is-brand-card {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 6px;
  width: 100%;
  height: auto !important;
  aspect-ratio: unset !important;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 40%, #111114);
}

.category-brand .masonry-img,
.category-photography .masonry-img,
.masonry-item.is-photo-card .masonry-img,
.masonry-item.is-brand-card .masonry-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
}

.masonry-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.masonry-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item:hover .masonry-img {
  transform: scale(1.02);
}

/* Card Hover Overlay */
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.65rem;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

/* Floating Interactive Like Pill Button */
.masonry-like-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #F4F4F5;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.masonry-like-btn:hover {
  transform: scale(1.08);
  background: rgba(28, 28, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.masonry-like-btn:active {
  transform: scale(0.95);
}

.masonry-like-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: transparent;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              fill 0.2s ease,
              stroke 0.2s ease;
}

.masonry-like-btn.is-liked {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(20, 10, 12, 0.88);
}

.masonry-like-btn.is-liked svg {
  fill: #EF4444;
  stroke: #EF4444;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.masonry-like-count {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. High-Fidelity Styled Graphic Poster Cards (Custom Artworks)
   -------------------------------------------------------------------------- */
.poster-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* Poster 1: No Cash? Use Cowry */
.poster-cowry-app {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #075985 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.05;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 2: School of Life */
.poster-school-life {
  background: linear-gradient(135deg, #FDE68A 0%, #FCA5A5 50%, #E0E7FF 100%);
  color: #1E293B;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.35;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 3: Inspired Inclusion IWD */
.poster-iwd {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 50%, #9A3412 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 4: Democracy Day */
.poster-democracy {
  background: linear-gradient(135deg, #065F46 0%, #047857 50%, #059669 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 5: Pneuma Worship */
.poster-pneuma {
  background: linear-gradient(135deg, #4C1D95 0%, #6B21A8 40%, #1E1B4B 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 6: Final Score Basketball */
.poster-finalscore {
  background: linear-gradient(135deg, #059669 0%, #047857 60%, #064E3B 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.15;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 7: Bible Study Editorial */
.poster-biblestudy {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 60%, #38BDF8 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 8: Living Supernaturally */
.poster-supernatural {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  color: #ffffff;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.05;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Poster 9: TAP Contactless Brilliance */
.poster-contactless {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  color: #0F172A;
  padding: 1.25rem;
  aspect-ratio: 1 / 1.6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #E2E8F0;
}

/* --------------------------------------------------------------------------
   5. Fullscreen Lightbox & Viewer
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.lightbox-media-box {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img-full {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease;
}

.lightbox-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #A1A1AA;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(15, 15, 18, 0.9);
}

.lightbox-caption-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.lightbox-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  user-select: none;
}

.lightbox-nav-arrow:hover {
  background: var(--select, #EAB308);
  color: #000;
  border-color: var(--select, #EAB308);
}

.lightbox-arrow-left {
  left: 1.5rem;
}

.lightbox-arrow-right {
  right: 1.5rem;
}

/* --------------------------------------------------------------------------
   6. Video Cards, BTS Reels, & Lightbox Video Players
   -------------------------------------------------------------------------- */
.masonry-video-badge {
  display: none !important;
}

.masonry-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0.85;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background 0.2s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.masonry-play-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
}

.masonry-item:hover .masonry-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
  background: rgba(250, 158, 28, 0.95);
  color: #000000;
  border-color: #FA9E1C;
}

/* Hover-Activated Video Player */
.masonry-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
  background: #000;
}

.masonry-item.is-playing .masonry-video-player {
  opacity: 1;
}

.masonry-item.is-playing .masonry-play-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.lightbox-media-video {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  outline: none;
  background: #000;
}

.lightbox-instagram-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-instagram-frame {
  width: min(420px, 86vw);
  height: min(680px, 72vh);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-ext-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lightbox-ext-video-btn:hover {
  background: var(--accent, #FA9E1C);
  color: #000;
  border-color: var(--accent, #FA9E1C);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Lightbox Video Audio Controller & Floating Sound Pills
   -------------------------------------------------------------------------- */
.lightbox-video-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 82vh;
}

.lightbox-video-container .lightbox-media-video {
  display: block;
  max-width: min(92vw, 100%);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  background: #000;
  outline: none;
}

.lightbox-audio-pill {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(18, 18, 22, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lightbox-audio-pill:hover {
  transform: scale(1.06);
  background: rgba(250, 158, 28, 0.95);
  color: #000000;
  border-color: #FA9E1C;
  box-shadow: 0 10px 35px rgba(250, 158, 28, 0.45);
}

.lightbox-audio-pill.is-muted {
  animation: pulseAudioPill 2.5s infinite ease-in-out;
  border-color: rgba(250, 158, 28, 0.7);
}

.lightbox-audio-pill.is-unmuted {
  opacity: 0.85;
}

.lightbox-video-container:hover .lightbox-audio-pill.is-unmuted {
  opacity: 1;
}

.lightbox-audio-pill.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.lightbox-video-container:hover .lightbox-audio-pill.is-hidden {
  opacity: 0.92;
  pointer-events: auto;
  transform: translateY(0);
}

.lightbox-audio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.lightbox-audio-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes pulseAudioPill {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(250, 158, 28, 0.45);
  }
  50% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(250, 158, 28, 0);
  }
}

/* Lightbox Topbar Sound Button */
.lightbox-topbar-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-topbar-sound-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.lightbox-topbar-sound-btn.is-active {
  background: rgba(250, 158, 28, 0.2);
  border-color: #FA9E1C;
  color: #FA9E1C;
}

