.mm-gallery {
  --mm-gallery-styled: 1;
  --mm-gallery-gap: 15px;
  --mm-gallery-accent: #816b52;
  --mm-gallery-radius: 6px;
  --mm-gallery-inset: clamp(8px, 1.2vw, 16px);
  display: grid;
  /* Split the space remaining after the 15px gutter in a 20/80 ratio. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: var(--mm-gallery-gap);
  width: 100%;
  align-items: start;
}
.mm-gallery__thumbs {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--mm-gallery-gap);
}
.mm-gallery .mm-gallery__thumb {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: var(--mm-gallery-radius);
  background: #f8f7f5;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.mm-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  opacity: .86;
  transition: transform 450ms cubic-bezier(.22, 1, .36, 1), opacity 250ms ease;
}
.mm-gallery .mm-gallery__thumb[aria-pressed="true"] {
  border-color: var(--mm-gallery-accent);
  box-shadow: 0 0 0 1px rgba(129, 107, 82, .12);
}
.mm-gallery .mm-gallery__thumb:is([aria-pressed="true"], :focus-visible) img { opacity: 1; }
.mm-gallery .mm-gallery__thumb:focus-visible {
  outline: 2px solid var(--mm-gallery-accent);
  outline-offset: 3px;
}
.mm-gallery__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #87735a;
  font-size: 11px;
}
.mm-gallery__stage {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--mm-gallery-inset);
  background: linear-gradient(145deg, #f9f8f6, #eee9e2);
  border-radius: var(--mm-gallery-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(64, 56, 47, .08), 0 2px 6px rgba(64, 56, 47, .04);
  /* An inset frame preserves the exact width and natural image proportions. */
  isolation: isolate;
}
.mm-gallery__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(129, 107, 82, .24);
  border-radius: inherit;
  pointer-events: none;
}
.mm-gallery__panel { width: 100%; border-radius: 3px; overflow: hidden; }
.mm-gallery__panel[hidden] { display: none !important; }
.mm-gallery__panel img, .mm-gallery__panel video {
  display: block;
  width: 100%;
  height: auto;
}
.mm-gallery__panel:has(> img) {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.mm-gallery__panel > img {
  transform-origin: var(--mm-detail-x, 50%) var(--mm-detail-y, 50%);
  transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
}
.mm-gallery__transition {
  position: absolute;
  top: var(--mm-gallery-inset);
  left: var(--mm-gallery-inset);
  width: calc(100% - var(--mm-gallery-inset) - var(--mm-gallery-inset));
  height: auto;
  border-radius: 3px;
  pointer-events: none;
}
.mm-gallery__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding-top: 10px;
  gap: 12px;
  color: var(--mm-gallery-accent);
}
.mm-gallery__counter {
  font: 13px/1.4 "Frutiger LT Std", "Frutiger", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.8px;
}
.mm-gallery .mm-gallery__expand {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(129, 107, 82, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--mm-gallery-accent);
  font: 28px/1 sans-serif;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.mm-gallery .mm-gallery__expand[hidden] { display: none; }
.mm-gallery .mm-gallery__expand svg { display: block; width: 18px; height: 18px; }
.mm-gallery .mm-gallery__expand:is(:hover, :focus-visible) {
  background: rgba(129, 107, 82, .08);
  border-color: var(--mm-gallery-accent);
}
.mm-gallery .mm-gallery__expand:focus-visible { outline: 2px solid var(--mm-gallery-accent); outline-offset: 3px; }
/* Hide image information only in this gallery's native Elementor lightbox. */
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .elementor-slideshow__footer { display: none !important; }
/* Keep native navigation and dragging, with bare arrow icons on every screen. */
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lightbox-ui-color, #fff);
  cursor: pointer;
  z-index: 3;
}
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .elementor-swiper-button-prev { left: clamp(8px, 2vw, 24px); }
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .elementor-swiper-button-next { right: clamp(8px, 2vw, 24px); }
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .elementor-swiper-button :is(svg, i) {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  fill: currentColor;
  font-size: 24px;
}
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .swiper:not(.elementor-slideshow--zoom-mode) > .elementor-swiper-button { opacity: 1; }
.elementor-lightbox[id^="elementor-lightbox-slideshow-mm-gallery-"] .elementor-swiper-button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .mm-gallery__thumb:hover { border-color: rgba(129, 107, 82, .45); }
  .mm-gallery__thumb:hover img { opacity: 1; }
  .mm-gallery .mm-gallery__thumb[aria-pressed="true"]:hover { border-color: var(--mm-gallery-accent); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .mm-gallery__thumb:is(:hover, :focus-visible) img { transform: scale(1.055); }
  .mm-gallery__panel[data-mm-detail] > img { transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-gallery .mm-gallery__thumb, .mm-gallery__thumb img, .mm-gallery__panel > img,
  .mm-gallery .mm-gallery__expand {
    transition: none !important;
  }
  .mm-gallery__thumb img, .mm-gallery__panel > img { transform: none !important; }
}
