/* ==========================================================================
   devanshi jain — a single work
   Full-screen photos, one per screen, scrolled vertically and snapped.
   Same type, edges and restraint as the front page.
   ========================================================================== */

:root {
  --frost: #f4f2ec;
  --ground: #1c1c1b;
  --font: "Avenir", "Avenir Next", "Nunito Sans DJ", "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: 16px;                          /* same as the front page */
  --side: clamp(20px, 3.4vw, 64px);      /* shared left edge */
  --right: clamp(20px, 4.2vw, 76px);     /* shared right edge */
  --edge-y: clamp(18px, 5.6vh, 64px);
  --logo-w: clamp(104px, 7.4vw, 136px);
  --shadow: 0 0 14px rgba(20, 20, 18, .30), 0 1px 2px rgba(20, 20, 18, .16);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* no grey/blue flash when tapping on phones (keyboard focus still shows via :focus-visible) */
html { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; overflow: hidden; background: var(--ground); color: var(--frost);
  font-family: var(--font); font-style: italic; font-weight: 300;
  font-size: var(--text); line-height: 1.6; letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px dotted var(--frost); outline-offset: 4px; }

/* One photo per screen. The photos scroll inside a fixed full-screen frame, not the page:
   the phone's address bar then never collapses mid-scroll, so every photo stays exactly
   one frame tall and the snap never drifts (with page scrolling + svh/vh it did on Android). */
.w-slides {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.w-slides::-webkit-scrollbar { display: none; }
.w-slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden;
}
/* gentle shading at the foot of each photo, so the caption and enquiry read on white fabric */
.w-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 20, 18, .42) 0%, rgba(20, 20, 18, .16) 16%, rgba(20, 20, 18, 0) 32%);
}
.w-slide picture, .w-slide img { display: block; width: 100%; height: 100%; }
/* portrait photos on wide screens: crop a little above centre so faces stay in frame */
.w-slide img { object-fit: cover; object-position: 50% 20%; }

/* logo, top-left on the shared edge, with the same soft haze as the front page */
.w-logo { position: fixed; z-index: 3; top: clamp(18px, 5.3vh, 60px); left: var(--side); }
.w-logo a { display: block; }
.w-logo img { display: block; width: var(--logo-w); height: auto; margin-left: calc(var(--logo-w) * -2 / 600); }
/* a wide, soft light from the screen's top-left corner (above the photos, below the logo):
   no visible shape; softer than the front page because the photos are lighter */
body.work-page::before {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 0% 0%,
    rgba(244, 242, 236, .30) 0%, rgba(244, 242, 236, .20) 18%, rgba(244, 242, 236, .08) 42%, rgba(244, 242, 236, 0) 100%);
}

/* hairline dots, right edge, vertically centred */
.w-dots {
  position: fixed; z-index: 3; right: var(--right); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
}
.w-dots a {
  display: block; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--frost); background: transparent;
  /* a faint dark edge keeps the dots visible on white cloth and plaster too */
  box-shadow: 0 0 0 .5px rgba(20, 20, 18, .45), 0 0 4px rgba(20, 20, 18, .3);
  transition: background .3s, transform .3s;
}
.w-dots a[aria-current="true"] { background: var(--frost); transform: scale(1.3); } /* larger, so it reads even on white */
@media (hover: hover) { .w-dots a:hover { background: rgba(244, 242, 236, .6); } }

/* caption bottom-left, enquiry bottom-right — same edges as the front page footer and sound */
.w-caption, .w-enquire { position: fixed; z-index: 3; bottom: var(--edge-y); text-shadow: var(--shadow); }
.w-caption { left: var(--side); }
.w-enquire { right: var(--right); text-align: right; }
.w-enquire a { font-weight: 700; }
@media (hover: hover) { .w-enquire a:hover { opacity: .8; } }

@media (max-width: 719px) {
  :root { --text: 13px; --side: 24px; --right: 24px; --logo-w: 104px; --edge-y: max(22px, env(safe-area-inset-bottom)); }
  .w-logo { top: 22px; }
  .w-dots { gap: 10px; }
  .w-dots a { width: 6px; height: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-slides { scroll-behavior: auto; }
}

/* ---------- tap & click feel ----------
   Each dot is drawn small inside a finger-sized tap area (24px tall, 34px wide, reaching left
   from the dot so its right edge stays on the shared edge); enquire gets an invisible margin. */
a, button { touch-action: manipulation; }
.w-dots, .w-enquire, .w-caption, .w-logo { -webkit-user-select: none; user-select: none; }
.w-dots { gap: 0; margin-right: -2px; }
.w-dots a {
  width: 34px; height: 24px; border: 0; border-radius: 0; background: none; box-shadow: none;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 2px;
  filter: none; transform: none;
}
.w-dots a::before {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--frost); background: transparent;
  box-shadow: 0 0 0 .5px rgba(20, 20, 18, .45), 0 0 4px rgba(20, 20, 18, .3);
  transition: background .3s, transform .3s;
}
.w-dots a[aria-current="true"] { background: none; transform: none; }
.w-dots a[aria-current="true"]::before { background: var(--frost); transform: scale(1.3); }
@media (hover: hover) { .w-dots a:hover { background: none; } .w-dots a:hover::before { background: rgba(244, 242, 236, .6); } }
.w-enquire a, .w-logo a { position: relative; display: inline-block; }
.w-enquire a::after { content: ""; position: absolute; inset: -11px -14px; }
.w-logo a::after { content: ""; position: absolute; inset: -8px; }
@media (hover: none) { .w-dots a:active::before, .w-enquire a:active, .w-logo a:active { opacity: .55; } }
@media (max-width: 719px) { .w-dots a::before { width: 6px; height: 6px; } }
