.memory-archive{margin:0 var(--pad);padding:8px 0 48px;color:#000}
.memory-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
.memory-heading h2{margin:8px 0 0;font-size:clamp(42px,6vw,90px);line-height:.89;letter-spacing:-.065em}
.memory-heading p{align-self:end;margin:0;max-width:300px;font-size:clamp(13px,1.25vw,17px);line-height:1.5;color:#555}
.memory-grid{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.memory-grid-featured{grid-template-columns:1.5fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));height:clamp(280px,29vw,490px)}
.memory-grid-featured li:nth-child(1),.memory-grid-featured li:nth-child(4){grid-row:span 2}
.memory-grid-featured li:nth-child(4){grid-column:3;grid-row:1/span 2}
.memory-grid li{min-width:0;min-height:0}
.memory-grid a{display:block;position:relative;width:100%;height:100%;overflow:hidden;background:#ececea}
.memory-grid a:focus-visible{outline:3px solid #000;outline-offset:3px;z-index:1}
.memory-grid img{display:block;width:100%;height:100%;object-fit:cover}
.memory-grid-featured li:first-child img{object-position:50% 44%}
.memory-grid a span{position:absolute;right:8px;bottom:8px;padding:6px 8px;background:#fff;color:#000;font-size:11px;font-weight:700;letter-spacing:.07em}
.memory-grid a:hover span{background:#000;color:#fff}
.memory-more{margin-top:14px;border-block:1px solid #000}
.memory-more summary{display:flex;justify-content:space-between;align-items:center;min-height:48px;cursor:pointer;list-style:none;font-size:12px;font-weight:700;letter-spacing:.065em;text-transform:uppercase}
.memory-more summary::-webkit-details-marker{display:none}
.memory-more summary span::before{content:'+';font-size:22px}.memory-more[open] summary span::before{content:'−'}
.memory-grid-all{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 0 14px}
.memory-grid-all a{aspect-ratio:4/3}
#memory-dialog{width:min(980px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:14px 18px;overscroll-behavior:contain;background:#111;color:#fff;border:1px solid #777}
#memory-dialog::backdrop{background:#000c}
.memory-dialog-top,.memory-dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}
#memory-dialog-title{margin:0;font-size:12px;letter-spacing:.08em}
#memory-dialog figure{margin:10px 0 5px}
#memory-dialog img{display:block;margin:auto;width:100%;height:auto;max-height:calc(100dvh - 150px);object-fit:contain}
#memory-dialog button{color:inherit;min-height:44px;font-size:11px;font-weight:700;background:transparent;border:0;padding:8px 4px}
#memory-dialog button:focus-visible{outline:2px solid #fff;outline-offset:2px}
#memory-dialog output{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){
 .memory-archive{padding-bottom:30px}.memory-heading{display:block;margin-bottom:16px}.memory-heading p{margin-top:12px}
 .memory-grid-featured{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:clamp(230px,66vw,385px);gap:6px}
 .memory-grid-featured li:nth-child(1),.memory-grid-featured li:nth-child(4){grid-area:auto}
 .memory-grid-all{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.memory-grid a span{right:4px;bottom:4px;padding:4px 5px;font-size:9px}
 #memory-dialog{padding:10px 12px}
}
