main {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

section {
  width: 50vw;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.75vh;
}


/* ----- Lightbox preset, img Tags class="images" für Bilder die documentQueryAll durchlaufen ----- */
img.thumbs {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0.75vh;
  border-top: dotted 1px #0005;
  border-left: dotted 1px #0005;
  box-shadow: 2px 2px 10px #0005;

}

.lightbox {
	width: 100vw;
	height: 100vh;	
	background-color: rgba(0, 0, 0, 0.975);
	
	display: none;
	justify-content: center;
	align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.lightbox .lightbox-image {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 2vh;
  border-top: dotted 1px #fff5;
  border-left: dotted 1px #fff5;
  box-shadow: 2px 2px 10px #fff3;
  margin-bottom: 4vh;
}

.close-button
{
  font-size: 3rem;
  color: #fff;
	position: fixed;
	top: 2vh;
	right: 2vw;
	margin: 10px;
  padding: 0 10px;
  border-top: dotted 1px #fff5;
  border-left: dotted 1px #fff5;
  box-shadow: 2px 2px 10px #fff3;
  border-radius: 5px;
	z-index: 1001;
}

.close-button:hover {
  cursor: pointer;
}

#backwards {
  position: fixed;
  bottom: 48vh;
  left: 2vw;
  cursor: pointer;
	z-index: 1001;
}

#forwards {
  position: fixed;
  bottom: 48vh;
  right: 2vw;
  cursor: pointer;
	z-index: 1001;
}

img.controls {
  height: 6vh;
  width: auto;
  padding: 10px;
  border-top: dotted 1px #fff5;
  border-left: dotted 1px #fff5;
  box-shadow: 2px 2px 10px #fff3;
  border-radius: 7px;
	z-index: 1001;
}

.stop-scrolling {
  overflow: hidden;
}

#play-button,
#pause-button {
  position: fixed;
  left: 48vw;
  bottom: 2vh;
  width: 7vh;
  height: 7vh;
  cursor: pointer;
	z-index: 10;
}

#pause-button {
  display: none;
}

