@font-face {
  font-family: 'Studio Sans';
  src: url('./assets/fonts/nimbus-sans-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Studio Sans';
  src: url('./assets/fonts/nimbus-sans-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f5f5f5;
  --ink-black: #000000;
  --ink-dark: #141414;
  --ink-mid: #737373;
  --ink-light: #9a9a9a;
  --ink-on-black: #ffffff;
  --ink-muted-on-black: #cccccc;
  --rule-ink: #000000;
  --rule-subtle: rgba(0, 0, 0, 0.14);

  --font-helvetica: 'Helvetica Neue', Helvetica, 'Studio Sans', Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--ink-black);
  color: var(--ink-on-black);
}

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--ink-black);
  font-family: var(--font-helvetica);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-black) var(--bg-subtle);
  caret-color: var(--ink-black);
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

html::-webkit-scrollbar-thumb {
  background: var(--ink-black);
}

body {
  font-family: var(--font-helvetica);
  background-color: var(--bg-page);
  color: var(--ink-black);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.22em;
  font-family: var(--font-helvetica);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink-black);
  outline-offset: 3px;
}

/* ==========================================================================
   DESKTOP TWO-COLUMN PORTFOLIO SHELL (30% Pinned Left Rail + 4% Gutter + 66% Feed)
   ========================================================================== */

.portfolio-shell {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.left-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  max-width: 460px;
  padding: 1.35rem 1.5rem 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: var(--bg-page);
  z-index: 40;
}

.left-rail::-webkit-scrollbar {
  display: none;
}

.rail-top {
  display: flex;
  flex-direction: column;
}

/* Large Cow Brand Logo (Replaces BLAKE BOHLS text header) */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.brand-logo-link {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.brand-logo-link:hover {
  opacity: 0.82;
}

.brand-logo-img {
  width: clamp(190px, 19vw, 255px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.role-block {
  color: var(--ink-light);
  font-family: var(--font-helvetica);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.28;
  margin-bottom: 0.85rem;
  white-space: pre-line;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.14rem;
  font-family: var(--font-helvetica);
  font-size: 0.98rem;
  line-height: 1.28;
  margin-bottom: 0.35rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ink-black);
  font-weight: 500;
  transition: opacity 160ms ease;
}

.contact-links a:hover {
  opacity: 0.55;
}

.icon-ne-arrow {
  width: 0.78em;
  height: 0.78em;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

/* Section Headers & 1px Horizontal Rules (Design / Motion) */
.index-section {
  margin-top: 1.1rem;
}

.index-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.index-section-title {
  font-family: var(--font-helvetica);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-black);
  letter-spacing: -0.01em;
  cursor: pointer;
}

.index-section-count {
  font-family: var(--font-helvetica);
  font-size: 0.75rem;
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
}

.section-rule {
  border: 0;
  height: 1px;
  background-color: var(--rule-ink);
  display: block;
  margin-bottom: 0.45rem;
}

/* Numbered Sidebar Options: Light gray by default, dark black on hover/active */
.catalog-list {
  margin: 0;
  padding: 0 0 0 1.95em;
  font-family: var(--font-helvetica);
  font-size: 0.98rem;
  line-height: 1.26;
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
}

.catalog-list li {
  margin-bottom: 0.14rem;
  padding-right: 0.25rem;
  color: var(--ink-light);
  transition: color 160ms ease;
}

.catalog-list li::marker {
  font-family: var(--font-helvetica);
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease;
}

.catalog-link {
  display: inline;
  color: var(--ink-light);
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.catalog-link b {
  color: var(--ink-light);
  font-weight: 700;
  transition: color 160ms ease;
}

/* Hover & Active: Transition from light gray to dark black */
.catalog-list li:hover,
.catalog-list li:hover::marker,
.catalog-list li:hover .catalog-link,
.catalog-list li:hover .catalog-link b,
.catalog-list li.is-active,
.catalog-list li.is-active::marker,
.catalog-list li.is-active .catalog-link,
.catalog-list li.is-active .catalog-link b {
  color: var(--ink-black);
}

.catalog-cue-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--ink-black);
  margin-left: 0.35rem;
  vertical-align: middle;
}

.catalog-list li.is-active .catalog-cue-dot {
  display: inline-block;
}

/* Pinned Desktop Footer inside Rail */
.rail-footer {
  padding-top: 1.25rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-helvetica);
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ==========================================================================
   RIGHT-HAND 66% CAMPAIGN & MOTION FEED
   ========================================================================== */

.main-feed {
  width: 66%;
  max-width: 66%;
  padding: 1.5rem 1.5rem 5rem 0;
  min-height: 100vh;
}

/* Top Featured Work + 24h Digital Clock Bar */
.feed-statusbar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.65rem;
}

.statusbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.highlight-badge {
  background-color: var(--ink-black);
  color: var(--ink-on-black);
  font-family: var(--font-helvetica);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.16rem 0.6rem;
  display: inline-block;
  white-space: nowrap;
}

.filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--rule-subtle);
  color: var(--ink-light);
  font-family: var(--font-helvetica);
  font-size: 0.8rem;
  padding: 0.16rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-btn:hover {
  border-color: var(--ink-black);
  color: var(--ink-black);
}

.filter-btn.is-active {
  background-color: var(--ink-black);
  border-color: var(--ink-black);
  color: var(--ink-on-black);
}

.statusbar-right {
  text-align: right;
}

.studio-clock {
  background-color: var(--ink-black);
  color: var(--ink-muted-on-black);
  font-family: var(--font-helvetica);
  font-size: 0.95rem;
  padding: 0.16rem 0.55rem;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Project Entries in Feed: Side-by-Side 2-Column Grid */
.feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 1.25rem;
  align-items: start;
}

.feed-list > .pure-gallery-grid,
.feed-list > .empty-feed-note {
  grid-column: 1 / -1;
}

.feed-item {
  scroll-margin-top: 1.5rem;
  min-width: 0;
  transition: opacity 280ms var(--ease-out-expo);
}

.feed-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.feed-card-meta .project-cat-stamp,
.feed-card-meta .credits-block,
.feed-card-meta .campaign-prose {
  margin: 0;
}

/* Design Layout: 2-Column Artwork Pair + 2-Column Metadata Row (Images stay full color!) */
.column-set-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.column-set-2 > *,
.case-study-header-grid > *,
.case-study-gallery > *,
.pure-gallery-grid > * {
  min-width: 0;
}

.media-pair {
  margin-bottom: 1rem;
  align-items: start;
}

.media-frame {
  position: relative;
  width: 100%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--rule-subtle);
  overflow: hidden;
  cursor: pointer;
}

.media-frame.square {
  height: auto;
}

.media-frame.widescreen {
  aspect-ratio: 16 / 9;
  background-color: #0d0d0d;
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 420ms var(--ease-out-expo);
}

.media-frame:hover img {
  transform: scale(1.018);
}

.project-title-link {
  font-family: var(--font-helvetica);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1.25;
  display: inline-block;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: opacity 160ms ease;
}

.project-title-link:hover {
  opacity: 0.6;
}

.project-subheading {
  font-family: var(--font-helvetica);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink-dark);
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-cat-stamp {
  font-family: var(--font-helvetica);
  font-size: 0.76rem;
  color: var(--ink-mid);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.credits-block {
  font-family: var(--font-helvetica);
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-mid);
  margin-bottom: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.credits-block i {
  font-style: italic;
  color: var(--ink-mid);
}

.campaign-prose {
  font-family: var(--font-helvetica);
  font-size: 0.96rem;
  line-height: 1.42;
  color: var(--ink-mid);
  max-width: 68ch;
  margin-bottom: 1.05rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Signature Inverted Black [ View ] Trigger (Pure B&W) */
.view-bracket-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--ink-black);
  color: var(--ink-on-black);
  font-family: var(--font-helvetica);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--ink-black);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.view-bracket-btn:hover {
  background-color: var(--bg-page);
  color: var(--ink-black);
}

/* Motion Visualizer Canvas & Controls inside 16:9 Frame */
.motion-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0a0a0c;
  border: 1px solid var(--rule-subtle);
  overflow: hidden;
}

.motion-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.motion-stage.is-playing .motion-canvas {
  display: block;
}

.motion-controls-bar {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  pointer-events: auto;
}

.motion-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(0, 0, 0, 0.88);
  color: var(--ink-on-black);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.28rem 0.65rem;
  font-family: var(--font-helvetica);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.motion-play-btn:hover {
  background-color: var(--ink-on-black);
  color: var(--ink-black);
}

.motion-play-btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.motion-tc-badge {
  background-color: rgba(0, 0, 0, 0.88);
  color: var(--ink-muted-on-black);
  padding: 0.22rem 0.5rem;
  font-family: var(--font-helvetica);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PROJECT CASE STUDY DETAIL VIEW
   ========================================================================== */

.case-study-view {
  display: none;
  padding-bottom: 4rem;
}

.case-study-view.is-open {
  display: block;
}

.case-study-topbar,
.case-study-back-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule-ink);
  margin-bottom: 1.5rem;
}

.case-study-back-bar .project-cat-stamp {
  margin-top: 0;
}

.back-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--ink-black);
  color: var(--ink-on-black);
  font-family: var(--font-helvetica);
  font-size: 0.9rem;
  padding: 0.24rem 0.65rem;
  border: 1px solid var(--ink-black);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.back-feed-btn:hover {
  background-color: var(--bg-page);
  color: var(--ink-black);
}

.case-study-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.case-study-title {
  font-family: var(--font-helvetica);
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.deliverables-list {
  margin-top: 0.85rem;
  padding-left: 1.25rem;
  font-family: var(--font-helvetica);
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.45;
}

.case-study-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

.case-study-gallery .full-span {
  grid-column: 1 / -1;
}

.case-study-gallery.single-col {
  grid-template-columns: 1fr;
}

.caption-bar {
  font-family: var(--font-helvetica);
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-top: 0.45rem;
}

/* ==========================================================================
   MOBILE HEADER, FROSTED MENU OVERLAY & FOOTER
   ========================================================================== */

.mobile-header,
.mobile-footer,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 960px) {
  .left-rail {
    display: none;
  }

  .portfolio-shell {
    display: block;
    padding-top: 10.5rem;
    padding-bottom: 4.5rem;
  }

  .main-feed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 1rem 1.25rem 3rem 1.25rem;
  }

  .mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-page);
    border-bottom: 1.5px solid var(--ink-black);
    padding: 0.85rem 1.25rem;
    z-index: 80;
  }

  .mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
  }

  .mobile-brand-group {
    display: flex;
    align-items: center;
  }

  .mobile-brand-group img {
    width: 145px;
    height: auto;
    max-height: 85px;
    object-fit: contain;
    object-position: left center;
  }

  .mobile-menu-btn {
    background: transparent;
    border: 0;
    font-family: var(--font-helvetica);
    font-size: 0.98rem;
    text-decoration: underline;
    cursor: pointer;
    color: var(--ink-black);
  }

  .mobile-header-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .mobile-roles {
    color: var(--ink-light);
  }

  .mobile-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    padding: 1.25rem;
    overflow-y: auto;
  }

  .mobile-menu-overlay.is-open {
    display: block;
  }

  .mobile-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
  }

  .mobile-close-btn {
    background: transparent;
    border: 0;
    font-family: var(--font-helvetica);
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink-black);
  }

  .mobile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-page);
    border-top: 1.5px solid var(--ink-black);
    padding: 0.85rem 1.25rem;
    z-index: 80;
    font-size: 0.95rem;
  }

  .mobile-footer button {
    background: transparent;
    border: 0;
    font-family: var(--font-helvetica);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }

  .feed-statusbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
  }

  .statusbar-left {
    display: contents;
  }

  .highlight-badge {
    order: 1;
  }

  .statusbar-right {
    order: 2;
    text-align: right;
  }

  .filter-pills {
    order: 3;
    width: 100%;
  }

  .feed-list,
  .column-set-2,
  .case-study-header-grid,
  .case-study-gallery {
    grid-template-columns: 1fr;
  }
}

/* Sanity Empty States & Native Video / Embed Players */
.catalog-empty-note {
  list-style: none;
  margin-left: -2.1em;
  color: var(--ink-light);
  font-size: 0.85rem;
  padding: 0.15rem 0;
}

.portfolio-shell,
.mobile-header,
.mobile-footer {
  opacity: 0;
}

body.is-hydrated .portfolio-shell,
body.is-hydrated .mobile-header,
body.is-hydrated .mobile-footer {
  opacity: 1;
}

.empty-feed-note {
  font-family: var(--font-helvetica);
  font-size: 0.95rem;
  color: var(--ink-light);
  margin: 0;
}

.motion-video-el,
.video-embed-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* Sidebar Gallery Link */
.catalog-list.catalog-unstyled {
  list-style: none;
  padding-left: 0;
}

/* Pure Media Gallery Section (All Artworks & Videos) */
.pure-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.pure-gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-subtle);
  background: var(--bg-elevated);
}

.pure-gallery-item.square {
  height: auto;
}

.pure-gallery-item.widescreen {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.pure-gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.media-frame img {
  cursor: zoom-in;
}

/* Full-Picture Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
}

.lightbox-modal[hidden] {
  display: none !important;
}

.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--ink-black);
  background: var(--bg-page);
  flex-shrink: 0;
}

.lightbox-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.lightbox-title {
  font-family: var(--font-helvetica);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-counter {
  font-family: var(--font-helvetica);
  font-size: 0.8rem;
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lightbox-nav-btn,
.lightbox-close-btn {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 0;
  font-family: var(--font-helvetica);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.lightbox-nav-btn:hover,
.lightbox-close-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-out;
  user-select: none;
}

.lightbox-img {
  max-width: 94vw;
  max-height: calc(100vh - 5.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--rule-subtle);
  transform-origin: center center;
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.lightbox-img.is-zoomed {
  cursor: grab;
}

.lightbox-img.is-dragging {
  cursor: grabbing;
  transition: none;
}

@media (max-width: 960px) {
  .pure-gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-topbar {
    padding: 0.75rem 1rem;
  }

  .lightbox-stage {
    padding: 0.75rem;
  }
}


