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

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

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

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

.digital {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    width: 100vw;
    box-sizing: border-box;
    z-index: 1;
    margin: 2%;
}

.digital-left {
    width: 20%;
    max-width: 400px;
    z-index: 3;
    margin-right: -18vmin;
    margin-top: 28vmin;
}

.digital-right {
    width: 20%;
    max-width: 400px;
    z-index: 3;
    margin-left: -18vmin;
    margin-bottom: 28vmin;
}

.digital-center-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
}

.digital-center {
    width: 100%;
    display: block;
}

.center-overlay {
    position: absolute;
    top: 14%;
    left: 10%;
    width: 79%;
    height: 65%;
    pointer-events: auto;
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-scaler {
    transform-origin: center;
    display: inline-block;
}

/* Masonry */
.image-grid {
    column-count: 4;
    column-gap: 0.5vmin;
}

.image-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 0.8vmin;
    cursor: pointer;
    display: block;
    break-inside: auto;
}

.image-grid img:hover {
    transform: scale(1.1);
    transition: transform 0.2s, opacity 0.2s;
}

/* Preview */
.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;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* Title */
.digital-title {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 1rem;
    height: 10vh;
    z-index: 90;
    filter: drop-shadow(0 0 0.75rem black);
    width: 100%;
    align-items: center;
    gap: 5vw;
}

.digital-title-text {
    height: 100%;
    width: auto;
    max-width: 100%; 
}

.digital-hearts {
    height: 50%;
    width: auto;
    max-width: 100%;
}

/* Doodles */

.digital-pointer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10%;
    height: auto;
}

.digital-hourglass {
    position: absolute;
    top: 0;
    right: 0;
    width: 10%;
    height: auto;
}

.digital-heartstack {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10%;
    height: auto;
}

/* Mobile */
@media (max-width: 750px) {
    .digital-hearts {
        display: none;
    }
}

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

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