*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background-color: #FFFFFF;
  color: #0A0A0A;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

:root {
  --pc: #F59E0B;
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,0.55);
  --bar-h: 64px;
  --reel-h: 88px;
  --pill-bar-h: 56px;
}

/* ── ADMIN BAR OFFSET ───────────────────────────────────────────────── */
body.admin-bar #pa { margin-top: 32px; }

/* ── STAGE ─────────────────────────────────────────────────────── */
#pa {
  position: fixed;
  inset: 0;
  background: #fff;
}

#stageBg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  transition: transform 8s ease-out;
  will-change: transform;
}
#stageBg.zooming { transform: scale(1.06); }

/* fade cover for transitions */
#fadeCover {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 220ms ease;
}
#fadeCover.visible { opacity: 1; }

/* darkening gradient so text reads over any photo */
#stageGrad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 40%, transparent 65%),
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 25%);
  z-index: 1;
  pointer-events: none;
}

/* ── CATEGORY PILLS ─────────────────────────────────────────────── */
#pillBar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--pill-bar-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
  z-index: 20;
}

.brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  margin-right: 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.divider-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  margin-right: 8px;
  flex-shrink: 0;
}

.cat-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms, color 200ms, border-color 200ms;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cat-pill:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.cat-pill.on {
  background: var(--pc);
  border-color: var(--pc);
  color: #fff;
}

/* ── EVENT META ─────────────────────────────────────────────────── */
#eventMeta {
  position: absolute;
  left: 28px;
  bottom: calc(var(--bar-h) + var(--reel-h) + 18px);
  z-index: 20;
  pointer-events: none;
}

#evCat {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pc);
  margin-bottom: 6px;
}

#evName {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 300;
  line-height: 1.0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

#evStrip {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.ev-stat {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-stat::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.25);
}
.ev-stat:first-child::before { display: none; }

/* ── THUMBNAIL REEL ─────────────────────────────────────────────── */
#reelWrap {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--bar-h);
  height: var(--reel-h);
  z-index: 20;
  overflow: hidden;
}

#reel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#reel::-webkit-scrollbar { display: none; }
#reel.dragging { cursor: grabbing; user-select: none; }

.thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 150ms, opacity 150ms, transform 150ms;
  opacity: 0.6;
}
.thumb:hover { opacity: 0.9; transform: scale(1.04); }
.thumb.on {
  border-color: var(--pc);
  opacity: 1;
}

/* ── BOTTOM BAR ─────────────────────────────────────────────────── */
#bottomBar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--bar-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  z-index: 30;
}

.location-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-right: auto;
}

.strip-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  padding: 9px 20px;
  transition: background 180ms, color 180ms, transform 120ms;
  white-space: nowrap;
}
.strip-btn:active { transform: scale(0.97); }

.strip-btn.ghost {
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
}
.strip-btn.ghost:hover { background: #f5f5f5; color: #111; border-color: #bbb; }

.strip-btn.primary {
  background: var(--pc);
  color: #fff;
}
.strip-btn.primary:hover { filter: brightness(1.08); }

/* ── CONTACT OVERLAY ────────────────────────────────────────────── */
#aContactPanel {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
}
#aContactPanel.open { display: flex; }

.contact-inner {
  background: #fff;
  border-radius: 12px;
  padding: 44px 48px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* × close button — top-right of modal */
.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
  color: #555;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  padding: 0;
}
.contact-close:hover { background: #eee; color: #111; }

.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: #0A0A0A;
  margin-bottom: 4px;
}
.contact-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #0A0A0A;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 150ms;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--pc); }
.form-field textarea { resize: vertical; min-height: 80px; }

.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-cancel {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 100px;
  padding: 10px 22px;
  cursor: pointer;
  color: #666;
  transition: background 150ms;
}
.btn-cancel:hover { background: #f5f5f5; }

.btn-send {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: var(--pc);
  border: none;
  border-radius: 100px;
  padding: 10px 28px;
  cursor: pointer;
  color: #fff;
  transition: filter 150ms, opacity 150ms;
  flex: 1;
}
.btn-send:hover { filter: brightness(1.08); }
.btn-send:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }

/* Form message feedback */
.cbk-form-msg {
  font-size: 13px;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 8px;
}
.cbk-form-msg.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cbk-form-msg.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── CUSTOM DATE PICKER ─────────────────────────────────────────── */
.cbk-datepicker-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cbk-date-display-input {
  width: 100%;
  padding-right: 40px !important; /* room for the icon */
  cursor: pointer;
  caret-color: transparent;
  user-select: none;
}
.cbk-date-display-input:focus { border-color: var(--pc) !important; }

.cbk-cal-icon {
  position: absolute;
  right: 13px;
  color: #999;
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color 150ms;
}
.cbk-datepicker-wrap:focus-within .cbk-cal-icon,
.cbk-date-display-input:focus ~ .cbk-cal-icon { color: var(--pc); }

/* Dropdown panel */
.cbk-cal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.07);
  width: 280px;
  padding: 14px;
  animation: cbkCalFadeIn 150ms ease;
}
.cbk-cal-dropdown.open { display: block; }

@keyframes cbkCalFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header: prev / month-year label / next */
.cbk-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cbk-cal-nav {
  background: none;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #555;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 130ms, border-color 130ms, color 130ms;
  padding: 0;
}
.cbk-cal-nav:hover { background: #f5f5f5; border-color: #ccc; color: #111; }

.cbk-cal-month-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0A0A0A;
  letter-spacing: 0.02em;
}

/* Weekday headers */
.cbk-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cbk-cal-weekdays span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  padding: 4px 0;
}

/* Day grid */
.cbk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cbk-cal-day {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: #1a1a1a;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 0;
  text-align: center;
  cursor: pointer;
  transition: background 120ms, color 120ms;
  line-height: 1;
}
.cbk-cal-day:hover:not(.empty):not(.disabled) { background: #f0f0f0; }
.cbk-cal-day.today { font-weight: 700; color: var(--pc); }
.cbk-cal-day.selected {
  background: var(--pc);
  color: #fff;
  font-weight: 600;
}
.cbk-cal-day.selected.today { color: #fff; }
.cbk-cal-day.other-month { color: #ccc; }
.cbk-cal-day.disabled { color: #ddd; cursor: not-allowed; }
.cbk-cal-day.empty { cursor: default; }

/* Footer */
.cbk-cal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.cbk-cal-today-btn,
.cbk-cal-clear-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: none;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 5px 13px;
  cursor: pointer;
  color: #666;
  transition: background 130ms, border-color 130ms, color 130ms;
}
.cbk-cal-today-btn:hover { background: var(--pc); border-color: var(--pc); color: #fff; }
.cbk-cal-clear-btn:hover  { background: #f5f5f5; border-color: #ccc; color: #111; }

/* ── LIGHTBOX ───────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }

#lbImg {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 3px;
}
#lbGrad {
  width: 90vw;
  max-width: 900px;
  height: 70vh;
  border-radius: 3px;
  display: none;
}

#lbCaption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-top: 18px;
  letter-spacing: 0.03em;
}

#lbCounter {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
  letter-spacing: 0.1em;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  user-select: none;
}
.lb-nav:hover { background: rgba(255,255,255,0.15); color: #fff; }
#lbPrev { left: 24px; }
#lbNext { right: 24px; }

#lbClose {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 150ms;
}
#lbClose:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #pillBar { padding: 0 12px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  #pillBar::-webkit-scrollbar { display: none; }
  .brand-mark { font-size: 14px; }
  .cat-pill { font-size: 10px; padding: 4px 11px; }
  #eventMeta { left: 16px; bottom: calc(var(--bar-h) + var(--reel-h) + 12px); }
  #evName { font-size: clamp(28px, 8vw, 48px); }
  #reel { padding: 8px 16px; }
  #bottomBar { padding: 0 14px; gap: 8px; }
  .strip-btn { font-size: 11px; padding: 8px 14px; }
  .contact-inner { padding: 28px 24px; }
  .lb-nav { width: 38px; height: 38px; font-size: 18px; }
  #lbPrev { left: 10px; }
  #lbNext { right: 10px; }
}

/* ── ALL-PHOTOS MOSAIC GRID ──────────────────────────────────────── */
#allGrid {
  display: none;
  position: absolute;
  inset: var(--pill-bar-h) 0 var(--bar-h) 0;
  background: #fff;
  z-index: 15;
  overflow: hidden;
	top:0px!important
}
#allGrid.active { display: flex; flex-direction: column; }

#allScroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 3px;
  cursor: grab;
}
#allScroll::-webkit-scrollbar { display: none; }
#allScroll.dragging { cursor: grabbing; user-select: none; }

.all-row {
  flex: 1;
  display: flex;
  gap: 3px;
  min-height: 0;
}

.all-photo-wrap {
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.all-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 220ms;
}
.all-photo-wrap:hover::after { background: rgba(0,0,0,0.18); }

.all-photo-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  transition: transform 420ms ease;
  user-select: none;
  -webkit-user-drag: none;
}
.all-photo-wrap:hover .all-photo-img { transform: scale(1.05); }

/* Scroll nav arrows */
#allNavL, #allNavR {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 16;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 150ms, opacity 200ms, transform 150ms;
  user-select: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
#allNavL { left: 14px; }
#allNavR { right: 14px; }
#allNavL:hover, #allNavR:hover {
  background: rgba(0,0,0,0.65);
  transform: translateY(-50%) scale(1.08);
}
#allNavL.hidden, #allNavR.hidden { opacity: 0; pointer-events: none; }

/* "All" pill — white active state so it pops on dark bg */
.cat-pill.cat-pill-all.on {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(255,255,255,0.92) !important;
  color: #111 !important;
}

