* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  display: grid;
  justify-content: center;
  align-items: center;
}

#wrapper {
  display: grid;
  min-height: 400px;
  grid-template-rows: minmax(340px, 50vh) auto;
  grid-template-columns: 1fr;
  gap: 20px;
  user-select: none;
  margin: 10px;
  max-width: 700px;
}

#displayWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media only screen and (max-width: 720px) {
  #displayWrapper {
    width: calc(100vw - 40px);
  }
}

#displayWrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#buttonsWrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows: 200px; */

  grid-auto-rows: 1fr;
}

@media only screen and (max-width: 600px) {
  #buttonsWrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  #wrapper {
    gap: 10px;
  }
}

@media only screen and (max-width: 450px) {
  #buttonsWrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 300px) {
  #buttonsWrapper {
    grid-template-columns: repeat(1, 150px);
    grid-auto-rows: 150px;
    justify-content: center;
  }
}

.buttonContainer {
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.buttonContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.button-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.buttonContainer:hover .imgThumb {
  transform: scale(1.2);
}

.active .imgThumb {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.active {
  cursor: auto;
  box-shadow: inset 0 0 0 1px rgb(129, 129, 129);
}

.active:hover .imgThumb {
  transform: scale(1);
}

/* Video */
video {
  background: white !important;
  outline: none;
  clip-path: inset(-10px);
  border: none;
}

.video-js {
  background: white !important;
}

.vjs-poster {
  background: transparent !important;
}

video:focus {
  outline: none;
}
