/* ==========================================================================
   DEMO / GALLERY PAGE
   Shared .pageInner / .sectionHeader / .sectionKicker / .sectionTitle /
   .sectionUnderline live in base.css.
   ========================================================================== */

.pageGallery {
  background: hsl(var(--background));
  padding: 3.25rem 0 5rem;
}

/* --------------------------------------------------------------------------
   Showcase (video presentation)
   -------------------------------------------------------------------------- */

.showcase {
  max-width: 820px;
  margin: 0 auto 4.5rem;
  /* offset-right + offset-bottom to give room for the box-shadow */
  padding-right: 12px;
  padding-bottom: 12px;
}

.showcaseBanner {
  background: hsl(var(--accent));
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.65rem 2rem;
  border: 4px solid #000;
  border-bottom: none;
}

.showcaseScreen {
  background: #111;
  border: 4px solid #000;
  padding: 12px;
  box-shadow: var(--shadow-block-lg);
}

.showcaseVideo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcaseLabel {
  background: hsl(var(--primary));
  color: #000;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.55rem 2rem;
  border: 4px solid #000;
  border-top: none;
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.featureList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.featureCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 4px solid #000;
  box-shadow: var(--shadow-block-accent);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featureCard:hover {
  transform: translateY(-4px);
  box-shadow: 8px 12px 0 hsl(var(--primary));
}

.featureIcon {
  font-size: 2.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.featureTitle {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #000;
}

.featureDesc {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Gallery grid (for future photos — currently unused)
   -------------------------------------------------------------------------- */

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.galleryItem {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.20);
  background: #fff;
  transition: transform 200ms ease, box-shadow 220ms ease;
}

.galleryItem:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 hsl(var(--primary));
}

.galleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.galleryItem:hover img {
  transform: scale(1.10);
}

.galleryCaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.60);
  opacity: 0;
  transition: opacity 250ms ease;
}

.galleryItem:hover .galleryCaption {
  opacity: 1;
}

.galleryCaption span {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  border: 2px solid #fff;
  padding: 0.75rem 1rem;
  transform: rotate(-2deg);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .galleryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .featureList    { grid-template-columns: 1fr; }
  .galleryGrid    { grid-template-columns: 1fr; }
  .showcaseScreen { padding: 8px; }
  .showcase       { padding-right: 8px; padding-bottom: 8px; }
  .showcaseScreen { box-shadow: 8px 8px 0 hsl(var(--primary)); }
}
