/* Shared image treatment: original proportions, quiet captions and one lightbox. */
.photo-open {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}
.exhibit-photo { min-width: 0; }
.exhibit-photo img { display: block; width: 100%; height: auto; }
.exhibit, .feature-card, .auto-social { scroll-margin-top: 90px; }
.exhibit + .exhibit, .ai-framework + .exhibit, .production-works {
  margin-top: var(--rd-space);
  padding-top: clamp(25px, 3.2vw, 48px);
  border-top: 1px solid var(--rd-line);
}
.exhibit-org, .exhibit-event { display: block; }
.exhibit-event { margin-top: 5px; color: var(--rd-muted); font-size: .69em; font-weight: 520; letter-spacing: -.012em; }
.exhibit > p, .auto-social > p, .feature-card p, .trade-tile-featured p {
  margin-top: 8px;
  color: var(--rd-muted);
  font-size: 15px;
  line-height: 1.7;
}
.exhibit-grid, .feature-pair, .trade-grid {
  display: grid;
  gap: clamp(14px, 1.7vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
:is(.exhibit, .auto-social, .production-works, .system-examples) .exhibit-grid { margin-top: 22px; }
/* In a photo essay, portrait and landscape frames share a column without cropping. */
.exhibit > .exhibit-grid { display: block; columns: 2; column-gap: 14px; }
.exhibit .exhibit-photo { break-inside: avoid; margin: 0 0 14px; }
.exhibit .exhibit-wide { column-span: all; }
.feature-pair { gap: clamp(22px, 3vw, 46px) clamp(16px, 2vw, 32px); }
.feature-card { min-width: 0; }
.feature-card .photo-open { background: #f6f5f2; }
.feature-card img { display: block; width: 100%; }
.feature-card h2 { margin-top: 13px; font-size: clamp(20px, 1.7vw, 27px); }
.feature-card p { margin-top: 5px; }
.product-features .feature-card .photo-open { display: grid; place-items: center; height: auto; aspect-ratio: 16 / 9; }
.product-features img { width: 100%; max-height: 100%; object-fit: contain; }
.work-pictures { align-items: start; }
.work-pictures .photo-open { display: grid; place-items: center; }
.work-pictures:has(> :only-child) { grid-template-columns: minmax(0, 760px); }
.work-pictures img { max-height: 420px; object-fit: contain; }
.video-frames, .studio-frames { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:is(.studio-frames, .video-frames) img { max-height: none; }
#works-heading { scroll-margin-top: 90px; }
.system-examples .work-pictures {
  grid-template-columns: minmax(0, 1.86fr) minmax(0,.8fr) minmax(0,.67fr);
  align-items: end;
}
.system-examples .work-pictures img { max-height: unset; }

.trade-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trade-tile {
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--rd-line);
  padding-bottom: 13px;
}
.trade-tile img { display: block; width: 100%; aspect-ratio: 1.73; object-fit: contain; background: #f3f3f1; }
.trade-tile-copy span { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: clamp(16px, 1.42vw, 23px); font-weight: 600; }
.trade-tile svg { color: var(--rd-red); }
.trade-tile:hover .trade-tile-copy span { color: var(--rd-red); }
.trade-tile.trade-tile-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  padding: 0;
  border: 0;
  background: var(--rd-ink);
  color: #fff;
}
.trade-tile-featured img { aspect-ratio: auto; height: auto; background: transparent; }
.trade-tile-featured .trade-tile-copy { padding: 20px clamp(24px, 3.5vw, 50px); }
.trade-tile-featured span { font-size: clamp(21px, 2vw, 32px); margin: 0; }
.trade-tile-featured p { margin-top: 12px; color: #d6dbe0; }
.trade-tile-featured svg { color: #fff; }
.trade-tile-featured:hover .trade-tile-copy span { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.ai-framework ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin-top: 22px;
  list-style: none;
  border-block: 1px solid var(--rd-line);
}
.ai-framework li { display: grid; align-content: start; gap: 7px; padding: 20px 25px; }
.ai-framework li + li { border-inline-start: 1px solid var(--rd-line); }
.ai-framework li:first-child { padding-inline-start: 0; }
.ai-framework b { font-size: 20px; font-weight: 600; }
.ai-framework li span { color: var(--rd-muted); font-size: 15px; line-height: 1.6; }
.system-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 14px; }
.system-links a:hover { color: var(--rd-red); }
.system-links a svg { color: var(--rd-red); }

.viewer-open { overflow: hidden; }
.photo-viewer {
  width: min(1120px, 94vw);
  max-height: 94dvh;
  padding: 0;
  margin: auto;
  background: #161c25;
  color: #fff;
  border: 1px solid #39424c;
}
.photo-viewer::backdrop { background: rgb(9 13 19 / .9); }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; }
.viewer-top { font-variant-numeric: tabular-nums; font-size: 13px; border-bottom: 1px solid #39424c; }
.photo-viewer figure { margin: 0; }
.photo-viewer img { display: block; width: 100%; height: min(68dvh, 760px); object-fit: contain; background: #0c1016; }
.viewer-caption { font-size: 14px; line-height: 1.5; }
.viewer-buttons { display: flex; gap: 6px; flex: none; }
.photo-viewer button {
  min-height: 40px;
  padding: 5px 12px;
  border: 1px solid #59616c;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.photo-viewer button:hover { background: #353e47; }

@media (min-width: 1000px) {
  .work-pictures:has(> :nth-child(3):last-child):not(.system-examples .work-pictures) { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exhibit > .exhibit-grid:has(> :nth-child(6)) { columns: 3; }
}
@media (max-width: 860px) {
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-tile-featured .trade-tile-copy { padding: 16px 22px; }
  .system-examples .work-pictures { grid-template-columns: 1fr 1fr; align-items: start; }
  .system-examples .work-pictures > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .exhibit > .exhibit-grid { column-gap: 10px; }
  .exhibit .exhibit-photo { margin-bottom: 10px; }
  .feature-pair { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 10px; }
  .product-features .feature-card h2 { margin-top: 8px; font-size: 16px; }
  :is(.exhibit,.auto-social,.production-works,.system-examples) .exhibit-grid { margin-top: 14px; }
  .exhibit > p, .auto-social > p, .feature-card p { font-size: 14px; }
  .trade-tile.trade-tile-featured { grid-template-columns: 1fr; }
  .trade-tile-featured .trade-tile-copy { padding: 15px 16px 18px; }
  .trade-tile-featured p { margin-top: 5px; font-size: 14px; }
  .trade-tile { padding-bottom: 10px; }
  .trade-tile.trade-tile-featured { padding: 0; }
  .trade-tile svg { width: 16px; height: 16px; }
  .ai-framework ol { grid-template-columns: 1fr; }
  .ai-framework li, .ai-framework li:first-child { padding: 14px 0; }
  .ai-framework li + li { border-left: 0; border-top: 1px solid var(--rd-line); }
  .ai-framework b { font-size: 17px; }
  .work-pictures { grid-template-columns: 1fr; }
  .video-frames, .studio-frames { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .viewer-bottom { flex-wrap: wrap; }
  .viewer-caption { flex: 1 1 130px; font-size: 12px; }
  .photo-viewer { width: 96vw; }
  .photo-viewer img { height: 59dvh; }
}

/* Each pair shares its title, description and image rows, including when text wraps. */
.social-page .rd-intro-text { padding-block: clamp(24px, 2.6vw, 42px); }
.social-page .rd-intro-text .rd-heading { display: block; }
.social-page .rd-story-layout { padding-top: clamp(24px, 3vw, 44px); }
.social-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(24px, 3vw, 48px);
}
.social-service {
  min-width: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  border-top: 2px solid var(--rd-ink);
  padding-top: 17px;
  margin-bottom: clamp(19px, 2.4vw, 34px);
}
.social-service h2 {
  font-size: clamp(26px, 2.25vw, 36px);
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: -.035em;
}
.social-service p { font-size: clamp(17px, 1.22vw, 19px); line-height: 1.65; color: var(--rd-muted); }
.social-service .photo-open { margin-top: 5px; overflow: hidden; background: #efefed; }
.social-service img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.social-page .rd-actions { margin-top: 0; }
@media (max-width: 760px) {
  .social-services { grid-template-columns: 1fr; row-gap: 27px; }
  .social-service { display: block; grid-row: auto; margin: 0; padding-top: 15px; }
  .social-service h2 { font-size: clamp(23px, 5.7vw, 30px); }
  .social-service p { margin: 7px 0 13px; font-size: 16px; }
  .social-page .rd-actions { margin-top: 30px; }
}
