:root{color-scheme:dark;--gallery-ink:#edeae7;--gallery-muted:#a6a2aa;--gallery-rose:#e5b2bf}*{box-sizing:border-box}body{margin:0;background:#111116;color:var(--gallery-ink);font-family:Inter,"Noto Sans KR","Noto Sans JP",system-ui,sans-serif}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid var(--gallery-rose);outline-offset:5px}.gallery-wrap{max-width:1240px;margin:auto;padding:50px 34px 80px}.gallery-heading{padding:12px 0 30px}.gallery-eyebrow{font-size:11px;letter-spacing:.18em;color:var(--gallery-rose);line-height:1.8}.gallery-heading h1{font-size:clamp(34px,5vw,58px);font-weight:500;letter-spacing:-.05em;margin:25px 0}.gallery-heading h1 span{display:block;font-family:Georgia,serif;font-size:clamp(30px,4vw,52px);font-style:italic;font-weight:400;letter-spacing:-.04em;color:var(--gallery-rose);margin-top:8px}.gallery-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;border-bottom:1px solid #ffffff20;padding-bottom:27px}.gallery-intro p{color:var(--gallery-muted);font-size:14px;line-height:1.9;margin:0;max-width:540px}.gallery-intro>span{font-size:10px;letter-spacing:.16em;white-space:nowrap;color:var(--gallery-muted)}.gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 20px;align-items:start}.gallery-card{min-width:0}.gallery-frame{background:#19191e;overflow:hidden;border-radius:16px;aspect-ratio:2/3}.gallery-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%;transition:filter .25s}.gallery-card a:hover img{filter:brightness(1.06)}.gallery-card-copy{position:relative;padding:18px 22px 0 0}.gallery-card time{font-size:11px;letter-spacing:.12em;color:var(--gallery-rose)}.gallery-card h2{font-size:17px;font-weight:500;line-height:1.6;margin:9px 0 5px;word-break:keep-all}.gallery-card p{font-size:12px;color:var(--gallery-muted);line-height:1.6;margin:0}.gallery-card-copy>span{position:absolute;right:1px;top:38px;color:var(--gallery-rose)}.gallery-back{display:inline-block;font-size:12px;color:var(--gallery-muted);margin:12px 0 30px}.photo-story{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:54px;align-items:center}.photo-story figure{margin:0;min-width:0}.photo-story img{border-radius:18px;display:block;width:100%;height:auto;max-height:none;object-fit:cover;background:#19191e}.photo-story figcaption{font-size:11px;color:var(--gallery-muted);margin-top:12px}.photo-story-copy{min-width:0}.photo-story h1{font-size:clamp(26px,3vw,40px);font-weight:500;line-height:1.5;letter-spacing:-.04em;word-break:keep-all}.photo-description{line-height:2;font-size:15px;color:#ccc7cf}.photo-story dl{margin:30px 0;border-top:1px solid #ffffff20}.photo-story dl>div{padding:15px 0;border-bottom:1px solid #ffffff15}.photo-story dt{font-size:10px;letter-spacing:.12em;color:var(--gallery-muted);margin-bottom:8px}.photo-story dd{margin:0;font-size:13px;line-height:1.7}.photo-edit-note{font-size:11px;line-height:1.8;color:var(--gallery-muted)}.gallery-history{display:inline-block;color:var(--gallery-rose);font-size:12px;margin-top:16px;padding-bottom:8px;border-bottom:1px solid #e5b2bf60}.gallery-more{margin-top:80px;border-top:1px solid #ffffff20;padding-top:30px}.gallery-more>h2{font-size:16px;font-weight:400;margin:0 0 25px}.site-footer{text-align:center;border-top:1px solid #ffffff15;padding:35px 20px}.site-footer p{font-size:12px;color:var(--gallery-muted);line-height:1.8}@media(max-width:1000px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.photo-story{gap:28px}.gallery-wrap{padding:30px 24px 60px}}@media(max-width:640px){.gallery-wrap{padding:20px 20px 50px}.gallery-heading{padding-top:15px}.gallery-intro{align-items:start;flex-direction:column;gap:18px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}.gallery-card h2{font-size:14px;line-height:1.6}.gallery-card p{font-size:11px}.gallery-card-copy{padding:12px 0 0}.gallery-card-copy>span{display:none}.gallery-frame{border-radius:12px}.photo-story{grid-template-columns:1fr;gap:22px}.photo-story img{max-height:none}.gallery-more .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gallery-more .gallery-card h2{font-size:13px}.gallery-more .gallery-card-copy>span{display:none}.gallery-more .gallery-card-copy{padding-right:0}.gallery-more .gallery-card p{font-size:11px}}
/* Text must stay inside each responsive card and story column. */
.gallery-card-copy,.photo-story-copy,.gallery-intro>p{min-width:0}
.gallery-card h2,.gallery-card p,.photo-story h1,.photo-description,.photo-story dd,.photo-story figcaption,.photo-edit-note{overflow-wrap:anywhere}
html:lang(ja) .gallery-card h2,html:lang(ja) .photo-story h1{word-break:normal;line-break:strict}
.photo-context{display:grid;grid-template-columns:1fr 1fr;gap:42px;margin-top:60px;padding:30px;border:1px solid #ffffff18;border-radius:18px;background:#17171e}.photo-context>div{min-width:0}.photo-context h2{font-size:22px;font-weight:500;margin:8px 0 18px}.photo-context h3{font-size:16px;font-weight:500;line-height:1.8;margin:0 0 12px}.photo-context p{font-size:14px;line-height:2;color:#c7c3cd;white-space:pre-line}.photo-context a{font-size:12px;color:var(--gallery-rose);line-height:1.9;text-decoration:underline;text-underline-offset:4px}.photo-context ul{padding-left:18px;margin-top:20px}.photo-context li{margin:8px 0}.photo-context h2,.photo-context h3,.photo-context p,.photo-context a{overflow-wrap:anywhere;word-break:normal}@media(max-width:640px){.photo-context{grid-template-columns:1fr;padding:22px;gap:22px;margin-top:35px}}

/* Let the photograph itself meet the rounded edge without a letterbox. */
.photo-story figure>a{display:block;overflow:hidden;border-radius:18px}.photo-story figure>a>img{width:100%;height:auto;max-height:none;object-fit:cover;border-radius:inherit}.gallery-frame img{object-fit:cover;object-position:50% 25%}

.gallery-filters{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.gallery-filters button{appearance:none;cursor:pointer;padding:10px 18px;border-radius:999px;border:1px solid #ffffff25;background:#19191e;color:#bab5bf;font:inherit;font-size:12px}.gallery-filters button[aria-pressed="true"]{border-color:#e5b2bf;background:#392733;color:#f6dae4}.gallery-filters button:focus-visible{outline:2px solid #e5b2bf;outline-offset:3px}.gallery-card[hidden]{display:none!important}.gallery-card[data-gallery-type="poster"] .gallery-frame img{object-fit:contain;object-position:center}.gallery-card[data-gallery-type="poster"] .gallery-frame{background:#eae9e6}
/* Posters retain their printed aspect ratio so every line remains readable. */
.gallery-card[data-gallery-type="poster"] .gallery-frame{aspect-ratio:auto}.gallery-card[data-gallery-type="poster"] .gallery-frame img{height:auto}
.gallery-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.gallery-tags span{font-size:9px;line-height:1.5;padding:3px 7px;border:1px solid #e5b2bf30;border-radius:999px;background:#e5b2bf09;color:#d0abb7;overflow-wrap:anywhere}.gallery-filters button{white-space:normal}

.gallery-card[data-gallery-layout="full"] .gallery-frame{aspect-ratio:auto}.gallery-card[data-gallery-layout="full"] .gallery-frame img{height:auto;object-fit:contain}
/* Ueno 2025 portrait: preserve faces and match the standard 2:3 photo frame. */
.gallery-card:has(img[src="/images/gallery/ueno-panda-20250823-owner-v2.webp"]) .gallery-frame{aspect-ratio:2/3}
.gallery-card:has(img[src="/images/gallery/ueno-panda-20250823-owner-v2.webp"]) .gallery-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 0%}
.photo-story img[src="/images/gallery/ueno-panda-20250823-owner-v2.webp"]{width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;object-position:50% 0%}
/* Apply the same portrait crop to both thumbnail and full-size Ueno assets. */
.gallery-card:has(img[src^="/images/gallery/ueno-panda-20250823"]) .gallery-frame{aspect-ratio:2/3}
.gallery-card:has(img[src^="/images/gallery/ueno-panda-20250823"]) .gallery-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 0%}
.photo-story figure>a:has(>img[src^="/images/gallery/ueno-panda-20250823"]){aspect-ratio:2/3}
.photo-story figure>a>img[src^="/images/gallery/ueno-panda-20250823"]{width:100%;height:100%;aspect-ratio:2/3;object-fit:cover;object-position:50% 0%}
/* Gawang outfit portrait: crop the empty wall; retain head-to-toe outfit. */
.gallery-card:has(img[src^="/images/gallery/gawang-outfit-20240404"]) .gallery-frame,
.photo-story figure>a:has(>img[src^="/images/gallery/gawang-outfit-20240404"]){position:relative;display:block;overflow:hidden;aspect-ratio:2/3}
.gallery-card .gallery-frame img[src^="/images/gallery/gawang-outfit-20240404"],
.photo-story figure>a>img[src^="/images/gallery/gawang-outfit-20240404"]{position:absolute;left:-25%;top:-25%;width:150%;height:125%;max-width:none;max-height:none;object-fit:fill;border-radius:0}
/* Center MIYU's face in previews of the wide 2025-08-29 stage photo. */
.gallery-card:has(img[src^="/images/gallery/owl-186-20250829"]) .gallery-frame{overflow:hidden}
.gallery-card .gallery-frame img[src^="/images/gallery/owl-186-20250829"]{object-position:100% 50%;transform:scale(1.4);transform-origin:100% 50%}

.gallery-load-more{display:block;margin:28px auto;padding:12px 22px;border:1px solid #42506a;border-radius:10px;background:#172133;color:#bedaff;font:13px system-ui;cursor:pointer}.gallery-load-more[hidden]{display:none}.gallery-save-actions{display:flex;justify-content:flex-start;margin:0;padding:0 16px 16px;gap:8px}.gallery-save-actions .archive-action,.photo-save-actions .archive-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border:1px solid #42506a;border-radius:8px;background:#172133;color:#bedaff;font:12px/1.5 system-ui;width:auto;margin:0;box-shadow:none}.photo-save-actions{display:flex;justify-content:flex-start;margin:12px 0 18px;padding:0}.gallery-save-actions .archive-action:hover,.photo-save-actions .archive-action:hover{border-color:#f4abc6}
.gallery-card>.gallery-save-actions{padding:12px 0 0;margin:0;justify-content:flex-start}.gallery-card>.gallery-save-actions .archive-action{min-width:0;min-height:36px;font-size:12px;padding:7px 12px;border-radius:8px;width:auto}.photo-story-copy>.photo-save-actions{margin:12px 0 18px;padding:0}
/* Save controls use the exact dimensions of the gallery tag badges. */
.gallery-card>.gallery-save-actions .archive-action,.photo-story-copy>.photo-save-actions .archive-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-width:0;min-height:0;margin:0;font-family:inherit;font-size:9px;font-weight:400;line-height:1.5;padding:3px 7px;border:1px solid #e5b2bf30;border-radius:999px;background:#e5b2bf09;color:#d0abb7;box-shadow:none;cursor:pointer;letter-spacing:normal}
.gallery-card>.gallery-save-actions .archive-action[aria-pressed=true],.photo-story-copy>.photo-save-actions .archive-action[aria-pressed=true]{background:#302334;border-color:#71546a;color:#f4abc6}
.gallery-card>.gallery-save-actions .archive-action:focus-visible,.photo-story-copy>.photo-save-actions .archive-action:focus-visible{outline:2px solid #a9caff;outline-offset:3px}

/* Tags and the independent save action share one wrapping metadata row. */
.gallery-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-top:12px}.gallery-meta .gallery-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0}.gallery-meta .gallery-save-actions{display:inline-flex;align-items:center;margin:0;padding:0;gap:0}.gallery-card .gallery-meta .archive-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-width:0;min-height:0;margin:0;padding:3px 7px;font-family:inherit;font-size:9px;font-weight:400;line-height:1.5;letter-spacing:normal;border:1px solid #659edb80;border-radius:999px;background:#224c76;color:#d6eaff;box-shadow:none;text-decoration:none;cursor:pointer}.gallery-card .gallery-meta .archive-action:hover{background:#2d6092;border-color:#a1caff}.gallery-card .gallery-meta .archive-action[aria-pressed=true]{background:#346ba1;border-color:#b1d6ff;color:#fff}.gallery-card .gallery-meta .archive-action:focus-visible{outline:2px solid #a9caff;outline-offset:3px}
