/* Scoped portfolio galleries. Existing pages/panels and confirmation dialogs are untouched. */
.dfx-gallery-r151{box-sizing:border-box;width:min(1120px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);padding:0;margin:auto;border:1px solid var(--dfx-border);border-radius:22px;background:#fff;color:var(--dfx-ink);font:400 15px/1.55 var(--dfx-font-family);box-shadow:0 24px 80px rgb(6 27 59 / 24%);overflow:hidden;overscroll-behavior:contain}
.dfx-gallery-r151:not([open]){display:none}.dfx-gallery-r151[open]{display:flex;flex-direction:column;animation:dfx-gallery-enter 180ms cubic-bezier(.2,.7,.2,1)}
.dfx-gallery-r151::backdrop{background:rgb(6 27 59 / 52%);backdrop-filter:blur(7px);animation:dfx-gallery-backdrop 180ms ease-out}
.dfx-gallery-r151[data-closing=true]{pointer-events:none}.dfx-gallery-r151[data-closing=true]::backdrop{background:rgb(6 27 59 / 35%)}
.dfx-gallery-r151 [hidden]{display:none!important}
.dfx-gallery-r151 *{box-sizing:border-box}
.dfx-gallery-r151 :is(h2,h3,p){margin:0;overflow-wrap:anywhere}
.dfx-gallery-r151 .dfx-gallery-header{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 20px;border-bottom:1px solid var(--dfx-border);background:linear-gradient(115deg,#fff,#f3f9fc)}
.dfx-gallery-r151 .dfx-gallery-heading{min-width:0;max-width:820px}
.dfx-gallery-r151 .dfx-gallery-eyebrow{font-size:11px;font-weight:600;letter-spacing:.11em;text-transform:uppercase;color:var(--dfx-accent);margin-bottom:6px}
.dfx-gallery-r151 .dfx-gallery-heading h2{font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.025em;text-wrap:balance}
.dfx-gallery-r151 .dfx-gallery-description{color:var(--dfx-muted);font-size:13px;line-height:1.6;margin-top:9px;max-width:700px}
.dfx-gallery-r151 button{font-family:var(--dfx-font-family);cursor:pointer;touch-action:manipulation;transition:background-color 150ms,border-color 150ms,box-shadow 150ms}
.dfx-gallery-r151 .dfx-gallery-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;max-width:100%;padding:9px 13px;border:1px solid var(--dfx-border);border-radius:10px;background:#fff;color:var(--dfx-primary);font-size:13px;font-weight:600;line-height:1.4;white-space:normal;text-align:center;box-shadow:none}
.dfx-gallery-r151 .dfx-gallery-close{flex:none;background:var(--dfx-selected)}
.dfx-gallery-r151 :is(button,a,[tabindex]):focus-visible{outline:3px solid var(--dfx-accent);outline-offset:3px}
.dfx-gallery-r151 button:disabled{cursor:default;opacity:.5}
.dfx-gallery-r151 .dfx-gallery-body{min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:18px;flex:1;padding:24px}
.dfx-gallery-r151 .dfx-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.dfx-gallery-r151 .dfx-gallery-card{display:flex;flex-direction:column;gap:0;min-width:0;width:100%;padding:0;border:1px solid var(--dfx-border);border-radius:14px;background:#fff;color:var(--dfx-ink);overflow:hidden;text-align:left;box-shadow:0 2px 8px rgb(6 27 59 / 3%)}
.dfx-gallery-r151 .dfx-gallery-thumbnail{position:relative;display:block;min-width:0;min-height:0;width:100%;height:190px;padding:10px;background:#f4f8fb;overflow:hidden}
.dfx-gallery-r151 .dfx-gallery-thumbnail-video{height:240px;background:#edf4f8}
.dfx-gallery-r151 .dfx-gallery-thumbnail img{display:block;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:7px}
.dfx-gallery-r151 .dfx-gallery-thumbnail-unavailable{font-size:13px;color:var(--dfx-muted)}
.dfx-gallery-r151 .dfx-gallery-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border:1px solid rgb(255 255 255 / 80%);border-radius:50%;background:rgb(6 54 79 / 87%);color:#fff;font-size:17px;padding-left:2px;box-shadow:0 4px 18px rgb(6 27 59 / 18%)}
.dfx-gallery-r151 .dfx-gallery-card-copy{display:grid;gap:5px;width:100%;padding:14px 16px;border-top:1px solid var(--dfx-border);overflow-wrap:anywhere}
.dfx-gallery-r151 .dfx-gallery-card-copy strong{font-size:14px;font-weight:600;line-height:1.45}
.dfx-gallery-r151 .dfx-gallery-card-copy>span{font-size:12px;color:var(--dfx-muted)}
.dfx-gallery-r151 .dfx-gallery-viewer{display:grid;gap:16px;min-width:0}
.dfx-gallery-r151 .dfx-gallery-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between}
.dfx-gallery-r151 .dfx-gallery-item-count{font-size:13px;color:var(--dfx-muted)}
.dfx-gallery-r151 .dfx-gallery-paging{display:flex;gap:8px;margin-left:auto}
.dfx-gallery-r151 .dfx-gallery-item-title{font-size:19px;font-weight:600;line-height:1.4;scroll-margin-top:16px}
.dfx-gallery-r151 .dfx-gallery-stage{position:relative;min-width:0;height:clamp(240px,54dvh,650px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--dfx-border);border-radius:12px;background:#eef4f8;scrollbar-gutter:stable;touch-action:pan-x pan-y pinch-zoom}
.dfx-gallery-r151 .dfx-gallery-canvas{display:grid;place-items:center;min-width:100%;min-height:100%;padding:12px}
.dfx-gallery-r151 .dfx-gallery-stage img{display:block;max-width:none;max-height:none;width:auto;height:auto;object-fit:contain;box-shadow:0 2px 12px rgb(6 27 59 / 10%)}
.dfx-gallery-r151 .dfx-gallery-stage[data-kind=video]{background:#061b3b;overflow:hidden}
.dfx-gallery-r151 .dfx-gallery-stage[data-kind=video] .dfx-gallery-canvas{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;width:auto;height:auto;padding:0;overflow:hidden}
.dfx-gallery-r151 .dfx-gallery-stage video{display:block;flex:0 1 auto;min-width:0;min-height:0;width:auto;height:100%;max-width:100%;max-height:100%;object-fit:contain;background:#061b3b}
.dfx-gallery-r151 .dfx-gallery-zoom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dfx-gallery-r151 .dfx-gallery-zoom-status{min-width:70px;text-align:center;font-size:12px;color:var(--dfx-muted)}
.dfx-gallery-r151 .dfx-gallery-caption{font-size:13px;color:var(--dfx-muted);line-height:1.65;max-width:920px}
.dfx-gallery-r151 .dfx-gallery-media-status{font-size:13px;color:var(--dfx-primary)}
.dfx-gallery-r151 .dfx-gallery-media-status:empty{display:none}
.dfx-gallery-r151 [data-gallery-retry]{justify-self:start}
.dfx-gallery-r151 .dfx-gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;flex:none;padding:14px 24px;border-top:1px solid var(--dfx-border);background:#fff;color:var(--dfx-muted);font-size:12px;line-height:1.5}
@media(hover:hover){.dfx-gallery-r151 .dfx-gallery-card:hover{border-color:#aacbd8;box-shadow:0 5px 20px rgb(6 27 59 / 9%)}.dfx-gallery-r151 .dfx-gallery-control:not(:disabled):hover{border-color:#aacbd8;background:var(--dfx-selected)}}
@media(max-width:800px){.dfx-gallery-r151 .dfx-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dfx-gallery-r151 .dfx-gallery-header{padding:18px}.dfx-gallery-r151 .dfx-gallery-body{padding:18px}.dfx-gallery-r151 .dfx-gallery-heading h2{font-size:24px}}
@media(max-width:480px){.dfx-gallery-r151{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.dfx-gallery-r151 .dfx-gallery-header{padding:14px;gap:10px}.dfx-gallery-r151 .dfx-gallery-heading h2{font-size:21px}.dfx-gallery-r151 .dfx-gallery-description{font-size:12px;line-height:1.5}.dfx-gallery-r151 .dfx-gallery-body{padding:14px}.dfx-gallery-r151 .dfx-gallery-grid{gap:10px}.dfx-gallery-r151 .dfx-gallery-thumbnail{height:132px;padding:6px}.dfx-gallery-r151 .dfx-gallery-thumbnail-video{height:180px}.dfx-gallery-r151 .dfx-gallery-card-copy{padding:10px}.dfx-gallery-r151 .dfx-gallery-card-copy strong{font-size:13px}.dfx-gallery-r151 .dfx-gallery-control{padding:9px 10px}.dfx-gallery-r151 .dfx-gallery-toolbar{gap:8px}.dfx-gallery-r151 .dfx-gallery-paging{width:100%;justify-content:space-between;margin:0}.dfx-gallery-r151 .dfx-gallery-stage{height:48dvh;min-height:220px}.dfx-gallery-r151 .dfx-gallery-footer{padding:11px 14px;gap:5px}.dfx-gallery-r151 .dfx-gallery-footer>p:last-child{font-size:11px}.dfx-gallery-r151 .dfx-gallery-zoom{gap:6px}.dfx-gallery-r151 .dfx-gallery-zoom-status{min-width:55px}}
@media(max-width:350px){.dfx-gallery-r151 .dfx-gallery-grid{grid-template-columns:1fr}.dfx-gallery-r151 .dfx-gallery-thumbnail{height:180px}.dfx-gallery-r151 .dfx-gallery-thumbnail-video{height:260px}}
@media(max-height:500px) and (min-width:600px){.dfx-gallery-r151 .dfx-gallery-header{padding:12px 18px}.dfx-gallery-r151 .dfx-gallery-description{max-width:740px}.dfx-gallery-r151 .dfx-gallery-heading h2{font-size:21px}.dfx-gallery-r151 .dfx-gallery-body{padding:14px 18px}.dfx-gallery-r151 .dfx-gallery-footer{padding:9px 18px}}
@media(prefers-reduced-motion:reduce){.dfx-gallery-r151[open],.dfx-gallery-r151::backdrop{animation:none}.dfx-gallery-r151 button{transition:none}}
@media(forced-colors:active){.dfx-gallery-r151,.dfx-gallery-r151 .dfx-gallery-card,.dfx-gallery-r151 .dfx-gallery-control{border-color:CanvasText;box-shadow:none}.dfx-gallery-r151 :is(button,a,[tabindex]):focus-visible{outline-color:Highlight}.dfx-gallery-r151 .dfx-gallery-play{background:Canvas;color:CanvasText}}
@keyframes dfx-gallery-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes dfx-gallery-backdrop{from{opacity:0}to{opacity:1}}

/* Only newly introduced homepage previews and the no-JavaScript work page. */
#work .work-gallery-preview{display:grid;position:relative;align-self:start;gap:0;min-width:0;width:100%;overflow:hidden;border:1px solid var(--dfx-border);border-radius:10px;background:#fff;color:var(--dfx-ink);text-decoration:none;box-shadow:0 2px 7px rgb(6 27 59 / 4%)}
#work .work-gallery-preview img{display:block;width:100%;height:120px;object-fit:contain;padding:6px;background:#f5f9fc}
#work .work-gallery-preview>span{display:block;padding:5px 7px;border-top:1px solid var(--dfx-border);font-size:11px;font-weight:600;text-align:center;line-height:1.45;overflow-wrap:anywhere}
#work .work-gallery-preview:focus-visible{outline:3px solid var(--dfx-accent);outline-offset:4px}
.pg-fallback{padding-top:30px;padding-bottom:36px}
.pg-fallback>header{max-width:820px;margin-bottom:28px}
.pg-fallback>header h1{font-size:clamp(32px,5vw,52px);line-height:1.15;margin:10px 0 14px}
.pg-fallback>header p{font-size:15px;line-height:1.65}
.pg-fallback>section{padding-top:24px;scroll-margin-top:24px}
.pg-fallback>section+section{margin-top:28px;padding-top:28px;border-top:1px solid var(--dfx-border)}
.pg-fallback>section>h2{font-size:28px;margin-bottom:10px}
.pg-fallback>section>p{max-width:820px;font-size:14px;margin-bottom:20px}
.pg-fallback .pg-fallback-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px;align-items:start}
.pg-fallback .pg-fallback-card{min-width:0;overflow:hidden;border:1px solid var(--dfx-border);border-radius:14px;background:#fff;box-shadow:0 2px 10px rgb(6 27 59 / 3%)}
.pg-fallback .pg-fallback-card>a:first-child{display:block;background:#f4f8fb}
.pg-fallback .pg-fallback-card img{display:block;width:100%;height:200px;object-fit:contain;padding:10px;background:#f4f8fb}
.pg-fallback .pg-fallback-card h3{font-size:17px;line-height:1.4;margin:15px 16px 10px;overflow-wrap:anywhere}
.pg-fallback .pg-fallback-card p{font-size:13px;line-height:1.6;margin:10px 16px;overflow-wrap:anywhere}
.pg-fallback .pg-fallback-card>a:not(:first-child){display:inline-flex;align-items:center;min-height:44px;margin:0 16px 14px;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media(hover:hover){#work .work-gallery-preview:hover{border-color:#aacbd8;box-shadow:0 4px 14px rgb(6 27 59 / 10%)}}
@media(max-width:800px){.pg-fallback .pg-fallback-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#work .work-gallery-preview img{height:110px}.pg-fallback .pg-fallback-grid{grid-template-columns:1fr}.pg-fallback>section>h2{font-size:25px}.pg-fallback .pg-fallback-card img{height:220px}}

/* R155: landing design details open width-fit; thumbnails/Meta/video keep existing layout. */
.dfx-gallery-r151[data-gallery=landing][data-view=detail]{height:calc(100dvh - 40px)}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-header{padding:13px 18px;align-items:center}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-heading h2{font-size:22px}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] :is(.dfx-gallery-eyebrow,.dfx-gallery-description,.dfx-gallery-footer){display:none}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-body{display:flex;overflow:hidden;padding:12px 16px;min-height:0}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-viewer{display:flex;flex-direction:column;gap:8px;min-height:0;width:100%;height:100%}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-toolbar{flex:none;gap:8px;flex-wrap:nowrap}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-paging{width:auto;flex:none;margin-left:auto}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-item-count{flex:none;white-space:nowrap;font-size:12px}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-item-title{flex:none;font-size:16px;line-height:1.4}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-stage{flex:1 1 0;min-height:100px;height:auto;border-radius:8px;scroll-padding:0;background:#fff;overflow:auto}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-canvas{display:block;min-height:100%;padding:0}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-stage img{margin:0;height:auto;object-position:top left;box-shadow:none}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-zoom{flex:none;flex-wrap:nowrap;gap:7px}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-zoom-status{min-width:58px}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-caption{flex:none;max-width:none;font-size:12px;line-height:1.45}
.dfx-gallery-r151[data-gallery=landing][data-view=detail] :is(.dfx-gallery-media-status,[data-gallery-retry]){flex:none}
@media(max-width:480px){.dfx-gallery-r151[data-gallery=landing][data-view=detail]{height:calc(100dvh - 16px)}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-header{padding:10px 12px;gap:10px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-heading h2{font-size:19px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-body{padding:10px 12px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-toolbar{gap:6px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-toolbar .dfx-gallery-control{padding:9px 8px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-paging{gap:5px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-caption{font-size:11px}}
@media(max-height:500px){.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-body{overflow:auto}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-viewer{height:auto;min-height:360px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-stage{flex:none;height:180px}.dfx-gallery-r151[data-gallery=landing][data-view=detail] .dfx-gallery-caption{font-size:11px}}

/* Meta/video detail controls remain outside the only scrollable media stage. */
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] {
  height: calc(100dvh - 40px);
}
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-header {
  padding: 12px 18px;
  align-items: center;
}
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-heading h2 { font-size: 22px; }
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] :is(.dfx-gallery-eyebrow,.dfx-gallery-description,.dfx-gallery-footer) { display: none; }
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-body {
  display: flex;
  overflow: hidden;
  padding: 12px 16px;
  min-height: 0;
}
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-viewer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] :is(.dfx-gallery-toolbar,.dfx-gallery-item-title,.dfx-gallery-zoom,.dfx-gallery-media-status,[data-gallery-retry]) { flex: none; }
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-toolbar { gap: 8px; }
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-item-title { font-size: 16px; }
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-stage {
  flex: 1 1 0;
  min-height: 80px;
  height: auto;
}
.dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-caption {
  flex: none;
  max-height: 3.3em;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}

/* One horizontal video row: three desktop cards, two tablet, one phone. */
.dfx-gallery-r151[data-gallery=videos][data-view=grid] { height: min(760px,calc(100dvh - 40px)); }
.dfx-gallery-r151[data-gallery=videos][data-view=grid] .dfx-gallery-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.dfx-gallery-r151 .dfx-gallery-grid-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dfx-gallery-r151 .dfx-gallery-grid-count { font-size: 13px; text-align: center; color: var(--dfx-muted); }
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-grid {
  --gallery-visible: 3;
  display: grid;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  grid-template-columns: none;
  grid-template-rows: minmax(0,1fr);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-inline: contain;
  padding: 5px 0 10px;
}
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-card {
  height: 100%;
  min-height: 0;
  scroll-snap-align: start;
}
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-thumbnail-video { flex: 1 1 0; height: auto; min-height: 0; }
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-card-copy { flex: none; }
@media(max-width:800px) {
  .dfx-gallery-r151[data-gallery=videos] .dfx-gallery-grid { --gallery-visible: 2; grid-auto-columns: calc((100% - 16px) / 2); }
}
@media(max-width:480px) {
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail],
  .dfx-gallery-r151[data-gallery=videos][data-view=grid] { height: calc(100dvh - 16px); }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-header { padding: 10px 12px; }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-heading h2 { font-size: 19px; }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-body { padding: 10px 12px; }
  .dfx-gallery-r151[data-gallery=videos] .dfx-gallery-grid { --gallery-visible: 1; grid-auto-columns: 100%; gap: 12px; }
  .dfx-gallery-r151 .dfx-gallery-grid-toolbar { gap: 8px; }
  .dfx-gallery-r151 .dfx-gallery-grid-count { font-size: 12px; }
}
@media(max-height:500px) {
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-header { padding: 7px 12px; }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-heading h2 { font-size: 18px; }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-body { padding: 8px 12px; }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-viewer { gap: 5px; }
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-caption { max-height: 1.5em; font-size: 11px; }
  .dfx-gallery-r151[data-gallery=videos][data-view=grid] :is(.dfx-gallery-eyebrow,.dfx-gallery-description,.dfx-gallery-footer) { display: none; }
  .dfx-gallery-r151[data-gallery=videos][data-view=grid] .dfx-gallery-header { padding: 8px 12px; align-items: center; }
  .dfx-gallery-r151[data-gallery=videos][data-view=grid] .dfx-gallery-heading h2 { font-size: 18px; }
  .dfx-gallery-r151[data-gallery=videos][data-view=grid] .dfx-gallery-body { padding: 10px 12px; gap: 6px; }
  .dfx-gallery-r151[data-gallery=videos] .dfx-gallery-card-copy { padding: 7px 10px; gap: 0; }
}
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-card:focus-visible { outline-offset: -4px; }

/* Icon navigation and non-overlapping horizontal video pages. */
.dfx-gallery-r151 .dfx-gallery-control-icon { display: block; flex: none; width: 18px; height: 18px; }
.dfx-gallery-r151 .dfx-gallery-control-label { min-width: 0; }
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-card { scroll-snap-align: none; }
.dfx-gallery-r151[data-gallery=videos] .dfx-gallery-card[data-gallery-page-start] { scroll-snap-align: start; }
.dfx-gallery-r151 .dfx-gallery-spacer { min-width: 0; pointer-events: none; }
@media(max-width:480px) {
  .dfx-gallery-r151:is([data-gallery=meta],[data-gallery=videos])[data-view=detail] .dfx-gallery-toolbar > .dfx-gallery-control { gap: 6px; }
  .dfx-gallery-r151 .dfx-gallery-grid-toolbar .dfx-gallery-control { gap: 5px; padding-inline: 8px; }
}

.dfx-gallery-r151[data-gallery=landing] .dfx-gallery-control-icon { display: none; }
