/* A continuous film strip unfolds into a full-width contact sheet on the same page. */
.photo-archive-actions { display:flex; align-items:center; gap:22px; }
.film-toggle { display:flex; align-items:center; gap:9px; padding:10px 17px; border:1px solid var(--line); border-radius:24px; background:color-mix(in srgb,var(--paper) 72%,transparent); color:var(--ink); font:inherit; font-size:12px; line-height:1.4; cursor:pointer; transition:background .3s,box-shadow .3s; white-space:nowrap; }
.film-toggle:hover { background:var(--paper); box-shadow:0 4px 15px #4a3e2510; }
.film-toggle:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.film-toggle[hidden] { display:none; }
.film-toggle[aria-busy=true] { cursor:progress; }
.film-roll-shell { position:relative; isolation:isolate; }






.photo-archive.is-unrolled { position:relative; width:100vw; max-width:none; margin-left:calc(50% - 50vw); padding:38px clamp(26px,4.5vw,90px) 60px; min-height:100svh; border-bottom:1px solid var(--photo-rule); scroll-margin-top:20px; background:radial-gradient(ellipse at 12% 4%,#d4ad6230,transparent 42%),linear-gradient(130deg,#ece3ce24,#c4c6af12); }
.is-unrolled .photo-archive-heading { margin-bottom:24px; }
.is-unrolled .photo-archive-toolbar { position:sticky; top:12px; z-index:8; padding:10px 15px; margin-inline:-15px; border:1px solid var(--photo-rule); border-radius:25px; background:color-mix(in srgb,var(--paper) 88%,transparent); backdrop-filter:blur(18px); }
.is-unrolled .photo-arrows,.is-unrolled .photo-strip-progress,.is-unrolled .photo-strip-footer > span:last-child { display:none; }
.is-unrolled .film-roll-shell { padding-top:7px; padding-left:0; }

.is-unrolled .photo-strip { display:block; padding:0; margin:0; overflow:visible; rotate:0deg; border:0; border-radius:0; box-shadow:none; background:none; scrollbar-width:none; touch-action:pan-y; cursor:auto; }
.film-row { --film-offset:0px; position:relative; display:grid; grid-template-columns:repeat(var(--film-columns,4),minmax(0,1fr)); gap:22px; padding:37px 28px 32px; background-color:#272821; background-image:var(--yilun-image-78830c892e0c, url(assets/photography/film-perforation.svg)),var(--yilun-image-78830c892e0c, url(assets/photography/film-perforation.svg)),linear-gradient(105deg,#4b3327,#272a22 28%,#24271f 72%,#493a282e); background-repeat:repeat-x,repeat-x,no-repeat; background-size:30px 15px,30px 15px,100% 100%; background-position:0 7px,0 calc(100% - 7px),0 0; border-block:1px solid #756044; border-radius:3px; box-shadow:1px 3px 3px #332d223b,7px 16px 25px #332d221c; transform-origin:50% 0; }
.film-row + .film-row { margin-top:31px; }
.film-row:nth-of-type(even) { background-image:var(--yilun-image-78830c892e0c, url(assets/photography/film-perforation.svg)),var(--yilun-image-78830c892e0c, url(assets/photography/film-perforation.svg)),linear-gradient(255deg,#4b3327,#272a22 28%,#24271f 72%,#493a282e); }
.film-row:not(:last-child)::after { content:""; position:absolute; z-index:-1; right:-19px; top:calc(100% - 20px); width:46px; height:75px; border:10px solid #303027; border-left:0; border-radius:0 44px 44px 0; background:transparent; box-shadow:3px 2px 0 #a1895e66,8px 6px 10px #362e2426,inset -4px 0 0 #77624955; }
.film-row:nth-of-type(even):not(:last-child)::after { right:auto; left:-19px; border-left:10px solid #303027; border-right:0; border-radius:44px 0 0 44px; box-shadow:-3px 2px 0 #a1895e66,-8px 6px 10px #362e2426; }
.film-row .photo-card--strip { min-width:0; width:auto; margin:0; opacity:1; transform:none; }
.film-row .photo-card--strip h3 { font-size:clamp(17px,1.6vw,25px); }
.film-row .photo-card--strip figcaption { padding-top:10px; }
.film-row .film-edge { font-size:7px; letter-spacing:.08em; }
.is-unrolled .photo-strip-footer { margin-top:20px; }
@media(min-width:2000px) { .film-row { gap:30px; padding:42px 35px 38px; } }
@media(max-width:740px) {
  .photo-archive-toolbar { align-items:flex-start; gap:14px; flex-wrap:wrap; }
  .photo-archive-actions { margin-left:auto; gap:10px; }
  .film-toggle { font-size:11px; padding:8px 12px; }
  .photo-archive.is-unrolled { padding-inline:20px; }
  .is-unrolled .film-roll-shell { padding-left:0; }
  .film-row { gap:15px; padding:30px 17px; }
  .film-row .film-edge { font-size:6px; }
  .film-row:not(:last-child)::after { width:33px; right:-12px; }.film-row:nth-of-type(even):not(:last-child)::after { left:-12px; }
}
@media(prefers-reduced-motion:reduce) { .film-toggle { transition:none; } }

/* The film itself is the entrance animation; its photos never wait for a click. */
.photo-ready .photo-strip [data-photo-reveal] { clip-path:none; opacity:1; translate:none; }
