/* V24.12 — Photos page: the photographs start on the first screen.
   Shorter heading, Drive archives after the grid, context + visible arrows in the viewer. */
section[data-page="gallery"].inner-page{padding-top:118px}
[data-page="gallery"] .page-heading{margin-bottom:24px}
[data-page="gallery"] .page-heading h1{font-size:clamp(40px,4.6vw,72px);margin:12px 0 10px}
[data-page="gallery"] .page-heading p{margin:0}
[data-page="gallery"] .gallery-toolbar{margin-top:0}
/* Drive archives now close the page, after the photographs. */
[data-page="gallery"] .portfolio-resources{margin:56px 0 0}

/* Viewer: context line under the title. */
.lightbox-bottom #lightbox-context{margin:5px 0 7px;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#8fb6cc}
#lightbox-context:empty{display:none}
/* The viewer stays dark in both themes, so the context line keeps its light colour. */

/* Viewer: visible previous / next for mouse users (touch keeps swiping). */
.lightbox-nav{position:absolute;top:calc(50% - 40px);z-index:3;width:48px;height:48px;display:grid;place-items:center;padding:0;
  border-radius:999px;border:1px solid var(--edge,#ffffff25);background:rgba(8,13,20,.55);color:#eff4f7;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:.72;transition:opacity .3s cubic-bezier(.22,1,.36,1),background .3s cubic-bezier(.22,1,.36,1)}
.lightbox-nav:hover,.lightbox-nav:focus-visible{opacity:1;background:rgba(16,27,40,.85)}
.lightbox-nav:focus-visible{outline:2px solid #9bdaff;outline-offset:3px}
.lightbox-nav svg{width:22px;height:22px}
.lightbox-prev{inset-inline-start:20px}
.lightbox-next{inset-inline-end:20px}
.lightbox-next svg,[dir="rtl"] .lightbox-prev svg{transform:scaleX(-1)}
[dir="rtl"] .lightbox-next svg{transform:none}
@media (pointer:coarse){.lightbox-nav{display:none}}

@media(max-width:600px){
  section[data-page="gallery"].inner-page{padding-top:100px}
  [data-page="gallery"] .page-heading{margin-bottom:18px}
  [data-page="gallery"] .page-heading h1{font-size:clamp(34px,10vw,44px);margin:10px 0 8px}
  [data-page="gallery"] .page-heading p{font-size:14px;line-height:1.6}
  [data-page="gallery"] .portfolio-resources{margin-top:40px}
}

/* V24.12 (D) — a quieter category bar: one slim line of text instead of a box of pills.
   Scoped to .gallery-toolbar so the Films library filters keep their own look. */
.gallery-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:22px;padding:6px 2px 0;border:0;border-bottom:1px solid var(--line);
  border-radius:0;background:rgba(8,13,20,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.gallery-toolbar .filters{flex:1 1 auto;min-width:0;flex-wrap:nowrap;gap:26px;overflow-x:auto;scrollbar-width:none;padding:0;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
[dir="rtl"] .gallery-toolbar .filters{-webkit-mask-image:linear-gradient(270deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(270deg,#000 calc(100% - 36px),transparent)}
.gallery-toolbar .filters::-webkit-scrollbar{display:none}
.gallery-toolbar .filters button{position:relative;flex:none;padding:13px 0 14px;border:0;border-radius:0;background:none;
  font-size:12.5px;font-weight:500;letter-spacing:.01em;color:var(--muted);transition:color .3s cubic-bezier(.22,1,.36,1)}
.gallery-toolbar .filters button::after{content:"";position:absolute;inset-inline:0;bottom:-1px;height:1px;background:currentColor;
  transform:scaleX(0);transition:transform .45s cubic-bezier(.22,1,.36,1)}
.gallery-toolbar .filters button:hover{color:var(--ink);border-color:transparent}
.gallery-toolbar .filters button[aria-pressed=true],
.gallery-toolbar .filters button[aria-pressed=true]:hover{background:none;color:var(--ink);font-weight:600}
.gallery-toolbar .filters button[aria-pressed=true]::after{transform:scaleX(1)}
.gallery-toolbar .filters button span{font-size:.78em;opacity:.5}
.gallery-toolbar .filters button[aria-pressed=true] span{opacity:.65}
.gallery-toolbar .filter-divider{height:12px;margin:0}
.gallery-toolbar .layout-button,
.gallery-toolbar .layout-button[aria-pressed=true]{flex:none;margin:0;padding:13px 0 14px;border:0;border-radius:0;background:none;
  font-size:11.5px;letter-spacing:.06em;color:var(--muted)}
.gallery-toolbar .layout-button:hover{color:var(--ink)}
.gallery-toolbar .layout-button[aria-pressed=true]{color:var(--blue)}
/* Mouse users cannot swipe a hidden scroll: on wider screens every category stays visible,
   wrapping to a second slim line; phones keep the single swipeable line. */
@media(min-width:901px){
  .gallery-toolbar{align-items:flex-start}
  .gallery-toolbar .filters{flex-wrap:wrap;column-gap:24px;row-gap:0;overflow:visible;-webkit-mask-image:none;mask-image:none}
  [dir="rtl"] .gallery-toolbar .filters{-webkit-mask-image:none;mask-image:none}
  .gallery-toolbar .filter-divider{align-self:center}
}
html[data-theme=light] .gallery-toolbar{background:rgba(245,247,250,.9);border-color:var(--line)}
html[data-theme=light] .gallery-toolbar .filters button{color:var(--muted)}
html[data-theme=light] .gallery-toolbar .filters button:hover,
html[data-theme=light] .gallery-toolbar .filters button[aria-pressed=true]{background:none;color:var(--ink)}
html[data-theme=light] .gallery-toolbar .layout-button,
html[data-theme=light] .gallery-toolbar .layout-button[aria-pressed=true]{background:none}
@media(max-width:600px){
  .gallery-toolbar{gap:16px;padding:2px 0 0;border-radius:0}
  .gallery-toolbar .filters{gap:20px;width:auto}
  .gallery-toolbar .filters button{font-size:12px;padding:12px 0 13px}
  .gallery-toolbar .layout-button{font-size:10.5px;padding:12px 0 13px}
}