:root {
  --cltc-red: #d01012;
  --cltc-yellow: #ffd500;
  --cltc-blue: #006db7;
  --cltc-green: #00a651;
  --cltc-black: #121212;
  --cltc-ink: #1d1d1f;
  --cltc-muted: #5f6670;
  --cltc-paper: #ffffff;
  --cltc-cream: #f7f4ea;
  --cltc-line: #d8d8d8;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cltc-ink);
  background: linear-gradient(180deg, #fff4a6 0, #ece8dd 390px, #d9dde3 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--cltc-blue);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #212529;
  border-bottom: 4px solid var(--cltc-yellow);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand__text {
  max-width: 260px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  box-shadow: none;
}

.site-nav a:hover {
  color: var(--cltc-black);
  background: var(--cltc-yellow);
  border-color: var(--cltc-yellow);
}

.page-shell {
  width: min(100% - 32px, 1060px);
  margin: 36px auto 52px;
  padding: 0 0 18px;
  background: var(--cltc-paper);
  border: 4px solid var(--cltc-black);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-shell > * {
  margin-left: clamp(18px, 4vw, 54px);
  margin-right: clamp(18px, 4vw, 54px);
}

.page-shell > h1 {
  margin: 0 0 30px;
  min-height: clamp(330px, 42vw, 470px);
  padding: clamp(34px, 7vw, 78px) clamp(18px, 4vw, 54px) clamp(34px, 7vw, 78px) clamp(260px, 34vw, 440px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: #fff4f4;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28)),
    url("images/cltc_header_train.jpg") center / cover;
  border-bottom: 4px solid var(--cltc-black);
  font-size: clamp(42px, 7.2vw, 76px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-align: right;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.78);
  text-wrap: balance;
}

.page-shell > h1 + p {
  margin-top: -8px;
  padding: 14px 18px;
  color: var(--cltc-black);
  background: var(--cltc-yellow);
  border: 3px solid var(--cltc-black);
  border-radius: 6px;
  font-weight: 800;
}

h2 {
  margin-top: 46px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--cltc-red);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-top: 30px;
  color: var(--cltc-blue);
  font-weight: 900;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

p,
li {
  max-width: 78ch;
}

ul {
  padding-left: 1.3em;
}

li::marker {
  color: var(--cltc-red);
}

details {
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 0;
  border: 1px solid var(--cltc-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 14px 18px;
  color: var(--cltc-black);
  background: var(--cltc-yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 900;
}

summary:hover {
  background: #ffe45e;
}

.event-title {
  margin: 20px 18px 10px;
  color: var(--cltc-blue);
  font-size: 22px;
}

.photo-grid,
details p {
  max-width: none;
  margin: 0 0 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  background: #f4f6f8;
}

.photo-grid a {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cltc-line);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.photo-grid a:hover {
  transform: translateY(1px);
  border-color: var(--cltc-blue);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.photo-grid a:focus-visible,
.lightbox__close:focus-visible {
  outline: 4px solid var(--cltc-blue);
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 3px solid var(--cltc-black);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

.photo-grid img {
  width: 100%;
  max-height: 180px;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
}

.site-header .brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  justify-self: end;
  min-height: 42px;
  padding: 9px 16px;
  color: var(--cltc-black);
  background: var(--cltc-yellow);
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.lightbox__close:hover {
  background: #ffe45e;
}

.lightbox__frame {
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
}

.lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border: 4px solid #fff;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  max-width: min(900px, 100%);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.contact-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 900;
}

.contact-links a {
  color: var(--cltc-black);
  background: var(--cltc-yellow);
  border: 2px solid var(--cltc-black);
}

.site-footer {
  padding: 28px 20px 34px;
  color: #fff;
  background: var(--cltc-red);
  border-top: 4px solid var(--cltc-black);
  text-align: center;
  font-weight: 900;
}

.site-footer p {
  margin: 0 auto;
}

.footer-links {
  justify-content: center;
  margin-top: 12px;
}

.footer-links a {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.footer-links a:hover {
  color: var(--cltc-black);
  background: var(--cltc-yellow);
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 20px, 1060px);
    margin-top: 18px;
    border-width: 3px;
  }

  .page-shell > h1 {
    font-size: clamp(36px, 14vw, 54px);
    min-height: 360px;
    padding: 220px 18px 32px;
    align-items: flex-end;
    justify-content: flex-start;
    background-position: 36% center;
    text-align: left;
  }

  details p {
    grid-template-columns: 1fr;
  }

  img {
    height: 260px;
  }
}
