/* ==========================================================================
   Backdrops page — luxury-backdrops-for-midlands-photobooths-kzn.html

   The tile style from durbanphotobooths.co.za/durban-photobooths-backdrops.html
   (7 Oct 2026): four across, each tile a button that opens the lightbox, the
   name set in the display face over a gradient at the foot of the artwork,
   and the zoom badge on hover.

   Kept in its own file, linked from that page only, rather than added to
   site.min.css: that file is cached as immutable with no ?v=, so a returning
   visitor would never see new rules in it. Everything here is scoped to
   .backdrops__grid--4, so the six-across strip on the homepage keeps its
   own look. Bump ?v= on the page's <link> after changing this file.
   ========================================================================== */

/* Four across on the backdrops page, where each tile carries its name. */
.backdrops__grid--4 {
  gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 900px) {
  .backdrops__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .backdrops__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.backdrop__btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.backdrop__btn img {
  display: block;
}

/* The name reads white over the foot of the artwork, on its own gradient. */
.backdrops__grid--4 .backdrop figcaption,
.section--paper .backdrops__grid--4 .backdrop figcaption {
  z-index: 2;
  padding: 34px 10px 13px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92) 62%);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 98%;
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.backdrops__grid--4 .backdrop:focus-within {
  transform: translateY(-5px);
  border-color: rgba(211, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.6), 0 20px 50px -18px rgba(211, 0, 0, 0.85);
}

.backdrops__grid--4 .backdrop:focus-within img {
  transform: scale(1.07);
}

.backdrop__btn:hover .gitem__zoom,
.backdrop__btn:focus-visible .gitem__zoom {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .backdrops__grid--4 .backdrop:focus-within,
  .backdrops__grid--4 .backdrop:focus-within img {
    transform: none;
  }
}
