/* The Modal (background) */
#productdetailImageViewerModal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

/* Modal Content */
.productdetailImageViewerModal-content {
    position: relative;
    margin: auto;
    width: calc(100% - 90px);
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

/* The Close Button */
.productdetailImageViewerModal-close {
    color: #fff;
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 24px;
}

.productdetailImageViewerModal-close:hover,
.productdetailImageViewerModal-close:focus,
.productdetailImageViewerModalPrev:hover,
.productdetailImageViewerModalPrev:focus,
.productdetailImageViewerModalNext:hover,
.productdetailImageViewerModalNext:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Next & previous buttons */
.productdetailImageViewerModalPrev,
.productdetailImageViewerModalNext {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 48px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    padding: 20px;
}
.productdetailImageViewerModalNext {
    right: 22px;
    border-radius: 3px 0 0 3px;
}
.productdetailImageViewerModalPrev {
    left: 22px;
}


/* Hide the slides by default */
.productdetailImageViewerModalImage {
    display: none;
    width: 100%;
    overflow: hidden;
    margin-bottom: 39px;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
}

.productdetailImageViewerModalImage img {
    max-height: 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 100%;
    margin: 0 auto;
}
.slideWrapper {
    font-size: 0px; /*prevents space between images*/
    display: flex;
    justify-content: flex-start;
    max-height: 100px;
    width: -webkit-fill-available;
}
/* Create four equal columns that floats next to eachother */
.productdetailImageViewerModalThumbnail {
    display: inline-block;
    width: calc(25% - 18px);
    cursor: pointer;
    max-width: 100%;
    max-height: 100%;
    opacity: 0.6;
    margin-right: 24px;
    border-radius: 2px;
}
.productdetailImageViewerModal-content .productdetailImageViewerModalThumbnail:last-child  {
    margin-right: 0px;
}

.productdetailImageViewerModalThumbnail.productdetailImageViewerModalThumbnailActive,
.productdetailImageViewerModalThumbnail:hover {
    opacity: 1;
}

.productdetailImageViewerExtraImages {
    position: absolute;
    top: 0;
    left: 0;
    width: 55px;
    height: 30px;
    background-color: #0067B3;
    color: #fff;
    font-size: 12px;
    padding: 8px;
    cursor: pointer;
    z-index: 1;
    text-align: center;
}
.productdetailImageViewerExtraImages i {
    font-size: 14px;
    margin-left: 5px;
}
#detailImg1 {
    cursor: pointer;
}

@media(max-width: 650px) {
    .productdetailImageViewerModal-content {
        width: calc(100% - 80px);
    }
    .productdetailImageViewerModalPrev,
    .productdetailImageViewerModalNext {
        font-size: 20px;        
    }
    .productdetailImageViewerModalPrev {
        left: 15px;
    }
    .productdetailImageViewerModalNext,
    .productdetailImageViewerModal-close {
        right: 15px;
    }
    .productdetailImageViewerModalThumbnail {
        width: calc(25% - 6px);
        margin-right: 8px;
    }
    .productdetailImageViewerModal-content .productdetailImageViewerModalThumbnail:last-child  {
        margin-right: 0px;
    }
}