/* Extend main.css styles */
.w-50pc {
    width: 50%;
}

.w-60pc {
    width: 60%;
}

.w-75pc {
    width: 75%;
}

.w-80pc {
    width: 80%;
}

.h-inherit {
    height: inherit;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.pt-20px {
    padding-top: 20px;
}

.docs-categories {
    overflow: auto;
    white-space: nowrap;
    margin-bottom: 20px;
}

/* Page */
.page-cover-image {
    max-height: 400px;
    object-fit: contain;
}


/* Page list */
.preview-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 200px;
    align-items: stretch;
}

.preview-container .left-container {
    /* background-color: red; */
    width: 30%;
    margin-right: 1em;
    display: flex;
    height: inherit;
    justify-content: center;
    align-items: start;
}

.preview-container .left-container .cover-image {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-container .right-container {
    /* background-color: green; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: -20px;
    height: auto;
    flex-grow: 1;
}

.continue-reading {
    /* background-color: yellow; */
    text-align: right;
    font-style: italic;
    flex-shrink: 0;
    padding: 0.5em;
    height: auto;
    margin-top: auto;
    vertical-align: bottom;
    align-self: end;
}

.page-preview {
    /* background-color: blue; */
    text-align: left;
    overflow: hidden;
    text-overflow: clip;
    /* flex-grow: 1; */
    padding-top: -20px;
    align-self: start;
}

/* Fade text */
.fade-text {
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* Article figure */
.article-fig {
    max-height: 500px;
    object-fit: contain;
}