/* Option 2 — Modern MCC-site-like
   Closely follows mcc.org.au: navy utility bar, white nav, pale-blue hero,
   8px cards, 4px uppercase buttons, Source Serif 4 body, Roboto UI.
   Headings: Barlow Semi Condensed (free stand-in for Hebden, similar width).
   Light page body and footer. No diagonal stripes, no large dark content blocks. */

:root {
  --navy: #00205B;
  --navy-mid: #1A366B;
  --red: #A6192E;
  --red-hover: #960017;
  --gold: #AC996A;
  --gold-tint: #FFF0D8;
  --blue-wash: #C3D7EE;
  --blue-tint: #E7F2FF;
  --text: #232323;
  --muted: #6B6B6B;
  --line: #DDDDDD;
  --paper: #FFFFFF;
  --wash: #F4F4F4;
  --max: 72rem;
  --font-heading: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); }
a:hover { color: var(--red-hover); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* Slim navy utility bar — MCC pattern, kept short */
.utility-bar {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.utility-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.28rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: nowrap;
}

.utility-inner p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.utility-mail { display: none; }

@media (min-width: 860px) {
  .utility-bar { font-size: 14px; }
  .utility-inner { padding: 0.45rem 1.25rem; }
  .utility-mail { display: inline; }
}

.utility-bar p { margin: 0; }
.utility-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.utility-bar a:hover { text-decoration: underline; color: #fff; }

/* White main header — compact on mobile, sticky from 860px up */
.site-header {
  position: static;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.3rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 0.75rem;
  min-height: 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.wordmark-crest {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  object-fit: contain;
}

.wordmark-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--navy);
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--navy);
  padding: 0.4rem 0.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.45rem 0.15rem;
  display: inline-block;
}
.site-nav a:hover { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 10px 16px;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}
.btn-primary.is-pending { cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--paper);
  color: var(--navy);
}

.btn-signin {
  background: var(--navy-mid);
  color: #fff;
  border-color: var(--navy-mid);
  font-size: 14px;
  padding: 8px 14px;
}
.btn-signin:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-large {
  padding: 14px 22px;
  font-size: 16px;
}


/* Nav Member login: beat .site-nav a colour so label stays white on the button. */
.site-nav a.btn,
.site-nav a.btn:link,
.site-nav a.btn:visited,
.site-nav a.btn:hover,
.site-nav a.btn:focus,
.site-nav a.btn:focus-visible,
.site-nav a.btn:active {
  color: #fff;
}
.nav-login { margin-top: 0.45rem; }
.nav-login .btn { text-decoration: none; }

@media (min-width: 860px) {
  .site-header { position: sticky; top: 0; }
  .header-inner {
    padding: 0.55rem 1.25rem;
    min-height: 4.75rem;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .wordmark-crest {
    width: 3.75rem;
    height: 3.75rem;
    flex-basis: 3.75rem;
  }
  .wordmark-name { font-size: 0.95rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    width: auto;
    margin-left: auto;
  }
  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.7rem;
    padding: 0;
  }
  .site-nav a {
    font-size: 0.9rem;
    padding: 0.35rem 0;
  }
  .site-nav a[aria-current="page"] { color: var(--red); }
  .nav-login { margin-top: 0; margin-left: 0.1rem; }
}

/* Hero — pale blue inner-page banner, like MCC Target Shooting */
.hero {
  background: var(--blue-wash);
  padding: 1.15rem 1.15rem 1.25rem;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.hero-copy { width: 100%; max-width: 700px; }

.kicker {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.35rem;
}

.hero h1 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 7vw, 3.5rem);
  line-height: 1.02;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 38rem;
  margin: 0 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0.9rem; /* white card so shield interior and O counters sit on white */
}

.hero-crest {
  width: 9.5rem; /* 152px at 412px — prominent, crisp with 2x PNG */
  height: 9.5rem;
  object-fit: contain;
  margin: 0;
}

@media (min-width: 860px) {
  .hero { padding: 2.15rem 1.25rem 2.35rem; }
  .hero-inner { gap: 1rem; }
  .hero-media { padding: 1.25rem; }
  .hero-crest { width: 14rem; height: 14rem; }
  .kicker { font-size: 0.85rem; margin-bottom: 0.5rem; }
}

/* Sections */
.section { padding: 1.25rem 1.15rem; text-align: center; }
.section-wash { background: var(--wash); }

@media (min-width: 860px) {
  .section { padding: 2.15rem 1.25rem; }
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

#contact .section-inner,
#news .section-inner,
#intro .section-inner,
#gallery .section-inner,
#photos .section-inner,
#album-2026 .section-inner,
#album-2025 .section-inner,
#about .section-inner,
#disciplines .section-inner,
#join .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact .section-inner > p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  margin: 0 auto 0.65rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 1.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-intro {
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 1rem;
}

.about-prose {
  max-width: 700px;
  margin: 0 auto;
}

.about-prose p { margin: 0 auto 0.75rem; }
.source {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.15rem 0 0;
}

/* Members band — like MCC "Join the section" */
.members-panel {
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.members-panel .section-intro { margin-bottom: 0; max-width: 700px; }
.members-panel h2 { margin-bottom: 0.5rem; }
.members-copy { width: 100%; max-width: 700px; }

@media (min-width: 800px) {
  .members-panel {
    padding: 1.6rem 2rem;
  }
}

/* Cards — 8px radius, red CTA, MCC style */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--text);
  flex: 1;
}

.card a {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 8px 14px;
}
.card a:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

/* Gallery */
.gallery-status {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.25rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.gallery-item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--wash);
}

.gallery-item figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer — light, columned, MCC-like structure without a navy block */
.site-footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.15rem 1.6rem;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-crest {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
  flex: 0 0 3.75rem;
}

.footer-brand p { margin: 0 0 0.25rem; }
.footer-est {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.3rem;
}

.site-footer strong { color: var(--navy); }
.site-footer a { font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-heading {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-size: 0.95rem;
}

.footer-links p { margin: 0 0 0.3rem; }

.footer-copy {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-copy { grid-column: 1 / -1; }
}


/* Discipline bands — official MCC page wording, card style */
.discipline-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 1.4rem 1.55rem;
  margin: 0 0 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.discipline-card:last-child { margin-bottom: 0; }

.discipline-card h3 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.discipline-card h4 {
  margin: 1.1rem 0 0.55rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.discipline-card p { margin: 0 0 0.85rem; }
.discipline-card p:last-of-type { margin-bottom: 0; }

.discipline-contact {
  background: var(--wash);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin: 0.35rem 0 1rem;
}

.discipline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.discipline-links a,
.join-actions a.btn { text-decoration: none; }

.discipline-links a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 8px 14px;
}
.discipline-links a:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 800px) {
  .discipline-card { padding: 2rem 2rem 1.75rem; }
  .join-actions { flex: 0 1 auto; }
}

@media (min-width: 720px) {
  .join-actions { align-items: center; }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Rotating social photo banner — hidden (no box, no space) until photos exist */
.photo-banner[hidden],
.photo-banner.is-empty {
  display: none;
}

.photo-banner {
  background: #e8f0f6;
  border-bottom: 1px solid var(--line);
}

.banner-stage {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  background: #d7e6f2;
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

@media (min-width: 720px) {
  .banner-stage { aspect-ratio: 2.4 / 1; min-height: 16rem; }
}

.banner-slides {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-controls {
  position: absolute;
  inset: auto 0.75rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.banner-controls[hidden] { display: none; }

.banner-nav {
  pointer-events: auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(11, 42, 91, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.banner-nav:hover,
.banner-nav:focus-visible {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide { transition: none; }
}


/* Discipline pages */
.page-intro { max-width: 700px; margin: 0 auto; text-align: center; }
.page-intro h1 {
  margin: 0 auto 1rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.page-intro p { margin: 0 0 0.75rem; }

.news-placeholder,
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.15rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.news-placeholder p,
.contact-panel p { margin: 0 0 0.7rem; }
.news-placeholder p:last-child,
.contact-panel p:last-child { margin-bottom: 0; }
.coming-soon {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.discipline-links a.discipline-secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--navy);
}
.discipline-links a.discipline-secondary:hover {
  background: var(--wash);
  color: var(--navy);
}



/* Photos page and home teaser */
.photos-teaser-actions {
  margin: 0;
}

.photos-empty {
  margin: 0.25rem auto 0;
  max-width: 700px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
}

.photos-carousel {
  width: 100%;
  max-width: 52rem;
  margin: 0.35rem auto 0;
  padding: 0;
}

.photos-carousel[hidden] { display: none; }

.photos-carousel-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.photos-carousel-viewport {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 32, 91, 0.06);
  touch-action: pan-y;
  cursor: pointer;
}

.photos-carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translateX(-33.333%);
  transition: transform 0.35s ease;
}

.photos-carousel-slide {
  flex: 0 0 33.333%;
  width: 33.333%;
  height: 100%;
  margin: 0;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.photos-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.photos-carousel-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--navy);
  border-radius: 4px;
  cursor: pointer;
}

.photos-carousel-arrow:hover {
  background: var(--blue-tint);
  color: var(--navy);
}

.photos-carousel-arrow:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.photos-carousel-arrow[hidden] { display: none; }

.photos-carousel-chevron {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.photos-carousel-counter {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.photos-carousel-counter[hidden] { display: none; }

@media (max-width: 700px) {
  .photos-carousel-frame { gap: 0; }
  .photos-carousel-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    background: var(--paper);
    box-shadow: 0 1px 4px rgba(0, 32, 91, 0.16);
  }
  .photos-carousel-prev { left: 0.4rem; }
  .photos-carousel-next { right: 0.4rem; }
  .photos-carousel-slide { padding: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photos-carousel-track { transition: none; }
}

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3.5rem 0.75rem 1.25rem;
  background: rgba(0, 32, 91, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(96vw, 72rem);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.lightbox-caption {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-align: center;
  max-width: 40rem;
}

.lightbox-caption:empty,
.lightbox-caption[hidden] { display: none; }

.lightbox-close,
.lightbox-nav {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.lightbox-nav[hidden] { display: none; }

@media (max-width: 700px) {
  .lightbox {
    flex-direction: column;
    padding: 3.5rem 0.75rem 1rem;
  }
  .lightbox-nav { order: 2; }
  .lightbox-figure { order: 1; }
}

/* Guest photo share page (/share) */
.share-main {
  padding: 1.25rem 1.15rem 2.5rem;
}
.share-panel {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}
.share-crest-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 32, 91, 0.06);
}
.share-crest {
  width: 96px;
  height: 96px;
  display: block;
}
.share-panel .kicker { margin-bottom: 0.35rem; }
.share-panel h1 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.share-event {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.share-lead {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: 1rem;
}
.share-status {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.45;
}
.share-status[data-kind="soon"] {
  background: var(--blue-tint);
  border-color: var(--blue-wash);
  color: var(--navy);
}
.share-status[data-kind="error"] {
  background: #F8F1F1;
  border-color: #E8D0D4;
  color: var(--navy);
}
.share-status[data-kind="thanks"] {
  background: #F3F7F3;
  border-color: #C9DCC9;
  color: var(--navy);
}
.share-status h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.share-status p { margin: 0; }
.share-status p + p { margin-top: 0.45rem; }

.share-field {
  margin: 0 0 1.15rem;
  text-align: left;
}
.share-optional { font-weight: 400; color: var(--muted); }
.share-field label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}
.share-field input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
}
.share-field input[type="text"]:focus {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}
.share-field .hint {
  margin: 0.35rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.share-actions .btn {
  width: 100%;
  min-height: 3.25rem;
}
.share-take {
  min-height: 4.25rem;
  font-size: 1.15rem;
  padding: 1rem 1.25rem;
}
.share-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.share-actions .btn[aria-disabled="true"],
.share-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.share-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  text-align: left;
}
.share-item {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.share-item-name {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--navy);
  word-break: break-word;
}
.share-progress {
  display: block;
  width: 100%;
  height: 0.65rem;
  border: 0;
  border-radius: 4px;
  background: var(--wash);
  overflow: hidden;
  appearance: none;
}
.share-progress::-webkit-progress-bar { background: var(--wash); border-radius: 4px; }
.share-progress::-webkit-progress-value { background: var(--navy); border-radius: 4px; }
.share-progress::-moz-progress-bar { background: var(--navy); border-radius: 4px; }
.share-item[data-state="done"] .share-progress::-webkit-progress-value { background: #2B6B2B; }
.share-item[data-state="done"] .share-progress::-moz-progress-bar { background: #2B6B2B; }
.share-item[data-state="error"] .share-progress::-webkit-progress-value { background: var(--red); }
.share-item[data-state="error"] .share-progress::-moz-progress-bar { background: var(--red); }
.share-item-meta {
  margin: 0.35rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
}
.share-item[data-state="error"] .share-item-meta { color: var(--red); }
.share-item[data-state="done"] .share-item-meta { color: #2B6B2B; }

.share-note {
  margin: 1.25rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .share-main { padding: 2.15rem 1.25rem 3rem; }
  .share-crest { width: 112px; height: 112px; }
}
