#cover {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    position: relative;
    list-style: inside none;
}

#cover[hidden] {
    display: none;
}

#cover li {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#cover p strong {
    color: lightskyblue;
    text-shadow: 0.1rem 0.1rem 0.1rem lemonchiffon;
}

#cover p {
    display: grid;
    text-align: center;
    place-items: center;
    position: absolute;
    z-index: 1;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 1rem);
}

#cover p strong {
    font-size: 321%;
    line-height: 90%;
    transform: scale(1, 3.21);
    margin: 4rem 0;
    font-family: "Kristina", "KikaiChokoku", 'Arial Narrow', sans-serif;
    font-weight: 900;
}

#cover p small {
    background: #fff;
    border-radius: 0.5rem;
    font-family: 'KikaiChokoku', 'Arial Narrow', sans-serif;
    font-size: 125%;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

@media (orientation: landscape) {
    #cover {
        min-height: 56.25vw;
    }

    #cover li {
        width: calc(100% / 3);
        aspect-ratio: 16 / 9;
    }
}

@media (orientation: portrait) {
    #cover {
        font-size: 2.22vw;
        min-height: 100vw;
    }

    #cover li {
        width: calc(100% / 3);
        aspect-ratio: 1 / 1;
    }
}

@media screen and (width: 1080px) {
    #cover {
        font-size: 3.21vw;
    }

    #cover li {
        width: calc(100% / 3);
        aspect-ratio: 9 / 16;
    }
}

@media screen and (max-width: 550px) {
    #cover {
        font-size: 3.21vw;
    }

    #cover li {
        width: calc(100% / 3);
        aspect-ratio: 9 / 16;
    }
}