.playbox *, .playboximage * {
    margin: 0;
    border: 0;
    padding: 0;
    box-sizing: border-box;
}

.playbox, .playboximage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: auto;
    background-color: rgba(0, 0, 0, .46);
    display: none;
    grid-template-rows: auto max-content;
    grid-template-columns: 100%;
    -ms-grid-rows: 1fr max-content;
    -ms-grid-columns: 1fr;
}

.playbox.playbox-fade-in,
.playboximage.playbox-fade-in {
    display: grid;
    display: -ms-grid;
    opacity: 1;
}

.playbox.playbox-fade-out,
.playboximage.playbox-fade-out {
    display: grid;
    display: -ms-grid;
    opacity: 0;
}

.playbox .exit, .playboximage .exit {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 5rem;
    color: #ffffff;
    width: 40px;
    height: 40px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    font-family: "Times New Roman", Times, serif;
    z-index: 10;
}

.playbox .exit::selection, .playboximage .exit::selection {
    color: unset;
    background: none;
}

.playbox .container {
    position: relative;
    top: 20px;
    width: 95%;
    min-height: 200px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    margin: 0 auto 50px;
    max-width: 800px;
    padding: 30px 20px;
    border-radius: 4px;
    -ms-grid-row: 1;
}

.playboximage .container {
    display: flex;
    position: relative;
    min-height: 200px;
    box-shadow: none;
    justify-content: center;
    align-items: center;
    -ms-grid-row: 1;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .playbox .container {
        top: 25px;
        width: 92%;
    }

    .playbox .exit, .playboximage .exit {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 2rem;
        line-height: 28px;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideOut {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.playboximage .exit {}

/* New Element Styling in the Container */
.playboximage .container-img {
    display: block;
    max-width: calc(100% - 120px);
    max-height: 100%;
    flex-shrink: 0;
    box-shadow: 0px 18px 10px 0px rgb(24, 24, 25, 0.21);
}
.playboximage .container-img-title {
    color: #333333;
    background: #f5f5f5;
    border-top: solid #cbcbcb 1px;
    font-size: 12pt;
    font-family: Arial;
    line-height: 57px;
    max-width: 100%;
    height: 57px;
    padding-left: 20px;
}
.playboximage .bg-image {
    max-width: 100%;
    max-height: calc(100% - 57px);
}

.playboximage .arrow {
    padding: 6px 16px;
    margin: 8px;
    height: 37px;
    width: 10px;

    color: #ffffff;
    font-weight: bold;
    display: inline-block;
    font-size: 1px;
    z-index: 102;
    cursor: pointer;
    flex: 0 0 auto;
}
.playboximage .arrow.leftarrow{ background: url("./img/arrow_left.png") center no-repeat; }
.playboximage .arrow.rightarrow{ background: url("./img/arrow.png") center no-repeat; }
.playboximage .image-list {
    position: relative;
    overflow: hidden;
    max-height: 180px;
    padding: 20px 50px;
    -ms-grid-row: 2;
}
.playboximage .image-list .owl-stage {
    margin: 0 auto;
}
.playboximage .image-list .owl-item {
    display: inline-block;
}
.playboximage .image-list img {
    width: auto;
    max-height: 70px;
    cursor: pointer;
}
.playboximage .image-list .center > img {
    transition: all .2s ease;
    border: none;
    box-shadow: 0 0 7px rgba(255, 255, 255, .7);
}
.playboximage .image-list .owl-nav, .playboximage .image-list .owl-dots {
    display: none;
}

@media (max-width: 800px) {
    .playboximage .arrow:active {
        transition: all .2s ease;
        background-color: rgba(124, 124, 124, 0.836);
    }

    .playboximage .image-list {
        padding: 10px;
    }

    .playboximage .image-list img {
        width: auto;
        margin-right: 4px;
        max-height: 50px;
    }
}