/* Galerie « Nos modèles » : un téléphone par modèle, profil d'exemple. */

.gallery__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 var(--sp-4);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-6) var(--sp-5);
}

.gallery-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--sp-3);
  scroll-margin-top: 96px;
}

.gallery-item__phone {
  width: min(270px, 84vw);
}

/* Le profil est mis en page à la largeur d'un vrai téléphone (environ
   330 px), puis réduit pour tenir dans la vignette. */
.gallery-item__phone .pf {
  zoom: 0.76;
}

.gallery-item__text {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.gallery-item__text h3,
.gallery-item__text p {
  margin: 0;
}

.gallery-item:target .gallery-item__phone {
  box-shadow:
    0 0 0 4px var(--c-primary),
    var(--sh-lg);
}

.gallery-premium {
  scroll-margin-top: 80px;
  margin-top: var(--sp-7);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #fbf3df, #f4ecff);
}

.gallery-premium > p {
  max-width: 44rem;
}
