/* Three complete films stay in view at every width. The v4 gradient is retained. */
body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 3vw, 36px);
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-example {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: none;
}

/* The speaker and home bar live in the bezel, never over the video or controls. */
body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-device {
  width: min(100%, 340px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(4px, .65vw, 9px);
  border: 1px solid #65596e;
  border-radius: clamp(12px, 2.8vw, 33px);
  background: linear-gradient(145deg, #352d3d, #1f1a26);
  box-shadow: 0 1px 0 #ffffffb3 inset, 0 16px 38px #6b447527;
}

body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-device::before {
  content: "";
  display: block;
  width: 19%;
  height: clamp(2px, .3vw, 4px);
  margin: clamp(2px, .4vw, 5px) auto clamp(5px, .75vw, 10px);
  border-radius: 99px;
  background: #665b70;
}

body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-device::after {
  content: "";
  display: block;
  width: 29%;
  height: clamp(2px, .25vw, 3px);
  margin: clamp(5px, .65vw, 9px) auto clamp(1px, .3vw, 4px);
  border-radius: 99px;
  background: #a59bab;
}

body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-device__screen {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: clamp(6px, 1.65vw, 20px);
  background: #111;
}

body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-device__screen > video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-example figcaption {
  margin-top: clamp(10px, 1.7vw, 22px);
  font-size: clamp(10px, 1.3vw, 13px);
  line-height: 1.65;
  overflow-wrap: anywhere;
  letter-spacing: .025em;
}

@media (max-width: 760px) {
  body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-example-grid {
    gap: clamp(8px, 2.4vw, 18px);
    padding: 0;
    overflow: visible;
  }

  body.editorial.revision-three.revision-four #ad-work.ad-showcase--fit .ad-archive-note {
    margin-top: 24px;
    line-height: 1.8;
  }
}
