
.heading {
    color: #fff;
    text-align: center;
    font-size: 2em;
    margin: 2em 0;
}

.images {
    display: block;
    float: left;
}

    .images img {
        cursor: pointer;
        transition: 0.3s all ease;
        width: 60px;
        height: 60px;
        margin: 0 8px 8px 0;
        float: left;
        display: block;
    }

}

.images img:hover {
    transform: scale(0.9);
}

.demos {
    margin-bottom: 20px;
    float: left;
}

.modal {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    z-index: 1;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
}

.modalContent {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modalImg {
    width: auto;
    max-width: 700px;
    max-height: 500px;
    margin: 8% 0 0 0;
}

.modalTxt {
    margin-top: 1em;
}

.modalNav {
    margin-top: 0;
    width: 100%;
    z-index: 10;
    position: absolute;
    top: 43%;
}

    .modalNav button {
        padding: 10px 14px;
        border: 1px solid #fff;
        background: none;
        color: #fff;
        outline: none;
        cursor: pointer;
    }

.prevBtn {
    left: 20px;
    position: absolute;
    top: 50%;
}

.nextBtn {
    position: absolute;
    right: 20px;
    top: 50%;
}

.close {
    position: absolute;
    color: #fff;
    top: 22%;
    right: 1.5em;
    font-size: 1.5em;
    cursor: pointer;
}

.modal.appear {
    opacity: 1;
    pointer-events: all;
}

    .modal.appear .modalImg,
    .modal.appear .modalTxt {
        animation: zoom 0.3s linear;
    }

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width:768px) {

    .images img {
        width: 122px;
        height: 122px;
    }
}
