/* A native modal keeps the underlying portfolio and its scroll position intact. */
.case-viewer {
  --case-accent: #7d39eb;
  --case-lime: #c6ff33;
  color-scheme: light;
  width: min(1580px, 96vw);
  max-width: none;
  height: 94dvh;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 30px 100px #0008;
  overflow: auto;
  overscroll-behavior: contain;
}
.case-viewer::backdrop {
  background: #000000e6;
  backdrop-filter: blur(12px);
}
.case-viewer[open] {
  animation: cv-enter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case-viewer.is-closing {
  animation: cv-exit 0.18s ease-in both;
  pointer-events: none;
}
@keyframes cv-enter {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cv-exit {
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}
.case-viewer [hidden] {
  display: none !important;
}
.case-viewer button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.case-viewer button:focus-visible {
  outline: 3px solid var(--case-accent);
  outline-offset: 4px;
}
.cv-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  position: relative;
  z-index: 5;
}
.cv-categories {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
}
.cv-categories button {
  white-space: nowrap;
  border: 0;
  background: none;
  border-radius: 99px;
  padding: 12px clamp(10px, 1.4vw, 24px);
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s;
}
.cv-categories button[aria-pressed="true"] {
  background: #7d39eb;
  color: #fff;
}
.cv-categories button:hover:not([aria-pressed="true"]) {
  background: #c6ff3338;
}
.cv-close {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  color: #fff !important;
  background: #000000;
  white-space: nowrap;
  font-size: 12px !important;
}
.cv-close span:not(.edge-glow-layer) {
  font-size: 24px;
  line-height: 1;
}
.cv-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 41% 59%;
  grid-template-rows: auto 1fr;
  min-height: 510px;
  position: relative;
}
.cv-rail {
  grid-area: 1 / 1;
  width: 137%;
  padding: 0 20px 22px 0;
  background: #ffffff;
  border-radius: 0 0 28px 0;
  z-index: 2;
  position: relative;
}
.cv-rail-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 12px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #666b60;
}
.cv-thumbnails {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--case-count, 5), minmax(0, 1fr));
  gap: 10px;
}
.cv-thumbnails button {
  position: relative;
  padding: 0;
  height: clamp(125px, 17dvh, 210px);
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  background: #d9d8ce;
}
.cv-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s,
    filter 0.35s;
  filter: saturate(0.6);
}
.cv-thumbnails button:hover img {
  transform: scale(1.07);
  filter: none;
}
.cv-thumbnails button[aria-current="true"] {
  border-color: var(--case-accent);
}
.cv-thumbnails button[aria-current="true"] img {
  filter: none;
}
.cv-thumbnails span:not(.edge-glow-layer) {
  position: absolute;
  bottom: 8px;
  left: 7px;
  right: 7px;
  padding: 8px 2px;
  font-size: 10px;
  border-radius: 99px;
  text-align: center;
  background: #ffffffdb;
  backdrop-filter: blur(6px);
}
.cv-copy {
  grid-area: 2 / 1;
  padding: 24px 32px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cv-project-badge {
  margin: 0 0 20px;
  padding: 10px 14px;
  color: #ffffff;
  background: #000000;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.cv-eyebrow {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--case-accent);
  line-height: 1.7;
}
.cv-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  white-space: pre-line;
  font-size: clamp(44px, 5.3vw, 86px);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.06em;
  margin: 0;
}
.cv-chinese-title {
  margin: 18px 0 14px;
  font-size: clamp(17px, 1.7vw, 25px);
  letter-spacing: 0.02em;
}
.cv-description {
  max-width: 360px;
  margin: 0 0 20px;
  color: #6a6b63;
  font-size: 12px;
  line-height: 1.9;
}
.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.cv-tags > span:not(.edge-glow-layer) {
  padding: 6px 10px;
  border: 1px solid #bbbcb1;
  border-radius: 99px;
  font-size: 10px;
}
.cv-copy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  padding-top: 22px;
  font-size: 8px;
  color: #77796f;
  letter-spacing: 0.03em;
}
.cv-project-link {
  color: #6f8323;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.cv-project-link:hover {
  color: #7d39eb;
}
.cv-visual {
  grid-area: 1 / 2 / 3 / 3;
  margin: 0;
  min-height: 100%;
  position: relative;
  border-radius: 25px;
  background: var(--case-accent);
  overflow: hidden;
  isolation: isolate;
}
.cv-image-button {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  touch-action: pan-y;
  cursor: zoom-in !important;
  overflow: hidden;
}
.cv-image-button:disabled {
  cursor: default !important;
}
.cv-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  user-select: none;
}
.is-zoomed .cv-main-image {
  transform: scale(1.45);
}
.is-zoomed .cv-image-button {
  cursor: zoom-out !important;
}
.cv-image-hint {
  position: absolute;
  right: 22px;
  top: 22px;
  padding: 10px 14px;
  background: #ffffffdb;
  border-radius: 99px;
  font-size: 10px;
  pointer-events: none;
}
.cv-hotspots {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  right: 24px;
  top: 44%;
}
.cv-hotspots button {
  padding: 12px 18px;
  border: 0;
  border-radius: 99px;
  background: #fffffff0;
  box-shadow: 0 5px 30px #0001;
  font-size: 11px;
}
.cv-hotspots button[aria-expanded="true"] {
  background: var(--case-lime);
  color: #000;
}
.cv-detail {
  position: absolute;
  right: 24px;
  bottom: 112px;
  width: min(310px, calc(100% - 48px));
  padding: 20px;
  border-radius: 18px;
  background: #f1f0eaf5;
  font-size: 12px;
  line-height: 1.9;
  box-shadow: 0 12px 40px #0002;
}
.cv-image-caption {
  position: absolute;
  left: 25px;
  bottom: 28px;
  padding: 8px 12px;
  color: #fff;
  background: #17201670;
  backdrop-filter: blur(10px);
  border-radius: 99px;
  max-width: calc(100% - 215px);
  font-size: 11px;
}
.cv-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffffed;
  border-radius: 99px;
  padding: 6px;
}
.cv-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #e6e7df;
  font-size: 20px;
  transition: background 0.2s;
}
.cv-controls button:hover {
  background: var(--case-lime);
}
.cv-position {
  font-size: 11px;
  min-width: 42px;
  font-variant-numeric: tabular-nums;
}
.cv-pending {
  grid-area: 1 / 1;
  align-self: center;
  padding: 30px 25px 30px 4px;
}
.cv-pending > span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #77796f;
}
.cv-pending p {
  font-size: 22px;
}
.cv-pending button {
  border: 0;
  background: #c6ff33;
  border-radius: 99px;
  padding: 13px 20px;
  font-size: 12px;
}
.is-pending .cv-copy {
  padding-top: 10px;
}
.cv-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}
@media (min-width: 1500px) {
  .cv-shell {
    padding: 26px;
  }
  .cv-copy {
    padding-top: 36px;
    padding-right: 55px;
  }
  .cv-description {
    font-size: 14px;
    max-width: 430px;
  }
}
@media (max-width: 800px) {
  .case-viewer {
    width: 96vw;
    height: 96dvh;
    border-radius: 20px;
  }
  .cv-shell {
    padding: 14px;
  }
  .cv-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 8px 0 12px;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
  .cv-close {
    order: -1;
    margin-left: auto;
    min-height: 38px;
    padding: 5px 16px;
  }
  .cv-categories {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cv-categories button {
    flex: 1 0 auto;
    padding: 10px 13px;
    font-size: 11px;
  }
  .cv-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
  }
  .cv-rail {
    width: 100%;
    padding: 0;
    border-radius: 0;
  }
  .cv-thumbnails {
    scrollbar-width: none;
    overflow-x: auto;
    padding: 3px 3px 8px;
    grid-template-columns: repeat(var(--case-count, 5), minmax(76px, 1fr));
    gap: 8px;
  }
  .cv-thumbnails button {
    height: 105px;
    border-radius: 13px;
  }
  .cv-thumbnails span:not(.edge-glow-layer) {
    left: 3px;
    right: 3px;
    bottom: 5px;
    padding: 6px 1px;
    font-size: 9px;
  }
  .cv-visual {
    order: 1;
    height: 470px;
    min-height: 0;
    flex: none;
    border-radius: 20px;
  }
  .cv-copy {
    order: 2;
    padding: 12px 5px 10px;
  }
  .cv-copy h2 {
    font-size: clamp(50px, 10vw, 76px);
  }
  .cv-description {
    max-width: 100%;
    font-size: 13px;
  }
  .cv-copy-footer {
    padding-top: 24px;
  }
  .cv-image-caption {
    bottom: 82px;
    max-width: calc(100% - 40px);
    left: 20px;
  }
  .cv-hotspots {
    top: 34%;
    right: 16px;
  }
  .cv-detail {
    bottom: 125px;
    right: 16px;
    padding: 15px;
  }
  .cv-pending {
    padding: 10px 5px;
  }
}
/* Wide visual with an inset project strip, shared by all six categories. */
.cv-shell {
  padding: clamp(14px, 2vw, 28px);
}
.cv-layout {
  grid-template-columns: minmax(0, 34%) minmax(0, 66%);
  grid-template-rows: auto auto;
  gap: 0;
  align-content: start;
}
.cv-visual {
  grid-area: 1 / 1 / 2 / 3;
  height: clamp(420px, 57dvh, 690px);
  min-height: 0;
  border-radius: 28px;
}
.cv-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000b, #0002 75%),
    linear-gradient(0deg, #0006, transparent 50%);
  pointer-events: none;
}
.cv-hero-heading {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 3.5vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  width: min(70%, 850px);
  color: #fff;
  pointer-events: none;
}
.cv-hero-heading h2 {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 4.5vw, 74px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.055em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.cv-hero-heading .cv-eyebrow {
  color: #fff;
  margin-bottom: 16px;
}
.cv-hero-heading .cv-project-badge {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 16px;
  font-size: clamp(11px, 1vw, 15px);
  border-radius: 6px;
  background: #0009;
}
.cv-hero-heading .cv-chinese-title {
  font-size: clamp(14px, 1.5vw, 22px);
  margin: 18px 0 0;
  line-height: 1.5;
}
.cv-image-hint,
.cv-hotspots,
.cv-detail,
.cv-image-caption,
.cv-controls {
  z-index: 2;
}
.cv-controls {
  bottom: 88px;
}
.cv-image-caption {
  display: none;
}
.cv-hotspots {
  top: 32%;
  gap: 10px;
}
.cv-detail {
  bottom: 150px;
}
.cv-copy {
  grid-area: 2 / 1;
  padding: 25px 28px 10px 2px;
}
.cv-description {
  max-width: none;
  font-size: 13px;
  line-height: 1.85;
}
.cv-tags {
  margin-top: 0;
}
.cv-rail {
  grid-area: 2 / 2;
  width: 100%;
  margin-top: -64px;
  padding: 20px 0 12px 22px;
  border-radius: 32px 0 0 0;
  align-self: start;
}
.cv-rail-heading {
  padding: 0 5px 14px;
}
.cv-thumbnails {
  gap: 10px;
}
.cv-thumbnails button {
  height: clamp(160px, 22dvh, 240px);
  background: #242424;
  border-radius: 18px;
}
.cv-thumbnails img {
  filter: brightness(0.7) saturate(0.7);
}
.cv-thumbnails span:not(.edge-glow-layer) {
  color: white;
  background: #161616cf;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.5;
  padding: 9px 6px;
}
@media (max-width: 800px) {
  .cv-visual {
    order: 0;
    height: 520px;
    border-radius: 22px;
  }
  .cv-hero-heading {
    width: calc(100% - 44px);
    left: 22px;
    top: 36%;
  }
  .cv-hero-heading h2 {
    font-size: clamp(32px, 7.5vw, 52px);
  }
  .cv-hero-heading .cv-chinese-title {
    font-size: 14px;
  }
  .cv-hotspots {
    top: auto;
    bottom: 88px;
    right: 16px;
  }
  .cv-detail {
    bottom: 185px;
  }
  .cv-controls {
    bottom: 18px;
  }
  .cv-rail {
    order: 1;
    margin-top: -18px;
    padding: 18px 0 0;
    border-radius: 22px 22px 0 0;
  }
  .cv-thumbnails {
    grid-template-columns: repeat(var(--case-count, 5), minmax(105px, 1fr));
  }
  .cv-thumbnails button {
    height: 150px;
  }
  .cv-copy {
    order: 2;
    padding: 4px 5px 12px;
  }
}
/* Anniversary artwork: tilted, alternating image strips inspired by TiltedTiles. */
.cv-visual.has-gallery { background: #122018; }
.has-gallery .cv-image-button,
.has-gallery .cv-image-hint { display: none; }
.cv-tiles { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; }
.cv-tiles-plane {
  position: absolute;
  top: 50%; left: 50%;
  width: 220%;
  height: 240%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  transform: translate(-50%, -50%) rotateX(calc(24deg + var(--pointer-x, 0deg))) rotateY(calc(8deg + var(--pointer-y, 0deg))) rotateZ(-18deg) scale(var(--wall-scale, 1));
  transition: transform 600ms ease-out;
  pointer-events: auto;
}
.cv-tiles-lane { min-width: 0; align-self: start; will-change: transform; }
.case-viewer .cv-tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; border-radius: 10px; cursor: default; transition: transform .3s ease, filter .3s ease; transform-origin: center; }
@media (hover: hover) and (pointer: fine) {
  .cv-tiles-lane:hover { z-index: 2; }
  .cv-tile:hover { z-index: 3; transform: scale(1.18); filter: brightness(1.15) drop-shadow(0 16px 20px #0006); }
}
@media (prefers-reduced-motion: reduce) {
  .case-viewer .cv-tile { transition: none; }
}
.cv-lightbox { width: min(1100px, 94vw); height: 92dvh; max-width: none; max-height: none; padding: 58px 20px 16px; border: 1px solid #ffffff30; border-radius: 20px; background: #101a14; color: white; overflow: hidden; box-sizing: border-box; }
.cv-lightbox::backdrop { background: #000d; backdrop-filter: blur(10px); }
.cv-lightbox img { width: 100%; height: calc(100% - 38px); object-fit: contain; display: block; }
.cv-lightbox p { margin: 12px 0 0; text-align: center; font-size: 14px; }
.cv-lightbox-close { position: absolute; top: 12px; right: 16px; border: 1px solid #ffffff60; border-radius: 999px; padding: 9px 18px; background: #24372a; color: white; cursor: pointer; }
.cv-tiles-group { display: grid; gap: 18px; padding-bottom: 18px; }
.cv-tiles-group img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--tile-background, #e4e5df); border-radius: 10px; box-shadow: 0 12px 26px #0004; }
.cv-tiles-landscape { --wall-scale: 1.333333; }
.cv-tiles-landscape .cv-tiles-group img { aspect-ratio: 16 / 9; object-fit: cover; }
.cv-tiles-natural .cv-tiles-group img { aspect-ratio: auto; height: auto; background: transparent; }
.cv-visual.has-gallery::after { pointer-events: none; background: linear-gradient(90deg, #09130ce0, #09130c15 85%), linear-gradient(0deg, #09130caa, transparent 65%); }
.has-gallery .cv-hero-heading { width: 66%; }
.has-gallery .cv-hero-heading h2 { font-size: clamp(38px, 5.4vw, 76px); }
.has-gallery .cv-chinese-title { max-width: 560px; line-height: 1.7; white-space: pre-line; }
.cv-tiles-toggle { position: absolute; top: 18px; right: 18px; z-index: 3; padding: 10px 16px; border: 1px solid #ffffff70; border-radius: 999px; color: white; background: #102318d9; cursor: pointer; }
.case-viewer .cv-tiles-toggle { color: white; }
.cv-gallery-jump { align-self: flex-start; padding: 12px 18px; margin-top: 15px; border: 1px solid #cad4bf; border-radius: 999px; background: #edf4e5; color: #304b1e; cursor: pointer; }
.cv-gallery { margin-top: 38px; padding-top: 30px; border-top: 1px solid #dfe4d9; scroll-margin-top: 85px; }
.cv-gallery-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.cv-gallery-header p { margin: 0 0 10px; font-size: 11px; letter-spacing: .18em; color: #65715b; }
.cv-gallery-header h3 { margin: 0; font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -.04em; }
.cv-gallery-controls { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cv-gallery-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #cdd5c5; background: white; color: #1a2815; cursor: pointer; }
.cv-gallery-count { font-size: 13px; font-variant-numeric: tabular-nums; }
.cv-gallery-figure { margin: 0; border-radius: 20px; background: #eff2e9; overflow: hidden; }
.cv-gallery-image { display: block; width: 100%; height: clamp(380px, 68dvh, 820px); object-fit: contain; }
.cv-gallery-caption { padding: 16px 22px; text-align: center; font-size: 14px; color: #34472b; }
.cv-gallery-natural .cv-gallery-figure { width: fit-content; max-width: 100%; margin-inline: auto; background: #f5f0e9; }
.cv-gallery-natural .cv-gallery-image { width: auto; height: auto; max-width: 100%; max-height: 68dvh; }
.cv-gallery-thumbs { position: relative; display: flex; gap: 14px; overflow-x: auto; padding: 18px 2px 8px; scrollbar-width: thin; }
.cv-gallery-thumbs button { position: relative; flex: 0 0 clamp(120px, 14vw, 168px); height: clamp(148px, 17vw, 200px); padding: 3px; border: 2px solid transparent; border-radius: 10px; background: #edf2e7; cursor: pointer; }
.cv-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.cv-gallery-thumbs span { position: absolute; right: 6px; bottom: 6px; padding: 4px 7px; background: #172817d9; color: white; font-size: 12px; border-radius: 4px; }
.cv-gallery-thumbs button[aria-current="true"] { border-color: var(--case-accent); }
.cv-gallery button:focus-visible, .cv-gallery-jump:focus-visible, .cv-tiles-toggle:focus-visible { outline: 3px solid #7d39eb; outline-offset: 3px; }
@media (max-width: 800px) {
  .cv-tiles-plane { width: 340%; gap: 12px; }
  .cv-tiles-group { gap: 12px; padding-bottom: 12px; }
  .has-gallery .cv-hero-heading { top: 45%; width: calc(100% - 44px); }
  .has-gallery .cv-hero-heading h2 { font-size: clamp(38px, 8vw, 54px); }
  .cv-gallery-header { flex-wrap: wrap; gap: 16px; }
  .cv-gallery { margin-top: 24px; }
  .cv-gallery-image { height: clamp(360px, 62dvh, 620px); }
}
.cv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 10;
}
.cv-visual.is-playing-film {
  margin-bottom: 64px;
}
.cv-play-film,
.cv-exit-film {
  position: absolute;
  z-index: 11;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
}
.cv-play-film {
  left: 26px;
  bottom: 85px;
  background: #c6ff33;
  color: #000;
}
.cv-exit-film {
  top: 16px;
  right: 16px;
  background: #ffffffdf;
  color: #000;
}
.is-playing-film .cv-hero-heading,
.is-playing-film .cv-image-button,
.is-playing-film .cv-image-hint,
.is-playing-film .cv-hotspots,
.is-playing-film .cv-detail,
.is-playing-film .cv-controls,
.is-playing-film .cv-play-film,
.is-playing-film > .edge-glow-layer,
.is-playing-film::after {
  display: none;
}
@media (max-width: 800px) {
  .cv-play-film { bottom: 24px; left: 16px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-viewer[open],
  .case-viewer.is-closing {
    animation: none;
  }
  .case-viewer *,
  .case-viewer *::before,
  .case-viewer *::after {
    transition: none !important;
  }
}

/* Content groups and readable website case studies. */
.cv-gallery-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cv-gallery-sections[hidden], .cv-gallery-reading[hidden] { display: none; }
.cv-gallery-sections button { border: 1px solid #cdd5c5; border-radius: 999px; padding: 11px 18px; min-height: 44px; background: #fff; color: #34472b; font: inherit; font-size: 13px; cursor: pointer; }
.cv-gallery-sections button[aria-pressed="true"] { background: var(--case-accent); border-color: var(--case-accent); color: #fff; }
.cv-gallery-reading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #526047; }
.cv-gallery-original { color: var(--case-accent); text-underline-offset: 4px; }
.cv-gallery-webpage .cv-gallery-viewport { max-height: 72dvh; overflow-y: auto; scrollbar-width: thin; background: #fff; }
.cv-gallery-webpage .cv-gallery-image { width: 100%; height: auto; max-height: none; }
.cv-gallery-viewport:focus-visible, .cv-gallery-original:focus-visible { outline: 3px solid #7d39eb; outline-offset: -3px; }
