/* Shared presentation for hardware, illustrations and brand artwork. */
:root {
  --media-surface: #f3f6fa;
  --media-line: #dce5ef;
  --media-brand-surface: #102c45;
  --media-space: clamp(16px, 2vw, 28px);
}
body main .media-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  padding: var(--media-space);
  overflow: hidden;
  border: 1px solid var(--media-line);
  border-radius: 0;
  background: var(--media-surface);
}
body main .media-frame > img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
}
/* These scenes contain positioned logos and devices; scale the whole composition. */
body main .media-frame--scene { padding: 3.3333% 5%; }
body main .media-frame--scene > :is(.security-series-scene, .giga-product-scene, .zd-product-stage, .ups-product-stage) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
body main .media-frame--brand { background: #fff; }
body main :is(.service-intro-photo, .service-category-stage, .equipment-guide-photo, .cloud-use-card, .product-page-figure, .apx-product-figure, .giga-product, .zd-product, .ups-product) {
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body main .apx-product-figure { display: block; aspect-ratio: auto; }
body main .apx-product-waves { display: none; }
body main :is(.product-page-figure, .apx-product-figure, .giga-product, .zd-product, .ups-product, .service-category-stage, .service-intro-photo, .equipment-guide-photo, .cloud-use-card) > figcaption {
  position: static;
  inset: auto;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--media-line);
  background: transparent;
  color: #526171;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: left;
}
body main :is(.giga-product, .zd-product, .ups-product) > figcaption strong { color: #253748; }
/* The same product-stage proportions as the surrounding image frames. */
body.zbcp-product-page main .zbcp-product-stage {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
/* Reserve the label row and contain the complete device, including antennas. */
body.zbcp-product-page main .zbcp-product-stage > img {
  position: absolute;
  left: 50%; top: calc(50% + 11px);
  width: calc(100% - 2 * var(--media-space));
  height: calc(100% - 2 * var(--media-space) - 22px);
  min-width: 0; min-height: 0; max-height: 280px;
  margin: 0; object-fit: contain; object-position: center;
  transform: translate(-50%, -50%);
}
body.zbcp-product-page main .zbcp-product-stage > span {
  position: absolute; top: var(--media-space); left: var(--media-space);
  margin: 0;
}
body.catalogue-refined main #solutions figure.solution-visual.product-visual {
  height: 220px;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
body.catalogue-refined main #solutions figure.solution-visual.product-visual img { object-fit: contain; }
body.catalogue-refined main #solutions figure.solution-visual.product-visual figcaption { color: #526171; }
/* White-letter artwork uses one dark tray; dark-letter artwork uses the light tray. */
body main .cloud-hero-brand {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 24px;
  margin: 0;
  border: 1px solid var(--media-line);
  background: var(--media-brand-surface);
}
body main .cloud-hero-brand > img { width: 200px; height: 40px; max-width: 100%; object-fit: contain; object-position: left center; }
body:is(.alpha-product-page, .alpha4-product-page, .hikari-product-page) main .cloud-hero-brand { background: var(--media-surface); }
/* Home: equal-height panels, centered artwork, and a separate caption baseline. */
body.home-refreshed main .home-business-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  align-items: center;
  gap: 12px;
  height: 300px;
  min-height: 0;
  aspect-ratio: auto;
  padding: 20px 16px 12px;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
body.home-refreshed main .home-business-visual > .home-visual-link { min-height: 0; height: 100%; }
body.home-refreshed main .home-business-visual figcaption { position: static; inset: auto; padding: 0; font-size: 10px; line-height: 1.6; }
body.home-refreshed main .home-business-visual img { object-fit: contain; }
body.home-refreshed main .home-connectivity-visual { display: flex; flex-direction: column; justify-content: center; gap: 0; }
body.home-refreshed main .home-connectivity-visual > figcaption { margin-top: auto; padding-top: 12px; }
body.home-refreshed main .home-network-hub { width: 100%; }
body.home-refreshed main .home-network-product { height: 76px; padding: 8px 4px; }
body.home-refreshed main .home-network-topics .home-network-product img { width: 100%; height: 60px; max-height: 60px; max-width: 112px; object-fit: contain; }
/* Company index: one thumbnail size for photography, illustrations and logos. */
body.company-page #company-business .about-business-mark {
  width: 124px;
  height: 78px;
  aspect-ratio: auto;
  padding: 8px;
  border: 1px solid var(--media-line);
  border-radius: 0;
  background: var(--media-surface);
}
body.company-page #company-business .about-business-mark img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 767px) {
  body main .cloud-hero-brand { min-height: 68px; padding: 14px 18px; }
  body main .cloud-hero-brand > img { width: 180px; height: 36px; }
  body.company-page #company-business .about-business-mark { width: 90px; height: 60px; padding: 6px; }
}
@media (max-width: 359px) {
  body.company-page #company-business .about-business-mark { width: 76px; height: 52px; }
}
