/* gem-pdp-shell.css: the product photo grid and photo viewer styles from
   the Oct 2026 name tag page (moved out of gem-nametag-page.css on
   2026-10-29). Every product page loads this; the V216 layout
   (gem-product-page.css) builds on it. Behavior: gem-nametag-page.js. */
/* Lifestyle photos (Full Color Name Tags shoot, Oct 2026) in the collage:
   full-bleed square crops instead of padded product cutouts. */
.g3-t.g3-photo { padding: 0; display: block; position: relative; }
.g3-t.g3-photo img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; mix-blend-mode: normal; filter: none;
}
.g3-life-20 img { object-position: 50% 4%; }
.g3-life-2  img { object-position: 50% 40%; }
.g3-life-13 img { object-position: 50% 25%; }
.g3-life-31 img { object-position: 50% 20%; }

/* Collage shows the hero + four tiles; the rest live in the carousel. */
.g3 .g3-more { display: none; }
.g3 figure { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.g3 figure:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.g3 figure:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.g3-all {
  display: block; margin: 26px auto 0; padding: 4px 2px;
  background: none; border: 0; cursor: pointer;
  font-family: "alga", "Playfair Display", Georgia, serif; font-weight: 500;
  font-size: 1.6rem; letter-spacing: -.01em; color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.g3-all:hover { color: var(--navy-lt); }
.g3-all:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* Lightbox carousel */
html.glb-open { overflow: hidden; }
.glb {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; grid-template-columns: 96px 1fr 96px; grid-template-rows: 1fr auto auto 1fr;
  align-items: center; justify-items: center;
  padding: 40px 0 24px;
  background: rgba(1, 1, 12, .9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s ease;
}
.glb[hidden] { display: none; }
.glb.is-in { opacity: 1; }
.glb-stage {
  grid-column: 2; grid-row: 2; margin: 0;
  width: min(86vh, 100%); aspect-ratio: 1; max-height: calc(100vh - 140px);
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--tile); box-shadow: var(--shadow-l);
  display: grid; place-items: center; padding: 40px;
  /* A definite one-cell track, so the photo's max-height: 100% resolves. With
     an auto row, tall portrait photos (art glass, 371x900) rendered at full
     height and the overflow cut off their bases. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.glb-stage img { min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.glb-stage.is-photo { padding: 0; aspect-ratio: auto; width: auto; max-width: 100%; background: none; display: block; }
.glb-stage.is-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 140px); mix-blend-mode: normal; }
.glb-count { grid-column: 2; grid-row: 3; margin: 18px 0 0; color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.glb button { background: none; border: 0; cursor: pointer; color: #fff; padding: 0; display: grid; place-items: center; }
.glb button svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glb button:hover { color: var(--gold-lt); }
.glb button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 50%; }
.glb-prev { grid-column: 1; grid-row: 2; width: 56px; height: 56px; }
.glb-next { grid-column: 3; grid-row: 2; width: 56px; height: 56px; }
.glb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; }

@media (max-width: 700px) {
  .glb { grid-template-columns: 44px 1fr 44px; padding: 64px 0 20px; }
  .glb-stage { width: 100%; padding: 20px; }
  .glb-stage.is-photo img { max-height: calc(100vh - 160px); }
  .glb button svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .glb, .g3 figure { transition: none; }
}

/* Size comparison tile: less padding so the four tags read larger */
.g3-t.g3-sizes { padding: 10px; }
