/* Gallery card composition adapted from the DYWS showcase gallery. */
.shop-demos .demo-intro { padding-block: 0 1.75rem; }
.shop-demos .demo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.shop-demos a.demo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid currentColor;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.shop-demos .demo-card:hover .card-action { text-decoration: underline; }
.shop-demos .demo-card:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.shop-demos .card-preview {
  background: #dbe5d1;
  color: #233426;
  border-radius: 11px 11px 0 0;
  overflow: hidden;
}
.shop-demos .preview-scene {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .6rem;
  position: relative;
  isolation: isolate;
  min-height: 14.5rem;
  padding: 1.25rem max(36%, 1rem) 1.25rem 1.2rem;
  overflow-wrap: anywhere;
}
.shop-demos .preview-scene picture { position: absolute; inset: 0 0 0 45%; z-index: -1; }
.shop-demos .preview-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
}
.shop-demos .preview-scene strong { max-width: 12ch; font: 400 1.95em/1.07 Georgia, serif; }
.shop-demos .preview-enquiry {
  padding: .4em .65em;
  background: #dfb678;
  border-radius: 4px;
  font-size: .75em;
  font-weight: 700;
}
.shop-demos .card-copy { display: grid; gap: .55rem; padding: clamp(1rem, 3vw, 1.65rem); }
.shop-demos .card-copy :is(h2, p) { margin: 0; }
.shop-demos .card-copy h2 { font-size: 1.35em; }
.shop-demos .card-action {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid currentColor;
  margin-top: .35rem;
  padding-top: .85rem;
  font-size: .88em;
  font-weight: 700;
}
@media (max-width: 760px) {
  .shop-demos .demo-gallery { grid-template-columns: minmax(0, 1fr); }
}

.shop-demos .quiet-fibre-card .card-preview { background: #f8f5ee; color: #303e47; }
.shop-demos .quiet-fibre-card .preview-enquiry {
  color: #36576b;
  background: #e6edf0;
  border: 1px solid currentColor;
  border-radius: 0;
}

.shop-demos .lantern-parish-card .card-preview { background: #faf6eb; color: #243549; }
.shop-demos .lantern-parish-card .preview-enquiry { background: #263c52; color: #fff8ea; }
.shop-demos .winter-relay-card .card-preview { background: #ffb487; color: #222b40; }
.shop-demos .winter-relay-card .preview-scene strong { font-family: system-ui, sans-serif; font-weight: 850; }
.shop-demos .winter-relay-card .preview-enquiry { background: #222b40; color: #fff8ed; border-radius: 0; }

body.shop-demos.starlit-page-shell .starlit-page-heading h1 { font-size: clamp(2.15em, 1.8em + 1.7vw, 3.55em); }
