body {
  overflow-y: auto;
}

main {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5rem 2rem 3rem;
  gap: 1rem;
}

.editorial-header {
  text-align: left;
  width: 100%;
  padding-left: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.editorial-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 1000;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.info-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.5;
    margin: 0.2rem 0;
}

.image-hover {
    position: absolute;
    bottom: 3rem;
    right: 5rem;
    width: 200px;
    aspect-ratio: 2 / 3;
    cursor: pointer;
}

.hover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease;
}

.hover-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease;
    color: rgb(235, 63, 40);
}

.hover-text span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    width: 1ch;
    overflow-wrap: break-word;
    word-break: break-all;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
}

.image-hover:hover .hover-image {
    opacity: 0;
}

.image-hover:hover .hover-text {
    opacity: 1;
}


@media (max-width: 600px) {

    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .editorial-header {
        padding-left: 1.5rem;
        margin-top: 4rem;
        margin-bottom: 0;
    }

    .editorial-title {
        font-size: clamp(4rem, 13vw, 6rem);
        line-height: 1;
        margin-bottom: 1rem;
    }

    .info-text {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        line-height: 1.4;
    }

    .image-hover {
        position: absolute;
        right: 1rem;
        bottom: 4rem;
        width: 140px;
        aspect-ratio: 2 / 3;
        margin: 0;
    }

    .image-hover:hover .hover-image {
        opacity: 1;
    }

    .image-hover:hover .hover-text {
        opacity: 0;
    }

    .image-hover.tapped .hover-image {
        opacity: 0;
    }

    .image-hover.tapped .hover-text {
        opacity: 1;
    }

    .hover-text {
        justify-content: flex-start;
        align-items: center;
        padding-top: 1rem;
        padding-left: 0;
        padding-right: 0;
        pointer-events: none;
    }

    .hover-text span {
        position: relative;
        left: 65px;
        top: -10;
    }

    .footer-line {
        position: fixed;
        bottom: 0rem;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 0.3rem;
    }

}
