#catalogue-page {
    justify-content: flex-start;
}

.catalogue-viewer {
    width: 100%;
}

.catalogue-header {
    margin: 1rem 0 1.5rem;
}

.catalogue-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalogue-nav {
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: #7e5434;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.catalogue-nav:hover,
.catalogue-nav:focus {
    background: #a06a42;
}

.catalogue-counter {
    min-width: 8rem;
    margin: 0;
    text-align: center;
    font-weight: 700;
}

.catalogue-frame {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 1rem;
    background: #f8f4ef;
    border: 1px solid #e2d5c8;
}

.catalogue-frame img {
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    border-radius: 0;
    box-shadow: 0 0.5rem 1.25rem rgba(61, 41, 25, 0.18);
}

.catalogue-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 0.75rem;
    overflow-x: auto;
}

.catalogue-thumb {
    flex: 0 0 5rem;
    height: 7rem;
    padding: 0.25rem;
    border: 2px solid transparent;
    background: #f8f4ef;
    cursor: pointer;
}

.catalogue-thumb.is-active {
    border-color: #7e5434;
}

.catalogue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.catalogue-empty {
    max-width: 45rem;
    margin: 2rem auto;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .catalogue-toolbar {
        gap: 0.5rem;
    }

    .catalogue-frame {
        padding: 0.5rem;
    }

    .catalogue-frame img {
        max-height: 68vh;
    }

    .catalogue-thumb {
        flex-basis: 4rem;
        height: 5.75rem;
    }
}
