.title-mobile {
    display: none;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.characters-background-left {
  visibility: visible;
  position: fixed;
  height: 100%;
  width: auto;
  left: 0;
  z-index: 0;
  opacity: 20%;
}

.characters-background-right {
  visibility: visible;
  position: fixed;
  height: 100%;
  width: auto;
  z-index: 0;
  opacity: 20%;
  right: 0;
}

.characters-background-mobile {
  visibility: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 0;
  opacity: 20%;
  right: 0;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4vmin;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
}

/* Arrows */
.frame-arrow {
    width: 14vmin;
    max-width: 200px;
    height: auto;
    cursor: pointer;
    z-index: 2;
    touch-action: manipulation;
}

.frame-arrow:hover {
  transform: scale(1.1);
  transition: transform 0.2s, opacity 0.2s;
}

/* Frame  */
.frame-wrapper {
    position: relative;
    width: min(60vmin, 80vw);
    max-height: 100vh;
}

.frame {
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
}

.frame-artwork {
    position: absolute;
    top: 12.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    aspect-ratio: 1 / 1;
    object-fit: scale-down;
    cursor: pointer;
    z-index: 5;
}

/* Bottom Selector */

.character-thumbnails {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: rgba(53, 57, 97, 0.5);
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
    overflow-x: auto;
}

.character-thumbnails img {
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 4px;
    padding: 0.25rem;
}

.character-thumbnails img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.character-thumbnails img.active {
    opacity: 1;
    border: 2px solid #d1d1d8;
}

/* Overlay */
.preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.preview-overlay img {
  max-width: 90vw;
  max-height: 90vh;
}

/* Mobile */
@media (max-width: 899px) {
    .title {display: none;}
    .title-mobile {
        display: block;
        position: absolute;
        top: 1rem;
        height: 15%;
        width: auto;
        align-items: center;
        z-index: 90;
        max-width: 80%;
        filter: drop-shadow(0 0 0.75rem black);
    }
    .character-thumbnails img {
        height: 45px;
        opacity: 0.5;
        cursor: pointer;
        transition: transform 0.2s, opacity 0.2s;
        border-radius: 4px;
        padding: 0.25rem;
        overflow: hidden;
    }
}

@media (max-width: 700px) {
  .characters-background-left,
  .characters-background-right {
    visibility: hidden;
  }

  .characters-background-mobile {
    visibility: visible;
  }
}