.hq-photo-full,
.hq-photo-thumb {
  display:block;
  padding:0;
  border:0;
  background:var(--bg-soft);
  cursor:zoom-in;
}
.hq-photo-full {
  width:min(100%,420px);
  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:2/3;
  }
  .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:2/3;
    width:calc(100% + 52px);
    margin:-28px -26px 20px;
  }
}
