html, body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}



.gallery{
  position: relative;
  width: 100%;
  max-width: 530px;
  aspect-ratio: 2 / 3;
}


.gallery-wrapper{
  padding: 20px;
  box-sizing: border-box;
}

.slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* oder contain */
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  cursor: pointer;
}

.slide.active{
  opacity: 1;
}



/* Videos im festen 2:3 Hochformat */
video.slide{
  aspect-ratio: 2 / 3;
  width: auto;
  height: 100%;
  margin: auto;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  background: #000;
}


/* Videos sollen ohne Controls laufen */
video.slide{
  background:#000;
}