.box {
  display: block;
  background-color: white;
  border-radius: 15px;
  margin-inline: max(50% - 375px, 5%);
}

body {
  font-family: Courier, monospace;
  background-color: #FFE0CD;
  margin: 0;
  min-width: 370px;
}

#custom-bg {
  position: fixed;
  top: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  background-size: cover;
}

.img-collection {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 35px;
  margin-block: 30px;
  align-items: center;
}

figcaption {
  font-family: Garamond, serif;
  text-align: center;
  font-style: italic;
  margin-top: 5px;
  display: table-caption;
  caption-side: bottom;
}

figure {
  display: table;
  padding: 0;
  margin: 0;
}
figure img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.box {
  margin-block: 17px;
}

header {
  text-align: center;
  padding-block: 10px;
  padding-inline: 15px;
  position: relative;
}

#content {
  font-size: 15px;
  font-family: Garamond, serif;
  padding: 35px;
  overflow-wrap: break-word;
}

#content *:first-child {
  margin-top: 0;
}

#content *:last-child {
  margin-bottom: 0;
}

#person {
  text-align: left;
}

#edit-date {
  font-size: 0.7em;
}

#date {
  font-size: 1.4em;
}

body {
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
}

#slideshow {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  padding: 0;
  margin: 0;
}

#slideshow-content {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}
@media (orientation: landscape) {
  #slideshow-content img, #slideshow-content video {
    height: 100%;
    width: auto;
    max-width: 100%;
  }
}
@media (orientation: portrait) {
  #slideshow-content img, #slideshow-content video {
    width: 100%;
    height: auto;
    max-height: 100%;
  }
}
#slideshow-content figure {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
#slideshow-content figcaption {
  position: absolute;
  bottom: 0;
  padding-block: 10vh;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  width: 100%;
}

#img-loader {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: 25px;
  height: 25px;
  border: 3px solid rgba(128, 128, 128, 0.5019607843);
  border-bottom-color: transparent;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*https://cssloaders.github.io/*/
#slideshow-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}
#slideshow-controls button {
  font-family: Arial;
  font-weight: bold;
  font-size: 30px;
  color: grey;
  opacity: 0.5;
  border: none;
  user-select: none;
  background-color: transparent;
  padding: 2px;
}
@media (hover: hover) {
  #slideshow-controls button:hover {
    opacity: 1;
  }
}
#slideshow-controls button:active {
  opacity: 1;
}

#home-button {
  text-decoration: inherit;
  color: inherit;
  position: absolute;
  top: 10px;
  left: 15px;
  font-weight: bold;
  font-size: 20px;
}
#home-button:hover {
  text-decoration: underline;
}
