/* ==========================================================================
   Gallery — rounded square images with centred text underneath.
   4 across on desktop, 2 across on phones.
   ========================================================================== */

.gallery {
  padding: 96px var(--gutter);
  background: var(--c-paper);
  color: var(--c-ink);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 990px) {
  .gallery { padding: 140px var(--gutter); }
}

.gallery__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.gallery__head {
  margin-bottom: 48px;
  text-align: center;
}

.gallery__head .eyebrow { color: rgba(0, 0, 0, 0.6); }
.gallery__head .display { font-size: clamp(48px, 6vw, 92px); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) {
  .gallery__grid { gap: 40px 20px; }
}

@media (min-width: 990px) {
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
}

/* ---------- card ---------- */

.gallery__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, #f1f1ee 0%, #e4e4df 100%);
}

/* real photos go here and fill the square */
.gallery__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover .gallery__media > img,
.gallery__item:hover .gallery__device { transform: scale(1.04); }

/* PLACEHOLDER: small LED box until there are photos */
.gallery__device {
  position: relative;
  width: 82%;
  transition: transform 0.6s var(--ease);
}

.gallery__device::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 98%;
  height: 16%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.25), transparent);
}

.gallery__device .s__big { font-size: 14cqw; }

.gallery__text {
  margin-top: 14px;
  text-align: center;
}

.gallery__text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.gallery__text p {
  max-width: 28ch;
  margin: 6px auto 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
  .gallery__media { border-radius: 14px; }
  .gallery__text p { font-size: 13px; }
}
