#imgModal {
    position: fixed;
    left: 0;
    top: 0;
    float: left;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: none;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    background: var(--color1);
    color: var(--color2);
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}

.prev:hover,
.next:hover {
    background: var(--color2);
    color: var(--color1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* The Close Button */
.close {
    color: #7f1416;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.imgClose {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 99999;
    background: var(--color1);
    color: var(--color2);
    /*padding: 15px;*/
    border-radius: 50%;
    line-height: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
}

.imgClose:hover {
    background: var(--color2);
    color: var(--color1);
}

.imgModal-container {
    position: relative;
    text-align: center;
    margin: 0 auto;
    display: flex;
    width: 100%;
    height: 100%;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.imgModal-container img {
    width: auto;
    height: auto;
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    margin: 15px;
}