.cover-card-image, .cover-card-image[data-cover-x] {
  object-position: var(--cover-x, 50%) var(--cover-y, 50%);
  transform: scale(var(--cover-zoom, 1));
  transform-origin: var(--cover-x, 50%) var(--cover-y, 50%);
}

.cover-card-image[data-cover-x="0"] { --cover-x: 0%; }
.cover-card-image[data-cover-x="10"] { --cover-x: 10%; }
.cover-card-image[data-cover-x="20"] { --cover-x: 20%; }
.cover-card-image[data-cover-x="30"] { --cover-x: 30%; }
.cover-card-image[data-cover-x="40"] { --cover-x: 40%; }
.cover-card-image[data-cover-x="50"] { --cover-x: 50%; }
.cover-card-image[data-cover-x="60"] { --cover-x: 60%; }
.cover-card-image[data-cover-x="70"] { --cover-x: 70%; }
.cover-card-image[data-cover-x="80"] { --cover-x: 80%; }
.cover-card-image[data-cover-x="90"] { --cover-x: 90%; }
.cover-card-image[data-cover-x="100"] { --cover-x: 100%; }

.cover-card-image[data-cover-y="0"] { --cover-y: 0%; }
.cover-card-image[data-cover-y="10"] { --cover-y: 10%; }
.cover-card-image[data-cover-y="20"] { --cover-y: 20%; }
.cover-card-image[data-cover-y="30"] { --cover-y: 30%; }
.cover-card-image[data-cover-y="40"] { --cover-y: 40%; }
.cover-card-image[data-cover-y="50"] { --cover-y: 50%; }
.cover-card-image[data-cover-y="60"] { --cover-y: 60%; }
.cover-card-image[data-cover-y="70"] { --cover-y: 70%; }
.cover-card-image[data-cover-y="80"] { --cover-y: 80%; }
.cover-card-image[data-cover-y="90"] { --cover-y: 90%; }
.cover-card-image[data-cover-y="100"] { --cover-y: 100%; }

.cover-card-image[data-cover-zoom="100"] { --cover-zoom: 1; }
.cover-card-image[data-cover-zoom="110"] { --cover-zoom: 1.1; }
.cover-card-image[data-cover-zoom="120"] { --cover-zoom: 1.2; }
.cover-card-image[data-cover-zoom="130"] { --cover-zoom: 1.3; }
.cover-card-image[data-cover-zoom="140"] { --cover-zoom: 1.4; }
.cover-card-image[data-cover-zoom="150"] { --cover-zoom: 1.5; }
.cover-card-image[data-cover-zoom="160"] { --cover-zoom: 1.6; }
.cover-card-image[data-cover-zoom="170"] { --cover-zoom: 1.7; }
.cover-card-image[data-cover-zoom="180"] { --cover-zoom: 1.8; }
.cover-card-image[data-cover-zoom="190"] { --cover-zoom: 1.9; }
.cover-card-image[data-cover-zoom="200"] { --cover-zoom: 2; }

:is(.site-image-frame, .cover-crop-frame, .news-image):has(> img[data-cover-format="portrait"]) { --editor-image-ratio: 3 / 4; }
:is(.site-image-frame, .cover-crop-frame, .news-image):has(> img[data-cover-format="landscape"]) { --editor-image-ratio: 4 / 3; }
.news-image:has(> img:is([data-cover-format="portrait"], [data-cover-format="landscape"])) { height: auto; aspect-ratio: var(--editor-image-ratio); }
.site-image-frame { display: block; width: 100%; aspect-ratio: var(--editor-image-ratio, 4 / 3); overflow: hidden; border-radius: inherit; }
.site-image-frame[data-frame="hero"] { height: 100%; aspect-ratio: var(--editor-image-ratio, auto); }
.site-image-frame[data-frame="coach"] { width: min(100%, 300px); flex-shrink: 0; border-radius: 10px; }
.site-image-frame > .site-crop { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.athlete-slide:has(> .site-image-frame) { aspect-ratio: auto; align-self: start; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin-block: 2rem; }
.article-gallery figure { margin: 0; }
.article-gallery a { display: block; border-radius: 8px; cursor: zoom-in; }
.article-gallery figcaption { margin-top: .45rem; font-size: .85rem; }

@media (min-width: 681px) {
  .hero-photo:has(> .site-image-frame > img:is([data-cover-format="portrait"], [data-cover-format="landscape"])),
  .site-image-frame[data-frame="hero"]:has(> img:is([data-cover-format="portrait"], [data-cover-format="landscape"])) { height: auto; }
}

@media (max-width: 680px) {
  .site-image-frame:has(> img[data-mobile-cover-format="standard"]) { --editor-image-ratio: initial; }
  .site-image-frame:has(> img[data-mobile-cover-format="portrait"]) { --editor-image-ratio: 3 / 4; }
  .site-image-frame:has(> img[data-mobile-cover-format="landscape"]) { --editor-image-ratio: 4 / 3; }
  .hero-photo:has(> .site-image-frame > img:is([data-mobile-cover-format="portrait"], [data-mobile-cover-format="landscape"])),
  .site-image-frame[data-frame="hero"]:has(> img:is([data-mobile-cover-format="portrait"], [data-mobile-cover-format="landscape"])) { height: auto; }
  .site-crop[data-mobile-cover-x="0"] { --cover-x: 0%; }
  .site-crop[data-mobile-cover-x="10"] { --cover-x: 10%; }
  .site-crop[data-mobile-cover-x="20"] { --cover-x: 20%; }
  .site-crop[data-mobile-cover-x="30"] { --cover-x: 30%; }
  .site-crop[data-mobile-cover-x="40"] { --cover-x: 40%; }
  .site-crop[data-mobile-cover-x="50"] { --cover-x: 50%; }
  .site-crop[data-mobile-cover-x="60"] { --cover-x: 60%; }
  .site-crop[data-mobile-cover-x="70"] { --cover-x: 70%; }
  .site-crop[data-mobile-cover-x="80"] { --cover-x: 80%; }
  .site-crop[data-mobile-cover-x="90"] { --cover-x: 90%; }
  .site-crop[data-mobile-cover-x="100"] { --cover-x: 100%; }
  .site-crop[data-mobile-cover-y="0"] { --cover-y: 0%; }
  .site-crop[data-mobile-cover-y="10"] { --cover-y: 10%; }
  .site-crop[data-mobile-cover-y="20"] { --cover-y: 20%; }
  .site-crop[data-mobile-cover-y="30"] { --cover-y: 30%; }
  .site-crop[data-mobile-cover-y="40"] { --cover-y: 40%; }
  .site-crop[data-mobile-cover-y="50"] { --cover-y: 50%; }
  .site-crop[data-mobile-cover-y="60"] { --cover-y: 60%; }
  .site-crop[data-mobile-cover-y="70"] { --cover-y: 70%; }
  .site-crop[data-mobile-cover-y="80"] { --cover-y: 80%; }
  .site-crop[data-mobile-cover-y="90"] { --cover-y: 90%; }
  .site-crop[data-mobile-cover-y="100"] { --cover-y: 100%; }
  .site-crop[data-mobile-cover-zoom="100"] { --cover-zoom: 1; }
  .site-crop[data-mobile-cover-zoom="110"] { --cover-zoom: 1.1; }
  .site-crop[data-mobile-cover-zoom="120"] { --cover-zoom: 1.2; }
  .site-crop[data-mobile-cover-zoom="130"] { --cover-zoom: 1.3; }
  .site-crop[data-mobile-cover-zoom="140"] { --cover-zoom: 1.4; }
  .site-crop[data-mobile-cover-zoom="150"] { --cover-zoom: 1.5; }
  .site-crop[data-mobile-cover-zoom="160"] { --cover-zoom: 1.6; }
  .site-crop[data-mobile-cover-zoom="170"] { --cover-zoom: 1.7; }
  .site-crop[data-mobile-cover-zoom="180"] { --cover-zoom: 1.8; }
  .site-crop[data-mobile-cover-zoom="190"] { --cover-zoom: 1.9; }
  .site-crop[data-mobile-cover-zoom="200"] { --cover-zoom: 2; }
}
