:root {
  --header-height: 56px;
}

body {
  margin: 0;
  background-color: rgb(170, 9, 27);
  color: #000;
  font-family: "futura-pt", Futura, "Trebuchet MS", Arial, sans-serif;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: none;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(197, 11, 33, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.main-container {
  width: min(95vw, 1100px);
  margin: 24px auto;
}

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

img[name="mainimage"],
img[name="twoimage"],
img[name="threeimage"] {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.hero-clickable {
  cursor: zoom-in;
}

.hero-embed {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
}

.hero-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-embed-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
}

.hero-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
}

.hero-modal-overlay.is-open {
  display: flex;
}

.hero-modal-image {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  cursor: zoom-out;
}

.scroll-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 360px;
  background: transparent;
  border: 0;
  overflow: hidden;
  padding: 0 10px;
  box-sizing: border-box;
}

.scroll-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scroll-content a {
  color: #fff;
}

.scroll-content a:visited {
  color: #fff;
}

.scroll-content a:hover {
  color: #000;
}

.scroll-content .link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scroll-content .series-title {
  display: block;
  color: #000;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: underline;
  margin-top: 6px;
}

.scroll-content .series-title:first-child {
  margin-top: 0;
}

.box-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

#content td[align="center"] > .box-title {
  font-weight: 900;
}

#content,
#content > tbody {
  display: block;
}

#content > tbody > tr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

#content > tbody > tr:first-child {
  flex-wrap: nowrap;
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  background: rgb(170, 9, 27);
  padding-bottom: 10px;
}

#content > tbody > tr > td {
  display: block;
  flex: 1 1 280px;
  max-width: 360px;
  min-width: 0;
}

#content > tbody > tr + tr {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .main-container {
    width: 82vw;
    margin: 16px auto;
  }
}

@media (max-width: 600px) {
  .main-container {
    width: 94vw;
  }

  #content > tbody > tr:not(:first-child) {
    flex-direction: column;
    align-items: stretch;
  }

  #content > tbody > tr:not(:first-child) > td {
    flex: 1 1 auto;
    max-width: none;
  }

  #content > tbody > tr:not(:first-child) > td > .scroll-container,
  #content > tbody > tr:not(:first-child) > td > table {
    display: none;
  }

  #content > tbody > tr:not(:first-child) > td > .box-title {
    display: block;
    padding: 14px 8px;
    cursor: pointer;
    text-align: center;
  }

  #content > tbody > tr:not(:first-child) > td > .box-title:active {
    background: rgba(0, 0, 0, 0.15);
  }
}
