html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#fullscreen-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullscreen-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--next-bg-color);
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: -1;
}

#fullscreen-wrapper.is-transitioning::before {
  opacity: 1;
}

#image-container {
  width: 90vmin;
  position: relative;
  aspect-ratio: 1; /* This will make it a square */
}

#image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#image-container img.active {
  opacity: 1;
}

#image-link {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
  cursor: pointer;
}
