/* Building art stays inside a stable frame; every source keeps its own aspect ratio. */
html.ts3 main [data-building-frame-51] {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
}
html.ts3 main .ts3-catalog-entry [data-building-frame-51="catalog"] {
  width: 100px;
  height: 100px;
  max-width: 192px;
  aspect-ratio: 1;
  padding: 4px;
}
html.ts3 main [data-building-frame-51] > img[data-building-art-51] {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
html.ts3 main.ts3-data-page > .container > .hero [data-building-frame-51="detail"] {
  display: flex;
  width: 160px;
  max-width: 160px;
  height: 180px;
  min-height: 0;
  padding: 6px;
  clip-path: none;
}
html.ts3 main.ts3-data-page > .container > .hero [data-building-frame-51="detail"] > img[data-building-art-51] {
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  html.ts3 main .ts3-catalog-entry [data-building-frame-51="catalog"] {
    width: 74px;
    height: 74px;
  }
  html.ts3 main.ts3-data-page > .container > .hero [data-building-frame-51="detail"] {
    display: flex;
    width: 92px;
    max-width: 92px;
    height: 110px;
    padding: 3px;
  }
}
