.graphic-reader {
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 90vh;
    padding: 0 12px 24px;
    box-sizing: border-box;
}

.graphic-reader > img,
.graphic-reader__image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    transition: width .18s ease;
}

.graphic-reader__navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    max-width: min(720px, 96vw);
    width: 100%;
    justify-content: space-between;
}

.graphic-reader__navigation > select {
    flex: 1 1 240px;
    min-width: 180px;
    max-width: 360px;
}

.graphic-reader__navigation > div {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 10px;
}

@media screen and (max-width: 500px) {
    .graphic-reader {
        gap: 14px;
        padding-inline: 8px;
    }

    .graphic-reader > img,
    .graphic-reader__image {
        max-height: calc(100vh - 150px);
    }

    .graphic-reader__navigation {
        justify-content: center;
    }

    .graphic-reader__navigation > select {
        flex-basis: 100%;
        max-width: 100%;
    }
}
