/* Hidden below the existing desktop breakpoint; mobile rules are untouched. */
.proo-gallery { display: none; }
html[data-desktop-gallery] { --proo-gallery-gutter: 8px; --proo-gallery-radius: 14px; }
html[data-desktop-gallery] .proo-static-hero[data-desktop-gallery] .proo-static-hero__join { display: none !important; }
@media (min-width: 1024px) {
  html[data-desktop-gallery] .proo-gallery {
    display: block;
    margin-top: clamp(40px, 5vh, 64px);
  }
  html[data-desktop-gallery] .proo-static-hero[data-desktop-gallery] {
    height: auto !important;
    min-height: 0 !important;
    overflow: clip !important;
  }
  html[data-desktop-gallery] .proo-static-hero[data-desktop-gallery] .proo-static-hero__inner {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
  }
  html[data-desktop-gallery] .proo-static-hero[data-desktop-gallery] .proo-static-hero__copy {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }
  html[data-desktop-gallery] .proo-static-hero[data-desktop-gallery] :is(
    .proo-static-hero__cards, .proo-static-hero__mobile-card-indicator,
    .proo-static-hero__section4-tabs, .proo-static-hero__frosted-stage,
    .proo-static-hero__mobile-final-copy, .proo-service-ring
  ) { display: none !important; }
}
/* Shared gallery styling also supports the separate mobile gallery preview. */
  html[data-desktop-gallery] .proo-gallery {
    --gallery-surface: #edede9;
    --gallery-ink: #171717;
    --gallery-muted: #6c6b69;
    --gallery-pill: #efeeec;
    --gallery-border: #d8d7d4;
    position: relative;
    padding: 0 var(--proo-gallery-gutter) 24px;
    color: var(--gallery-ink);
    font-family: 'Google Sans', Arial, sans-serif;
    text-align: left;
  }
  html[data-desktop-gallery][data-hero-theme="dark"] .proo-gallery {
    --gallery-surface: #1c1c1e;
    --gallery-ink: #f5f5f3;
    --gallery-muted: #aaa7a3;
    --gallery-pill: #252423;
    --gallery-border: #403e3b;
  }
  .proo-gallery *, .proo-gallery *::before, .proo-gallery *::after { box-sizing: border-box; }
  .proo-gallery a { color: inherit; text-decoration: none; }
  .proo-gallery__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 4px 8px; }
  .proo-gallery__filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .proo-gallery__filters button {
    appearance: none; border: 0; border-radius: 999px; padding: 7px 13px; margin: 0;
    background: var(--gallery-pill); color: var(--gallery-ink); min-height: 34px;
    font: 500 16px/1.2 'Google Sans', Arial, sans-serif; letter-spacing: -.035em;
    cursor: pointer; box-shadow: none; transition: background-color 150ms, color 150ms;
  }
  .proo-gallery__filters button[aria-pressed="true"] { background: var(--gallery-ink); color: var(--gallery-surface); }
  .proo-gallery__filters button:hover { background: var(--gallery-border); color: var(--gallery-ink); }
  .proo-gallery a:focus-visible, .proo-gallery button:focus-visible { outline: 2px solid var(--gallery-ink); outline-offset: 3px; }
  .proo-gallery__count { flex-shrink: 0; color: var(--gallery-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
  .proo-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--proo-gallery-gutter); row-gap: 28px; }
  .proo-gallery__item { position: relative; min-width: 0; margin: 0; padding: 0; background: transparent; }
  .proo-gallery__item[hidden] { display: none !important; }
  .proo-gallery__more { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 48px auto 0; padding: 8px 18px; border: 1px solid var(--gallery-border); border-radius: 999px; background: var(--gallery-border); color: var(--gallery-ink); font: 500 15px/1.2 'Google Sans', Arial, sans-serif; letter-spacing: -.025em; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
  .proo-gallery__more[hidden] { display: none; }
  .proo-gallery__more:is(:hover, :focus-visible) { background: var(--gallery-ink); color: var(--gallery-surface); border-color: var(--gallery-ink); }
  .proo-gallery__stage {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 1.406 / 1; overflow: hidden; border-radius: var(--proo-gallery-radius);
    background: var(--gallery-surface);
  }
  .proo-gallery__index { position: absolute; top: 15px; left: 16px; color: var(--gallery-muted); font: 500 12px/1.4 'Google Sans', Arial, sans-serif; }
  .proo-gallery__badge { display: inline-block; margin-left: 8px; padding: 3px 7px; border: 1px solid var(--gallery-border); border-radius: 30px; font-size: 10px; }
  .proo-gallery__art { position: relative; display: block; width: 80%; aspect-ratio: 1.6 / 1; border-radius: 6px; overflow: hidden; }
  .proo-gallery__art--software img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .proo-gallery__video { display: block; width: 100%; height: 100%; object-fit: cover; }
  .proo-gallery__video-control { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; background: #161616aa; color: #fff; cursor: pointer; }
  .proo-gallery__video-control[hidden] { display: none; }
  .proo-gallery__photo { height: auto; object-fit: cover; }
  .proo-gallery__caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px 0; }
  .proo-gallery__caption > div:first-child { display: flex; flex-direction: column; gap: 4px; }
  .proo-gallery__caption h2 { padding: 0; margin: 0; font: 500 18px/1.25 'Google Sans', Arial, sans-serif; letter-spacing: -.035em; color: var(--gallery-ink); }
  .proo-gallery__caption h2 a { display: block; line-height: inherit; }
  .proo-gallery__caption p { padding: 0; margin: 0; color: var(--gallery-muted); font: 400 15px/1.3 'Google Sans', Arial, sans-serif; letter-spacing: -.025em; }
  .proo-gallery__arrow { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--gallery-border); border-radius: 50%; }
  .proo-gallery svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .proo-gallery__website { container-type: inline-size; background: #eeeae1; color: #252821; }
  .proo-gallery__site-nav { position: absolute; inset: 0 0 auto; height: 16%; display: flex; align-items: center; justify-content: space-between; padding-inline: 5%; border-bottom: 1px solid #25282130; font: 500 1.45cqw/1 'Google Sans', Arial, sans-serif; letter-spacing: .08em; }
  .proo-gallery__site-nav b { display: flex; align-items: baseline; gap: .5cqw; font: 600 6cqw/.9 'Google Sans', Arial, sans-serif; letter-spacing: -.09em; }
  .proo-gallery__site-nav b span { font-size: 2cqw; color: #df5637; }
  .proo-gallery__site-menu { font-size: 2.5cqw; }
  .proo-gallery__site-body { position: absolute; inset: 16% 0 10%; display: grid; grid-template-columns: 52% 48%; }
  .proo-gallery__site-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 7% 9.5%; }
  .proo-gallery__site-title { font: 600 7.3cqw/.99 'Google Sans', Arial, sans-serif; letter-spacing: -.065em; }
  .proo-gallery__site-note { margin-top: 3cqw; max-width: 25cqw; font: 400 1.8cqw/1.35 'Google Sans', Arial, sans-serif; }
  .proo-gallery__site-cta { display: grid; place-items: center; width: 5cqw; height: 5cqw; margin-top: 2.5cqw; border: 1px solid #252821; border-radius: 50%; font: 400 3cqw/1 Arial, sans-serif; }
  .proo-gallery__site-sculpture { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6% 0; background: #df694b; overflow: hidden; }
  .proo-gallery__site-sculpture span { font: 500 1.3cqw/1 'Google Sans', Arial, sans-serif; letter-spacing: .1em; }
  .proo-gallery .proo-gallery__site-sculpture svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 95%; height: auto; max-height: 82%; stroke: #352d25; stroke-width: 1.2; }
  .proo-gallery__site-bottom { position: absolute; inset: auto 0 0; height: 10%; padding-inline: 5%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #25282130; font: 500 1.2cqw/1 'Google Sans', Arial, sans-serif; letter-spacing: .08em; }
  .proo-gallery__hands { background: #232325; }
  .proo-gallery__hand { position: absolute; display: block; inset: 0; width: 100%; height: 100%; filter: brightness(0) invert(1); opacity: .74; }
  .proo-gallery__hand img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .proo-gallery__hand--left { transform: translateX(-2%); }
  .proo-gallery__hand--right { transform: translateX(2%); }
  .proo-gallery__formation { background: #29292d; }
  .proo-gallery__formation picture { display: block; position: absolute; width: 88%; top: -16%; right: -8%; }
  .proo-gallery__formation img { display: block; width: 100%; height: auto; opacity: .22; filter: grayscale(1) invert(1) brightness(2.8) contrast(1.6); }
  .proo-gallery__formation-links { display: flex; gap: 8px; flex-shrink: 0; }
  .proo-gallery__formation-links a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--gallery-border); border-radius: 40px; font-size: 12px; white-space: nowrap; }
  .proo-gallery__item[data-gallery-service="formation"] .proo-gallery__caption > div:first-child { min-width: 0; }
  #proo-gallery-approach { scroll-margin-top: 90px; }
  @media (prefers-reduced-motion: reduce) { .proo-gallery__filters button { transition: none; } }

@media (min-width: 1024px) {
  html[data-gallery-three-column] .proo-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-gallery-three-column] .proo-gallery__item[data-gallery-default-extra][hidden] { display: block !important; }
  html[data-desktop-gallery] .proo-gallery--continuation { display: none; }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-desktop-gallery] .proo-process-exterior .posh-grid {
    padding-inline: var(--proo-gallery-gutter) !important;
    gap: var(--proo-gallery-gutter) !important;
    box-sizing: border-box;
  }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-desktop-gallery] .proo-process-exterior .posh-grid .posh-col,
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-desktop-gallery] .proo-process-exterior .posh-grid .posh-col .posh-card {
    border-radius: var(--proo-gallery-radius) !important;
    overflow: hidden !important;
  }
}

@media (max-width: 1023px) {
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-desktop-gallery] .proo-static-hero[data-gallery-continuation] { height: auto !important; max-height: none !important; }
  html:is(#hero-directions,[data-proo-home-release])[data-cinema-demo][data-desktop-gallery] .proo-static-hero[data-gallery-continuation] .proo-static-hero__inner { position: relative !important; top: auto !important; height: var(--proo-hero-viewport-height, 100svh) !important; }
  html[data-desktop-gallery] .proo-gallery--continuation { display: block; margin-top: 28px; }
  .proo-gallery--continuation .proo-gallery__grid { grid-template-columns: minmax(0, 1fr); }
  html:is(#hero-directions,[data-proo-home-release])[data-desktop-gallery]:not([data-mobile-gallery]) #proo-gallery-approach { margin-top: 0 !important; }
  @media (min-width: 601px) {
    .proo-gallery--continuation .proo-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}
