/* V31: coherent first-party photography and original-person compositions. */
html body.theme-card.wm-designed[data-wm-fotos="v31"] #wm-privacy-dialog-v17 .wm-privacy-option-v17[data-wm-obsolete-photo-option-v31][hidden] { display:none !important; }
html body.theme-card.wm-designed[data-wm-fotos="v31"] main#content img[data-wm-photo-v31] { max-width:100%; object-fit:contain !important; object-position:center !important; image-rendering:auto; }
html body:is(#wm-start-v7,#wm-angebote-v7,#wm-buchen-v10,#wm-bilder-v9,#wm-kontakt-v6).theme-card.wm-designed[data-wm-fotos="v31"][data-wm-look="v30"] main#content img[data-wm-photo-v31] { object-fit:contain !important; object-position:center !important; }
html body.theme-card.wm-designed[data-wm-fotos="v31"] main#content :is(.wm-offer-card,.wm-gallery-media-v9,.booking-service-media,.price-service-media,.wm-service-media-v7,.wm-contact-hero-photo,.wm-gallery-hero-media-v9) { background:var(--v30-paper,#fbf8f2) !important; }
html body#wm-start-v7.theme-card.wm-designed[data-wm-fotos="v31"][data-wm-mobile-home="v21"][data-wm-offers="v22"] main#content .wm-offer-card > img[data-wm-photo-v31] { width:100% !important; height:auto !important; aspect-ratio:4/3 !important; border-radius:7px !important; object-fit:contain !important; }
html body#wm-kontakt-v6.theme-card.wm-designed[data-wm-fotos="v31"][data-wm-contact-refresh="v29"] main#content .wm-contact-hero figure.wm-contact-hero-photo { height:auto !important; aspect-ratio:4/3 !important; }
html body#wm-kontakt-v6.theme-card.wm-designed[data-wm-fotos="v31"][data-wm-contact-refresh="v29"] main#content .wm-contact-hero-photo .wm-inner-image-v14 { height:100% !important; aspect-ratio:4/3 !important; }
html body#wm-angebote-v7.theme-card.wm-designed[data-wm-fotos="v31"] main#content :is(.wm-v27-photo,.wm-v26-hero-photo,.wm-v25-hero-media) img[data-wm-photo-v31] { width:100% !important; height:auto !important; max-height:460px !important; object-fit:contain !important; border-radius:8px !important; }
html body#wm-angebote-v7.theme-card.wm-designed[data-wm-fotos="v31"] main#content .wm-v27-gallery img[data-wm-photo-v31="document"] { width:100% !important; height:auto !important; max-height:380px !important; object-fit:contain !important; }
html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content .wm-gallery-media-v9 { aspect-ratio:4/3 !important; min-height:0 !important; height:auto !important; overflow:hidden !important; }
html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content .wm-gallery-media-v9 img[data-wm-photo-v31] { position:static !important; width:100% !important; height:100% !important; max-height:440px !important; object-fit:contain !important; }
html body#wm-kontakt-v6.theme-card.wm-designed[data-wm-fotos="v31"] main#content #individuelle-anfrage .wm-v24-gallery img[data-wm-photo-v31] { height:330px !important; width:100% !important; max-height:55vh !important; object-fit:contain !important; }
html body:is(#wm-angebote-v7,#wm-buchen-v10).theme-card.wm-designed[data-wm-fotos="v31"] main#content #wm-v26-thanks img[data-wm-photo-v31] { aspect-ratio:auto !important; height:auto !important; width:100% !important; max-width:440px !important; object-fit:contain !important; }
html body.theme-card.wm-designed[data-wm-fotos="v31"] main#content :is(.price-service-media,.booking-service-media) img[data-wm-photo-v31] { aspect-ratio:4/3 !important; width:100% !important; object-fit:contain !important; }
@media(max-width:960px) {
 html body.theme-card.wm-designed[data-wm-fotos="v31"][data-wm-reference="v13"][data-wm-inner="v14"][data-wm-page="prices"] .wm-inner-standalone-v14 .wm-inner-image-v14 { background-image:url('fotos-v31/hausbescherung.webp') !important; background-size:contain !important; background-position:center !important; }
 html body#wm-kontakt-v6.theme-card.wm-designed[data-wm-fotos="v31"] main#content #individuelle-anfrage .wm-v24-gallery img[data-wm-photo-v31] { height:250px !important; }
 html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content .wm-gallery-media-v9 img[data-wm-photo-v31] { max-height:340px !important; }
}
/* Consistent gallery rows instead of differently cropped masonry thumbnails. */
html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content .gallery-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; grid-auto-rows:auto !important; gap:20px !important; }
html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content #weihnachtsmotive .gallery-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content .gallery-grid :is(.g-item,.g-item.big,.g-item.tall) { grid-column:auto !important; grid-row:auto !important; display:flex !important; flex-direction:column !important; min-width:0 !important; height:auto !important; }
html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content .gallery-grid .g-cap { font-size:14px !important; line-height:1.5 !important; overflow-wrap:break-word; }
@media(max-width:1100px) {
 html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content :is(.gallery-grid,#weihnachtsmotive .gallery-grid) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media(max-width:600px) {
 html body#wm-bilder-v9.theme-card.wm-designed[data-wm-fotos="v31"] main#content :is(.gallery-grid,#weihnachtsmotive .gallery-grid) { grid-template-columns:minmax(0,1fr) !important; }
}
