:root {
  --background: #dfe6e3;
  --paper: #f4f7f3;
  --text: #3d4b23;
  --primary: #293318;
  --accent: #400b61;
  --shadow: #adb9a8;
  --line: #8a987e;
  --duration: 600ms;
  --reveal-delay: 50ms;
  --section-gap: 38px;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

button {
  font-size: inherit;
  line-height: inherit;
}

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

.travelGallery,
.galleryNameRow,
.galleryNavRow,
.galleryFootLine {
  width: calc(100% - 64px);
  max-width: 1226px;
  margin-inline: auto;
  padding-inline: 0;
}

.travelGallerySkip,
.travelGalleryAccessible {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.travelGalleryAccessible {
  position: absolute;
}

.travelGallerySkip {
  position: fixed;
  z-index: 6;
  top: 8px;
  left: 8px;
  color: var(--paper);
  background: var(--accent);
}

.travelGallerySkip:focus {
  width: auto;
  height: auto;
  padding: 8px 14px;
  clip-path: none;
  outline-color: var(--paper);
  outline-offset: -4px;
}

.galleryTop,
.galleryFoot {
  --focus: var(--paper);
  background: var(--primary);
  color: var(--paper);
}

.galleryTop {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 88px;
}

.galleryNameRow {
  display: grid;
  min-height: 48px;
  place-items: center;
}

.galleryName {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--background);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.galleryNavToggle {
  display: none;
}

.galleryNavToggle::marker {
  content: '';
}

.galleryNavToggle::-webkit-details-marker {
  display: none;
}

.galleryNavLinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.galleryNavLinks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.galleryNavLinks a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding-inline: 3px;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.galleryNavLinks a:hover {
  text-decoration: underline;
}

.galleryNavLinks a:focus-visible,
.galleryNavToggle:focus-visible {
  outline-offset: -3px;
}

.galleryNavLinks a[aria-current='page'] {
  box-shadow: inset 0 -3px 0 #cdb4dd;
}

.galleryNavDot {
  color: #bfceb2;
}

.galleryGlyph {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background: #ece2f1;
  color: var(--accent);
}

.travelGallery {
  flex: 1 0 auto;
  min-width: 0;
  margin-block-start: var(--section-gap);
  scroll-margin-top: 104px;
  overflow-wrap: anywhere;
}

.travelGalleryFront {
  display: grid;
  align-content: start;
  gap: var(--section-gap);
}

.openingView,
.exhibits,
.galleryRooms,
.inFocus,
.exhibitCardStory {
  animation: reveal-items var(--duration) ease var(--reveal-delay) both;
}

@keyframes reveal-items {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.openingView h1,
.cityPortrait h1 {
  margin: 0;
  color: var(--primary);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.exhibits,
.galleryRooms,
.inFocus {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.galleryRoomsHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.exhibitsPostList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exhibitsPostList > li {
  display: grid;
  min-width: 0;
}

.exhibitCard {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 32px;
  background: var(--paper);
  color: var(--primary);
  box-shadow: 4px 4px 0 var(--shadow);
  text-align: left;
  text-decoration: none;
  transition: transform var(--duration) ease;
}

.exhibitCardImage {
  display: block;
  width: 120px;
  max-width: 100%;
  height: 90px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--background);
}

.exhibitCardSummary {
  min-width: 0;
}

.exhibitCardTitle {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exhibitCard:focus-visible .exhibitCardTitle {
  overflow: visible;
  white-space: normal;
}

.exhibitCardDetails {
  display: block;
  margin-top: 6px;
}

.cityPortraitReadingTime {
  color: var(--text);
  font-size: 0.875em;
  font-weight: 500;
}

@media (hover: hover) {
  .exhibitCard:hover {
    transform: translateY(-3px);
  }

  .exhibitCard:hover .exhibitCardTitle {
    overflow: visible;
    color: var(--accent);
    white-space: normal;
  }
}

.galleryRoomsList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exhibitCardSection {
  display: block;
  padding: 4px 12px;
  background: var(--paper);
  color: var(--accent);
  font-weight: 500;
}

.gallerySlides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  gap: 12px;
  width: 75%;
  margin-inline: auto;
}

.gallerySlidesControls {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: var(--primary);
  box-shadow: 4px 4px 0 var(--shadow);
}

.gallerySlidesChoice {
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  background: var(--text);
  color: var(--paper);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}

.gallerySlidesChoice:hover {
  background: #4c5c32;
}

.gallerySlidesChoice[aria-pressed='true'] {
  background: var(--accent);
  box-shadow: inset 4px 0 0 #cdb4dd;
}

.gallerySlidesChoice:focus-visible {
  outline-color: var(--paper);
  outline-offset: -5px;
}

.gallerySlidesStage {
  min-width: 0;
  background: var(--primary);
  box-shadow: 4px 4px 0 var(--shadow);
}

.gallerySlidesItem[hidden] {
  display: none;
}

.gallerySlidesLink {
  display: grid;
  grid-template-rows: minmax(4rem, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--primary);
  color: var(--paper);
  text-decoration: none;
}

.gallerySlidesItem:not([hidden]) .gallerySlidesLink {
  animation: fade-slide var(--duration) ease both;
}

@keyframes fade-slide {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallerySlidesImage {
  display: block;
  grid-area: 1 / 1 / 3 / 2;
  align-self: start;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--background);
}

.gallerySlidesTitle {
  position: relative;
  grid-area: 2 / 1;
  margin: 0;
  padding: 18px 24px;
  background: var(--accent);
  color: var(--paper);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.gallerySlidesLink:hover .gallerySlidesTitle {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.exhibitCardStory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  align-items: start;
  gap: 26px;
}

.cityPortrait {
  width: 100%;
  max-width: 634px;
  min-width: 0;
  margin-left: auto;
  margin-right: 0;
}

.galleryPath {
  margin-block: 12px 4px;
  font-size: 0.875em;
}

.galleryPath ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.galleryPath li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.galleryPath [aria-current='page'] {
  font-weight: 500;
}

.crumb-dot {
  color: var(--accent);
}

.cityPortrait > p {
  margin: 0 0 1em;
}

.cityPortrait > .story-time {
  margin-block: 0 22px;
}

.cityPortrait h2,
.cityPortrait h3 {
  margin: 1.2em 0 0.45em;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.cityPortrait h2 {
  font-size: 28px;
}

.cityPortrait h3 {
  font-size: 22px;
}

.cityPortrait blockquote {
  margin: 1.25em 0;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--primary);
}

.cityPortrait blockquote p {
  margin: 0 0 0.6em;
}

.cityPortrait blockquote p:last-child {
  margin-bottom: 0;
}

.cityPortrait cite {
  color: var(--accent);
  font-style: italic;
}

.cityPortrait ul,
.cityPortrait ol:not(.galleryPath ol) {
  margin: 0 0 1em;
  padding-inline-start: 1.5em;
}

.cityPortrait ul {
  list-style-type: disc;
}

.cityPortrait table {
  width: 100%;
  margin-block: 0.5em 1em;
  border-collapse: collapse;
  background: var(--paper);
}

.cityPortrait th,
.cityPortrait td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.cityPortrait th {
  background: var(--primary);
  color: var(--paper);
  font-weight: 700;
}

.cityPortrait caption {
  padding-block: 0 6px;
  color: var(--primary);
  font-weight: 500;
  text-align: left;
}

.cityPortrait img {
  max-width: 100%;
  height: auto;
}

.cityPortrait > :last-child {
  margin-bottom: 0;
}

.curatorsNotes {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
}

.curatorsNotes .galleryRoomsHeader {
  font-size: 19px;
}

.curatorsNotes p {
  margin: 10px 0 0;
}

.galleryFoot {
  margin-block-start: var(--section-gap);
}

.galleryFootLine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
}

.galleryFootLine p {
  margin: 0;
  color: #dce5d7;
  font-weight: 500;
}

.galleryFootLine .galleryNavLinks {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .exhibitsPostList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .exhibitCardStory {
    grid-template-columns: minmax(0, 1fr);
    max-width: 634px;
    margin-inline: auto;
  }

  .gallerySlides {
    width: 100%;
  }
}

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

  .galleryTop {
    min-height: 68px;
  }

  .galleryNameRow {
    min-height: 36px;
  }

  .galleryName {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }

  .galleryNavToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    color: inherit;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
  }

  .roomPickerPanel > nav {
    min-height: 0;
    overflow: hidden;
  }

  .navigation-details[open] .roomPickerPanel {
    display: grid;
    grid-template-rows: 1fr;
    animation: expand-navigation var(--duration) ease;
  }

  .galleryNavLinks,
  .galleryNavLinks li {
    column-gap: 8px;
  }

  .galleryNavLinks a {
    min-height: 36px;
  }

  .galleryNavRow .galleryNavLinks {
    padding-block: 4px 8px;
  }

  .travelGallery {
    scroll-margin-top: 84px;
  }

  .openingView h1,
  .cityPortrait h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .exhibitsPostList {
    grid-template-columns: minmax(0, 1fr);
  }

  .exhibitCard {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .exhibitCardImage {
    width: 100%;
    height: auto;
  }

  .exhibitCardTitle {
    overflow: visible;
    white-space: normal;
  }

  .gallerySlides {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallerySlidesControls {
    display: flex;
    flex-wrap: wrap;
  }

  .gallerySlidesChoice {
    flex: 1 1 7rem;
    padding-inline: 10px;
  }

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

@keyframes expand-navigation {
  from {
    grid-template-rows: 0fr;
  }
  to {
    grid-template-rows: 1fr;
  }
}

@media (max-width: 480px) {
  .travelGallery,
  .galleryNameRow,
  .galleryNavRow,
  .galleryFootLine {
    width: calc(100% - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .openingView,
  .exhibits,
  .galleryRooms,
  .inFocus,
  .exhibitCardStory,
  .gallerySlidesItem:not([hidden]) .gallerySlidesLink,
  .navigation-details[open] .roomPickerPanel {
    animation: none;
  }

  .exhibitCard {
    transition: none;
  }

  .exhibitCard:hover {
    transform: none;
  }
}

.galleryName {width:auto; min-width:120px; height:auto; min-height:36px; padding:4px 15px; letter-spacing:0; font-size:21px;}
.exhibitCardTitle {white-space:normal; overflow:visible; text-overflow:clip; font-size:18px; font-weight:500;}
.exhibitCard {padding:18px; align-items:start;}
.exhibitCardDetails {font-size:13px; line-height:1.4; color:var(--text);}
.exhibitCardImage {aspect-ratio:3/2; height:80px;}
.travelGalleryFront .openingView p,.category-lead {margin:10px 0 0; max-width:780px;}
.cityPortrait .cityPortraitCover {display:block;width:100%;aspect-ratio:3/2;object-fit:cover; margin:0 0 25px; border-radius:2px;}
.cityPortrait .story-time {display:flex;flex-wrap:wrap;column-gap:14px; margin:10px 0 22px;}
.cityPortrait .story-time time {white-space:nowrap;}
.curatorsNotes ul {margin:12px 0 0; padding:0 0 0 20px;}
.curatorsNotes li {margin:0 0 12px;line-height:1.45;}
.curatorsNotes a {overflow-wrap:anywhere;}
.category-crumbs {margin:0 0 8px;}
.galleryRoomsList a.exhibitCardSection {text-decoration:none;}
.galleryRoomsList a.exhibitCardSection:hover {text-decoration:underline;}
@media(max-width:770px){.exhibitCard {grid-template-columns:minmax(0,1fr);} .exhibitCardImage {width:100%;height:auto;aspect-ratio:3/2;} .galleryName {font-size:18px;}}


@media (min-width: 961px) {
  .exhibitCardStory {
    grid-template-columns: minmax(0, 634px) 232px;
    justify-content: center;
  }
}
