.moments .wrap{width:min(1180px,calc(100% - 48px));margin:auto}.photo-dialog button{font:inherit;cursor:pointer}.photo-dialog img{display:block;max-width:100%}
/* Place each photo in the shortest column; preserve intrinsic image ratios. */
.moments{background:#f5f6f7;padding:26px 0 34px}
.moments-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;margin-bottom:14px}.moments-tools{display:contents}.view-toggle{grid-column:2;grid-row:1;display:flex;align-self:start;gap:4px;padding:3px;border:1px solid #dfe5ec;border-radius:9px;background:#fff}.view-toggle button{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:6px;background:transparent;color:#89939e}.view-toggle button.active{color:#344b67;background:#eaf0f6}.view-toggle button:hover{color:#344b67}.view-toggle svg{width:20px;height:20px;fill:currentColor}
.moments h1{margin:0 0 6px;font-size:24px;font-weight:600;color:#243142}
.moments-header p{margin:0;color:#7b8590;font-size:12px}
.scene-filters{display:flex;gap:5px;flex-wrap:wrap;grid-column:1 / -1;margin-top:0;padding-bottom:10px;border-bottom:1px solid #e1e5e9}
.scene-filters button{border:0;border-radius:3px;background:transparent;color:#65717e;font-size:11px;padding:8px 12px}
.scene-filters button.active{background:#344b67;color:#fff}
.scene-wall{--columns:5;--gap:14px;position:relative}
.scene-wall figure{position:absolute;width:calc((100% - 56px)/5);margin:0;background:#fff;border-radius:16px;overflow:hidden}
.scene-wall img{display:block;width:100%;height:auto;max-width:100%;background:#e2e5e2}
.scene-wall figcaption{padding:10px 11px;font-size:12px;color:#626d79;line-height:1.6}
.photo-trigger{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.photo-trigger:focus-visible{outline-offset:-4px}
html{scrollbar-gutter:stable}
.photo-dialog{width:min(1120px,calc(100vw - 48px));height:min(820px,calc(100dvh - 48px));max-width:none;max-height:none;padding:0;border:0;border-radius:22px;background:#fff;color:#27313c;overflow:hidden;box-shadow:0 24px 90px #0004}
.photo-dialog::backdrop{background:rgb(0 0 0 / .58)}
.photo-dialog-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);height:100%}
.photo-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;background:#e2e5e2}
.photo-stage img{width:100%;height:100%;object-fit:cover;object-position:center}
.photo-info{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:32px 28px 24px}
.photo-brand{display:flex;align-items:center;gap:12px;padding-right:32px;margin-bottom:34px;font-size:13px;font-weight:600}
.photo-brand img{width:40px;height:40px;object-fit:contain;border:1px solid #e8ebee;border-radius:50%;padding:4px}
.photo-brand small{display:block;margin-top:5px;font-size:8px;letter-spacing:.6px;color:#89919a;font-weight:400}
.photo-category{font-size:11px;color:#818993}
.photo-info h2{font-size:22px;line-height:1.5;margin:12px 0;color:#26323e}
.photo-info>p{font-size:14px;line-height:1.9;margin:0;color:#69727c}
.photo-dialog-footer{display:flex;justify-content:space-between;gap:20px;padding-top:20px;margin-top:auto;border-top:1px solid #edf0f2;color:#9aa1a8;font-size:11px}
.photo-close{position:absolute;top:14px;right:14px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#f1f3f5;color:#48515a;font-size:25px;line-height:1}
.photo-close:hover{background:#e3e7eb}
@media(max-width:700px){.photo-dialog{width:calc(100vw - 24px);height:calc(100dvh - 32px);border-radius:18px}.photo-dialog-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(170px,auto)}.photo-info{padding:18px 20px;max-height:35dvh}.photo-brand{margin-bottom:14px;font-size:12px}.photo-brand img{width:30px;height:30px}.photo-info h2{font-size:18px;margin:6px 0}.photo-info>p{font-size:12px}.photo-dialog-footer{padding-top:12px;margin-top:16px}.photo-close{background:#fff;box-shadow:0 1px 10px #0003}}


@media(max-width:1199px){.scene-wall{--columns:4}}
@media(max-width:959px){.scene-wall{--columns:3;--gap:11px}}
@media(max-width:719px){.scene-wall{--columns:2;--gap:10px}}
@media(max-width:479px){.scene-wall{--columns:1}}
@media(max-width:540px){.moments{padding-top:20px}.moments h1{font-size:21px}.scene-filters button{font-size:10px;padding:7px 10px}.scene-wall{--gap:9px}.scene-wall figcaption{font-size:11px;padding:8px}}

/* Compact gallery: aligned portrait tiles, minimal seams, captions inside the detail dialog. */
.scene-wall[data-view-mode="compact"]{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:1px}
.scene-wall[data-view-mode="compact"] figure{position:relative;width:auto;margin:0;border-radius:0;min-width:0}
.scene-wall[data-view-mode="compact"] .photo-trigger{aspect-ratio:3 / 4;overflow:hidden}
.scene-wall[data-view-mode="compact"] img{width:100%;height:100%;object-fit:cover}
.scene-wall[data-view-mode="compact"] figcaption{display:none}
