.device-frame {
  width: auto;
  height: min(72dvh, 680px);
  max-width: min(34vw, 360px);
  overflow: hidden;
}

.device-frame img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 700px) {
  .screenshot-panel {
    padding-top: 82px;
    padding-bottom: 46px;
  }

  .device-frame {
    width: auto;
    height: min(48dvh, 390px);
    max-width: 76vw;
    margin-top: 22px;
  }

  .device-frame img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: none;
  }
}
