.published-gallery-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-block: 2rem; }
.published-gallery-filters label { display: grid; gap: .5rem; font-weight: 600; }
.published-gallery-filters select { width: 100%; min-height: 48px; padding: .65rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.published-photo-button { display: block; padding: 0; border: 0; background: var(--paper); width: 100%; cursor: zoom-in; }
.published-photo-button img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.published-photo-meta { font-size: .875rem; line-height: 1.7; opacity: .85; margin-top: 1rem; }
.published-gallery-status { margin-block: 1rem; }
/* The photograph gets the full viewport height; supporting text has its own column. */
.published-photo-dialog { box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: min(1680px, calc(100vw - 2rem)); max-width: none; height: 94dvh; max-height: 94dvh; overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.published-photo-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.published-photo-dialog::backdrop { background: rgb(0 0 0 / .85); }
.published-photo-dialog > img { display: block; width: 100%; height: calc(94dvh - 2px); object-fit: contain; background: #1c1c1c; margin: 0; }
.published-photo-details { padding: 1.25rem; overflow: auto; }
.published-photo-dialog h2 { margin-block: 1.5rem 1rem; font-size: 1.5rem; }
.published-photo-dialog p { line-height: 1.6; }
@media (max-width: 640px) {
  .published-gallery-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .published-photo-dialog { width: calc(100vw - 1rem); }
  .published-photo-dialog[open] { display: block; }
  .published-photo-dialog > img { height: 70dvh; }
  .published-photo-details { overflow: visible; }
  .published-photo-details > button { position: absolute; top: .5rem; right: .5rem; background: var(--paper); min-height: 48px; }
}

/* "B Carousel" (2026-09-28, gallery-review-2026-09-28 option B). Replaces the old
   plate-cards-grid / gallery-grid-full grid display via higher selector specificity
   ([data-published-gallery] + a class beats a single craft.css class), no !important
   needed — craft.css itself is untouched (its dead plate and gallery rules are a
   separate, out-of-scope cleanup per the review's D1). published-gallery-paging is
   gone above: the carousel is one continuous scroll-snap track, never paginated. */
[data-published-gallery].gallery-carousel {
  display: block;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
  padding: 0 0 .5rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto; /* reduced-motion default: jump, don't animate */
}
@media (prefers-reduced-motion: no-preference) {
  .carousel-track { scroll-behavior: smooth; }
}

.carousel-slide {
  flex: 0 0 auto;
  width: min(560px, 82vw); /* leaves a peek of the next slide at every width */
  scroll-snap-align: start;
}

.carousel-caption {
  margin: .75rem 0 0;
  font-size: .95rem;
  line-height: 1.5;
}

.carousel-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 245, .25);
  background: rgba(20, 16, 14, .72);
  color: #FAF8F5;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-nav:hover { background: rgba(20, 16, 14, .9); }
.carousel-nav:focus-visible { outline: 2px solid #FAF8F5; outline-offset: 2px; }
