/* Square gallery tiles match the original format of most gallery photos. */
:is([data-mgu-gallery], [data-mgu-studio]) .mgx-photo {
  aspect-ratio: 1;
}

:is([data-mgu-gallery], [data-mgu-studio]) .mgx-photo:hover img {
  transform: none;
}

/* These wider scenes have enough background to crop to a square. Keep
   contain fitting on technical samples and photos with edge-to-edge subjects. */
:is([data-mgu-gallery], [data-mgu-studio]) .mgx-photo > img:is(
  [src$="/army-coin.webp"],
  [src$="/navy-coin.webp"],
  [src$="/marine-corps-coin.webp"],
  [src$="/coast-guard-coin.webp"],
  [src$="/police-officer-coin-v2-reeded.webp"],
  [src$="/air-force-coin.webp"],
  [src$="/veteran-memorial-coin.webp"],
  [src$="/original-couple-keychains.webp"],
  [src$="/original-western-belt-buckles.webp"],
  [src$="/original-custom-neon-signs.jpg"]
) {
  object-fit: cover;
}

[data-mgu-gallery] .gallery-section[data-gallery] .gallery-card > img {
  aspect-ratio: 1;
  padding: 0;
  object-fit: contain;
}
