/* Still gathering archive between two camera chapters. */
#gatherings.after-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 0;
  color: #17141f;
}
#gatherings .event-gallery-heading {
  margin: 0 auto 28px;
  text-align: center;
}
#gatherings .event-gallery-heading .eyebrow {
  margin: 0 0 14px;
  color: #9d332e;
  letter-spacing: .16em;
}
#gatherings .event-gallery-heading h2 {
  margin: 0;
  color: #17141f;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  letter-spacing: -.04em;
}
#gatherings .event-gallery-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: #5c5670;
  font-size: 1.05rem;
  line-height: 1.55;
}
#gatherings .event-gallery-filters,
#gatherings .event-gallery-years {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}
#gatherings .event-gallery-years { gap: 22px 28px; margin-bottom: 28px; }
#gatherings .event-gallery-note { margin: 0 0 28px; }
#gatherings .event-gallery-note[hidden] { display: none; }
#gatherings .event-gallery-year {
  appearance: none;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #b98a4a;
  font: inherit;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: #b98a4a;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  cursor: pointer;
}
#gatherings .event-gallery-year[aria-pressed="true"],
#gatherings .event-gallery-year:hover { text-decoration-thickness: 2px; }
#gatherings .event-gallery-year:focus-visible { outline: 3px solid #79511f; outline-offset: 4px; }
#gatherings .event-gallery-pill {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #2a2438;
  border-radius: 999px;
  background: transparent;
  color: #17141f;
  font: 500 .92rem/1 "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
}
#gatherings .event-gallery-pill[aria-pressed="true"] {
  background: #17141f;
  color: #f7f4ef;
  border-color: #17141f;
}
#gatherings .event-gallery-pill:hover { border-color: #79511f; }
#gatherings .event-gallery-pill:focus-visible { outline: 3px solid #79511f; outline-offset: 3px; }
#gatherings .event-gallery-empty { margin: 0 0 28px; color: #4d463c; font-size: 1rem; line-height: 1.5; }
#gatherings .event-gallery-empty[hidden] { display: none; }
#gatherings .event-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#gatherings .event-gallery-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
#gatherings .event-gallery-copy { max-width: 1360px; margin-inline: auto; }
#gatherings.after-section { max-width: none; }
#gatherings .event-gallery-window {
  position: relative;
  height: clamp(340px, 38vw, 460px);
  min-width: 0;
  overflow: visible;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  cursor: grab;
  touch-action: pan-y;
}
#gatherings .event-gallery-window.is-dragging { cursor: grabbing; }
#gatherings .event-gallery-window:focus-visible { outline: 3px solid #79511f; outline-offset: 6px; }
#gatherings .event-gallery-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotateX(11deg);
  transform-style: preserve-3d;
}
#gatherings .event-gallery-card {
  --card-w: clamp(168px, 13vw, 200px);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--card-w);
  height: calc(var(--card-w) * 4 / 3);
  margin: 0;
  margin-left: calc(var(--card-w) / -2);
  margin-top: calc(var(--card-w) * 4 / 3 / -2);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
}
#gatherings .event-gallery-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 22px 40px #17141f33;
}
#gatherings .event-gallery-front { background: #111; }
#gatherings .event-gallery-back {
  transform: rotateY(180deg);
  background: #241f1a;
  box-shadow: inset 0 0 0 14px #3a322a, 0 18px 30px #17141f22;
}
#gatherings .event-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
#gatherings .event-gallery-card:focus-visible { outline: 3px solid #79511f; outline-offset: 4px; }

.event-gallery-lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 18px 18px 22px;
  border: 0;
  border-radius: 28px;
  background: #f7f4ef;
  color: #17141f;
  box-shadow: 0 30px 80px #00000055;
}
.event-gallery-lightbox::backdrop { background: #101416c4; }
.event-gallery-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.event-gallery-lightbox-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.event-gallery-lightbox-copy { min-width: 0; }
.event-gallery-lightbox-caption { margin: 0; font-size: 1.05rem; letter-spacing: .01em; }
.event-gallery-lightbox-description { margin: 6px 0 0; color: #4d463c; font-size: .95rem; line-height: 1.55; }
.event-gallery-lightbox-description[hidden] { display: none; }
.event-gallery-lightbox-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #17141f;
  color: #f7f4ef;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.event-gallery-lightbox-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 0;
}
.event-gallery-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: min(58dvh, 640px);
  object-fit: contain;
  border-radius: 18px;
  background: #111418;
}
.event-gallery-lightbox-film {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 2px 6px;
  overflow-x: auto;
}
.event-gallery-lightbox-film button {
  flex: none;
  width: 76px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #111418;
  cursor: pointer;
}
.event-gallery-lightbox-film button[aria-current="true"] { border-color: #17141f; }
.event-gallery-lightbox-film img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
}
.event-gallery-lightbox-film button:focus-visible { outline: 3px solid #79511f; outline-offset: 3px; }
.event-gallery-lightbox-step {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #17141f;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}
.event-gallery-lightbox-step:hover {
  background: transparent;
  border-color: transparent;
  color: #b98a4a;
}
.event-gallery-lightbox-step:active { transform: none; }
.event-gallery-lightbox-step:focus-visible,
.event-gallery-lightbox-close:focus-visible { outline: 3px solid #79511f; outline-offset: 3px; }
@media (max-width: 700px) {
  #gatherings .event-gallery-window { height: 460px; perspective: 820px; }
  #gatherings .event-gallery-card { --card-w: 168px; border-radius: 14px; }
  .event-gallery-lightbox { width: calc(100vw - 16px); padding: 12px; border-radius: 18px; }
  .event-gallery-lightbox-frame { grid-template-columns: 1fr; }
  .event-gallery-lightbox-step { justify-self: center; }
  .event-gallery-lightbox-film button { width: 64px; }
}
@media print {
  #gatherings .event-gallery-window { height: auto; perspective: none; }
  #gatherings .event-gallery-ring { position: static; display: flex; flex-wrap: wrap; gap: 12px; width: auto; height: auto; transform: none !important; }
  #gatherings .event-gallery-card { position: static; width: 140px; height: auto; margin: 0; }
  #gatherings .event-gallery-back,
  .event-gallery-lightbox { display: none !important; }
}
