/* ==========================================================================
   Showcase. A working sales tool, not a decorative gallery: Chad opens it on
   a phone in front of a customer. Large images, minimal chrome, every
   category one tap away.

   Categories are real pages (/showcase/kitchens/) rather than JS filters, so
   each one is indexable and Chad can text someone a direct link.
   ========================================================================== */

.showcase-head {
  background: var(--ink-900);
  color: #fff;
  padding-block: var(--s-7) var(--s-6);
}

.showcase-head h1 {
  color: #fff;
}

.showcase-head .lede {
  color: rgba(255, 255, 255, 0.78);
  margin-top: var(--s-4);
}

.showcase-head--cat .lede {
  max-width: 68ch;
}

/* --- Breadcrumbs --------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--steel-300);
}

.crumbs a {
  color: var(--steel-300);
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.crumbs [aria-current='page'] {
  color: #fff;
}

/* --- Category cards ------------------------------------------------------ */

.catgrid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .catgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .catgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.catcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: var(--s-5);
  background: var(--ink-800);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t);
}

.catcard:hover {
  transform: translateY(-4px);
  color: #fff;
}

.catcard img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.catcard:hover img {
  transform: scale(1.05);
}

.catcard::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(11, 11, 12, 0.95) 0%,
    rgba(11, 11, 12, 0.86) 34%,
    rgba(11, 11, 12, 0.5) 68%,
    rgba(11, 11, 12, 0.2) 100%
  );
}

/* A category with no photos yet still has to look deliberate, not broken. */
.catcard--empty {
  background: var(--ink-800);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.catcard--empty::after {
  background: none;
}

.catcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.catcard__label {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
}

.catcard__tag {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
}

.catcard__meta {
  margin-top: var(--s-1);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--red);
}

.catcard--empty .catcard__meta {
  color: var(--steel-300);
}

.catgrid--compact .catcard {
  min-height: 150px;
  padding: var(--s-4);
}

.catgrid--compact .catcard__label {
  font-size: var(--fs-lg);
}

.catgrid--compact .catcard__tag {
  display: none;
}

/* --- Photo grid ---------------------------------------------------------- */

.showcase-grid-wrap {
  padding-block: var(--s-6) var(--s-9);
}

.showcase-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}

.shots {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
  }
}

@media (min-width: 1000px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  margin: 0;
}

.shot__open {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--steel-100);
  cursor: zoom-in;
}

.shot__open img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--t-slow);
}

@media (hover: hover) {
  .shot__open:hover img {
    transform: scale(1.04);
  }
}

.shot__caption {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.shot__feature {
  display: inline-block;
  margin-right: var(--s-2);
  padding: 2px var(--s-2);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-ink);
  background: var(--red-wash);
  border-radius: var(--radius-sm);
  vertical-align: 1px;
}

/* --- Placeholder tiles ---------------------------------------------------
   These render a category's shot list before the photos exist. They keep the
   page demonstrable and they double as the photo request: Chad can see
   exactly which shot is missing.
   ------------------------------------------------------------------------- */

.shot--empty .shot__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  aspect-ratio: 3 / 2;
  padding: var(--s-5);
  text-align: center;
  color: var(--steel-300);
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.shot__ph-label {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-muted);
  max-width: 22ch;
}

.shot__ph-note {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--steel-300);
}

.shots-empty {
  padding: var(--s-8) 0;
  text-align: center;
  color: var(--text-muted);
}

/* --- Lightbox ------------------------------------------------------------ */

.lb {
  /* inset:0 rather than width:100vw. 100vw includes the scrollbar, which
     pushed the close button and next arrow off the right edge. */
  position: fixed;
  inset: 0;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 9, 0.97);
  color: #fff;
  overflow: hidden;
}

.lb::backdrop {
  background: rgba(8, 8, 9, 0.9);
}

.lb[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.lb__figure {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s-4);
  height: 100%;
  padding: var(--s-8) var(--s-4) var(--s-7);
}

.lb__img {
  max-width: min(100%, 1600px);
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb__cap {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.lb__pos {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
}

.lb__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.lb__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb__nav {
  position: relative;
  grid-row: 1;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 76px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-inline: var(--s-3);
}

.lb__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb__nav--prev {
  grid-column: 1;
}

.lb__nav--next {
  grid-column: 3;
}

/* On phones the arrows waste width. Swipe and the counter carry navigation. */
@media (max-width: 700px) {
  .lb__nav {
    display: none;
  }

  .lb__figure {
    padding-inline: var(--s-2);
  }
}
