
:root {
    --mcg-deep: #07171d;
    --mcg-ocean: #16343b;
    --mcg-white: #ffffff;
    --mcg-arch-white: #f3f4f1;
    --mcg-mist: #dce5e5;
    --mcg-slate: #7c8b8d;
    /*--mcg-green: #28a745;*/
    --mcg-green:  #275d2b !important;
    --mcg-font: "Rubik", Arial, sans-serif;

    /* Set by gallery-page.js from the real top bar height on load/resize. */
    --mcg-topbar-offset: 64px;
  }

  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background: var(--mcg-arch-white);
    color: var(--mcg-deep);
    font-family: var(--mcg-font);
    overscroll-behavior-y: none;
  }

  button {
    font-family: inherit;
  }

  /* ============ TOP BAR ============ */

  .mcg-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 clamp(20px, 3vw, 48px);
    background: var(--mcg-white);
    border-bottom: 1px solid var(--mcg-mist);
  }

  .mcg-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
  }

  .mcg-topbar__brand-mark {
    width: 24px;
    height: 24px;
    color: var(--mcg-green);
  }

  .mcg-topbar__brand-mark svg {
    width: 100%;
    height: 100%;
  }

  .mcg-topbar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .mcg-topbar__brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mcg-deep);
  }

  .mcg-topbar__brand-sub {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mcg-slate);
  }

  .mcg-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mcg-ocean);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--mcg-mist);
    border-radius: 20px;
    transition: border-color 0.25s ease, color 0.25s ease;
  }

  .mcg-topbar__back svg {
    width: 15px;
    height: 15px;
  }

  .mcg-topbar__back:hover {
    border-color: var(--mcg-green);
    color: var(--mcg-green);
  }

  /* ==========================================================================
GALLERY COMPONENT — .mc-gallery
========================================================================== */

  .mc-gallery {
    --mcgal-deep: var(--mcg-deep);
    --mcgal-ocean: var(--mcg-ocean);
    --mcgal-white: var(--mcg-white);
    --mcgal-arch-white: var(--mcg-arch-white);
    --mcgal-mist: var(--mcg-mist);
    --mcgal-slate: var(--mcg-slate);
    --mcgal-green: var(--mcg-green);
    --mcgal-font: var(--mcg-font);
    --mcgal-sidebar-w: clamp(300px, 27vw, 380px);
    --mcgal-badge-offset: 14px;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    background: var(--mcgal-arch-white);
    color: var(--mcgal-deep);
    font-family: var(--mcgal-font);
  }

  .mc-gallery * {
    box-sizing: border-box;
  }

  .mc-gallery button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
  }

  @media (min-width: 768px) {
    .mc-gallery {
      height: calc(100dvh - var(--mcg-topbar-offset));
      min-height: calc(100svh - var(--mcg-topbar-offset));
      display: grid;
      grid-template-columns: var(--mcgal-sidebar-w) 1fr;
      grid-template-rows: minmax(0, 1fr);
      column-gap: clamp(32px, 4vw, 68px);
      padding: clamp(28px, 3.6vh, 40px) clamp(24px, 3vw, 56px);
    }

    .mc-gallery__sidebar {
      height: 100%;
      min-height: 0;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      background: transparent;
      border-right: none;
      padding: 0;
    }

    .mc-gallery__main {
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0;
    }

    .mc-gallery__categories {
      flex: 0 1 auto;
    }

    .mc-gallery__meta,
    .mc-gallery__text {
      max-width: none;
    }

    .mc-gallery__stage {
      margin-top: 0;
    }

    .mc-gallery__frame {
      height: auto;
      aspect-ratio: 4 / 3;
      max-height: 64vh;
      min-height: 340px;
    }
  }
  
  @media (min-width: 992px) {
  .mc-gallery__main {
    align-items: flex-end;
    padding-right: clamp(84px, 3vw, 56px); /* NEW — pulls the whole stage in from the right edge */
  }

  .mc-gallery__frame {
    width: min(90%, 920px);   /* was 94% / 960px — slightly narrower so it clears the new gutter */
    aspect-ratio: 4 / 3;
    max-height: 76vh;
    min-height: 400px;
    margin-left: auto;
    margin-right: 0;          /* explicit, so nothing pushes it back out to the edge */
  }
  
  .mc-gallery__stage { margin-right: 10px;}
}

@media (min-width: 1400px) {
  .mc-gallery__frame {
    width: min(86%, 1060px);  /* was 90% / 1100px — same reasoning, scaled for the bigger tier */
    max-height: 80vh;
  }
}
  
  
  

  /* ============ SIDEBAR (LEFT COLUMN) ============ */

  .mc-gallery__sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--mcgal-white);
    border-right: 1px solid var(--mcgal-mist);
    padding: 24px 20px;
  }

  .mc-gallery__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--mcgal-slate);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mcgal-mist);
  }

  .mc-gallery__categories {
    position: relative;
    min-height: 0;
    max-height: 44vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 2px;
    scrollbar-width: thin;
  }

  .mc-gallery__categories::-webkit-scrollbar {
    width: 4px;
  }
  .mc-gallery__categories::-webkit-scrollbar-thumb {
    background: var(--mcgal-mist);
    border-radius: 4px;
  }
  
  
  /* ---- Internal scroll affordance: fade edges + pulsing hint ---- */

.mc-gallery__categories-wrap {
  position: relative;
}

.mc-gallery__categories-fade {
  position: absolute;
  left: 0;
  right: 6px; /* clears the thin scrollbar */
  height: 30px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mc-gallery__categories-fade--top {
  top: 0;
  background: linear-gradient(
    to bottom,
    var(--mcgal-white) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.mc-gallery__categories-fade--bottom {
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--mcgal-white) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.mc-gallery__categories-wrap.is-scrollable-top .mc-gallery__categories-fade--top,
.mc-gallery__categories-wrap.is-scrollable-bottom .mc-gallery__categories-fade--bottom {
  opacity: 1;
}

.mc-gallery__categories-hint {
  position: absolute;
  right: 4px;
  bottom: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--mcgal-green);
  color: var(--mcgal-white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mc-gallery__categories-hint svg,
.mc-gallery__categories-hint [data-lucide] {
  width: 11px;
  height: 11px;
  animation: mc-gallery-chevron-nudge 1.6s ease-in-out infinite;
}

.mc-gallery__categories-wrap.has-overflow:not(.is-dismissed) .mc-gallery__categories-hint {
  opacity: 1;
}

  .mc-gallery__category-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 34px;
    background: var(--mcgal-green);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
  }

  .mc-gallery__category {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--mcgal-ocean);
    text-align: left;
    transition: color 0.25s ease;
    flex-shrink: 0;
  }

  .mc-gallery__category-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--mcgal-slate);
    transition: color 0.25s ease;
  }

  .mc-gallery__category-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
  }

  .mc-gallery__category:hover {
    color: var(--mcgal-deep);
  }
  .mc-gallery__category.is-active {
    color: var(--mcgal-white);
    font-weight: 700;
  }
  .mc-gallery__category.is-active .mc-gallery__category-icon {
    color: var(--mcgal-white);
  }
  .mc-gallery__category:focus-visible {
    outline: 2px solid var(--mcgal-green);
    outline-offset: 2px;
  }

  .mc-gallery__mobile-select-wrap {
    display: none;
  }

  /* ============ ACTIVE CATEGORY TEXT (now part of the left column) ============ */

  .mc-gallery__meta {
    flex-shrink: 0;
    margin-top: 20px;
  }

  .mc-gallery__counter {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--mcgal-deep);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mcgal-green);
  }

  .mc-gallery__text {
    flex-shrink: 0;
    max-width: 460px;
    margin-top: 14px;
  }

  .mc-gallery__title {
    margin: 0 0 10px;
    font-size: clamp(30px, 6vw, 40px);
    font-weight: 500;
    line-height: 1;
  }

  .mc-gallery__title-line {
    display: block;
    color: var(--mcgal-deep);
  }
  .mc-gallery__title-line--accent {
    color: var(--mcgal-green);
  }

  .mc-gallery__description {
    margin: 0 0 14px;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--mcgal-ocean);
    max-width: 40ch;
  }

  .mc-gallery__details-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mcgal-slate);
    margin-bottom: 8px;
  }

  .mc-gallery__details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mc-gallery__details-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--mcgal-deep);
  }

  .mc-gallery__details-list li::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--mcgal-green);
  }

  .mc-gallery__sidebar-cta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--mcgal-mist);
    border-radius: 6px;
    background: var(--mcgal-arch-white);
    text-decoration: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
  }

  .mc-gallery__sidebar-cta:hover {
    border-color: var(--mcgal-green);
    background: rgba(40, 167, 69, 0.05);
  }

  .mc-gallery__sidebar-cta-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mcgal-arch-white);
    border: 1px solid var(--mcgal-mist);
    color: var(--mcgal-deep);
  }

  .mc-gallery__sidebar-cta-icon svg {
    width: 15px;
    height: 15px;
  }

  .mc-gallery__sidebar-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 11.5px;
    color: var(--mcgal-slate);
    line-height: 1.4;
  }

  .mc-gallery__sidebar-cta-text strong {
    font-size: 13px;
    font-weight: 500;
    color: var(--mcgal-deep);
  }

  .mc-gallery__sidebar-cta-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--mcgal-green);
    transition: transform 0.25s ease;
  }

  .mc-gallery__sidebar-cta:hover .mc-gallery__sidebar-cta-arrow {
    transform: translateX(3px);
  }

  /* ============ MAIN STAGE (RIGHT COLUMN) — mobile-first base ============ */

  .mc-gallery__main {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 20px 24px;
  }

  /* ============ STAGE / FRAME — the full-view image ============ */

  .mc-gallery__stage {
    position: relative;
    margin-top: 20px;
  }

  .mc-gallery__frame {
    position: relative;
    margin: 0;
    height: 56vh;
    min-height: 320px;
    max-height: 480px;
    
  }

  /* Decorative ring traced loosely around the blob frame. Purely
atmospheric — never intercepts clicks, hidden entirely on mobile. */
  .mc-gallery__frame-ring {
    position: absolute;
    inset: -7%;
    width: 114%;
    height: 114%;
    z-index: 0;
    pointer-events: none;
  }

  .mc-gallery__frame-ring-path {
    fill: none;
    stroke: var(--mcgal-green);
    stroke-width: 0.5;
    stroke-dasharray: 1.2 3.2;
    opacity: 0.55;
  }

  .mc-gallery__frame-ring-dot {
    fill: var(--mcgal-green);
    opacity: 0.8;
  }

  .mc-gallery__frame-index {
    position: absolute;
    top: calc(var(--mcgal-badge-offset) * -1);
    left: calc(var(--mcgal-badge-offset) * -1);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 20px;
    background: var(--mcgal-white);
    border: 1px solid var(--mcgal-mist);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--mcgal-deep);
    box-shadow: 0 8px 20px rgba(7, 23, 29, 0.08);
  }

  /* The clipped viewport for the photo — a real <button>, since
clicking it opens the preview lightbox. object-fit: cover keeps the
image filling whatever shape border-radius carves out below. */
  .mc-gallery__hero-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--mcgal-mist);
    z-index: 1;
    padding: 0;
    cursor: zoom-in;
    box-shadow: 0 30px 60px -20px rgba(7, 23, 29, 0.25);
  }

  .mc-gallery__hero-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      var(--mcgal-mist) 30%,
      #eef1f1 50%,
      var(--mcgal-mist) 70%
    );
    background-size: 200% 100%;
    animation: mcgal-shimmer 1.6s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .mc-gallery__hero-skeleton.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  @keyframes mcgal-shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

  .mc-gallery__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1;
    display: block;
  }

  .mc-gallery__hero-img.is-loaded {
    opacity: 1;
  }

  .mc-gallery__hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--mcgal-mist);
    color: var(--mcgal-slate);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    z-index: 2;
  }

  .mc-gallery__hero-fallback[hidden] {
    display: none !important;
  }

  .mc-gallery__hero-fallback svg {
    width: 26px;
    height: 26px;
  }

  /* small "expand" affordance, bottom-left of the image, so it's clear the
frame itself is clickable for a bigger preview */
  .mc-gallery__hero-expand {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--mcgal-deep);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .mc-gallery__hero-expand svg {
    width: 15px;
    height: 15px;
  }

  .mc-gallery__hero-mask:hover .mc-gallery__hero-expand,
  .mc-gallery__hero-mask:focus-visible .mc-gallery__hero-expand {
    opacity: 1;
    transform: translateY(0);
  }

  .mc-gallery__hero-mask:focus-visible {
    outline: 2px solid var(--mcgal-green);
    outline-offset: -2px;
  }

  /* ---- floating prev/next controls, bottom-right of the frame ---- */

  .mc-gallery__controls {
    position: absolute;
    right: clamp(10px, 2%, 22px);
    bottom: clamp(10px, 2%, 22px);
    z-index: 4;
    display: flex;
    align-items: center;
  }

  .mc-gallery__nav {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.25s ease, box-shadow 0.25s ease;
  }

  .mc-gallery__nav svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
  }

  .mc-gallery__nav--prev {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--mcgal-deep);
    margin-right: -10px;
    z-index: 1;
  }

  .mc-gallery__nav--next {
    width: 56px;
    height: 56px;
    background: var(--mcgal-green);
    border-color: var(--mcgal-green);
    color: var(--mcgal-white);
    z-index: 2;
    box-shadow: 0 10px 24px rgba(40, 167, 69, 0.28);
  }

  .mc-gallery__nav:hover {
    transform: translateY(-2px);
  }
  .mc-gallery__nav:focus-visible {
    outline: 2px solid var(--mcgal-deep);
    outline-offset: 2px;
  }

  /* ============ ORGANIC BLOB SHAPE — desktop/tablet only ============ */

  @media (min-width: 768px) {
    .mc-gallery__hero-mask {
      border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    }
  }

  /* ============ THUMBNAILS — 5 tiles max, 5th becomes a "+N" tile ============ */

  .mc-gallery__thumbs-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }

  .mc-gallery__thumbs-counter {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--mcgal-slate);
    letter-spacing: 0.5px;
  }

  .mc-gallery__thumbs {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }

  .mc-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
  }
  .mc-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--mcgal-mist);
    border-radius: 4px;
  }

  .mc-gallery__thumb {
    flex-shrink: 0;
    width: clamp(62px, 6vw, 84px);
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
    background: var(--mcgal-mist);
    transition: border-color 0.25s ease, transform 0.2s ease;
  }

  .mc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .mc-gallery__thumb.is-active {
    border-color: var(--mcgal-green);
    transform: scale(1.04);
  }
  .mc-gallery__thumb:focus-visible {
    outline: 2px solid var(--mcgal-green);
    outline-offset: 2px;
  }

  /* the 5th tile when a category has more than 5 images — dims its own
thumbnail image and overlays the remaining count */
  .mc-gallery__thumb.is-more img {
    filter: brightness(0.45);
  }

  .mc-gallery__thumb-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--mcgal-white);
    letter-spacing: 0.3px;
    pointer-events: none;
  }

  /* ==========================================================================
TABLET-ONLY (768px – 991.98px)
========================================================================== */

  @media (min-width: 768px) and (max-width: 991.98px) {
    .mc-gallery {
      --mcgal-sidebar-w: clamp(260px, 30vw, 300px);
    }
    .mc-gallery__title {
      font-size: clamp(26px, 4.2vw, 34px);
    }
  }

  /* ==========================================================================
MOBILE (<= 767.98px)
========================================================================== */

  @media (max-width: 767.98px) {
    .mcg-topbar {
      height: 56px;
      padding: 0 16px;
    }
    .mcg-topbar__back span:last-child {
      display: none;
    }
    .mcg-topbar__back {
      padding: 8px;
    }

    .mc-gallery {
      height: auto;
      min-height: auto;
      display: block;
      padding-bottom: 40px;
    }

    .mc-gallery__sidebar {
      border-right: none;
      border-bottom: 1px solid var(--mcgal-mist);
      padding: 20px 20px 16px;
    }
    .mc-gallery__eyebrow {
      display: none;
    }
    .mc-gallery__categories {
      display: none;
    }

    .mc-gallery__mobile-select-wrap {
      display: block;
      position: relative;
    }

    .mc-gallery__mobile-select {
      width: 100%;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border: 1px solid var(--mcgal-mist);
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      color: var(--mcgal-deep);
    }

    .mc-gallery__mobile-select-icon {
      width: 16px;
      height: 16px;
      color: var(--mcgal-slate);
      transition: transform 0.25s ease;
    }
    .mc-gallery__mobile-select[aria-expanded="true"]
      .mc-gallery__mobile-select-icon {
      transform: rotate(180deg);
    }

    .mc-gallery__mobile-scroller {
      display: none;
      flex-direction: column;
      gap: 2px;
      margin-top: 8px;
      max-height: 260px;
      overflow-y: auto;
      border: 1px solid var(--mcgal-mist);
      border-radius: 6px;
      padding: 6px;
      background: var(--mcgal-white);
    }

    .mc-gallery__mobile-scroller.is-open {
      display: flex;
    }
    .mc-gallery__mobile-scroller .mc-gallery__category {
      min-height: 44px;
      border-radius: 4px;
    }
    
    
    .mc-gallery__mobile-scroller-wrap {
  position: relative;
}

.mc-gallery__mobile-scroller-fade {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 26px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  display: none;
  transition: opacity 0.25s ease;
}

.mc-gallery__mobile-scroller.is-open ~ .mc-gallery__mobile-scroller-fade {
  display: block;
}

.mc-gallery__mobile-scroller-fade--top {
  top: 0;
  background: linear-gradient(
    to bottom,
    var(--mcgal-white) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.mc-gallery__mobile-scroller-fade--bottom {
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--mcgal-white) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.mc-gallery__mobile-scroller-wrap.is-scrollable-top .mc-gallery__mobile-scroller-fade--top,
.mc-gallery__mobile-scroller-wrap.is-scrollable-bottom .mc-gallery__mobile-scroller-fade--bottom {
  opacity: 1;
}

.mc-gallery__mobile-scroller-hint {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #28a745;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mc-gallery__mobile-scroller-hint svg,
.mc-gallery__mobile-scroller-hint [data-lucide] {
  width: 11px;
  height: 11px;
  animation: mc-gallery-chevron-nudge 1.6s ease-in-out infinite;
}

.mc-gallery__mobile-scroller.is-open ~ .mc-gallery__mobile-scroller-hint {
  display: inline-flex;
}

.mc-gallery__mobile-scroller-wrap.has-overflow:not(.is-dismissed) .mc-gallery__mobile-scroller-hint {
  opacity: 1;
}

    .mc-gallery__meta {
      margin-top: 16px;
    }
    .mc-gallery__text {
      max-width: none;
      margin-top: 12px;
    }
    .mc-gallery__sidebar-cta {
      margin-top: 16px;
    }

    .mc-gallery__main {
      padding: 0 20px 24px;
    }
    .mc-gallery__stage {
      margin-top: 20px;
    }
    .mc-gallery__frame {
      height: 52vh;
      min-height: 300px;
      max-height: 440px;
    }
    .mc-gallery__frame-index,
    .mc-gallery__frame-ring {
      display: none;
    }
    .mc-gallery__hero-mask {
      border-radius: 10px;
    }
    .mc-gallery__hero-expand {
      opacity: 1;
      transform: none;
    }
    .mc-gallery__controls {
      right: 14px;
      bottom: 14px;
    }
    .mc-gallery__nav {
      width: 42px;
      height: 42px;
    }
    .mc-gallery__nav--next {
      width: 50px;
      height: 50px;
    }
    .mc-gallery__thumb {
      width: 68px;
    }
  }

  @media (max-width: 479.98px) {
    .mc-gallery__frame {
      height: 46vh;
      min-height: 260px;
    }
    .mc-gallery__thumb {
      width: 58px;
    }
  }

  /* ==========================================================================
PREVIEW LIGHTBOX — .mcg-lightbox
========================================================================== */

  .mcg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
  }

  .mcg-lightbox.is-open {
    display: flex;
  }

  .mcg-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 23, 29, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .mcg-lightbox__inner {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mcg-lightbox__close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--mcg-white);
    transition: background-color 0.25s ease, transform 0.25s ease;
  }

  .mcg-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
  }
  .mcg-lightbox__close svg {
    width: 18px;
    height: 18px;
  }

  .mcg-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mcg-lightbox__frame {
    position: relative;
    flex: 1;
    min-width: 0;
    aspect-ratio: 4 / 3;
    max-height: 72vh;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mcg-ocean);
  }

  .mcg-lightbox__skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.06) 30%,
      rgba(255, 255, 255, 0.14) 50%,
      rgba(255, 255, 255, 0.06) 70%
    );
    background-size: 200% 100%;
    animation: mcgal-shimmer 1.6s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .mcg-lightbox__skeleton.is-hidden {
    opacity: 0;
  }

  .mcg-lightbox__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--mcg-ocean);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mcg-lightbox__img.is-loaded {
    opacity: 1;
  }

  .mcg-lightbox__nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mcg-white);
    transition: background-color 0.25s ease, transform 0.25s ease;
  }

  .mcg-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
  }
  .mcg-lightbox__nav svg {
    width: 20px;
    height: 20px;
  }
  .mcg-lightbox__nav:focus-visible,
  .mcg-lightbox__close:focus-visible {
    outline: 2px solid var(--mcg-green);
    outline-offset: 2px;
  }

  .mcg-lightbox__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    letter-spacing: 0.3px;
  }

  .mcg-lightbox__counter {
    color: var(--mcg-white);
    font-weight: 500;
  }

  @media (max-width: 767.98px) {
    .mcg-lightbox__stage {
      gap: 6px;
    }
    .mcg-lightbox__nav {
      width: 38px;
      height: 38px;
    }
    .mcg-lightbox__nav svg {
      width: 16px;
      height: 16px;
    }
    .mcg-lightbox__frame {
      max-height: 60vh;
    }
    .mcg-lightbox__close {
      top: -46px;
    }
  }

  /* ==========================================================================
REDUCED MOTION
========================================================================== */

  @media (prefers-reduced-motion: reduce) {
    .mc-gallery__hero-skeleton,
    .mcg-lightbox__skeleton {
      animation: none !important;
    }
    .mc-gallery *,
    .mcg-lightbox * {
      transition-duration: 0.01ms !important;
    }
  }


  
@media (max-width: 991.98px) {
 
  .mc-gallery__mobile-select-wrap {
    position: relative;
    margin: 4px 0 22px;
  }
 
  /* Turn the plain-text trigger into something that visually reads as a
     control: bordered, tinted, with its own shadow — not just a heading
     with a chevron next to it. */
  .mc-gallery__mobile-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #28a745;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.07);
    font-size: 15px;
    font-weight: 600;
    color: #14161a;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.14);
    transition: box-shadow 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
  }
 
  .mc-gallery__mobile-select:active {
    transform: scale(0.98);
  }
 
  /* Small caption under the trigger that states outright what it does —
     removes any doubt that it's an interactive category picker. */
  .mc-gallery__mobile-select-wrap::after {
    content: "Tap to browse all styles";
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #28a745;
    letter-spacing: 0.2px;
  }
 
  .mc-gallery__mobile-select-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #28a745;
    /* Gentle up/down nudge draws the eye to the chevron without ever
       needing to "finish" or complete — a CSS keyframe loop can't get
       stuck the way a JS-driven, one-shot animation can. */
    animation: mc-gallery-chevron-nudge 1.8s ease-in-out infinite;
  }
 
  /* When your existing JS sets aria-expanded="true" on open, the chevron
     flips to point up and the idle nudge stops — no JS changes needed on
     your side, this reacts to the attribute that's already in the markup. */
  .mc-gallery__mobile-select[aria-expanded="true"] .mc-gallery__mobile-select-icon {
    animation: none;
    transform: rotate(180deg);
  }
 
  @keyframes mc-gallery-chevron-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
  }
 
  /* One-time pulse ring on load to catch the eye on first paint. Runs
     once (`1`), pure CSS, so — unlike every JS-driven animation we fixed
     in Section 1/2 — there's no timeline or target to get stuck. */
  .mc-gallery__mobile-select {
    animation: mc-gallery-pulse 1.6s ease-out 1;
  }
 
  @keyframes mc-gallery-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
  }
 
  @media (prefers-reduced-motion: reduce) {
    .mc-gallery__mobile-select,
    .mc-gallery__mobile-select-icon {
      animation: none !important;
    }
    
    .mc-gallery__categories-hint svg,
.mc-gallery__mobile-scroller-hint svg {
  animation: none !important;
}
  }
}
 