/*
Theme Name: Turning the Tide Gallery
Theme URI: https://river-cities.org/
Author: Turning the Tide
Description: Eine responsive WordPress-Startseite mit interaktiven Karten, die bei Mouseover oder Antippen die zugehörigen Kunstwerke zeigen.
Version: 1.1.2
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: turning-the-tide
*/

:root {
  --ttt-ink: #111111;
  --ttt-paper: #f7f7f3;
  --ttt-panel: #ffffff;
  --ttt-line: rgba(17, 17, 17, 0.16);
  --ttt-accent: #142c50;
  --ttt-muted: #6d6d67;
  --ttt-side: clamp(17rem, 29vw, 27rem);
  --ttt-admin-offset: 0px;
  --ttt-font: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

body.admin-bar {
  --ttt-admin-offset: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--ttt-paper);
  color: var(--ttt-ink);
  font-family: var(--ttt-font);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.45;
}

body.ttt-gallery-page {
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.ttt-site-shell {
  display: grid;
  grid-template-columns: var(--ttt-side) minmax(0, 1fr);
  min-height: 100svh;
}

.ttt-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-right: 1px solid var(--ttt-line);
  background: var(--ttt-panel);
}

.admin-bar .ttt-sidebar {
  top: 32px;
  height: calc(100svh - 32px);
}

.ttt-brand {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--ttt-ink);
  text-decoration: none;
}

.ttt-brand-mark {
  display: grid;
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ttt-accent);
  color: #ffffff;
}

.ttt-brand-mark svg {
  width: 3rem;
  height: 3rem;
}

.ttt-logo-image {
  display: block;
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.ttt-brand-name {
  max-width: 13ch;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-transform: lowercase;
}

.ttt-nav {
  margin-block: auto;
  padding-block: 3rem;
}

.ttt-nav ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttt-nav li {
  margin: 0;
}

.ttt-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.02rem;
  text-decoration: none;
  text-transform: lowercase;
}

.ttt-nav a::before {
  width: 0;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ttt-accent);
  content: "";
  opacity: 0;
  transition: width 180ms ease, opacity 180ms ease;
}

.ttt-nav a:hover::before,
.ttt-nav a:focus-visible::before,
.ttt-nav .current-menu-item > a::before {
  width: 0.5rem;
  opacity: 1;
}

.ttt-sidebar-note {
  max-width: 18rem;
  margin: 0;
  color: var(--ttt-muted);
  font-size: 0.9rem;
}

.ttt-intro-prompt {
  max-width: 19rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--ttt-accent);
  background: var(--ttt-paper);
}

.ttt-intro-prompt-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.ttt-intro-prompt-text {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
  line-height: 1.3;
  text-transform: lowercase;
}

.ttt-intro-prompt-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-transform: lowercase;
}

.ttt-intro-prompt-link:focus-visible {
  outline: 3px solid var(--ttt-accent);
  outline-offset: 4px;
}

.ttt-content {
  min-width: 0;
}

.ttt-gallery-section {
  min-height: 100svh;
  padding: clamp(0.85rem, 1.4vw, 1.5rem);
}

.ttt-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1vw, 0.9rem);
}

.ttt-city-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--ttt-panel);
  color: var(--ttt-ink);
}

.ttt-city-action {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.ttt-image-stage {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ecece8;
}

.ttt-image-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttt-map-image {
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.002);
  transition: filter 650ms ease, transform 850ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ttt-art-image {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.04);
  transition:
    clip-path 680ms cubic-bezier(0.76, 0, 0.24, 1),
    transform 850ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ttt-city-action:focus-visible .ttt-art-image,
.ttt-city-card.is-revealed .ttt-art-image {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.ttt-city-action:focus-visible .ttt-map-image,
.ttt-city-card.is-revealed .ttt-map-image {
  filter: grayscale(1) contrast(1.04) brightness(0.93);
  transform: scale(1.025);
}

@media (hover: hover) and (pointer: fine) {
  .ttt-city-card:hover .ttt-art-image {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }

  .ttt-city-card:hover .ttt-map-image {
    filter: grayscale(1) contrast(1.04) brightness(0.93);
    transform: scale(1.025);
  }
}

.ttt-preview-toggle {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ttt-line);
  border-radius: 50%;
  appearance: none;
  background: rgba(247, 247, 243, 0.92);
  color: var(--ttt-ink);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ttt-preview-toggle svg {
  width: 1.18rem;
  height: 1.18rem;
}

.ttt-city-card.is-revealed .ttt-preview-toggle {
  border-color: var(--ttt-accent);
  background: var(--ttt-accent);
  color: #ffffff;
}

.ttt-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.05rem 0.1rem;
  border-top: 1px solid transparent;
}

.ttt-city-name {
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: lowercase;
}

.ttt-card-action {
  flex: 0 0 auto;
  color: var(--ttt-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.ttt-city-action:focus-visible,
.ttt-preview-toggle:focus-visible {
  outline: 3px solid var(--ttt-accent);
  outline-offset: 4px;
}

.ttt-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(1rem, 2.4vw, 2.25rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--ttt-line);
}

.ttt-information h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.ttt-information-copy {
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
}

.ttt-information-copy p {
  margin: 0 0 1rem;
}

.ttt-information-copy p:last-child {
  margin-bottom: 0;
}

.ttt-contact-text {
  color: var(--ttt-muted);
}

.ttt-contact-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ttt-ink);
  text-underline-offset: 0.22em;
  text-transform: lowercase;
}

.ttt-introduction {
  margin: clamp(1rem, 2.4vw, 2.25rem);
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--ttt-panel);
  scroll-margin-top: 1.5rem;
}

.ttt-introduction-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 5rem);
  max-width: 82rem;
  margin-inline: auto;
}

.ttt-introduction-header {
  align-self: start;
}

.ttt-introduction-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.ttt-introduction-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-transform: lowercase;
}

.ttt-introduction-body {
  max-width: 48rem;
  font-size: clamp(1.08rem, 1.3vw, 1.24rem);
  line-height: 1.7;
}

.ttt-introduction-body p {
  margin: 0 0 1.35em;
}

.ttt-introduction-body > p:first-child:not(.ttt-introduction-summary) {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.35;
}

.ttt-introduction-summary {
  margin: 0 0 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--ttt-line);
  color: var(--ttt-accent);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.4;
}

.ttt-introduction-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--ttt-accent);
  background: var(--ttt-paper);
  font-size: 1.05em;
  line-height: 1.5;
}

.ttt-introduction-body blockquote p {
  margin-bottom: 0.55em;
}

.ttt-introduction-body blockquote p:last-child,
.ttt-introduction-body > :last-child {
  margin-bottom: 0;
}

.ttt-introduction-body a {
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* The map reading room keeps the exhibition's own sidebar and type. */
.ttt-nav a[aria-current="page"]::before {
  width: 0.5rem;
  opacity: 1;
}

.ttt-maps-teaser {
  margin: clamp(1rem, 2.4vw, 2.25rem);
  background: var(--ttt-panel);
}

.ttt-maps-teaser-link {
  display: grid;
  min-height: 8rem;
  grid-template-columns: minmax(8rem, 0.85fr) minmax(12rem, 1.5fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0.75rem clamp(1rem, 2vw, 1.7rem) 0.75rem 0.75rem;
  text-decoration: none;
}

.ttt-maps-teaser-image {
  display: block;
  width: 100%;
  height: 6.5rem;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.ttt-maps-teaser-copy {
  display: grid;
  gap: 0.4rem;
}

.ttt-maps-teaser-copy strong {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-transform: lowercase;
}

.ttt-maps-teaser-copy span {
  color: var(--ttt-muted);
  font-size: 0.94rem;
}

.ttt-maps-teaser-action {
  color: var(--ttt-accent);
  font-size: 0.9rem;
  white-space: nowrap;
  text-transform: lowercase;
}

.ttt-maps-teaser-link:hover .ttt-maps-teaser-action,
.ttt-maps-teaser-link:focus-visible .ttt-maps-teaser-action {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ttt-maps-teaser-link:focus-visible {
  outline: 3px solid var(--ttt-accent);
  outline-offset: 3px;
}

.ttt-maps-content {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.ttt-maps-intro {
  max-width: 55rem;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.ttt-maps-kicker {
  margin: 0 0 0.8rem;
  color: var(--ttt-accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.ttt-maps-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: lowercase;
}

.ttt-maps-lead {
  max-width: 48rem;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.55;
}

.ttt-maps-lead p {
  margin: 0 0 0.8rem;
}

.ttt-map-tabs {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--ttt-line);
}

.ttt-map-tab,
.ttt-map-sheet-button {
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  appearance: none;
  background: none;
  color: var(--ttt-muted);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 300;
  white-space: nowrap;
  text-transform: lowercase;
}

.ttt-map-tab.is-active,
.ttt-map-sheet-button[aria-pressed="true"] {
  border-bottom-color: var(--ttt-accent);
  color: var(--ttt-ink);
}

.ttt-map-reading-room {
  margin-top: 1.1rem;
}

.ttt-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.ttt-map-instruction {
  margin: 0;
  color: var(--ttt-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ttt-map-stage {
  position: relative;
  height: clamp(24rem, 66svh, 55rem);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ttt-line);
  background: #fff;
}

.ttt-map-fallback,
.ttt-map-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ttt-map-fallback {
  object-fit: contain;
}

.ttt-map-viewer {
  opacity: 0;
}

.ttt-map-stage.is-ready .ttt-map-viewer {
  opacity: 1;
}

.ttt-map-stage.is-ready .ttt-map-fallback {
  visibility: hidden;
}

.ttt-map-hotspot {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--ttt-accent);
  box-shadow: 0 0 0 2px var(--ttt-accent);
  cursor: pointer;
}

.ttt-map-hotspot:hover,
.ttt-map-hotspot:focus-visible {
  transform: scale(1.25);
  outline: 2px solid var(--ttt-accent);
  outline-offset: 4px;
}

.ttt-map-point-card {
  position: absolute;
  z-index: 20;
  top: 1rem;
  right: 1rem;
  width: min(20rem, calc(100% - 2rem));
  max-height: calc(100% - 5rem);
  overflow-y: auto;
  padding: 1.4rem 2.25rem 1.4rem 1.4rem;
  border: 1px solid var(--ttt-line);
  background: var(--ttt-panel);
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.1);
}

.ttt-map-point-card[hidden],
.ttt-map-zoom-controls button[hidden],
.ttt-map-sheet-nav[hidden] {
  display: none;
}

.ttt-map-point-card h3 {
  margin: 0 0 0.65rem;
  color: var(--ttt-accent);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}

.ttt-map-point-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ttt-map-point-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
}

.ttt-map-zoom-controls {
  position: absolute;
  z-index: 15;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px var(--ttt-line);
}

.ttt-map-zoom-controls button {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--ttt-accent);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
}

.ttt-map-zoom-controls button:hover,
.ttt-map-zoom-controls button:focus-visible {
  background: var(--ttt-paper);
}

.ttt-map-sheet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ttt-map-sheet-button {
  padding: 0.35rem 0;
  font-size: 0.84rem;
}

.ttt-map-details {
  display: grid;
  grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.6rem, 3vw, 3rem) 0;
}

.ttt-map-details h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: lowercase;
}

.ttt-map-story {
  max-width: 48rem;
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  line-height: 1.6;
}

.ttt-map-story p {
  margin: 0 0 1.1rem;
}

.ttt-map-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ttt-line);
  font-size: 0.86rem;
}

.ttt-map-meta p {
  margin-bottom: 0.5rem;
  color: var(--ttt-muted);
}

.ttt-map-meta a {
  color: var(--ttt-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-transform: lowercase;
}

.ttt-maps-empty {
  padding: 2rem;
  background: var(--ttt-panel);
}

.ttt-site-footer {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 4vw, 5rem);
  border-top: 1px solid var(--ttt-line);
  background: var(--ttt-panel);
}

.ttt-footer-inner {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 100rem;
  margin-inline: auto;
}

.ttt-footer-eu-logo {
  display: block;
  width: min(100%, 17rem);
  height: auto;
}

.ttt-footer-disclaimer {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.6;
}

.ttt-footer-partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0.75rem 1rem;
}

.ttt-footer-logo {
  display: grid;
  min-width: 0;
  min-height: 4.5rem;
  place-items: center;
  padding: 0.25rem;
}

.ttt-footer-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 3.8rem;
  object-fit: contain;
}

.ttt-footer-collaboration {
  margin-top: 1.7rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--ttt-line);
}

.ttt-footer-collaboration-heading {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 400;
  text-transform: lowercase;
}

.ttt-footer-collaborators {
  display: grid;
  max-width: 27rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}

.ttt-footer-collaborators .ttt-footer-logo img {
  max-height: 3.5rem;
}

.ttt-footer-legal {
  max-width: 100rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ttt-line);
  font-size: 0.85rem;
}

.ttt-footer-legal a {
  color: var(--ttt-ink);
  text-decoration-color: var(--ttt-accent);
  text-underline-offset: 0.25em;
  text-transform: lowercase;
}

/* Standard WordPress pages and posts */
.ttt-standard-header,
.ttt-standard-main {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
}

.ttt-standard-header {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--ttt-line);
}

.ttt-standard-header .ttt-brand-name {
  max-width: none;
  font-size: 1.2rem;
  line-height: 1;
}

.ttt-standard-main {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.ttt-standard-main article + article {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--ttt-line);
}

.ttt-entry-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: lowercase;
}

.ttt-entry-title a {
  text-decoration: none;
}

.ttt-entry-content {
  font-size: 1.1rem;
}

.ttt-entry-content > * {
  max-width: 46rem;
}

.ttt-entry-content > .alignwide {
  max-width: 58rem;
}

.ttt-entry-content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  display: block;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--ttt-panel);
  color: var(--ttt-ink);
  font-weight: 700;
}

/* Keep the four square images inside the first screen on wider layouts. */
@media (min-width: 601px) {
  .ttt-gallery-section {
    display: flex;
    min-height: 33rem;
    flex-direction: column;
    container-type: size;
  }

  .ttt-gallery {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, min(calc(50% - 0.5rem), max(7rem, calc(50svh - 6rem - var(--ttt-admin-offset))))));
    grid-template-columns: repeat(2, minmax(0, min(calc(50% - 0.5rem), max(7rem, calc(50cqh - 2.5rem)))));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: center;
    justify-content: center;
  }

  .ttt-city-card {
    align-self: center;
  }
}

@media (min-width: 901px) {
  .ttt-gallery-section {
    height: calc(100svh - var(--ttt-admin-offset));
  }
}

@media (min-width: 901px) and (max-height: 720px) {
  .ttt-sidebar {
    gap: 1rem;
    overflow-y: auto;
  }

  .ttt-nav {
    margin-block: 0;
    padding-block: 0.75rem;
  }

  .ttt-sidebar-note {
    display: none;
  }
}

@media (max-width: 900px) {
  .ttt-site-shell {
    display: block;
  }

  .ttt-sidebar,
  .admin-bar .ttt-sidebar {
    position: relative;
    z-index: 5;
    top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 0;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--ttt-line);
  }

  .ttt-brand-name {
    max-width: none;
    font-size: 1.2rem;
    line-height: 1.05;
  }

  .ttt-brand-mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .ttt-brand-mark svg {
    width: 2.15rem;
    height: 2.15rem;
  }

  .ttt-logo-image {
    width: 3.5rem;
    height: 3.5rem;
  }

  .ttt-nav {
    margin: 0;
    padding: 0;
  }

  .ttt-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem 1rem;
  }

  .ttt-nav a::before,
  .ttt-sidebar-note {
    display: none;
  }

  .ttt-intro-prompt {
    grid-column: 1 / -1;
    display: flex;
    max-width: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .ttt-intro-prompt-kicker,
  .ttt-intro-prompt-text {
    margin: 0;
  }

  .ttt-intro-prompt-link {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .ttt-introduction-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ttt-footer-inner {
    grid-template-columns: 1fr;
  }

  .ttt-footer-partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ttt-gallery-section {
    min-height: auto;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .ttt-site-shell {
    display: grid;
    height: calc(100svh - var(--ttt-admin-offset));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ttt-content {
    min-height: 0;
  }

  .ttt-gallery-section {
    height: 100%;
    min-height: 33rem;
  }

  .ttt-maps-shell {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 782px) {
  body.admin-bar {
    --ttt-admin-offset: 46px;
  }

  .admin-bar .ttt-sidebar {
    top: auto;
  }
}

@media (max-width: 600px) {
  .ttt-sidebar,
  .admin-bar .ttt-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ttt-nav ul {
    justify-content: flex-start;
  }

  .ttt-intro-prompt {
    display: block;
  }

  .ttt-intro-prompt-kicker,
  .ttt-intro-prompt-text {
    margin-bottom: 0.6rem;
  }

  .ttt-intro-prompt-link {
    margin-left: 0;
  }

  .ttt-gallery {
    grid-template-columns: 1fr;
  }

  .ttt-information {
    grid-template-columns: 1fr;
  }

  .ttt-footer-partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ttt-footer-collaborators {
    gap: 0.5rem;
  }

  .ttt-maps-teaser-link {
    grid-template-columns: minmax(5rem, 0.45fr) minmax(0, 1fr);
    padding: 0.7rem;
  }

  .ttt-maps-teaser-action {
    grid-column: 2;
  }

  .ttt-maps-content {
    padding: 1.1rem;
  }

  .ttt-map-stage {
    height: clamp(24rem, 60svh, 36rem);
  }

  .ttt-map-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ttt-map-point-card {
    top: 0.6rem;
    right: 0.6rem;
    width: min(20rem, calc(100% - 1.2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ttt-map-image,
  .ttt-art-image,
  .ttt-nav a::before {
    transition: none;
  }
}
