.tr-gallery { width: 100%; max-width: none; padding: 24px 32px 64px; margin: 0 auto; color: #172033; box-sizing: border-box; }
.tr-gallery a { color: #0650d5; text-decoration: none; }
.tr-gallery a:hover { text-decoration: underline; }
.tr-gallery-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; font-size: 13px; color: #637184; }
.tr-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; border-bottom: 1px solid #dce3ea; padding-bottom: 20px; }
.tr-gallery-eyebrow { margin: 0 0 12px; color: #008657; font-size: 12px; font-weight: 800; }
.tr-gallery h1 { margin: 0; font-size: 42px; line-height: 1.12; font-weight: 800; overflow-wrap: anywhere; letter-spacing: 0; }
.tr-gallery-heading > p { max-width: 410px; margin: 0; line-height: 1.65; color: #566477; font-size: 16px; }
.tr-gallery-filters { display: flex; align-items: end; gap: 12px; margin: 20px 0 36px; flex-wrap: wrap; }
.tr-gallery-filters label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.tr-gallery-filters label:first-child { flex: 1; min-width: 200px; max-width: 420px; }
.tr-gallery-filters input, .tr-gallery-filters select { height: 44px; padding: 0 12px; border: 1px solid #cbd6e3; border-radius: 4px; background: white; color: #172033; font: inherit; font-size: 14px; min-width: 0; width: 100%; }
.tr-gallery-filters button { min-height: 44px; border: 0; padding: 10px 24px; border-radius: 4px; background: #0754dc; color: white; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tr-gallery-filters > a { padding: 12px 0; font-size: 13px; }
.tr-gallery-result { color: #647184; font-size: 13px; padding: 13px 0; margin-left: auto; }
.tr-gallery-timeline { padding-left: 6px; }
.tr-gallery-event { position: relative; border-left: 1px solid #cddcd5; padding: 0 0 64px 28px; scroll-margin-top: 165px; }
.tr-gallery-event:last-child { padding-bottom: 8px; }
.tr-gallery-event::before { content: ''; position: absolute; top: 5px; left: -6px; width: 11px; height: 11px; background: #00865b; border-radius: 50%; box-shadow: 0 0 0 5px white; }
.tr-gallery-event-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); align-items: start; gap: 40px; margin-bottom: 26px; }
.tr-gallery-event-heading h2 { margin: 12px 0 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: 0; overflow-wrap: anywhere; }
.tr-gallery-event-heading h1 { margin-top: 12px; }
.tr-gallery-event-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: #007c55; font-size: 12px; font-weight: 700; }
.tr-gallery-event-count { color: #657184; font-weight: 500; }
.tr-gallery-description { white-space: pre-line; line-height: 1.75; margin: 0; font-size: 14px; color: #536276; overflow-wrap: anywhere; }
.tr-gallery-photos { columns: 3; column-gap: 14px; }
.tr-gallery-photos figure { margin: 0 0 14px; min-width: 0; break-inside: avoid; }
.tr-gallery-photo { display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #edf1f5; cursor: zoom-in; }
.tr-gallery-photo img { display: block; width: 100%; height: auto; transition: filter 180ms ease; }
.tr-gallery-photo:hover img { filter: brightness(1.04); }
.tr-gallery-photos figcaption { padding: 9px 0 2px; color: #5a687b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.tr-gallery-back { display: inline-block; margin-top: 24px; font-size: 14px; font-weight: 700; }
.tr-gallery-empty { padding: 48px 0; text-align: center; }
.tr-gallery-empty h2 { font-size: 24px; margin: 0 0 18px; }
.tr-gallery-preview { border: 1px solid #b4d4f3; padding: 12px; margin-bottom: 24px; background: #edf7ff; font-size: 13px; }
.tr-gallery-viewing { overflow: hidden; }
.tr-gallery-lightbox { width: min(1200px,96vw); max-width: 96vw; height: min(900px,94dvh); max-height: 94dvh; padding: 12px; border: 0; border-radius: 6px; background: #101315; color: #fff; }
.tr-gallery-lightbox::backdrop { background: rgb(0 0 0 / 88%); }
.tr-gallery-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 8px; }
.tr-gallery-lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; font-size: 13px; }
#galleryCounter { overflow-wrap: anywhere; min-width: 0; }
.tr-gallery-lightbox button { flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid #5c656e; border-radius: 4px; background: #272d32; color: #fff; font-size: 28px; cursor: pointer; }
.tr-gallery-lightbox button:disabled { opacity: .3; cursor: default; }
.tr-gallery-lightbox-stage { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 12px; align-items: center; min-height: 0; }
.tr-gallery-lightbox-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.tr-gallery-lightbox p { margin: 8px 48px; text-align: center; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tr-gallery :focus-visible { outline: 3px solid #1184e8; outline-offset: 3px; }
@media (min-width: 1700px) { .tr-gallery-photos { columns: 4; } }
@media (max-width: 900px) {
  .tr-gallery { padding-right: 24px; padding-left: 24px; }
  .tr-gallery-photos { columns: 2; }
  .tr-gallery-heading { align-items: start; }
  .tr-gallery h1 { font-size: 36px; }
  .tr-gallery-event-heading { grid-template-columns: 1fr; gap: 18px; }
  .tr-gallery-event-heading h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .tr-gallery { padding: 24px 14px 48px; }
  .tr-gallery-heading { flex-direction: column; align-items: start; gap: 18px; }
  .tr-gallery h1 { font-size: 32px; }
  .tr-gallery-event { padding-left: 16px; padding-bottom: 44px; }
  .tr-gallery-event-heading h2 { font-size: 26px; }
  .tr-gallery-photos { column-gap: 8px; }
  .tr-gallery-photos figure { margin-bottom: 8px; }
  .tr-gallery-description { font-size: 14px; }
  .tr-gallery-filters label:first-child { flex-basis: 100%; max-width: none; }
  .tr-gallery-filters label:nth-child(2) { flex: 1; }
  .tr-gallery-result { flex-basis: 100%; margin: 0; padding: 0; }
  .tr-gallery-lightbox { padding: 10px; }
  .tr-gallery-lightbox-stage { grid-template-columns: 28px minmax(0,1fr) 28px; gap: 4px; }
  .tr-gallery-lightbox-stage button { width: 28px; }
  .tr-gallery-lightbox p { margin: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) { .tr-gallery-photo img { transition: none; } }
