#productInfoContainer a {
  width: fit-content;
  padding: 2px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--socialIconSize);
}

#productInfoContainer a div::after {
  display: none;
}

#slideshowContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-color: #00000000;
  width: 50dvw;
  /*aspect-ratio: 16/9;*/
  max-height: 80dvh;
  padding: 0;
  box-sizing: border-box;
}

#focusInstructions {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
  padding: 5px 10px;
  box-sizing: border-box;
  background-color: var(--focusColor);
  opacity: 0;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
  transition: opacity 0.2s ease;
}

#slideshowContainer:focus-visible {
  outline: var(--focusSize) solid var(--focusColor);
}

#slideshowContainer:focus-visible #focusInstructions {
  opacity: 1;
}


#slideshowContainer img {
  pointer-events: none;
}

#slideshowContainer img::after {
  content: "";
  background-color: #fff;
  opacity: 0.0001;
  inset: 0;
  z-index: 3;
}

#slideViewer {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 200px;
  border: 2px solid var(--elementBorderColor);
  box-sizing: border-box;
  z-index: 1;
  aspect-ratio: 16/9;
}

#slideViewer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0.0001;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.slide {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  background-color: var(--websiteBackgroundColor);
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
  will-change: opacity;
}

.loading {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #00000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(2rem, calc(1rem + 1vw), 300px);
  z-index: 3;
}

.nextSlide {
  z-index: 2;
  opacity: 0;
}

.slideFadeIn {
  opacity: 1;
}

#thumbnailTray {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: calc(10px + 5vw);
  min-height: 75px;
  overflow-x: auto;
  padding:  7px 5px;
  border-left: 2px solid var(--elementBorderColor);
  border-right: 2px solid var(--elementBorderColor);
  border-bottom: 2px solid var(--elementBorderColor);
  box-sizing: border-box;
  gap: 5px;
  scrollbar-width: thin;
  background-color: #121212;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarThumbColor) var(--scrollbarTrackColor);
}

#thumbnailTray::-webkit-scrollbar-thumb {
  background: var(--scrollbarThumbColor);
}

#thumbnailTray::-webkit-scrollbar-track {
  background: var(--scrollbarTrackColor);
}

#thumbnailTray li {
  height: 100%;
  aspect-ratio: 16/9;
}

#thumbnailTray button {
  all: unset;
  width: 100%;
  height: 100%;
  transition: filter 0.2s;
  cursor: zoom-in;
  border: 2px var(--elementBorderColor) solid;
  box-sizing: border-box;
}

.selected {
  border: 2px #ff8400 solid !important;
}

#thumbnailTray button:focus-visible {
  outline: var(--focusSize) solid var(--focusColor);
}

#thumbnailTray button:hover, #thumbnailTray button:focus-visible {
  filter: brightness(1.2);
}

#thumbnailTray button:active {
  filter: brightness(1.3);
}

#thumbnailTray img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #000;
}

  @media (max-width: 950px) {
    #slideshowContainer {
      width: 100%;
      padding: 0 var(--contentGap);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .slide {
      transition: opacity 0.25s linear;
    }
  }