.hq-photo-full,
.hq-photo-thumb {
  display:block;
  padding:0;
  border:0;
  background:var(--bg-soft);
  cursor:zoom-in;
}
.hq-photo-full {
  width:100%;
  margin-inline:auto;
}
.split-media .hq-photo-full img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  border:0;
}
.hq-photo-thumb {
  width:100%;
  height:100%;
}
.hq-photo-thumb img,
.app-card .ph .hq-photo-thumb img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.hq-site-card .hq-photo-thumb {
  height:220px;
  margin-bottom:20px;
}
.hq-photo-full:focus-visible,
.hq-photo-thumb:focus-visible {
  outline:3px solid var(--purple);
  outline-offset:3px;
}

@media (max-width:620px) {
  .split-media:has(> .hq-photo-full) {
    width:100vw;
    margin-inline:calc((100% - 100vw) / 2);
  }
  .hq-photo-full {width:100%}
  .split-media .hq-photo-full img {border-radius:0}
  .app-card .ph:has(> .hq-photo-thumb[data-zoom*="/tw-hsinchu-retouched-"]) {
    aspect-ratio:16/9;
  }
  .hq-site-card:has(> .hq-photo-thumb[data-zoom*="/tw-hsinchu-retouched-"]) {
    overflow:hidden;
  }
  .hq-site-card .hq-photo-thumb[data-zoom*="/tw-hsinchu-retouched-"] {
    height:auto;
    aspect-ratio:16/9;
    width:calc(100% + 52px);
    margin:-28px -26px 20px;
  }
}

@media (min-width:901px) {
  .sec-head[data-en="GLOBAL SITES"] + .grid .app-card .ph {
    aspect-ratio:16/9;
  }
  .sec-head[data-en="GLOBAL SITES"] + .grid .app-card .ph img {
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .sec-head[data-en="GLOBAL SITES"] + .grid .app-card .ph img[src*="/tw-hsinchu-retouched-"] {
    object-position:center 20%;
  }
}

.hq-site-card .hq-photo-thumb[data-zoom*="/tw-hsinchu-retouched-"] {
  height:auto;
  aspect-ratio:16/9;
}
.hq-photo-thumb[data-zoom*="/tw-hsinchu-retouched-"] img,
.app-card .ph .hq-photo-thumb[data-zoom*="/tw-hsinchu-retouched-"] img {
  object-fit:cover;
  object-position:center 20%;
}
