/* Preserve the subjects of the portrait originals. */
.hero-images .wp-block-column:last-child img[src*="lomatec-neu-hero"]{object-position:50% 78%}
.service-card img[src*="lomatec-neu-karte"]{object-position:50% 64%}
.amrde-lom-gallery-link{margin:24px 0 32px!important}
.amrde-lom-gallery-link a{display:inline-block;background:#2d258f;color:#fff;padding:14px 22px;text-decoration:none;border-radius:2px;font-weight:700}
.amrde-lom-gallery{scroll-margin-top:30px}
.amrde-lom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}
.amrde-lom-photo{display:block;background:#eef2f5;overflow:hidden;border-bottom:3px solid #ef7200}
.amrde-lom-photo img{display:block;width:100%;height:360px;object-fit:contain;transition:transform .2s}
.amrde-lom-photo:hover img{transform:scale(1.02)}
.amrde-lom-gallery a:focus-visible,.amrde-lom-lightbox button:focus-visible{outline:3px solid #ef7200;outline-offset:4px}
.amrde-lom-lightbox{border:0;padding:52px 56px 24px;background:#141a20;width:min(1200px,96vw);max-width:96vw;max-height:96vh;box-sizing:border-box;overflow:auto}
.amrde-lom-lightbox::backdrop{background:rgba(0,0,0,.87)}
.amrde-lom-lightbox>img{display:block;width:100%;height:78vh;object-fit:contain}
.amrde-lom-lightbox button{position:absolute;border:0;background:#fff;color:#17202a;border-radius:4px;width:40px;height:40px;font-size:30px;line-height:1;cursor:pointer}
.amrde-lom-close{right:12px;top:8px}.amrde-lom-prev{left:8px;top:50%}.amrde-lom-next{right:8px;top:50%}
@media(max-width:800px){.amrde-lom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.amrde-lom-photo img{height:300px}}
@media(max-width:520px){.amrde-lom-grid{grid-template-columns:1fr}.amrde-lom-photo img{height:380px}.amrde-lom-lightbox{padding:52px 42px 16px}.amrde-lom-lightbox>img{height:72vh}}
@media(prefers-reduced-motion:reduce){.amrde-lom-photo img{transition:none}}

/* Readable project captions; override WordPress gallery overlay typography. */
.lomatec-gallery.wp-block-gallery > .wp-block-image figcaption,
.lomatec-gallery.wp-block-gallery > .wp-block-image figcaption * {
 color:#142433!important;
 font-family:Arial,Helvetica,sans-serif!important;
 font-size:18px!important;
 font-weight:500!important;
 line-height:1.55!important;
 letter-spacing:normal!important;
 text-shadow:none!important;
 filter:none!important;
 opacity:1!important;
 -webkit-text-stroke:0!important;
}
.lomatec-gallery.wp-block-gallery > .wp-block-image figcaption {
 position:static!important;
 background:transparent!important;
 text-align:left!important;
 padding:18px 8px 10px!important;
 overflow:visible!important;
 white-space:normal!important;
 overflow-wrap:anywhere;
 max-height:none!important;
}
