/* Shared by public cards, participant pages and both administration screens. */
img.mv-photo{display:block;width:var(--mv-image-width,100%);max-width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;box-sizing:border-box;padding:10px;background:#f2f0eb;border-radius:12px;flex-shrink:0;margin-inline:auto}
img.mv-photo[data-image-format="portrait"]{aspect-ratio:3/4}
img.mv-photo[data-image-format="landscape"]{aspect-ratio:4/3}
.hero .hero-portrait{border-radius:18px;overflow:hidden;background:#191a1d;margin:0;max-width:100%;width:var(--mv-image-width,100%);justify-self:center}
.hero .hero-portrait:after{display:none}
.hero-portrait img.mv-photo{width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;border-radius:0;background:#191a1d}
.hero .hero-portrait figcaption{position:static;inset:auto;width:auto;padding:12px 18px 18px;background:none;line-height:1.6}
.event-option img.mv-photo{background:#24252a}
.mv-image-format-control{margin:20px 0}
.mv-image-format-control label{display:block;font-weight:600;margin-bottom:7px}
.mv-image-format-control select{display:block;max-width:100%;min-height:40px}
.mv-image-format-control .description{margin-top:8px;line-height:1.6}
.mv-image-size-control{margin:20px 0}
.mv-image-size-control>label{display:block;font-weight:600;margin-bottom:7px}
.mv-image-size-inputs{display:flex;align-items:center;gap:10px;max-width:360px;min-width:0}
.mv-image-size-inputs input[type=range]{flex:1;min-width:0;width:100%;accent-color:#94722f;min-height:44px}
.mv-image-size-inputs input[type=number]{width:76px;flex:0 0 76px;min-height:40px}
.mv-image-size-control .description{margin-top:8px;line-height:1.6}

/* Match the site's two-column offers and 350px images on desktop.
   An unfilled row keeps its column width rather than enlarging one event. */
@media(min-width:782px){
  .mv-event-list.mv-event-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--wp--preset--spacing--30,2.4rem);align-items:stretch}
  .mv-event-grid .mv-public-event{min-width:0}
  .mv-event-grid .mv-event-media{height:350px;min-height:350px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#f2f0eb}
  .mv-event-grid .mv-event-media img.mv-photo{display:block;width:100%;height:350px;min-height:350px;max-height:350px;max-width:100%;aspect-ratio:auto;object-fit:contain;padding:0;border-radius:8px;margin:0;background:transparent}
  .mv-event-grid .mv-public-event-body>:last-child{margin-top:auto}
}
