:root{--ink:#0a1020;--muted:#53627c;--blue:#2463f4;--line:#e5e9f0;--soft:#f3f6fa}
*{box-sizing:border-box;margin:0;padding:0}
body{background:#fff;color:var(--ink);font-family:'Montserrat',sans-serif}
a{color:inherit;text-decoration:none}
.container{width:100%}
.navigator{width:min(1120px,calc(100% - 48px));height:88px;margin:auto;display:flex;align-items:center}
.navigator .title a{font-size:24px;font-weight:800;letter-spacing:-.04em}
.gallery-header{width:min(1120px,calc(100% - 48px));margin:34px auto 28px}
.back-home{display:inline-flex;align-items:center;gap:8px;margin-bottom:38px;color:var(--blue);font-size:13px;font-weight:600}
.back-home:hover{opacity:.72}
.gallery-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.gallery-kicker{margin-bottom:8px;color:var(--blue);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.gallery-title-row h1{font-size:clamp(42px,6vw,72px);font-weight:760;line-height:1;letter-spacing:-.055em}
.gallery-title-row>p{padding-bottom:6px;color:var(--muted);font-size:14px}
.collection-switcher{display:flex;gap:8px;margin-top:28px;padding-bottom:6px;overflow-x:auto;scrollbar-width:thin}
.collection-switcher a{flex:0 0 auto;padding:8px 14px;border:1px solid #dce3ed;border-radius:999px;color:#46556d;background:#fff;font-size:11px;font-weight:550;transition:.18s ease}
.collection-switcher a:hover{border-color:#aebbd0;color:var(--blue)}
.collection-switcher a.active{border-color:var(--blue);color:#fff;background:var(--blue)}
.waterfall{width:min(1120px,calc(100% - 48px));margin:0 auto;column-count:3;column-gap:18px}
.item{width:100%;margin:0 0 18px;overflow:hidden;break-inside:avoid;border:1px solid var(--line);border-radius:9px;background:#fff;transition:transform .2s ease,box-shadow .2s ease}
.item:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(22,40,70,.1)}
.item img{display:block;width:100%;height:auto;background:var(--soft)}
.photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.item .view{display:flex;justify-content:space-between;gap:14px;padding:11px 13px;color:var(--muted)}
.item .view div{font-size:10px;font-weight:550;line-height:1.4}
.item .date{text-align:right}
.empty-gallery{display:none;width:min(1120px,calc(100% - 48px));margin:50px auto;color:var(--muted);font-size:16px}
.empty-gallery.visible{display:block}
.gallery-footer-space{height:72px}
.loading{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.88)}
.loader{width:42px;aspect-ratio:1;border:4px solid #dfe7f5;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}
.lightbox[hidden]{display:none}.lightbox{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:36px;background:rgba(4,8,17,.94);cursor:zoom-out}.lightbox-image{display:block;max-width:calc(100vw - 72px);max-height:calc(100vh - 72px);width:auto;height:auto;object-fit:contain;border-radius:6px;box-shadow:0 18px 60px rgba(0,0,0,.45);cursor:default}.lightbox-close{position:fixed;top:18px;right:24px;width:44px;height:44px;border:0;border-radius:50%;color:#fff;background:rgba(255,255,255,.12);font-size:32px;line-height:1;cursor:pointer}.lightbox-close:hover{background:rgba(255,255,255,.22)}body.lightbox-open{overflow:hidden}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.waterfall{column-count:2}}
@media(max-width:600px){.navigator{width:calc(100% - 32px);height:70px}.navigator .title a{font-size:19px}.gallery-header{width:calc(100% - 32px);margin-top:26px}.back-home{margin-bottom:28px}.gallery-title-row{align-items:flex-start}.gallery-title-row h1{font-size:42px}.gallery-title-row>p{font-size:12px}.waterfall{width:calc(100% - 32px);column-count:1}.item{margin-bottom:16px}.gallery-footer-space{height:56px}}
@media(max-width:600px){.lightbox{padding:16px}.lightbox-image{max-width:calc(100vw - 32px);max-height:calc(100vh - 64px)}.lightbox-close{top:10px;right:10px}}
