:root {
  --ink: #0b1016;
  --ink-soft: #141c25;
  --paper: #f7f5f0;
  --amber: #f3a712;
  --amber-bright: #ffc24a;
  --muted: #606872;
  --line: rgba(11, 16, 22, .16);
  --shadow: 0 24px 70px rgba(5, 10, 17, .18);
  --bs-warning: #f3a712;
  --bs-warning-rgb: 243, 167, 18;
  --bs-dark: #0b1016;
  --bs-dark-rgb: 11, 16, 22;
  --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-body-color: #0b1016;
  --bs-body-bg: #f7f5f0;
}

.flash-stack {
  width: min(92vw, 720px);
}

html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
body {
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.section-pad { padding-block: clamp(5rem, 9vw, 8.5rem); }

.navbar {
  transition: background-color .25s, box-shadow .25s, padding .25s;
}

.navbar.scrolled,
.navbar:has(.navbar-collapse.show) {
  padding-block: .65rem !important;
  background: rgba(8, 13, 19, .95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.navbar .nav-link {
  position: relative;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  font-weight: 700;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: .2rem;
  left: 50%;
  height: 2px;
  background: var(--amber);
  transition: left .2s, right .2s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active { color: #fff; }

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
  right: .75rem;
  left: .75rem;
}

.brand-mark {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  border: 2px solid var(--amber);
  border-radius: 50%;
  transform: rotate(30deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 80%;
  background: var(--amber);
  transform-origin: center;
}

.brand-mark::before { transform: translate(-50%, -50%); }
.brand-mark::after { transform: translate(-50%, -50%) rotate(60deg); }
.brand-mark span::before { transform: translate(-50%, -50%) rotate(120deg); }

.brand-copy { line-height: 1.02; }
.brand-copy strong {
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-copy small {
  color: rgba(255, 255, 255, .7);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
}

.hero-backdrop {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: blur(30px) saturate(.9) brightness(.72);
  opacity: .9;
  transform: scale(1.12);
}

.hero-image {
  z-index: 0;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.04);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, .94) 0%, rgba(5, 9, 14, .64) 45%, rgba(5, 9, 14, .12) 78%),
    linear-gradient(0deg, rgba(5, 9, 14, .62) 0%, transparent 45%);
}

.hero-content {
  z-index: 2;
  padding-block: 8rem 13rem;
}

.eyebrow {
  color: var(--amber-bright);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1,
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.hero h1 {
  color: #fff;
  max-width: 8ch;
  font-size: clamp(4.25rem, 10vw, 8.75rem);
  line-height: .78;
}

.hero-intro {
  max-width: 40rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.btn {
  --bs-btn-padding-y: .78rem;
  transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn-warning {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--amber);
  --bs-btn-border-color: var(--amber);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--amber-bright);
  --bs-btn-hover-border-color: var(--amber-bright);
}

.image-credit {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 7rem;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .75rem;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.image-credit span { color: #fff; }

.meeting-wrap {
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 2rem;
  z-index: 3;
  width: min(31rem, calc(100vw - 2.5rem));
}

.meeting-card {
  color: var(--ink);
  background: rgba(255, 255, 255, .95);
  border-radius: 1rem;
  backdrop-filter: blur(15px);
}

.meeting-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--ink);
  background: var(--amber);
  border-radius: .8rem;
}

.meeting-icon svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.meeting-copy { line-height: 1.35; }
.meeting-copy span,
.meeting-copy small {
  color: var(--muted);
  font-size: .75rem;
}

.meeting-link {
  color: var(--ink);
  font-size: .82rem;
  text-decoration: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--line);
}

.section-label span { color: var(--amber); }
.section-label.light { color: rgba(255, 255, 255, .55); }
.section-label.light::after { background: rgba(255, 255, 255, .2); }

.section-title {
  max-width: 12ch;
  font-size: clamp(3rem, 5.7vw, 5.5rem);
}

.section-lead {
  max-width: 49rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.fact-row { border-color: var(--line) !important; }
.fact-item + .fact-item { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.fact-item strong {
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}
.fact-item span {
  color: var(--muted);
  font-size: .85rem;
}

.events { background: var(--ink); }
.events .section-title { max-width: 10ch; }
.event-list {
  --bs-list-group-border-color: rgba(255, 255, 255, .15);
}
.event {
  border-color: rgba(255, 255, 255, .15) !important;
}
.event-date {
  display: grid;
  justify-items: center;
  width: 4.25rem;
  padding: .55rem;
  color: var(--ink);
  background: #fff;
  border-radius: .75rem;
  line-height: 1;
}
.event-date span {
  color: #69727c;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
}
.event-date strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}
.featured-event .event-date { background: var(--amber); }
.event-type {
  color: var(--amber-bright);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.event p { font-size: .88rem; }
.event-arrow {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ink);
  background: var(--amber);
  border-radius: 50%;
}

.kicker,
.category-label {
  color: #9b6500;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: .3rem;
}
.light-link { color: #fff; }

.category-card,
.dues-card { background: var(--ink-soft); border-radius: 1.25rem; }
.category-card .category-label,
.dues-card .category-label { color: var(--amber-bright); }
.category-card .list-group-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .8rem;
  border-color: rgba(255, 255, 255, .12);
  font-size: .95rem;
}
.category-card .list-group-item span {
  color: rgba(255, 255, 255, .4);
  font-size: .75rem;
  font-weight: 800;
}
.dues-card strong {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
}
.dues-card .border-bottom { border-color: rgba(255, 255, 255, .14) !important; }

.gallery-section { background: #090e14; }
.gallery-heading { padding-bottom: 2.5rem; }
.gallery-row { align-items: start; }
.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #111923;
  border: 0;
  border-radius: .25rem;
  cursor: zoom-in;
  text-align: left;
}
.gallery-landscape { height: clamp(18rem, 32vw, 30rem); }
.gallery-portrait { height: clamp(30rem, 52vw, 44rem); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .35s;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.gallery-item > span {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: grid;
  line-height: 1.3;
  transform: translateY(.35rem);
  transition: transform .3s;
}
.gallery-item strong {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
}
.gallery-item small {
  color: rgba(255, 255, 255, .7);
  font-size: .75rem;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: brightness(.82);
  transform: none;
}
.gallery-item:hover > span,
.gallery-item:focus-visible > span { transform: translateY(0); }

.gallery-modal { background: #090e14; }
.gallery-modal .modal-photo {
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}
.gallery-modal .btn-close {
  padding: .85rem;
  background-color: rgba(255, 255, 255, .88);
  border-radius: 50%;
  opacity: 1;
}

.visit { background: linear-gradient(120deg, #17222e 0%, #0b1016 60%); }
.visit .section-title { font-size: clamp(2.8rem, 5vw, 5rem); }
.visit p { font-size: .88rem; }

.site-footer {
  background: #060a0f;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer nav a {
  color: rgba(255, 255, 255, .68);
  font-size: .82rem;
  font-weight: 700;
}
.footer-note {
  color: rgba(255, 255, 255, .75);
  font-family: var(--bs-body-font-family, system-ui, sans-serif);
  font-size: .88rem;
  line-height: 1.5;
}

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

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .75rem;
    padding: .75rem;
    background: rgba(8, 13, 19, .98);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }
  .navbar .nav-link::after { display: none; }
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-content { padding-bottom: 15rem; }
  .meeting-wrap { right: 1.25rem; left: 1.25rem; width: auto; }
  .image-credit { display: none; }
}

@media (max-width: 575.98px) {
  .brand-copy strong { font-size: 1rem; }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: start !important;
  }
  .hero-image { object-position: center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 9, 14, .9), rgba(5, 9, 14, .32)),
      linear-gradient(0deg, rgba(5, 9, 14, .78), transparent 65%);
  }
  .hero-content {
    padding-top: 9rem;
    padding-bottom: 15rem;
  }
  .hero h1 { font-size: clamp(3.9rem, 20vw, 6rem); }
  .meeting-card .card-body { flex-wrap: wrap; }
  .meeting-link { margin-left: 4rem; }
  .fact-item + .fact-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .event-arrow { display: none; }
  .gallery-landscape { height: 20rem; }
  .gallery-portrait { height: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Interior public pages migrated from the legacy Metropolitan Camera Club site. */
.interior-body { background: var(--paper); }
.interior-header { color: #fff; background: radial-gradient(circle at 80% 20%, rgba(243,167,18,.2), transparent 28%), linear-gradient(135deg, #0b1016, #182331); }
.interior-header .navbar { background: rgba(5,9,14,.35); border-bottom: 1px solid rgba(255,255,255,.12); }
.interior-hero-copy { max-width: 900px; }
.interior-hero-copy h1 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -.045em; }
.interior-hero-copy .lead { color: rgba(255,255,255,.78); max-width: 52rem; }
.interior-main { min-height: 50vh; }
.interior-main h1 { color: #0b1016; }
.content-section { padding-block: clamp(3rem, 7vw, 6rem); }
.content-card { height: 100%; border: 1px solid rgba(11,16,22,.12); border-radius: 1rem; background: #fff; box-shadow: 0 14px 40px rgba(5,10,17,.06); }
.content-card h2, .content-card h3, .content-card h4 { color: #0b1016; }
.legacy-note { border-left: 4px solid var(--amber); background: #fff9e9; }
.schedule-list article { border-bottom: 1px solid rgba(11,16,22,.12); }
.schedule-list article:last-child { border-bottom: 0; }
.public-calendar-event { border-bottom: 1px solid rgba(11,16,22,.14); }
.public-calendar-date {
  display: grid;
  justify-items: center;
  width: 4.5rem;
  padding: .7rem;
  color: #fff;
  background: #0b1016;
  border-radius: .75rem;
  line-height: 1;
}
.public-calendar-date span { color: #ffd269; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.public-calendar-date strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.month-grid a { text-decoration: none; }
.resource-list a { font-weight: 700; }

/* DEVELOPMENT NAVIGATION — temporary API/Joomla visual distinction.
 * Burnt umber #8A3324. Before production deployment, remove this block and
 * the metrocc-development-nav classes in index.php, public-header.php and auth-header.php.
 * The original black/transparent rules above then take effect again.
 */
.navbar.metrocc-development-nav,
.navbar.metrocc-development-nav.scrolled,
.navbar.metrocc-development-nav:has(.navbar-collapse.show),
.interior-header .navbar.metrocc-development-nav {
  background: #8a3324 !important;
}

/* MetroCC typography refinement, 2026-10-07.
   Keep this shared block identical in PCC and the Joomla child theme.
   Respect browser font preferences; do not compensate for per-site text zoom. */
.hero { min-height: 42rem; min-height: min(46rem, 90svh); }
.hero-content { padding-block: 7.5rem 10rem; }
.hero h1 { max-width: 18ch; font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: 1.03; letter-spacing: -.045em; }
.hero-intro { max-width: 38rem; font-size: 1.05rem; line-height: 1.65; }
.section-title { max-width: 22ch; font-size: clamp(2.2rem, 3.4vw, 3.75rem); line-height: 1.1; letter-spacing: -.035em; }
.events .section-title { max-width: 22ch; }
.hero .btn-lg { font-size: 1rem; padding: .7rem 1.35rem; }
.navbar .nav-link { font-size: .85rem; }
@media (max-width: 991.98px) {
  .hero { min-height: 44rem; }
  .hero-content { padding-block: 7.5rem 12rem; }
}
@media (max-width: 575.98px) {
  .hero { min-height: 46rem; }
  .hero-content { padding-block: 7rem 13rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.5vw, 3.5rem); max-width: 18ch; }
  .hero-intro { font-size: 1rem; }
  .hero .btn-lg { font-size: .95rem; }
}


/* The shared navigation has the same layout on every API page. */
#siteNav .navbar-brand { flex-shrink: 0; }
#siteNav .nav-link, #siteNav .btn { white-space: nowrap; }
#siteNav .nav-item:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
#siteNav .nav-item:last-child .btn { margin: 0 !important; }
@media (max-width: 1399.98px) {
  #siteNav .navbar-collapse { max-height: calc(100dvh - 100px); overflow-y: auto; }
  #siteNav .nav-item:last-child { padding-block: .75rem; }
}


/* Quiet page headings for working documents and membership forms. */
.interior-header-compact { background: var(--paper); color: #111820; }
.interior-header-compact .interior-hero-copy { max-width: 1100px; padding-block: 2rem !important; }
.interior-header-compact .eyebrow { display: none; }
.interior-header-compact .interior-hero-copy h1 { color: #111820; font-size: clamp(2rem,4.5vw,3.5rem); line-height: 1.15; }
.interior-header-compact .lead { color: #50565d; font-size: 1rem; }
.interior-header-compact + .interior-main .content-section { padding-top: 1rem; }
.metro-rules { max-width: 850px; margin-inline: auto; line-height: 1.7; overflow-wrap: break-word; }
.metro-rules section { margin-block: 2rem; scroll-margin-top: 6rem; }
.metro-rules h2 { margin-top: 1.5rem; }
.metro-rules nav li { margin-block: .25rem; }

/* Keep photographer copyright credits visible on the displayed photographs. */
.gallery-item > span { transform: none; }
@media (max-width: 991.98px) {
  .hero .image-credit {
    display: block; writing-mode: horizontal-tb; transform: none;
    left: 1.25rem; right: 1.25rem; bottom: .35rem;
    font-size: .625rem; line-height: 1.2; letter-spacing: .02em;
    text-shadow: 0 1px 3px #000;
  }
}

/* Keep the meeting notice clear of the photograph credit on wide screens. */
@media (min-width: 992px) {
  .hero .meeting-wrap {
    left: clamp(1.25rem, 4vw, 4.5rem);
    right: auto;
    max-width: calc(100% - 8rem);
  }
}

/* Meeting details belong with the homepage actions, clear of the photo credit. */
.hero .hero-content { padding-bottom: 4rem; }
.hero-meeting { margin-top: 1.5rem; color: #fff; font-size: .95rem; line-height: 1.6; text-shadow: 0 1px 3px #000; }
.hero-meeting p { margin: 0; }
.hero-meeting a { display: inline-block; padding-block: .25rem; color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.hero-meeting a:hover { color: #ffd16a; }
.hero .image-credit { bottom: var(--credit-bottom, 1.25rem); right: var(--credit-right, 1.25rem); color: #fff; text-shadow: 0 1px 3px #000; }
@media (max-width: 991.98px) {
  .hero .hero-content { padding-bottom: 5rem; }
  .hero .image-credit { bottom: 1.25rem; right: 1.25rem; font-size: .75rem; line-height: 1.4; }
}

/* Override older Joomla banner spacing with the shared homepage layout. */
.hero .hero-content { padding-top: 7.5rem; }
.container-banner .hero h1 { max-width: 18ch; }
@media (max-width: 575.98px) {
  .hero .hero-content { padding-top: 7rem; }
  .section-pad .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* Give the homepage photograph the whole first screen; allow text to grow. */
.hero { min-height: 100vh; min-height: 100svh; }
.container-banner .hero { min-height: calc(100vh - var(--home-header-height, 0px)); min-height: calc(100svh - var(--home-header-height, 0px)); }

/* A decorative cue to the content below the first screen. */
.hero-scroll { position: absolute; z-index: 3; bottom: 1rem; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 50%; background: none; pointer-events: none; }
.hero-scroll svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 991.98px) {
  .hero .hero-content { padding-bottom: 7.5rem; }
  .hero .image-credit { bottom: 4.5rem; }
}

/* Keep the club tagline with its wordmark. */
.brand-copy .brand-tagline { display: block; margin-top: .35rem; color: inherit; font-size: .65rem; font-weight: 400; line-height: 1.35; letter-spacing: normal; text-transform: none; }
.container-header .brand-logo { height: 3.75rem; padding-bottom: 1.2rem; }
.container-header .brand-logo .brand-tagline { position: absolute; left: 0; bottom: 0; display: block; font-size: .65rem; line-height: 1.35; font-weight: 400; letter-spacing: normal; color: #fff; }

/* Welcome photographers without publishing an unverified membership count. */
.fact-item .fact-welcome { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
.event-arrow { text-decoration: none; }

/* Selection grids retain the complete photograph and its original proportions. */
.gallery-thumbnail{display:block;width:100%;height:auto;object-fit:contain}
