html {
  margin: auto;
}

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  z-index: 1;
  clear: both;
}

.indexbox {
  /* Make fixed and keep centered horizontally */
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 10px;
  width: 600px;
  max-width: 90vw;
  height: auto;
  background-color: transparent;
  text-align: center;
  margin: 0; 
  border-bottom: #000 solid 1px;
}

.bottombox {
  /* Make fixed and keep centered horizontally */
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 10px;
  width: 600px;
  max-width: 90vw;
  height: auto;
  background-color: transparent;
  text-align: center;
  margin: 0; 
  z-index: -1;
}


.columnright {
  width: 67vw;
  top: 120px;
  max-width: 1900px;
  margin: 0 auto;
  display: block;
  position: relative;
  background-color: transparent;
  padding-bottom: 80px;
}

.columnright .imagesection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}
.columnright .imagesection a {
  display: block;
  width: 100%;
}
.columnright .imagesection img.large {
  width: 100%;
  height: auto;
  display: block;
}

.columnright2 {
  width: 45vw;
  top: 120px;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  position: relative;
  background-color: transparent;
  padding-bottom: 80px;

}

.imagesection2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

#informationbox {
  position: absolute;
  padding: 1%;
  width: 97vw;
  background-color: transparent;
  font-size: 12px;
  clear: both;
}

#smallbox {
  position: fixed;
  padding: 10px;
  top: 10px;
  right: 10px;
  width: 33px;
  background-color: transparent;
  z-index: 4;
  clear: both;
}

#textbox {
  width: 80%;
  height: auto;
  margin: 0 auto;
  padding: 33px;
  position: relative;
  text-align: justify;
  z-index: -1;
}

.indexbutton {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: transparent;
  z-index: 3;
}

.imagesection {
  position: relative;
  z-index: 1;
}

.img-fit {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  loading: lazy; 
}
#infobox {
  position: fixed;
  padding: 2px;
  width: 444px;
  background-color: transparent;
  text-align: left;
  overflow: visible;
  z-index: 1;
}

a.black {
  color: #000;
  font-size: 12px;
  /* transition: transform 0.8s; */
  text-decoration: none;
  display: inline-block;
}

a.black:hover {
  transform: scaleX(-1);
  font-size: 12px;
}

a.black2 {
  color: #000;
  /* transition: transform 0.8s; */
  text-decoration: none;
  display: inline-block;
}

a.black2:hover {
  transform: scaleY(-1);
}

a.antiquewhite {
  color: var(--link-color, #000);
  transition: filter 0.5s;
  display: inline-block;
  text-decoration: none;
}

a.antiquewhite:hover {
  transform: scale(-1, 1);
}

#splash {
  position: fixed;
  width: 699px;
  height: auto;
  bottom: 10px;
  right: 10px;
  border: #000 solid 1px;
}

.link-invert img {
  transition: filter 0.5s ease;
}

.link-invert:hover img {
  filter: invert(100%);
}

a:has(img) {
  position: relative;
  display: inline-block;
}

a:has(img)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 245, 220, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

a:has(img):hover::after {
  opacity: 1;
}

/* Exempt .link-invert from overlay effect */
a.link-invert:has(img)::after {
  display: none !important;
}

.upside-down-text {
  transform: scaleY(-1);
  display: inline-block; /* Essential for applying transform to inline elements */
}

/* Responsive styles */
@media only screen and (max-width: 850px) {
  body {
    font-size: 12px;
  }

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

  .columnright .imagesection {
    grid-template-columns: 1fr;
  }

  .columnright,
  .columnright2 {
    width: 96vw;
    max-width: 99vw;
    top: 120px;
    margin: 0 auto;
    display: block;
    position: relative;
    font-size: 12px;
  }

  #splash {
    width: 96vw;
  }

  #informationbox,
  .horizontal {
    position: relative;
    left: 0;
    top: 20px;
    padding: 0 0 20px 0;
    width: 100%;
    height: auto;
    background-color: transparent;
    text-align: left;
  }

  .indexbox {
    position: fixed;
    top: 10px;
    padding: 10px;
    width: 600px;
    max-width: 90vw;
    height: auto;
    background-color: transparent;
    text-align: center;
    writing-mode: horizontal-tb;
    margin: 0 auto;
  }

}

