/*.grid {*/
    /*position: relative;*/
/*}*/
/*!* fluid 5 columns *!*/
/*.grid-sizer,*/
/*.grid-item {*/
/*    margin-right: 20px;*/
/*    margin-bottom: 20px;*/
/*}*/

.grid-item img {
    display: block;
    max-width: 100%;
}
.description {
    display: none;
}
.grid-item-current {
    opacity: 0 !important;
}
.img-wrap {
    display: block;
}
.img-wrap img {
    display: block;
    max-width: 100%;
}
.img-grayscale img {
    filter: grayscale(90%);
    transition: 0.4s ease-in-out;
}
.img-grayscale:hover img {
    filter: grayscale(0%);
}
.preview {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
    pointer-events: none;
}
.preview::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: #1f1d1d;
    transition: opacity 0.6s;
}
.preview-open {
    pointer-events: auto;
}
.preview-open::before {
    opacity: 1;
}
.clone {
    position: fixed;
    z-index: 110;
    transition: transform 0.5s;
}
.original {
    position: relative;
    z-index: 120;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s;
}
.preview-open .animate {
    transition: transform 0.6s, opacity 0.2s;
}
.animate {
    transition: transform 0.3s, opacity 0.2s;
}
.description {
    color: #fff;
}
.js .description-grid {
    display: none;
}
.description-preview {
    font-size: 1.2em;
    position: absolute;
    z-index: 140;
    width: 100%;
    left: 100%;
    top: 0;
    height: 100%;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 1s, transform 1s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transform: translate3d(0, 30px, 0);
}
.preview-open .description-preview {
    opacity: 1;
    transition-delay: 0.2s;
    transform: translate3d(0, 0, 0);
}
.description-preview h3 {
    font-weight: 400;
    margin: 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.dark .description-preview h3 {
    color: #fff;
}
.description-preview p {
    font-size: 17px;
    font-weight: 300;
    color: #555;
    max-width: 100%;
    margin-top: 20px;
}
.dark .description-preview p {
    color: #ccc;
}
.description-preview p span {
    color: #888;
    font-size: 14px;
    display: block;
    font-weight: 300;
    padding: 10px 0 0;
}
.dark .description-preview p span {
    color: #aaa;
}
.details {
    max-width: 100%;
}
.details ul {
    line-height: 1;
    position: relative;
    margin: 10px;
    padding: 0;
    list-style: none;
}
.details ul li {
    font-size: 0.8em;
    position: relative;
    display: inline-block;
    margin: 0 1em 0 0;
    padding: 0.15em 0;
    white-space: nowrap;
    opacity: 0;
    color: #9d9d9d;
    transition: transform 1s, opacity 1s;
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transform: translate3d(0, 20px, 0);
}

.preview-open .description-text {
    margin: 10px;
}

.preview-open .details ul li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.preview-open .details ul li:nth-child(1) {
    transition-delay: 0.2s;
}
.preview-open .details ul li:nth-child(2) {
    transition-delay: 0.3s;
}
.preview-open .details ul li:nth-child(3) {
    transition-delay: 0.4s;
}
.preview-open .details ul li:nth-child(4) {
    transition-delay: 0.5s;
}
.preview-open .details ul li:nth-child(5) {
    transition-delay: 0.6s;
}
.details ul li:first-child {
    font-weight: 700;
    color: #909090;
}
.details i + .details i span {
    margin-left: 5px;
    vertical-align: middle;
}
.details i {
    margin-right: 5px;
    color: #c85e51;
}
.action {
    font-size: 40px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    vertical-align: top;
    color: #c85e51;
    border: none;
    background: 0 0;
}
.action:hover,
.action:focus {
    color: #c85e51;
    outline: none;
}
.action-close {
    position: fixed;
    z-index: 150;
    top: 30px;
    right: 30px;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale3d(0.6, 0.6, 1);
}
.preview-image-loaded .action-close {
    opacity: 1;
    transform: scale3d(1, 1, 1);
}
.text-hidden {
    position: absolute;
    display: block;
    overflow: hidden;
    width: 0;
    height: 0;
    color: transparent;
}

@media screen and (max-width: 768px) {

    .preview {
        display: block;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
    }

    .preview-wrap {
        margin-top: 140px;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .description-preview {
        left: 0;
        font-size: 14px;
        display: block;
        text-align: center;
        position: relative;
    }

    .description-preview li {
        text-align: left;
    }
    .description-preview h3 {
        font-size: 18px;
        margin: 20px;
    }

    .description-preview .video {
        margin: 10px;
    }

    .description-preview .audio {
        margin: 10px;
    }

    .description-preview ul {
        margin: 20px;
    }

    .original {
        order: -1;
    }

    .details ul li {
        font-size: 14px;
    }
}
