.container {
  box-sizing: border-box;
  max-width: 1100px;
  padding: 34px 20px 60px;
}

.device-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 34px;
  align-items: center;
}

.device-hero *, .device-hero *::before, .device-hero *::after {
  box-sizing: border-box;
}

.device-copy {
  min-width: 0;
  line-height: 1.55;
}

.device-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.device-copy h2 {
  font-size: 1.1rem;
}

.device-media {
  min-width: 0;
  margin: 0;
}

.device-media .gallery {
  gap: 0;
  margin: 0;
  background: #2a2f30;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  scrollbar-color: #f29a2e #2a2f30;
  scrollbar-width: thin;
}

.device-media .gallery img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 18px;
  cursor: zoom-in;
}

.device-caption {
  margin-top: 10px;
  color: #b8bfc0;
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 820px) {
  .device-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .device-media {
    order: -1;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 26px 16px 44px;
  }
}
