/* ============================================================================
   GALLERY CARDS — extracted verbatim from index.html's "Recent work" section
   so the photo gallery page renders the identical card: service tag top-left,
   city and colours bottom-left, the copyright watermark bottom-right.
   Ryan, 2026-08-25: "Make the gallery images match how we have them in the
   recent work section on the home page."
   ============================================================================ */


/* ============================================================================
   GALLERY (v44 pass 3A rebuild)
   Real install photos with bottom gradient captions + service-type tags
   ============================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px){
 .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px){
 .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}


.gallery-item {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease-swift), box-shadow 0.3s var(--ease-swift);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}


.gallery-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-image img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery-item:hover .gallery-image img { transform: scale(1.05); }


/* Bottom gradient overlay so captions remain readable against bright lights */
.gallery-item::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}


.gallery-caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  z-index: 1; color: white;
  display: flex; flex-direction: column; gap: 2px;
}

.gallery-caption strong {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.gallery-caption span {
  font-size: 13.5px; color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}


/* Service-type tag top-left */
.gallery-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.gallery-tag-permanent {
  background: rgba(11,125,179,0.92);
  color: white;
}

.gallery-tag-christmas {
  background: rgba(193,39,45,0.92);
  color: white;
}

.gallery-tag-smartclip {
  background: rgba(82,203,190,0.94);
  color: #062321;
}


/* Gallery watermark — bottom-right corner, subtle attribution mark.
   Layout: © glyph on left, "Sparkled / Lighting" stacked to its right,
   © vertically centered between the two text lines.
   Tuned to recede into dark photo regions (sky, roofs, lawn) rather than
   compete with the lit-up details. Lower opacity + softer shadow +
   no blend mode means it sits quietly without lifting on dark areas.
   pointer-events:none so hover/click pass through; aria-hidden so screen
   readers skip it (purely decorative attribution mark). */
.gallery-watermark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.45;
}

.gallery-watermark-c {
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

.gallery-watermark-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.gallery-watermark-text span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}
@media (max-width: 600px){

  .gallery-watermark { right: 10px; bottom: 10px; gap: 3px; opacity: 0.40; }

  .gallery-watermark-c { font-size: 14px; }

  .gallery-watermark-text span { font-size: 8px; }
}

/* ----------------------------------------------------------------------------
   SELF-CONTAINED, for the same reason the chrome is.

   The gallery page renders these cards inside .prose, and interior.css has
   `.prose strong { color: var(--ink) }` — same specificity as the caption rule,
   so source order decided it and the city line came out DARK NAVY on a dark
   photograph. Ryan read that as "the city, st isn't on any of them"; it was
   there the whole time, just invisible.

   Line-height too: interior.css runs 1.65 against index.html's 1.6, which is
   why the caption measured 28.05px here and 27.2px on the homepage.
   ---------------------------------------------------------------------------- */
.gallery-item .gallery-caption { line-height: 1.6; }
.prose .gallery-item .gallery-caption strong,
.gallery-item .gallery-caption strong {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 27.2px;
  letter-spacing: -0.17px;
  text-shadow: rgba(0, 0, 0, 0.4) 0 2px 6px;
}
.prose .gallery-item .gallery-caption span,
.gallery-item .gallery-caption span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  line-height: 21.6px;
  text-shadow: rgba(0, 0, 0, 0.4) 0 1px 4px;
}
