body.show-preview {
    overflow: hidden;
}

.content-preview {
    opacity: 0;
    position: fixed;
    top: -100vh;
    left: -100vw;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.content-preview.show {
    opacity: 1;
    pointer-events: all;
    opacity: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


body.show-preview {
    overflow: hidden;
}

/* ******** PREVIEW CONTENT ******** */

.content-preview .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5em 0;
    overflow: auto;
}

.content-preview .content .imagescroll {
    width: 80vw;
    column-count: 1;
    column-gap: 1em;
    margin: auto;
    column-fill: balance;
}

@media only screen and (min-width: 768px) {
    .content-preview .content .imagescroll {
        column-count: 2;
    }
}

.content-preview .content p {
    margin: 0;
}

.content-preview .content .imagescroll iframe,
.content-preview .content .imagescroll img {
    width: 100%;
    border: none;
    cursor: zoom-in;
    margin-bottom: 1em;
}

.content-preview .content .imagescroll .no-images {
    width: 80vw;
    height: 10em;
    line-height: 10em;
    margin: auto;
    text-align: center;
    /* background-color: #ccc; */
    cursor: not-allowed;
    color: #888;
    background-image: linear-gradient(to bottom, transparent 5%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.4) 70%, transparent 95%);
}

.content-preview h2 {
    width: 80vw;
    margin: auto;
    color: #ccc;
    font-size: 2em;
    line-height: 1.1em;
}

.content-preview h2 i {
    font-size: 0.8em;
    color: #888;
}

/********************************/

.content-preview .details-table {
    width: 80vw;
    margin: 1em auto;
    background: transparent;
    border: none;
    box-shadow: none;
    border-collapse: collapse;
}

.content-preview .details-table tr {
    cursor: auto;
}

.content-preview .details-table tr:not(:last-child) {
    border-bottom: 1px solid #777;
}

.content-preview .details-table th,
.content-preview .details-table td {
    background: none;
    border: none;
    box-shadow: none;
    font-size: .8em;
    text-shadow: none;
    color: #aaa;
    vertical-align: top;
    position: relative;
    width: 50%;
    white-space: pre-line;
}

/********************************/


.content-preview .description {
    width: 80vw;
    margin: 1em auto;
    color: #fff;
    white-space: pre-wrap;
}


.content-preview .description h4 {
    margin-top: .5em;
}

.content-preview .clearfix {
    clear: both;
}

@media only screen and (min-width: 768px) {
    .content-preview .details-and-description {
        width: 80vw;
        margin: auto;
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .content-preview .details-and-description .details-table {
        width: calc(40vw - .5em);
        margin: 0;
        margin-right: .5em;
        float: left;
    }

    .content-preview .details-and-description .description {
        display: inline-block;
        width: calc(40vw - .5em);
        margin: 0;
        margin-left: .5em;
    }
}

.content-preview .content a {
    color: #4488aa;
    text-decoration: none;
}

.content-preview .underlay {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CLOSE BUTTON FOR PREVIEW */

.content-preview .close {
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    width: 5em;
    height: 5em;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.3);
    line-height: 5em;
    text-align: center;
}

.content-preview .close::before {
    content: '\2715';
    font-size: 5em;
}

.content-preview .tags {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 2em;
    padding: 0.25em .5em;
    margin-right: 0.5em;
}
