* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding: 2.5rem;
  background-color: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.live-clock {
  align-self: center;
  text-align: center;
  font-family: inherit;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: #000000;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 50;
  width: 100%;
}

.live-date {
  margin-top: auto;
  align-self: center;
  text-align: center;
  font-family: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: #000000;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 50;
  width: 100%;
  padding-top: 2.5rem;
  white-space: nowrap;
}

nav,
.home-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.home-nav {
  margin: auto 0;
}

.nav-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.25s ease;
  text-align: left;
}

.nav-btn:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-btn:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: 4px;
}

.tour-container,
.misc-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-view,
.misc-view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  flex: 1;
}

.tour-view.hidden,
#tour-menu-view.hidden,
#tour-gallery-view.hidden,
.misc-view.hidden,
#misc-menu-view.hidden,
#misc-post-view.hidden {
  display: none !important;
}

#tour-menu-view,
#misc-menu-view {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#tour-menu-view .nav-back,
#misc-menu-view .nav-back {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
}

#tour-menu-view .tour-nav,
#misc-menu-view .misc-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.misc-post-list {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 60vh;
  margin: auto auto;
}

.misc-post-btn {
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  white-space: nowrap;
}

.misc-post-btn:nth-child(1) {
  position: absolute;
  top: 12%;
  left: 8%;
}

.misc-post-btn:nth-child(2) {
  position: absolute;
  top: 28%;
  right: 10%;
}

.misc-post-btn:nth-child(3) {
  position: absolute;
  top: 48%;
  left: 16%;
}

.misc-post-btn:nth-child(4) {
  position: absolute;
  top: 66%;
  right: 12%;
}

.misc-post-btn:nth-child(5) {
  position: absolute;
  top: 84%;
  left: 30%;
}

.misc-post-btn:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#misc-post-view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#misc-post-view .gallery-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-description {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #000000;
  opacity: 1;
  white-space: pre-line;
  max-width: 420px;
}

.misc-media-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.seamless-post-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  gap: 0;
  line-height: 0;
}

.seamless-post-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: top;
  object-fit: contain;
}

.side-by-side-stack {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
  max-width: 960px;
  margin: auto auto;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.side-by-side-img {
  display: block;
  height: 336px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.side-by-side-img[src*="norweiganwood"] {
  height: 341px;
  max-width: 225px;
}

.tour-image-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.image-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  opacity: 1;
}

.image-btn:hover {
  opacity: 0.7;
}

.image-btn:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: 4px;
}

.image-btn img {
  display: block;
  max-height: 56px;
  max-width: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tour-image-list .image-btn:first-child img {
  max-height: 73px;
  max-width: 624px;
}

.tour-image-list .image-btn:nth-child(5) img {
  max-height: 36px;
  max-width: 320px;
}

.tour-image-list .image-btn:nth-child(n+6) img {
  max-height: 100px;
  max-width: 864px;
}

.tour-media-stage {
  width: 100%;
}

.no-media-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

.error-icon {
  max-height: 180px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  display: block;
}

.no-media {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #000000;
  opacity: 0.45;
  text-transform: lowercase;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 2.5rem;
}

.media-thumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.thumb-num {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.thumb-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  opacity: 0.85;
}

.thumb-btn:hover {
  opacity: 1;
}

.thumb-btn:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: 3px;
}

.thumb-btn img {
  max-height: 48px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-counter {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: #000000;
  opacity: 0.5;
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #000000;
  cursor: pointer;
  opacity: 0.5;
  text-transform: lowercase;
}

.lightbox-close:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lightbox-close:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: 4px;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  .live-clock {
    font-size: 0.8125rem;
  }

  .live-date {
    font-size: 0.75rem;
    padding-top: 1.5rem;
  }

  #tour-menu-view .nav-back,
  #misc-menu-view .nav-back {
    top: 1.5rem;
    left: 1.5rem;
  }

  .gallery-header .nav-back {
    margin-bottom: 0.5rem;
  }

  .tour-image-list {
    gap: 1rem;
    width: 100%;
    max-width: 85vw;
  }

  .image-btn img {
    max-height: 42px;
    max-width: 75vw;
  }

  .tour-image-list .image-btn:first-child img {
    max-height: 52px;
    max-width: 80vw;
  }

  .tour-image-list .image-btn:nth-child(5) img {
    max-height: 26px;
    max-width: 60vw;
  }

  .tour-image-list .image-btn:nth-child(n+6) img {
    max-height: 70px;
    max-width: 80vw;
  }

  .media-grid {
    gap: 1.25rem 1.75rem;
  }

  .thumb-num {
    font-size: 0.875rem;
  }

  .thumb-btn img {
    max-height: 40px;
    max-width: 90px;
  }

  .lightbox-counter {
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
  }

  .lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
  }

  .side-by-side-stack {
    gap: 2rem;
    padding: 1.5rem 0;
  }

  .side-by-side-img {
    height: 250px;
    max-width: 175px;
  }

  .side-by-side-img[src*="norweiganwood"] {
    height: 240px;
    max-width: 155px;
  }

  .misc-post-list {
    min-height: 65vh;
  }

  .misc-post-btn:nth-child(1) {
    top: 8%;
    left: 4%;
  }

  .misc-post-btn:nth-child(2) {
    top: 26%;
    right: 4%;
  }

  .misc-post-btn:nth-child(3) {
    top: 45%;
    left: 6%;
  }

  .misc-post-btn:nth-child(4) {
    top: 65%;
    right: 4%;
  }

  .misc-post-btn:nth-child(5) {
    top: 84%;
    left: 8%;
  }

  .lightbox-img {
    max-width: 94vw;
    max-height: 80vh;
  }
}

@media (max-width: 480px) {
  .nav-btn {
    font-size: 0.9375rem;
  }

  .image-btn img {
    max-height: 36px;
    max-width: 80vw;
  }

  .tour-image-list .image-btn:first-child img {
    max-height: 44px;
  }

  .tour-image-list .image-btn:nth-child(5) img {
    max-height: 22px;
  }

  .tour-image-list .image-btn:nth-child(n+6) img {
    max-height: 56px;
  }

  .media-grid {
    gap: 1rem 1.25rem;
  }
}
