/* ================================================
   Portfolio Gallery — Scoped Enhancements
   Pass 1 + Pass 2 combined
   Scope: body.page-id-13 only
   Loaded via functions.php on /portfolio-gallery/
   ================================================ */

/* ── Gallery Wall: fallback colour behind background image ──
   The wall stage already has gallery-wall-4000px-length-scaled.jpg
   set in Elementor CSS. The colour shows only if that image fails.
   ── */
body.page-id-13 {
  background-color: #f0ece5;
  --second-wall-item-size: 260px;
}

/* ── Frame Shadow Treatment ──
   Elementor already applies a 15px solid white border (the mat) and a
   shallow 7px 7px 10px shadow on individual frames and their child widgets.
   We override the entire shadow chain to a single consistent depth shadow,
   removing the doubling effect.
   ── */

/* Clear Elementor's widget-level shadows inside gallery frames */
body.page-id-13 .elementor-element-7c31f5b,
body.page-id-13 .elementor-element-176e353 {
  box-shadow: none !important;
}
body.page-id-13 .elementor-element-5271275 img {
  box-shadow: none !important;
}

/* Single, consistent depth shadow at the frame container level */
body.page-id-13 .frame,
body.page-id-13 .fram,
body.page-id-13 .framee {
  border-radius: 2px;
  box-shadow: none !important;
  transition: box-shadow 0.4s ease;
}

body.page-id-13 .frame:hover,
body.page-id-13 .fram:hover,
body.page-id-13 .framee:hover {
  box-shadow: none !important;
}

/* ── Panel 2: breathing room ──
   Elementor sets --padding: 0 on panel 2's canvas (elementor-element-d10117b).
   Direct padding override wins over custom-property-driven values.
   ── */
body.page-id-13 .elementor-element.elementor-element-6d8b246 {
  padding: 48px 32px 64px 56px !important;
  gap: 24px !important;
  align-items: center !important;
}

body.page-id-13 .elementor-element.elementor-element-d10117b {
  padding: 56px 64px 72px 32px !important;
  gap: 24px !important;
}

body.page-id-13 .elementor-element.elementor-element-f210c88,
body.page-id-13 .elementor-element.elementor-element-6f3400d {
  gap: 24px !important;
}

body.page-id-13 .elementor-element.elementor-element-947caa7 {
  gap: 24px !important;
}

body.page-id-13 .elementor-element.elementor-element-b299438 {
  padding-right: 0 !important;
}

/* Panel 2 main row: add gap between the left 60% column and right section */
body.page-id-13 .elementor-element.elementor-element-a226f53 {
  gap: 32px 32px !important;
  align-items: center !important;
}

/* Panel 2 GH Mumm + SADV row: keep row direction, align center, remove default container padding */
body.page-id-13 .elementor-element.elementor-element-9c3cdc6 {
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* SADV text row: center the icon and line of copy above the post */
body.page-id-13 .elementor-element.elementor-element-4ef4abf {
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-id-13 .elementor-element.elementor-element-46538ce,
body.page-id-13 .elementor-element.elementor-element-46538ce p {
  text-align: center !important;
}

/* R6 column: keep the hero video balanced in its left-hand lane */
body.page-id-13 .elementor-element.elementor-element-69a3377 {
  gap: 24px !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-id-13 .elementor-element.elementor-element-2230d6c {
  width: min(100%, 900px) !important;
  margin-inline: auto !important;
}

body.page-id-13 .elementor-element.elementor-element-176e353 {
  width: min(100%, 72%) !important;
  max-width: 72% !important;
  --container-widget-width: 72% !important;
}

/* SADV grouping: align contents and tighten gap between text row and frame */
body.page-id-13 .elementor-element.elementor-element-71aaab9 {
  padding-left: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

body.page-id-13 .elementor-element.elementor-element-cf5bf75 {
  width: var(--second-wall-item-size) !important;
  max-width: var(--second-wall-item-size) !important;
  align-self: center !important;
  margin-inline: auto !important;
}

body.page-id-13 .elementor-element.elementor-element-ef0970c {
  width: var(--second-wall-item-size) !important;
  max-width: var(--second-wall-item-size) !important;
  align-self: center !important;
}

body.page-id-13 .elementor-element.elementor-element-a024b9d {
  width: var(--second-wall-item-size) !important;
  max-width: var(--second-wall-item-size) !important;
  align-self: center !important;
}

body.page-id-13 .elementor-element.elementor-element-a086274 {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

body.page-id-13 .elementor-element.elementor-element-a086274 > .e-con-inner {
  width: 100% !important;
  max-width: 100% !important;
}

body.page-id-13 .reel-carousel .swiper-slide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-id-13 .reel-carousel .swiper-slide > .e-con-boxed {
  width: 100% !important;
  max-width: 100% !important;
}

/* ── PNA video widget: fill container and contain full frame ── */
body.page-id-13 .elementor-element.elementor-element-5be6328 {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

body.page-id-13 .elementor-element.elementor-element-5be6328 .elementor-widget-container,
body.page-id-13 .elementor-element.elementor-element-5be6328 .e-hosted-video,
body.page-id-13 .elementor-element.elementor-element-5be6328 .elementor-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

body.page-id-13 .elementor-element.elementor-element-5be6328 video.elementor-video {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(65vh - 24px) !important;
  display: block !important;
  margin-inline: auto !important;
}

/* ── PNA caption: anchored to the video widget box, not the outer slide container ── */
body.page-id-13 .elementor-element.elementor-element-5be6328::after {
  content: none !important;
  display: none !important;
}

/* ── Reel carousel: cap slide height so it fits in viewport ──
   Elementor per-carousel CSS sets min-height: 620px which exceeds
   typical laptop viewports. Set a proportional cap.
   ── */
body.page-id-13 .reel-carousel .swiper-slide {
  min-height: 460px !important;
  max-height: 65vh !important;
}

/* ── Gallery Caption / Placard ──
   Museum-label style placard, sits within the frame bottom-left.
   Positioned inside the artwork area, just above the Elementor white border.
   ── */
/* 2. Desktop: Bring floating captions slightly closer to their related artwork */
.gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  max-width: calc(100% - 36px);
}

.gallery-caption-anchor {
  position: relative !important;
  overflow: visible !important;
}

.gallery-caption--edge {
  bottom: -8px;
}

.gallery-caption-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible !important;
  width: 100%;
  max-width: 100%;
}

.gallery-caption-stack--center {
  align-items: center;
}

.gallery-caption--below {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: inline-flex;
  flex-direction: column;
  margin-top: 8px;
  width: fit-content;
  max-width: 260px;
  text-align: left;
}

.gallery-caption-client {
  display: block;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2b3038;
  line-height: 1.2;
}

.gallery-caption-desc {
  display: block;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #697180;
  line-height: 1.35;
}

/* ── Fix .type-in CSS ──
   The Additional CSS block has a `/.type-in` prefix (forward-slash typo),
   making those rules invalid. Re-declared here with correct syntax.
   ── */
body.page-id-13 .type-in {
  display: inline-block;
  border-right: 2px solid currentColor;
  vertical-align: bottom;
}

body.page-id-13 .type-in.ti-running {
  animation: pg-ti-blink 1s steps(1) infinite;
}

@keyframes pg-ti-blink {
  0%, 50%, 100% { border-color: currentColor; }
  25%, 75%      { border-color: transparent;  }
}

body.page-id-13 .type-in.ti-done {
  border-right: 0;
  animation: none;
}

/* ── Scroll Hint ──
   Right-nudge pulse on the arrow. Fades via JS after first scroll.
   ── */
body.page-id-13 .gallery-scroll-hint {
  transition: opacity 0.5s ease;
}

body.page-id-13 .gallery-scroll-hint .elementor-icon svg {
  animation: pg-arrow-nudge 2.4s ease-in-out infinite;
  transform-origin: center;
}

body.page-id-13 .elementor-element.elementor-element-31d0898 .elementor-icon {
  color: #2b3038 !important;
}

body.page-id-13 .elementor-element.elementor-element-31d0898 .elementor-icon svg {
  width: 30px;
  height: 30px;
}

@keyframes pg-arrow-nudge {
  0%, 100% { opacity: 0.50; transform: translateX(0);   }
  50%       { opacity: 1;   transform: translateX(7px); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-13 .gallery-scroll-hint .elementor-icon svg {
    animation: none;
    opacity: 0.8;
  }
}

/* ── Horizontal Progress Bar ── */
.gallery-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.07);
  z-index: 9997;
  pointer-events: none;
}

.gallery-progress-fill {
  height: 100%;
  width: 0%;
  background: #c0001a;
  transition: width 0.12s linear;
}

/* ── Panel Zone Indicator ──
   Small "1 / 2" counter, top-right.
   Updates via JS on scroll.
   ── */
.gallery-zone {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 9998;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(43, 48, 56, 0.50);
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ── Navigation Hint ──
   One-time pill at bottom-centre, fades on first scroll or after 4s.
   Hidden on mobile.
   ── */
.gallery-nav-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.09);
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #697180;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.gallery-nav-hint.is-hidden {
  opacity: 0;
}

.gallery-nav-hint svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── End-of-Gallery Marker ──
   Subtle text above the progress bar right end,
   appears when scroll progress reaches ~92%.
   ── */
.gallery-end-marker {
  position: fixed;
  bottom: 10px;
  right: 88px; /* sits to the left of the nav buttons */
  z-index: 9998;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(43, 48, 56, 0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery-end-marker.is-visible {
  opacity: 1;
}

/* ── Panel Navigation Buttons ── */
.gallery-nav {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  gap: 8px;
  z-index: 9998;
}

.gallery-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 50%;
  cursor: pointer;
  color: #2b3038;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  outline: none;
}

.gallery-nav-btn svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.gallery-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.gallery-nav-btn:focus-visible {
  outline: 2px solid rgba(192, 0, 26, 0.4);
  outline-offset: 2px;
}

.gallery-nav-btn:disabled {
  opacity: 0.28;
  pointer-events: none;
}

/* ── Mobile Stacked Fallback (≤767px) ──
   Applied when JS adds .gallery-mobile to <body>.
   Overrides Elementor's !important wall layout rules.

   TARGETED — only the structural containers that must flip
   to column, identified by Elementor element ID.
   ── */
@media (max-width: 767px) {

  /* 1. Prevent horizontal overflow at root */
  body.page-id-13.gallery-mobile {
    overflow-x: hidden !important;
  }

  /* Wall top-level reset */
  body.gallery-mobile #wall.wall-stage {
    height: auto !important;
    overflow: visible !important;
    contain: none !important;
  }

  body.gallery-mobile #wall .wall-track {
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    will-change: auto !important;
  }

  body.gallery-mobile #wall .wall-panel {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  body.gallery-mobile #wall .wall-canvas {
    height: auto !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px 32px !important;
    gap: 20px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }

  body.gallery-mobile .elementor-element-6d8b246 {
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 28px !important;
    padding-left: 0 !important;
    min-height: auto !important;
  }

  /* Panel 1: targeted structural containers */
  body.gallery-mobile .elementor-element-f210c88,
  body.gallery-mobile .elementor-element-947caa7,
  body.gallery-mobile .elementor-element-6f3400d,
  body.gallery-mobile .elementor-element-b299438,
  body.gallery-mobile .elementor-element-4ef4abf {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-width: 100% !important;
    align-items: center !important;
  }

  /* Panel 2: targeted structural containers */
  body.gallery-mobile .elementor-element-a226f53,
  body.gallery-mobile .elementor-element-69a3377,
  body.gallery-mobile .elementor-element-9c3cdc6,
  body.gallery-mobile .elementor-element-71aaab9,
  body.gallery-mobile .elementor-element-9d12633,
  body.gallery-mobile .elementor-element-6d46c4c {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-inline: auto !important;
  }

  /* Force width 100% on direct children that have Elementor-set % widths */
  body.gallery-mobile .elementor-element-f210c88 > .e-con,
  body.gallery-mobile .elementor-element-6f3400d > .e-con,
  body.gallery-mobile .elementor-element-69a3377 > .e-con,
  body.gallery-mobile .elementor-element-9c3cdc6 > .e-con,
  body.gallery-mobile .elementor-element-71aaab9 > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    --width: 100% !important;
  }

  /* Mobile gap for panels */
  body.gallery-mobile .elementor-element-f210c88,
  body.gallery-mobile .elementor-element-6f3400d,
  body.gallery-mobile .elementor-element-a226f53 {
    gap: 18px !important;
  }
  body.gallery-mobile .elementor-element-69a3377,
  body.gallery-mobile .elementor-element-9c3cdc6,
  body.gallery-mobile .elementor-element-9d12633 {
    gap: 24px !important;
  }

  body.gallery-mobile .elementor-element-71aaab9 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.gallery-mobile .elementor-element-4ef4abf {
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: min(92vw, 420px) !important;
    margin-inline: auto !important;
  }

  /* Panel 2 canvas: restore breathing room */
  body.gallery-mobile .elementor-element-d10117b {
    padding: 12px 16px 32px !important;
  }

  body.gallery-mobile .gallery-scroll-hint {
    gap: 8px !important;
  }

  body.gallery-mobile .gallery-scroll-hint .elementor-icon {
    transform: scale(0.82);
    transform-origin: center;
  }

  body.gallery-mobile #wall .frame,
  body.gallery-mobile #wall .fram,
  body.gallery-mobile #wall .framee,
  body.gallery-mobile #wall .lightbox {
    width: min(92vw, 520px) !important;
    max-width: 92vw !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.gallery-mobile .reel-carousel,
  body.gallery-mobile .reel-carousel .swiper,
  body.gallery-mobile .reel-carousel .swiper-container {
    width: min(92vw, 520px) !important;
    max-width: 92vw !important;
    margin-inline: auto !important;
  }

  body.gallery-mobile .elementor-element-7c31f5b,
  body.gallery-mobile .elementor-element-176e353,
  body.gallery-mobile .elementor-element-04cd7e8,
  body.gallery-mobile .elementor-element-6dab13f,
  body.gallery-mobile .elementor-element-5be6328 {
    width: 100% !important;
    max-width: 100% !important;
    --container-widget-width: 100% !important;
    --container-widget-flex-grow: 0 !important;
    margin-inline: auto !important;
  }

  body.gallery-mobile .elementor-element-2230d6c,
  body.gallery-mobile .elementor-element-37fa3f1 {
    width: min(92vw, 560px) !important;
    max-width: 92vw !important;
    margin-inline: auto !important;
  }

  body.gallery-mobile #wall img,
  body.gallery-mobile #wall video,
  body.gallery-mobile #wall iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
    display: block;
  }

  body.gallery-mobile .reel-carousel .swiper,
  body.gallery-mobile .reel-carousel .swiper-container,
  body.gallery-mobile .reel-carousel .elementor-swiper {
    overflow: visible !important;
    height: auto !important;
  }

  body.gallery-mobile .reel-carousel .swiper-wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  body.gallery-mobile .reel-carousel .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 0 20px !important;
  }

  body.gallery-mobile .reel-carousel .swiper-slide:last-child {
    margin-bottom: 0 !important;
  }

  body.gallery-mobile .reel-carousel .swiper-slide-duplicate,
  body.gallery-mobile .reel-carousel .elementor-swiper-button,
  body.gallery-mobile .reel-carousel .swiper-pagination {
    display: none !important;
  }

  /* 4. Mobile: Move captions below the frame instead of overlapping */
  body.gallery-mobile .gallery-caption {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    margin-top: 10px !important;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: none;
    align-self: flex-start !important;
  }

  body.gallery-mobile .gallery-caption--edge {
    margin-top: 10px !important;
  }

  body.gallery-mobile .gallery-caption--below {
    transform: none !important;
    margin-top: 10px !important;
    max-width: 100% !important;
  }

  body.gallery-mobile .gallery-caption-client {
    color: #c0001a;
    font-size: 8px;
    letter-spacing: 1.8px;
  }

  body.gallery-mobile .gallery-caption-desc {
    font-size: 9px;
    line-height: 1.3;
  }

  /* Hide desktop-only chrome on mobile */
  body.page-id-13 .gallery-nav,
  body.page-id-13 .gallery-progress,
  body.page-id-13 .gallery-zone,
  body.page-id-13 .gallery-nav-hint,
  body.page-id-13 .gallery-end-marker {
    display: none !important;
  }
}

/* ── Frame 3 Hover Pan ──
   Slowly scrolls the background image from top to bottom on hover.
   Target: elementor-element-d607458
   ── */
body.page-id-13 .elementor-element.elementor-element-d607458 {
  background-position: center top !important;
  background-size: cover !important;
  transition: background-position 8s linear !important;
  will-change: background-position;
}

body.page-id-13 .elementor-element.elementor-element-d607458:hover {
  background-position: center bottom !important;
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-13 .elementor-element.elementor-element-d607458 {
    transition: none !important;
  }
}

body.page-id-13 .elementor-element.elementor-element-5271275 img,
body.page-id-13 .elementor-element.elementor-element-5b8fe16 img,
body.page-id-13 .elementor-element.elementor-element-a024b9d img {
  object-position: center top !important;
}

body.page-id-13 .elementor-element.elementor-element-5b8fe16 {
  overflow: visible !important;
}

@media (min-width: 768px) {
  body.page-id-13 .elementor-element.elementor-element-5b8fe16 {
    width: 320px !important;
    max-width: 320px !important;
    min-width: 0 !important;
  }

  body.page-id-13 .elementor-element.elementor-element-5b8fe16 img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* ── Video overlay button: microphone icon ──
   Hides any remaining Elementor icon-font play glyph and pseudo-elements
   once our JS has added .wp-video-mic-button to the button.
   ── */
.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button i,
.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button .eicon-play,
.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button .eicon-play-o,
.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button::before,
.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button::after {
  display: none !important;
  content: none !important;
}

.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button .wetpaint-mic-icon {
  display: none !important;
}

.wall-stage .elementor-widget-video .elementor-custom-embed-play.wp-video-mic-button .wetpaint-mic-icon path {
  fill: #e30613 !important;
}

body.page-id-13 .wp-cursor.is-video .wp-cursor-icon svg,
body.page-id-13 .wp-cursor.is-video .wp-cursor-icon .wetpaint-mic-icon {
  width: 22px !important;
  height: 22px !important;
  color: #e30613 !important;
  fill: #e30613 !important;
}

body.page-id-13 .wp-cursor.is-video .wp-cursor-icon path {
  fill: #e30613 !important;
}

/* ── Hide old duplicate reel/social video carousels ──────────────
   Videos from 7ab47e0 (Last-Min-Love, Launch-Post, PNA-B2B) and
   688b730 (Fresh-Air-Kids, YouTube-Trailer) now appear in the new
   injected Social Reels and Featured Films sections below the wall.
   Siblings (Cardies images a024b9d, Infini-fi images ee86607) stay.
   ── */
body.page-id-13 .elementor-element.elementor-element-7ab47e0,
body.page-id-13 .elementor-element.elementor-element-688b730 {
  display: none !important;
}

body.page-id-13 .elementor-element.elementor-element-e19f610 {
  display: none !important;
}

/* PART 0 - Redesigned Second Wall */

.portfolio-second-wall-redesign {
  --second-redesign-hero-width: clamp(560px, 32vw, 640px);
  --second-redesign-card-size: min(24vw, 360px);
  flex: none;
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.portfolio-second-wall-redesign-canvas {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 30% 40% 30%;
  padding: 36px 42px 40px;
  box-sizing: border-box;
  align-items: stretch;
}

.portfolio-second-left,
.portfolio-second-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.portfolio-second-middle {
  display: grid;
  grid-template-rows: 50% 50%;
  align-items: stretch;
  justify-items: center;
  min-width: 0;
}

.portfolio-second-middle-top,
.portfolio-second-middle-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.portfolio-second-middle-bottom {
  flex-direction: column;
  gap: 14px;
}

.portfolio-second-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.portfolio-second-card--hero {
  width: min(32vw, var(--second-redesign-hero-width));
  max-width: 100%;
}

.portfolio-second-media--hero {
  width: 100%;
}

.portfolio-second-hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 14px solid rgba(255, 255, 255, 0.96);
  box-shadow: 18px 22px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-second-hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.portfolio-second-hero-play {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-second-hero-frame:hover .portfolio-second-hero-play {
  opacity: 1;
}

.portfolio-second-hero-play .wetpaint-mic-icon {
  width: 22px !important;
  height: 22px !important;
  color: #fff !important;
}

.portfolio-second-media--frame {
  width: var(--second-redesign-card-size);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3efe7;
  border: 12px solid rgba(255, 255, 255, 0.96);
  box-shadow: 12px 16px 34px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio-second-statement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(43, 48, 56, 0.78);
  text-align: center;
}

.portfolio-second-statement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2b3038;
}

.portfolio-redesign-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portfolio-second-caption {
  margin-top: 10px;
  max-width: 280px;
  align-self: center;
  text-align: center;
}

@media (max-width: 1180px) {
  .portfolio-second-wall-redesign {
    --second-redesign-card-size: min(25vw, 320px);
  }

  .portfolio-second-wall-redesign-canvas {
    padding: 32px 24px 36px;
  }
}

/* ══════════════════════════════════════════════════════════════
   PART A — Reels Wall Panel
   Appended to .wall-track at DOMContentLoaded via portfolio-gallery.js
   ══════════════════════════════════════════════════════════════ */

.portfolio-reels-wall-panel {
  flex: none;
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.portfolio-reels-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 46px;
  padding: 48px 78px 56px;
  box-sizing: border-box;
}

.portfolio-reels-intro {
  text-align: center;
  flex-shrink: 0;
}

.portfolio-reel-eyebrow {
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c0001a;
  margin: 0 0 10px;
}

.portfolio-reel-heading {
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #2b3038;
  margin: 0 0 14px;
  line-height: 1.1;
}

.portfolio-reel-cue {
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(105, 113, 128, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
}

.portfolio-reels-cards {
  display: flex;
  flex-direction: row;
  width: min(1240px, 100%);
  gap: clamp(22px, 2vw, 34px);
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.portfolio-reel-card {
  flex: none;
  width: clamp(180px, 13.5vw, 214px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-reel-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 7px 7px 22px rgba(0, 0, 0, 0.22);
  border: 12px solid #fff;
  box-sizing: border-box;
  cursor: pointer;
}

.portfolio-reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

.portfolio-reel-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.25s ease;
}

.portfolio-reel-card:hover .portfolio-reel-video-wrap::after {
  background: rgba(0, 0, 0, 0.16);
}

.portfolio-reel-play-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
  z-index: 2;
}

.portfolio-reel-play-btn .wetpaint-mic-icon {
  width: 22px !important;
  height: 22px !important;
  color: #fff !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.portfolio-reel-card:hover .portfolio-reel-play-btn {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.portfolio-reel-caption {
  margin-top: -8px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.portfolio-reel-lightbox-open {
  overflow: hidden;
}

.portfolio-reel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 20, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio-reel-lightbox.is-open {
  display: flex;
}

.portfolio-reel-lightbox-dialog {
  position: relative;
  width: min(92vw, 520px);
  max-height: 88vh;
  border: 12px solid rgba(255, 255, 255, 0.96);
  box-shadow: 18px 24px 54px rgba(0, 0, 0, 0.35);
  background: #111;
}

.portfolio-reel-lightbox-video {
  width: 100%;
  max-height: calc(88vh - 24px);
  display: block;
  background: #111;
}

.portfolio-reel-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

/* ── Feature Films Lightbox ──────────────────────────────────── */

.portfolio-feature-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portfolio-feature-lightbox.is-open {
  display: flex;
}

.portfolio-feature-lightbox-dialog {
  position: relative;
  width: min(90vw, calc(88vh * 16 / 9));
  border: 14px solid rgba(255, 255, 255, 0.96);
  box-shadow: 18px 24px 54px rgba(0, 0, 0, 0.45);
  background: #000;
}

.portfolio-feature-lightbox-video {
  width: 100%;
  max-height: 88vh;
  display: block;
  background: #000;
  object-fit: contain;
}

.portfolio-feature-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portfolio-feature-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.70);
}

/* ── Image Lightbox (GH Mumm static campaign image) ─────────── */

.portfolio-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 20, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portfolio-image-lightbox.is-open {
  display: flex;
}

.portfolio-image-lightbox-dialog {
  position: relative;
  max-width: min(88vw, 800px);
  max-height: 88vh;
  border: 12px solid rgba(255, 255, 255, 0.96);
  box-shadow: 18px 24px 54px rgba(0, 0, 0, 0.35);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 24px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.portfolio-image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portfolio-image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   PART B — Feature Wall Panel
   Appended to .wall-track at DOMContentLoaded via portfolio-gallery.js
   ══════════════════════════════════════════════════════════════ */

.portfolio-feature-wall-panel {
  flex: none;
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-feature-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portfolio-feature-header {
  width: 100%;
  text-align: center;
  padding: 38px 40px 0;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.portfolio-feature-eyebrow {
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(192, 0, 26, 0.92);
  margin: 0;
}

.portfolio-feature-slider {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
  min-height: 0;
}

/* Viewport-aware sizing: constrained by both width and height */
.portfolio-feature-wall-panel .portfolio-feature-slides {
  width: min(calc(100vw - 96px), calc((100vh - 152px) * 16 / 9));
  max-width: 1480px;
}

.portfolio-feature-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  cursor: grab;
  box-shadow: 18px 22px 42px rgba(0, 0, 0, 0.22);
  border: 14px solid rgba(255, 255, 255, 0.96);
}

.portfolio-feature-slides:active {
  cursor: grabbing;
}

.portfolio-feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.75s ease, transform 0.75s ease;
  pointer-events: none;
}

.portfolio-feature-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.portfolio-feature-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.portfolio-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.20) 45%,
    rgba(0, 0, 0, 0.00) 70%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px 44px;
  box-sizing: border-box;
  pointer-events: none;
}

.portfolio-feature-caption {
  max-width: 340px;
}

.portfolio-feature-label {
  display: block;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 7px;
}

.portfolio-feature-title {
  display: block;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 9px;
}

.portfolio-feature-desc {
  display: block;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.6;
  max-width: 300px;
}

.portfolio-feature-play-btn {
  position: absolute;
  top: 50%;
  right: 44px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 5;
  pointer-events: auto;
}

.portfolio-feature-slide.is-active:hover .portfolio-feature-play-btn {
  opacity: 1;
}

.portfolio-feature-play-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.07);
}

.portfolio-feature-play-btn .wetpaint-mic-icon {
  width: 26px !important;
  height: 26px !important;
  color: #fff !important;
}

.portfolio-feature-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px 44px;
}

.portfolio-feature-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.portfolio-feature-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.portfolio-feature-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.portfolio-feature-dot {
  height: 2px;
  width: 28px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 1px;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease, width 0.35s ease;
}

.portfolio-feature-dot.is-active {
  background: rgba(255, 255, 255, 0.85);
  width: 46px;
}

.portfolio-feature-swipe-cue {
  position: absolute;
  bottom: 52px;
  right: 52px;
  font-family: 'DM Sans', 'Arimo', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
  animation: pf-cue-pulse 3.5s ease-in-out infinite;
}

@keyframes pf-cue-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%       { opacity: 1;   transform: translateX(4px); }
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 767px) {
  .portfolio-reel-section {
    padding: 56px 0 72px;
  }

  .portfolio-reel-heading {
    font-size: 24px;
  }

  .portfolio-reel-carousel {
    padding: 8px 20px 20px;
    gap: 16px;
  }

  .portfolio-reel-card {
    width: 160px;
  }

  .portfolio-reel-video-wrap {
    width: 160px;
  }

  .portfolio-feature-video-panel {
    min-height: auto;
    padding-bottom: 40px;
  }

  .portfolio-feature-header {
    padding: 44px 24px 0;
  }

  .portfolio-feature-slides {
    width: calc(100% - 32px);
    aspect-ratio: 9 / 16;
    max-width: 360px;
  }

  .portfolio-feature-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 55%);
    align-items: flex-end;
    padding: 24px 20px;
  }

  .portfolio-feature-title {
    font-size: 20px;
  }

  .portfolio-feature-desc {
    font-size: 11px;
  }

  .portfolio-feature-controls {
    padding: 20px 24px 40px;
    gap: 16px;
  }

  .portfolio-feature-play-btn {
    top: auto;
    right: 16px;
    bottom: 56px;
    transform: none;
    opacity: 0.7;
  }

  .portfolio-feature-slide.is-active:hover .portfolio-feature-play-btn {
    opacity: 0.7;
  }

  .portfolio-feature-play-btn:hover {
    transform: scale(1.07);
  }

  .portfolio-feature-swipe-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-feature-slide {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .portfolio-feature-swipe-cue {
    animation: none;
    opacity: 0.5;
  }
}

/* ── Infini-fi caption: reposition to LEFT of the website preview (desktop only) ──
   Switches the caption-stack to a row so the caption sits to the left of
   the preview without overlapping or being clipped at the bottom.
   ── */
@media (min-width: 768px) {
  /* Row layout: caption left, preview right */
  .gallery-caption-stack[data-caption-stack-id="d607458"] {
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    overflow: visible !important;
    position: static !important;
  }

  /* Caption comes first (left) via order override */
  .gallery-caption[data-caption-id="d607458"] {
    order: -1 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    max-width: 200px !important;
    z-index: auto !important;
    align-self: center !important;
  }

  /* Preview fills the remaining row width */
  .gallery-caption-stack[data-caption-stack-id="d607458"] > .elementor-element-d607458 {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE GALLERY  (.portfolio-mobile-gallery)
   Injected at DOMContentLoaded; shown at ≤767px only.
   Desktop wall (#wall) is hidden at ≤767px.
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .portfolio-mobile-gallery {
    display: none !important;
  }
}

@media (max-width: 767px) {

  /* Hide the desktop wall and all desktop chrome */
  body.page-id-13 #wall,
  body.page-id-13 .gallery-progress,
  body.page-id-13 .gallery-zone,
  body.page-id-13 .gallery-nav,
  body.page-id-13 .gallery-nav-hint,
  body.page-id-13 .gallery-end-marker {
    display: none !important;
  }

  /* ── Gallery root ── */
  body.page-id-13 .portfolio-mobile-gallery {
    display: block !important;
    width: 100%;
    padding: 0 0 80px;
    background: #f0ece5;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* ── Intro header ── */
  .portfolio-mobile-intro {
    text-align: center;
    padding: 56px 24px 40px;
  }

  .portfolio-mobile-eyebrow {
    font-family: 'DM Sans', 'Arimo', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c0001a;
    margin: 0 0 10px;
  }

  .portfolio-mobile-heading {
    font-family: 'DM Sans', 'Arimo', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #2b3038;
    margin: 0;
    line-height: 1.1;
  }

  /* ── Gallery card ── */
  .portfolio-mobile-card {
    width: min(92vw, 520px);
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* White border frame treatment — mirrors desktop gallery */
  .portfolio-mobile-media {
    position: relative;
    width: 100%;
    background: #fff;
    border: 12px solid #fff;
    box-shadow: 7px 7px 22px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
  }

  .portfolio-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .portfolio-mobile-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
  }

  /* Microphone / sound cue overlay button */
  .portfolio-mobile-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
    color: #fff;
    transition: background 0.2s ease;
  }

  .portfolio-mobile-play-btn .wetpaint-mic-icon {
    color: #fff !important;
  }

  /* Caption below media */
  .portfolio-mobile-caption {
    margin-top: 10px;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* ── Section headers (Reels / Films) ── */
  .portfolio-mobile-section {
    padding: 8px 0 0;
  }

  .portfolio-mobile-section-header {
    text-align: center;
    padding: 32px 24px 24px;
  }

  .portfolio-mobile-section-heading {
    font-family: 'DM Sans', 'Arimo', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #2b3038;
    margin: 0;
    line-height: 1.1;
  }

  /* ── Social Reels: 2-column portrait grid ── */
  .portfolio-mobile-reels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 16px 40px;
    max-width: 560px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .portfolio-mobile-reel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .portfolio-mobile-reel-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #1a1a1a;
    border: 10px solid #fff;
    box-sizing: border-box;
    border-radius: 2px;
    box-shadow: 5px 5px 18px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
  }

  .portfolio-mobile-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .portfolio-mobile-reel-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .portfolio-mobile-reel-btn .wetpaint-mic-icon {
    width: 16px !important;
    height: 16px !important;
    color: #fff !important;
  }

  .portfolio-mobile-reel-caption {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Featured Films: landscape cards ── */
  .portfolio-mobile-films-section .portfolio-mobile-section-header {
    padding-top: 40px;
  }

  .portfolio-mobile-film-card {
    width: min(92vw, 520px);
    margin: 0 auto 28px;
  }

  .portfolio-mobile-film-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 12px solid #fff;
    box-sizing: border-box;
    border-radius: 2px;
    box-shadow: 7px 7px 22px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    cursor: pointer;
  }

  .portfolio-mobile-film-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .portfolio-mobile-film-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 55%);
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
    box-sizing: border-box;
    pointer-events: none;
  }

  .portfolio-mobile-film-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .portfolio-mobile-film-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #fff;
    transition: background 0.2s ease;
  }

  .portfolio-mobile-film-btn .wetpaint-mic-icon {
    color: #fff !important;
  }
}
