.dmc-pgallery{--dmc-pg-gap:12px;--dmc-pg-columns:4;--dmc-pg-active:#b78248;--dmc-pg-opacity:.7;display:flex;flex-direction:column;gap:var(--dmc-pg-gap);min-width:0}.dmc-pgallery-main{position:relative;display:block;width:100%;aspect-ratio:1/1;padding:0;border:0;background:#f4f4f4;overflow:hidden;cursor:zoom-in}.dmc-pgallery-main:disabled{cursor:default}.dmc-pgallery-main img{display:block;width:100%;height:100%;object-fit:contain}.dmc-pgallery-zoom{position:absolute;right:15px;top:15px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:white;color:#222;font-size:28px;line-height:1}.dmc-pgallery-main:disabled .dmc-pgallery-zoom{display:none}.dmc-pgallery-thumbs{display:grid;grid-template-columns:repeat(var(--dmc-pg-columns),minmax(0,1fr));gap:var(--dmc-pg-gap)}.dmc-pgallery-thumb{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;padding:0;border:2px solid transparent;background:#f5f5f5;cursor:pointer;opacity:var(--dmc-pg-opacity);transition:opacity .2s,border-color .2s}.dmc-pgallery-thumb.is-active{border-color:var(--dmc-pg-active);opacity:1}.dmc-pgallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}.dmc-pgallery-left,.dmc-pgallery-right{flex-direction:row}.dmc-pgallery-left .dmc-pgallery-thumbs,.dmc-pgallery-right .dmc-pgallery-thumbs{order:-1;width:22%;flex:0 0 22%;display:flex;flex-direction:column}.dmc-pgallery-right .dmc-pgallery-thumbs{order:2}.dmc-pgallery-left .dmc-pgallery-main,.dmc-pgallery-right .dmc-pgallery-main{flex:1;min-width:0}.dmc-pgallery-thumb:focus-visible,.dmc-pgallery-main:focus-visible{outline:2px solid var(--dmc-pg-active);outline-offset:3px}.dmc-pgallery-modal{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:55px 70px}.dmc-pgallery-modal[hidden]{display:none!important}.dmc-pgallery-modal img{display:block;max-width:100%;max-height:calc(100vh - 110px);object-fit:contain}.dmc-pgallery-modal button{position:absolute;border:0;background:rgba(255,255,255,.95);color:#111;width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:28px}.dmc-pgallery-close{right:20px;top:20px}.dmc-pgallery-prev{left:15px;top:50%}.dmc-pgallery-next{right:15px;top:50%}@media(max-width:767px){.dmc-pgallery-left,.dmc-pgallery-right{flex-direction:column}.dmc-pgallery-left .dmc-pgallery-thumbs,.dmc-pgallery-right .dmc-pgallery-thumbs{order:2;width:100%;flex:auto;display:grid;grid-template-columns:repeat(var(--dmc-pg-columns),minmax(0,1fr))}.dmc-pgallery-modal{padding:60px 20px}.dmc-pgallery-modal button{width:36px;height:36px}}

/* Smooth horizontal transitions for main image and lightbox */
.dmc-pgallery-slide-frame{position:absolute;inset:0;display:block;overflow:hidden;pointer-events:none}
.dmc-pgallery-slide-photo{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;max-width:none!important;max-height:none!important}
.dmc-pgallery-modal-stage{position:relative;display:flex;align-items:center;justify-content:center;width:min(100%,1100px);height:calc(100vh - 110px);overflow:hidden}
.dmc-pgallery-modal-stage>img{max-width:100%;max-height:100%;object-fit:contain}
.dmc-pgallery-modal-stage .dmc-pgallery-slide-frame{display:flex;align-items:center;justify-content:center}
@media(max-width:767px){.dmc-pgallery-modal-stage{height:calc(100vh - 120px)}}

/* Browser-unabhaengiges Lupen-Icon */
.dmc-pgallery-zoom svg{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
