/* Preserve the full supplied photographs on service cards and galleries. */
html body.martina-layout .my-card img,
html body .martina-layout .my-card img,
html body .my-site .my-card img,
html body .elementor .my-card img,
html body .mt-client-service-gallery img {
 width:100% !important; height:auto !important; max-height:none !important;
 aspect-ratio:auto !important; object-fit:contain !important; display:block;
}
html body .mt-client-service-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
@media(max-width:767px){html body .mt-client-service-gallery{grid-template-columns:1fr}}

/* INSIEME: keep every gallery photo on the same desktop row, including older saved pages. */
@media (min-width:701px) {
 html body .elementor .mt-ins-gallery,
 html body .my-site .mt-ins-gallery,
 html body .elementor .mt-ins-photo-update .my-gallery,
 html body .my-site .mt-ins-photo-update .my-gallery {
  display:grid !important;
  grid-template-columns:none !important;
  grid-template-rows:auto !important;
  grid-auto-flow:column !important;
  grid-auto-columns:minmax(0,1fr) !important;
  gap:14px !important;
 }
}
@media (max-width:700px) {
 html body .elementor .mt-ins-gallery,
 html body .my-site .mt-ins-gallery,
 html body .elementor .mt-ins-photo-update .my-gallery,
 html body .my-site .mt-ins-photo-update .my-gallery {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-template-rows:none !important;
  grid-auto-flow:row !important;
  grid-auto-columns:auto !important;
  gap:14px !important;
 }
 html body .mt-ins-gallery > :last-child:nth-child(odd),
 html body .mt-ins-photo-update .my-gallery > :last-child:nth-child(odd) {
  grid-column:1 / -1 !important;
 }
}

/* The sixth INSIEME photo now shares the gallery, rather than a separate section. */
html body .elementor .mt-ins-unified-gallery img,
html body .my-site .mt-ins-unified-gallery img {
 width:100% !important;
 height:auto !important;
 max-height:none !important;
 aspect-ratio:4 / 5 !important;
 object-fit:cover !important;
 border-radius:20px;
}
html body .mt-ins-unified-gallery > * {min-width:0 !important; margin:0 !important}

/* INSIEME gallery: a gentle zoom without changing the grid layout. */
html body .mt-ins-gallery img,
html body .mt-ins-photo-update .my-gallery img {
 position:relative;
 z-index:0;
 transform-origin:center;
 transition:transform 280ms ease, box-shadow 280ms ease;
}
@media (hover:hover) and (pointer:fine) {
 html body .mt-ins-gallery img:hover,
 html body .mt-ins-photo-update .my-gallery img:hover {
  transform:scale(1.06);
  box-shadow:0 12px 26px rgba(65,58,66,.18);
  z-index:2;
 }
}
@media (prefers-reduced-motion:reduce) {
 html body .mt-ins-gallery img,
 html body .mt-ins-photo-update .my-gallery img {
  transition:none;
 }
 html body .mt-ins-gallery img:hover,
 html body .mt-ins-photo-update .my-gallery img:hover {
  transform:none;
 }
}
