.mattone-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.mattone-photo{display:block;border:0;padding:0;width:100%;aspect-ratio:2/3;background:#f8f6f1;overflow:hidden;cursor:zoom-in}
.mattone-photo>img{width:100%;height:100%;object-fit:cover}.mattone-photo.mattone-square>img{object-fit:contain}
.mattone-frame{display:grid;width:100%;height:100%;grid-template-rows:1fr 4fr 1fr;background:#f8f6ef;container-type:inline-size}
.mattone-frame img{width:100%;height:100%;object-fit:contain;min-height:0;background:white}
.mattone-frame-title,.mattone-frame-body{display:grid;place-content:center;text-align:center;font-family:'Yu Mincho',serif;white-space:pre-line;padding:0 5%}
.mattone-frame-title{font-size:6.4cqw}.mattone-frame-body{font-size:4.9cqw;line-height:1.25}
.mattone-pager{display:none}.mattone-modal{width:min(850px,95vw);max-height:96dvh;border:1px solid #d8cdb8;background:#fbfaf6}.mattone-modal::backdrop{background:#17130ec9}
.mattone-close{display:block;margin-left:auto}.mattone-modal-image{width:min(100%,47dvh);aspect-ratio:2/3;margin:auto}.mattone-modal-image>img{width:100%;height:100%;object-fit:contain}.mattone-controls{display:flex;justify-content:space-between;margin-top:10px}
@media(max-width:749px){.mattone-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:0}.mattone-photo{flex:0 0 100%;aspect-ratio:1;scroll-snap-align:start}.mattone-photo>img{object-position:50% var(--focus,50%)}.mattone-pager{display:flex;justify-content:center;gap:8px;padding:12px}.mattone-pager button{width:7px;height:7px;border:0;border-radius:50%;background:#8c8073;padding:0}}

.mattone-initial{width:100%;aspect-ratio:2/3;object-fit:cover}@media(max-width:749px){.mattone-initial{aspect-ratio:1}}
