/* Les visuels promotionnels incluent une grande zone vide en partie basse.
   Ces cadres montrent le contenu utile sans étirer les sections. */
.iphone-gallery {
  max-width: 880px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.iphone-gallery figure {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: #021713;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}

.iphone-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  box-shadow: none;
}

.iphone-gallery figcaption { padding: 16px 12px; }

.ipad-gallery {
  max-width: 1220px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ipad-gallery figure {
  border: 1px solid rgba(0, 92, 69, .08);
  background: #fff;
}

.ipad-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 1000px) {
  .ipad-gallery { grid-template-columns: 1fr; max-width: 700px; }
  .ipad-gallery figure:nth-child(n + 2) { display: block; }
  .ipad-gallery img { aspect-ratio: 16 / 10; }
  .iphone-gallery { gap: 18px; }
}

@media (max-width: 620px) {
  .iphone-gallery {
    width: auto;
    max-width: 360px;
    grid-template-columns: 1fr;
    transform: none;
  }

  .iphone-gallery figure { opacity: 1; }
  .ipad-gallery img { aspect-ratio: 4 / 3; }
}
