:root {
  color-scheme: light;
  --ink: #050505;
  --hot: #ff0000;
  --paper: rgba(255, 255, 255, 0.82);
  --glow: 0 0 3px rgba(255, 255, 255, 1), 0 0 7px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 1);
  font-family: "TrashHand", "Trebuchet MS", system-ui, sans-serif;
  font-size: 20px;
}

@font-face {
  font-family: "TrashHand";
  src: url("fonts/TrashHand.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #7d7871 url("data/img/background.jpg") center center / cover fixed;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  text-shadow: var(--glow);
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

#site {
  min-height: 100vh;
  text-align: center;
}

#header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  align-items: center;
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.menu {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.18rem;
  width: 100%;
  min-width: 0;
  min-height: 158px;
  margin: 0 auto;
  padding: 2% 0;
  text-align: center;
}

.menu-element {
  display: block;
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: normal;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-element:hover,
.menu-element.on,
.track-button:hover,
.track-button.playing {
  color: var(--hot);
}

#logo {
  display: grid;
  justify-items: center;
  width: 220px;
}

#logo img {
  width: 80%;
  height: auto;
  margin-bottom: -28px;
  object-fit: contain;
}

#logo span {
  font-size: 1.15rem;
  font-weight: normal;
}

.social-menu {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 1.6rem;
}

img.icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

#central {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

#content {
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 25px;
}

#content.nothome {
  text-align: left;
}

#content.home {
  text-align: center;
}

.image-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

img.photo {
  width: 70%;
  max-width: 100%;
  margin: 10px;
  border: 3px solid black;
  border-radius: 10px;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 0 2px rgba(255, 255, 255, 1)) drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}

.gallery .image-button {
  cursor: zoom-in;
}

.home-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.home-socials img.icon {
  width: 10%;
  min-width: 28px;
  max-width: 42px;
  height: auto;
}

#content.home img.photo {
  width: 90%;
}

h3 {
  margin: 28px 0 12px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: normal;
  text-decoration: underline overline;
  text-transform: uppercase;
}

#player-control {
  display: grid;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 28px auto 30px;
  padding: 18px;
  border: 3px solid black;
  border-radius: 15px 50px 15px 50px;
  background: var(--paper);
  box-shadow: 0 0 5px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 1), 0 0 15px rgba(255, 255, 255, 1);
  text-shadow: none;
}

.playlist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.track-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.transport {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.transport button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  text-shadow: none;
}

.transport button:hover {
  border-color: var(--hot);
  color: var(--hot);
}

.transport button[data-action="previous"]::before {
  content: "<<";
}

.transport button[data-action="play"]::before {
  content: ">";
  margin-left: 2px;
}

.transport button[data-action="play"].pause::before {
  content: "||";
  margin-left: 0;
}

.transport button[data-action="next"]::before {
  content: ">>";
}

#timer {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 1.45rem;
  font-weight: 900;
}

.setlist {
  display: grid;
  gap: 3px;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.img-container {
  position: relative;
  margin: 0;
  text-align: center;
}

.img-container .image-button {
  position: relative;
}

.img-container figcaption {
  position: absolute;
  right: calc(15% + 18px);
  bottom: 22px;
  max-width: calc(70% - 36px);
  padding: 2px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  line-height: 1.1;
  text-shadow: none;
  pointer-events: none;
}

.video-item {
  margin-bottom: 26px;
}

.video-item video {
  display: block;
  width: min(640px, 100%);
  height: auto;
  border: 3px solid black;
  border-radius: 10px;
  background: black;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}

.tour ul {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.photo-lightbox.is-open {
  display: block;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
}

.photo-lightbox-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: 56px minmax(0, 1fr) 56px;
  align-items: center;
  justify-items: center;
  padding: 12px;
}

.photo-lightbox-stage {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.photo-lightbox-image {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: none;
  margin: 0;
}

.photo-lightbox-credit {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  line-height: 1.1;
  text-shadow: none;
}

.photo-lightbox-counter {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  text-shadow: none;
}

.photo-lightbox-prev,
.photo-lightbox-next,
.photo-lightbox-close {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  pointer-events: auto;
}

.photo-lightbox-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.photo-lightbox-close::before {
  content: "x";
  font-size: 1.1rem;
}

.photo-lightbox-prev {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.photo-lightbox-next {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

.photo-lightbox-prev::before {
  content: "<";
  font-size: 1.2rem;
}

.photo-lightbox-next::before {
  content: ">";
  font-size: 1.2rem;
}

.photo-lightbox-prev:hover,
.photo-lightbox-next:hover,
.photo-lightbox-close:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-aspect-ratio: 1/1) {
  #header {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 26vw) minmax(0, 1fr);
  }

  .menu-element {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
  }

  .menu {
    min-height: clamp(150px, 24vw, 260px);
  }

  #logo img {
    margin-bottom: -14px;
  }

  #content {
    width: 100%;
  }

  img.photo {
    width: 90%;
  }

  .setlist {
    padding-left: 10px;
  }

  .img-container figcaption {
    right: calc(5% + 18px);
    max-width: calc(90% - 36px);
  }

  .photo-lightbox-panel {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    padding: 8px;
  }

  .photo-lightbox-image {
    max-width: calc(100vw - 88px);
    max-height: calc(100vh - 104px);
  }

  .photo-lightbox-credit {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 120px);
  }
}

@media (max-width: 620px) {

  /* body::before {
    content: "MOBILE MEDIA ACTIVE";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: red;
    color: white;
    padding: 6px 10px;
    font-size: 18px;
    font-family: sans-serif;
  } */
  html,
  body {
    overflow-x: hidden;
  }

  .menu-element {
    width: auto;
    max-width: 100%;
  }

  #content {
    width: 100%;
    padding: 0 12px;
  }
  #header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 0;
    margin-bottom: 0;
    overflow: visible;
  }

  #logo {
    width: 150px;
  }

  .menu {
    display: grid;
    gap: 2px;
    min-height: 120px;
    width: 100%;
  }

  .menu-element {
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
  }

  .social-menu {
    min-height: 0;
  }

  #logo img {
    width: 100%;
    margin-bottom: -10px;
  }

  #central {
    padding-top: 8px;
  }
}
