:root {
  color-scheme: dark;
  --page-bg: #800000;
  --text: #c0c0c0;
  --footer-bg: #aaa;
  --footer-text: #800000;
  --frame-width: 995px;
  --menu-width: 150px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

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

a {
  color: #a0a0a0;
  font-weight: 700;
}

a:hover,
a:focus-visible {
  color: #fff;
}

.page-shell {
  width: min(var(--frame-width), calc(100% - 24px));
  min-height: 590px;
  margin: 4vh auto 20px;
}

.layout {
  display: grid;
  grid-template-columns: var(--menu-width) minmax(0, 830px);
  gap: 15px;
  align-items: start;
}

.menu-toggle {
  display: none;
}

.menu {
  padding: 42px 0 20px;
}

.language-switcher {
  display: flex;
  width: 150px;
  min-height: 32px;
  margin: 0 0 4px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.menu .language-switcher a {
  display: grid;
  width: 42px;
  height: 30px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
}

.menu .language-switcher a:hover,
.menu .language-switcher a:focus-visible,
.menu .language-switcher a[aria-current="page"] {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.menu a {
  display: flex;
  width: 150px;
  height: 33px;
  margin: 10px 0;
  align-items: center;
  justify-content: center;
  background: url("assets/images/menu-button.gif") no-repeat 0 -33px;
  color: #202020;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] {
  background-position: 0 0;
  color: #fff;
  outline: none;
}

.main {
  min-width: 0;
}

.site-title {
  display: block;
  width: 830px;
  height: 125px;
  object-fit: contain;
}

.maincontent {
  width: 100%;
  height: 465px;
  overflow: auto;
  padding: 0;
  text-align: left;
  scrollbar-color: #aaa #660000;
}

.content-copy {
  color: var(--text);
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 16px;
  line-height: 1.45;
}

.home-photo {
  display: block;
  width: 300px;
  margin: 32px auto 24px;
}

.home-copy {
  margin: 0 40px;
}

.description-list {
  display: grid;
  gap: 8px;
  padding: 0 8px 8px;
}

.description-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.description-row:nth-child(even) .description-text {
  order: 2;
}

.description-row:nth-child(even) .description-photo {
  order: 1;
}

.description-photo {
  display: block;
  width: 100%;
  max-height: 306px;
  object-fit: cover;
}

.description-text {
  padding: 10px;
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: center;
  max-width: 700px;
  margin: 16px auto 0;
}

.visit-photo {
  width: 300px;
  height: 400px;
  object-fit: cover;
}

.route-card {
  display: grid;
  place-items: center;
  min-height: 350px;
  margin: 18px auto 0;
  padding: 34px;
  border: 1px solid #a0a0a0;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.route-card address {
  margin-bottom: 24px;
  font-style: normal;
}

.route-link {
  color: #76a9ff;
  font-size: 20px;
}

.links-list {
  width: min(520px, calc(100% - 32px));
  margin: 18px auto;
  padding: 0;
  list-style: none;
}

.links-list li {
  margin: 0 0 26px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 6px 12px 16px;
}

.gallery a {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 5px;
  background: rgba(0, 0, 0, 0.08);
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.lightbox {
  width: min(92vw, 1080px);
  max-width: none;
  padding: 0;
  border: 1px solid #aaa;
  background: #360000;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  margin: auto;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(80, 0, 0, 0.82);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 0;
  padding: 6px;
  border-top: 2px solid #999;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-weight: 700;
}

.footer a {
  color: #0000ff;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 16px, 830px);
    margin-top: 8px;
  }

  .layout {
    display: block;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 14px;
    border: 1px solid #aaa;
    background: #650000;
    color: #fff;
    font: 700 14px Verdana, Arial, sans-serif;
    cursor: pointer;
  }

  .menu {
    display: none;
    grid-template-columns: repeat(2, 150px);
    justify-content: center;
    gap: 0 10px;
    padding: 0 0 8px;
  }

  .language-switcher {
    grid-column: 1 / -1;
    margin-inline: auto;
  }

  .menu.is-open {
    display: grid;
  }

  .site-title {
    width: 100%;
    height: auto;
  }

  .maincontent {
    height: auto;
    min-height: 465px;
    overflow: visible;
  }

  .description-row,
  .visit-layout {
    grid-template-columns: 1fr;
  }

  .description-row .description-text,
  .description-row .description-photo {
    order: initial !important;
  }

  .description-photo,
  .visit-photo {
    width: 100%;
    max-height: none;
  }

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

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .menu {
    grid-template-columns: 150px;
  }

  .home-copy {
    margin: 0 16px;
  }

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