.dm-page .dm-photo-link--villa img {object-fit:contain;background:#f1f0e8;}
.dm-original-photos__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,2vw,1.6rem);margin-top:1.75rem;}
.dm-original-photos__grid figure {display:flex;flex-direction:column;min-width:0;margin:0;background:#fffdf8;border:1px solid #d9ded5;border-radius:.5rem;overflow:hidden;}
.dm-original-photos__grid a {display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;aspect-ratio:3/2;background:#f1f0e8;}
.dm-original-photos__grid img {display:block;width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain;}
.dm-original-photos__grid figcaption {padding:.75rem 1rem;color:#173b33;font:500 .9rem/1.45 Arial,sans-serif;}
.dm-original-photos__grid a:focus-visible {outline:3px solid #173b33;outline-offset:-4px;}
@media(max-width:900px){.dm-original-photos__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.dm-original-photos__grid{grid-template-columns:minmax(0,1fr);}}
