/* ==========================================================================
   GIFT CARDS PAGE
   A picker, laid out like a product page: the artwork large on one side, the
   choosing on the other. A gift card is bought on how it looks, so the design
   gets the space a product photograph would.
   ========================================================================== */

.gcp {
  background: var(--cream);
  padding-block: var(--sp-5) var(--sp-7);
}

.gcp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (min-width: 900px) {
  .gcp__grid {
    /* Artwork takes the larger share; the controls need less room than the
       thing they are controlling. */
    grid-template-columns: 1.25fr 1fr;
    gap: var(--sp-7);
  }

  /* Follows the visitor while they work down a long thumbnail list. */
  .gcp__stage { position: sticky; top: 92px; }
}

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

.gcp__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--tbs-green-deep);
  box-shadow: var(--shadow-lift);
}

.gcp__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  /* contain, never cover: a gift card carries words, and cropping them is the
     one thing that must not happen. */
  object-fit: contain;
  transition: opacity var(--dur-micro) var(--ease-brand);
}

.gcp__frame img.is-swapping { opacity: 0; }

.gcp__frame:focus-visible { outline: 3px solid var(--tbs-green); outline-offset: 3px; }

.gcp__zoom {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--tbs-green);
  font-size: .72rem;
  font-weight: 600;
}

.gcp__caption { padding-top: var(--sp-4); }

.gcp__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--tbs-green);
  margin: 0;
}

.gcp__sub {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.gcp__sub[hidden] { display: none; }

/* ---- Choosing ---- */

.gcp__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--lh-heading);
  color: var(--tbs-green);
  margin: var(--sp-2) 0 var(--sp-2);
}

.gcp__count {
  font-size: var(--fs-small);
  color: var(--ink-mute);
  margin: 0 0 var(--sp-4);
}

.gcp__pick-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--sp-3);
}

/* ---- Occasion chips ---- */

.gcp__filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.gcp__chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font: inherit;
  font-size: .8rem;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-brand),
              border-color var(--dur-micro) var(--ease-brand);
}

.gcp__chip:hover { border-color: var(--ink-mute); }

.gcp__chip.is-on {
  background: var(--tbs-green);
  border-color: var(--tbs-green);
  color: var(--white);
}

.gcp__chip:focus-visible { outline: 2px solid var(--tbs-green); outline-offset: 2px; }

/* ---- Thumbnails ---- */

.gcp__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.gcp__thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur-micro) var(--ease-brand),
              box-shadow var(--dur-micro) var(--ease-brand),
              transform var(--dur-micro) var(--ease-brand);
}

.gcp__thumb[hidden] { display: none; }

.gcp__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gcp__thumb span {
  display: block;
  padding: 6px 8px 8px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.gcp__thumb:hover { border-color: var(--ink-mute); transform: translateY(-2px); }

.gcp__thumb.is-on {
  border-color: var(--tbs-green);
  box-shadow: inset 0 0 0 1px var(--tbs-green), var(--shadow-card);
}

.gcp__thumb.is-on span { color: var(--tbs-green); }

.gcp__thumb:focus-visible { outline: 2px solid var(--tbs-green); outline-offset: 2px; }

.gcp__none {
  padding: var(--sp-4);
  margin: 0 0 var(--sp-5);
  background: var(--cream-deep);
  border-radius: var(--radius-card);
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.gcp__cta { margin-bottom: var(--sp-3); }

/* ==========================================================================
   FORMATS
   ========================================================================== */

.gcp__formats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 760px) {
  .gcp__formats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}

.gcp__format svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.gcp__format h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--tbs-green);
  margin: 0 0 var(--sp-2);
}

.gcp__format p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ==========================================================================
   ADMIN-AUTHORED COPY

   The .prose rules are declared inside Show.cshtml's own <style> block, which
   only reaches that view — so the editor's copy would have rendered unstyled
   here. Repeated rather than moved, to avoid disturbing a page that works.
   ========================================================================== */

.prose { max-width: var(--container-text); font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font-family: var(--font-display); font-size: 1.625rem; margin-top: var(--sp-6); }
.prose h3 { font-size: 1.1875rem; margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose img { border-radius: var(--radius-card); margin-block: var(--sp-4); }

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: var(--sp-4);
  margin-left: 0;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.gcp-lightbox {
  border: 0;
  padding: 0;
  max-width: min(94vw, 1000px);
  max-height: 92vh;
  background: transparent;
  overflow: visible;
}

.gcp-lightbox::backdrop { background: rgba(0, 48, 31, .84); }

.gcp-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-card);
}

.gcp-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .gcp-lightbox__close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .gcp__frame img,
  .gcp__thumb { transition: none; }
  .gcp__thumb:hover { transform: none; }
}
