.p-site .p-gallery-open { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px 6px 7px; border: 1px solid var(--p-rule); border-radius: 99px; background: var(--p-surface); color: var(--p-ink); font-size: 12px; text-align: left; box-shadow: 0 2px 4px #142d2805; }
.p-gallery-open-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--p-wash); color: var(--p-accent); }
.p-gallery-open-icon>.p-icon { width: 16px; height: 16px; }
.p-gallery-open-count { padding: 7px 10px; margin-left: 6px; border-left: 1px solid var(--p-rule); color: var(--p-muted); font-size: 9px; letter-spacing: .015em; }
.p-gallery-is-open { overflow: hidden; padding-right: var(--p-gallery-scrollbar,0px); }
.p-gallery-viewer { --gallery-paper: #f1f1e9; --gallery-ink: #2b303c; --gallery-muted: #5f6970; --gallery-accent: #2f6c60; --gallery-rule: #ced6cf; width: min(1440px,calc(100vw - 40px)); height: min(1040px,calc(100dvh - 40px)); max-width: none; max-height: none; padding: 0; margin: auto; overflow: hidden; border: 1px solid #ffffff35; border-radius: 18px; background: #101118; color: #f5f4ed; box-shadow: 0 28px 120px #0007; }
.p-gallery-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; }
.p-gallery-viewer::backdrop { background: #071013d9; backdrop-filter: blur(16px); }
.p-gallery-viewer .p-icon { display: block; }
.p-gallery-viewer :focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.p-gallery-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 10px 17px 10px 28px; border-bottom: 1px solid #ffffff15; background: #101118; }
.p-gallery-wordmark { display: inline-flex; align-items: baseline; gap: 9px; font: 29px/.9 var(--p-serif); letter-spacing: -.045em; }
.p-gallery-wordmark>span { color: #b3b8b7; font: 9px var(--p-mono); letter-spacing: .035em; }
.p-gallery-counter { margin-left: auto; color: #c7ceca; font-size: 10px; letter-spacing: .08em; }
.p-site .p-gallery-close { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid #ffffff2a; border-radius: 50%; background: transparent; color: #f5f4ed; }
.p-site .p-gallery-close>.p-icon { width: 16px; height: 16px; }
.p-gallery-viewport { position: relative; isolation: isolate; min-height: 0; overflow: hidden; background: #101118; touch-action: pan-y; cursor: grab; }
.p-gallery-viewer[data-dragging] .p-gallery-viewport { cursor: grabbing; }
.p-gallery-canvas { position: absolute; inset: 0; overflow: visible; will-change: transform; }
.p-gallery-layer { position: absolute; inset: 0; isolation: isolate; overflow: hidden; background: var(--gallery-placeholder-dark,#101118); will-change: transform; }
.p-gallery-layer::before { content: ''; position: absolute; z-index: -1; inset: -45px; background-image: linear-gradient(#10111860,#10111860),var(--gallery-image); background-size: cover; background-position: var(--gallery-image-position,center); filter: blur(32px); opacity: .65; pointer-events: none; }
.p-gallery-layer>img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; max-height: none; object-fit: contain; object-position: center; opacity: 0; user-select: none; -webkit-user-drag: none; }
.p-gallery-layer[data-quality]>img { opacity: 1; }
.p-gallery-layer[data-pixel] img { image-rendering: pixelated; }
.p-gallery-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 11px; padding: 30px; background: linear-gradient(140deg,color-mix(in srgb,var(--gallery-placeholder-accent) 23%,var(--gallery-placeholder-dark)),var(--gallery-placeholder-dark) 57%,color-mix(in srgb,var(--gallery-placeholder-paper) 9%,var(--gallery-placeholder-dark))); color: var(--gallery-placeholder-paper,#f5f4ed); text-align: center; pointer-events: none; }
.p-gallery-placeholder>span { max-width: 18ch; font: 32px/1.1 var(--p-serif); letter-spacing: -.025em; }
.p-gallery-placeholder>small { max-width: 30ch; color: inherit; font: 9px/1.7 var(--p-mono); opacity: .7; }
.p-gallery-layer[data-quality]>.p-gallery-placeholder { opacity: 0; }
.p-gallery-viewport::after { content: ''; position: absolute; z-index: 2; inset: 0; border: 1px solid #ffffff0b; box-shadow: inset 0 35px 50px -45px #0006,inset 0 -35px 50px -45px #0006; pointer-events: none; }
.p-site .p-gallery-step { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; background: #1011189c; color: #fff; transform: translateY(-50%); backdrop-filter: blur(16px); cursor: pointer; }
.p-site .p-gallery-step>.p-icon { width: 19px; height: 19px; }
.p-gallery-previous { left: 20px; }
.p-gallery-previous>.p-icon { transform: rotate(180deg); }
.p-gallery-next { right: 20px; }
.p-gallery-image-label { position: absolute; z-index: 3; bottom: 17px; left: 25px; padding: 5px 9px; border: 1px solid #ffffff40; border-radius: 4px; background: #101118b3; color: #f5f4ed; font-size: 9px; letter-spacing: .04em; backdrop-filter: blur(12px); pointer-events: none; }
.p-gallery-loading { position: absolute; z-index: 4; top: 16px; left: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #ffffff35; border-radius: 99px; background: #101118d9; color: #f5f4ed; font: 10px var(--p-sans); opacity: 0; transform: translateX(-50%); pointer-events: none; }
.p-gallery-loading>i { width: 5px; height: 5px; border-radius: 50%; background: #dabe90; }
.p-gallery-viewer[data-loading] .p-gallery-loading { opacity: 1; }
.p-gallery-story { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,auto); gap: 30px; align-items: center; min-width: 0; padding: 26px 32px 24px; border-block: 1px solid var(--gallery-rule); background: var(--gallery-paper); color: var(--gallery-ink); }
.p-gallery-eyebrow { margin: 0 0 11px !important; color: var(--gallery-muted); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.p-gallery-story h2 { max-width: 26ch; min-height: 2.06em; margin: 0 !important; font: clamp(30px,3vw,49px)/1.03 var(--p-serif); letter-spacing: -.04em; text-wrap: balance; }
.p-gallery-description { max-width: 65ch; min-height: 3.4em; margin: 10px 0 0 !important; color: var(--gallery-muted); font-size: 12px; line-height: 1.7; }
.p-gallery-choice { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.p-gallery-palette { display: flex; overflow: hidden; border: 1px solid #10111820; border-radius: 99px; }
.p-gallery-palette>i { width: 25px; height: 7px; background: var(--gallery-colour); }
.p-site .p-gallery-apply { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 202px; min-height: 46px; padding: 12px 16px; border: 1px solid var(--gallery-accent); border-radius: 8px; background: var(--gallery-accent); color: var(--gallery-paper); font-size: 12px; text-align: left; }
.p-site .p-gallery-apply>.p-icon { width: 17px; height: 17px; }
.p-site .p-gallery-apply[aria-disabled='true'] { cursor: default; }
.p-site .p-gallery-apply[data-current] { border-color: var(--gallery-rule); background: transparent; color: var(--gallery-accent); }
.p-site .p-gallery-apply[aria-busy='true'] { cursor: progress; }
.p-site .p-gallery-credit { max-width: 32ch; color: var(--gallery-muted); font-size: 9px; line-height: 1.6; text-align: right; text-decoration: none; }
.p-gallery-story :focus-visible { outline-color: var(--gallery-accent); }
.p-gallery-bottom { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 27px; min-width: 0; padding: 14px 25px; background: #101118; }
.p-gallery-thumbnails { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-padding-inline: 3px; }
.p-gallery-thumbnails::-webkit-scrollbar { display: none; }
.p-gallery-scrubber { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 3px; background: #e6e5de; pointer-events: none; will-change: transform; }
.p-site .p-gallery-thumb { position: relative; flex: 0 0 66px; width: 66px; height: 43px; padding: 3px; overflow: hidden; border: 1px solid transparent; border-radius: 6px; background: transparent; opacity: .55; }
.p-site .p-gallery-thumb>img { display: block; width: 100%; height: 100%; border-radius: 3px; object-fit: cover; }
.p-site .p-gallery-thumb[aria-pressed='true'] { border-color: #e6e5de; opacity: 1; }
.p-site .p-gallery-thumb[data-current]::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 5px; height: 5px; border: 1px solid #10111890; border-radius: 50%; background: #b9e0c0; }
.p-gallery-keyboard { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; margin: 0 !important; color: #b3b8b7; font-size: 9px; }
.p-gallery-keyboard>span { display: flex; align-items: center; gap: 5px; }
.p-gallery-keyboard kbd { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border: 1px solid #ffffff35; border-radius: 3px; background: transparent; color: #d4d8d4; font: 9px var(--p-mono); }
.p-gallery-feedback { position: absolute; z-index: 5; top: 77px; left: 50%; max-width: min(90%,460px); padding: 10px 16px; margin: 0 !important; border: 1px solid #ffffff45; border-radius: 8px; background: #101118ee; color: #f5f4ed; font-size: 11px; line-height: 1.6; text-align: center; transform: translateX(-50%); }

@media (hover:hover) {
  .p-site .p-gallery-open:hover { border-color: var(--p-accent); box-shadow: 0 7px 18px -14px var(--p-accent); }
  .p-site .p-gallery-close:hover, .p-site .p-gallery-step:hover { border-color: #fff; background: #253130df; }
  .p-site .p-gallery-apply[aria-disabled='false']:hover { box-shadow: inset 0 0 0 99px #ffffff10,0 5px 15px -10px var(--gallery-accent); }
  .p-site .p-gallery-thumb:hover { border-color: #ffffff80; opacity: 1; }
  .p-site .p-gallery-credit:hover { color: var(--gallery-accent); text-decoration: underline; text-underline-offset: 3px; }
}
.p-site .p-gallery-open:active, .p-site .p-gallery-close:active, .p-site .p-gallery-step:active, .p-site .p-gallery-apply[aria-disabled='false']:active { box-shadow: inset 0 2px 4px #0003; }
@media (prefers-reduced-motion:no-preference) {
  .p-site .p-gallery-open, .p-site .p-gallery-close, .p-site .p-gallery-step, .p-site .p-gallery-apply, .p-site .p-gallery-thumb { transition: background-color 180ms var(--p-ease-out),border-color 180ms var(--p-ease-out),box-shadow 180ms var(--p-ease-out),color 180ms var(--p-ease-out),opacity 180ms var(--p-ease-out); }
  .p-gallery-story { transition: background-color 360ms var(--p-ease-out),color 360ms var(--p-ease-out),border-color 360ms var(--p-ease-out); }
  .p-gallery-loading { transition: opacity 160ms var(--p-ease-out); }
  .p-gallery-layer>img, .p-gallery-placeholder { transition: opacity 180ms var(--p-ease-out); }
  .p-gallery-viewer[open]::backdrop { animation: p-gallery-backdrop-in 240ms var(--p-ease-out) both; }
  .p-gallery-viewer[data-closing]::backdrop { animation: p-gallery-backdrop-out 180ms ease both; }
  @keyframes p-gallery-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes p-gallery-backdrop-out { from { opacity: var(--gallery-backdrop-opacity,1); } to { opacity: 0; } }
}
@media (max-width:800px) {
  .p-gallery-viewer { width: calc(100vw - 24px); height: calc(100dvh - 24px); border-radius: 13px; }
  .p-gallery-bar { min-height: 57px; gap: 17px; padding: 9px 12px 9px 19px; }
  .p-gallery-wordmark { font-size: 27px; }
  .p-gallery-wordmark>span { font-size: 8px; }
  .p-site .p-gallery-close { width: 36px; height: 36px; }
  .p-gallery-story { gap: 22px; padding: 23px; }
  .p-gallery-story h2 { font-size: 36px; }
  .p-gallery-description { font-size: 11px; }
  .p-gallery-choice { gap: 10px; }
  .p-site .p-gallery-apply { min-width: 180px; min-height: 44px; font-size: 11px; }
  .p-gallery-bottom { padding: 12px 18px; gap: 20px; }
}
@media (max-width:560px) {
  .p-site .p-gallery-open { min-height: 44px; gap: 9px; padding: 5px 7px 5px 5px; font-size: 10px; }
  .p-gallery-open-icon { width: 31px; height: 31px; }
  .p-gallery-open-count { padding-inline: 8px; margin-left: 1px; font-size: 8px; }
  .p-gallery-viewer { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 11px; }
  .p-gallery-bar { min-height: 54px; padding-left: 16px; }
  .p-gallery-wordmark>span { font-size: 7px; letter-spacing: 0; }
  .p-gallery-counter { font-size: 9px; }
  .p-site .p-gallery-close { width: 32px; height: 32px; }
  .p-gallery-story { grid-template-columns: 1fr; gap: 17px; padding: 19px 20px 18px; }
  .p-gallery-eyebrow { margin-bottom: 9px !important; font-size: 7px; }
  .p-gallery-story h2 { max-width: 23ch; font-size: 32px; line-height: 1.02; }
  .p-gallery-description { max-width: 42ch; margin-top: 9px !important; font-size: 10px; line-height: 1.7; }
  .p-gallery-choice { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; column-gap: 13px; row-gap: 9px; }
  .p-gallery-palette { grid-column: 1; grid-row: 1; justify-self: start; }
  .p-gallery-palette>i { width: 15px; height: 7px; }
  .p-site .p-gallery-apply { grid-column: 2; grid-row: 1 / 3; gap: 15px; justify-self: end; width: 100%; max-width: 218px; min-width: 0; min-height: 44px; padding: 11px 13px; font-size: 10px; }
  .p-site .p-gallery-credit { grid-column: 1; grid-row: 2; max-width: 19ch; font-size: 8px; line-height: 1.5; text-align: left; }
  .p-site .p-gallery-step { width: 36px; height: 36px; }
  .p-site .p-gallery-step>.p-icon { width: 15px; height: 15px; }
  .p-gallery-previous { left: 11px; }.p-gallery-next { right: 11px; }
  .p-gallery-image-label { bottom: 11px; left: 12px; font-size: 7px; padding: 4px 7px; }
  .p-gallery-bottom { display: block; padding: 10px 12px 12px; }
  .p-site .p-gallery-thumb { flex-basis: 57px; width: 57px; height: 38px; }
  .p-gallery-keyboard { display: none; }
  .p-gallery-feedback { top: 65px; font-size: 10px; }
}
@media (max-height:620px) and (min-width:561px) {
  .p-gallery-bar { min-height: 48px; padding-block: 6px; }
  .p-site .p-gallery-close { width: 33px; height: 33px; }
  .p-gallery-story { padding-block: 15px; }
  .p-gallery-story h2 { font-size: 31px; }
  .p-gallery-eyebrow { display: none; }
  .p-gallery-description { font-size: 10px; margin-top: 7px !important; }
  .p-gallery-choice { gap: 7px; }
  .p-site .p-gallery-apply { min-height: 38px; padding-block: 8px; }
  .p-gallery-bottom { padding-block: 9px; }
  .p-site .p-gallery-thumb { height: 36px; }
}
@media (max-height:620px) and (max-width:560px) {
  .p-gallery-story { padding-block: 13px; gap: 11px; }
  .p-gallery-story h2 { font-size: 27px; }
  .p-gallery-eyebrow, .p-gallery-description { display: none; }
  .p-site .p-gallery-credit { max-width: 25ch; font-size: 7px; }
  .p-site .p-gallery-apply { min-height: 39px; }
}
@media (max-height:620px) and (min-aspect-ratio:1/1) {
  .p-gallery-viewer[open] { grid-template-columns: minmax(0,1.65fr) minmax(180px,.85fr); grid-template-rows: auto minmax(0,1fr) auto; }
  .p-gallery-bar { grid-column: 1 / -1; min-height: 48px; padding-block: 6px; }
  .p-gallery-viewport { grid-column: 1; grid-row: 2; }
  .p-gallery-story { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; justify-content: safe center; gap: 15px; min-height: 0; padding: 17px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .p-gallery-story h2 { min-height: 0; font-size: clamp(24px,3vw,31px); }
  .p-gallery-description { min-height: 0; font-size: 10px; }
  .p-gallery-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
  .p-site .p-gallery-apply { min-width: 0; min-height: 37px; width: 100%; max-width: none; padding: 9px 11px; gap: 10px; font-size: 10px; }
  .p-site .p-gallery-credit { max-width: none; font-size: 8px; text-align: left; }
  .p-gallery-bottom { grid-column: 1 / -1; grid-row: 3; padding-block: 9px; }
  .p-site .p-gallery-thumb { height: 34px; }
}
@media print { .p-site .p-gallery-open, .p-gallery-viewer { display: none !important; } }
