.workMain div {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#img1 {
    background-image: url(../img/img-work/01.jpg.webp);
}

#img2 {
    background-image: url(../img/img-work/02.jpg.webp);
}

#img3 {
    background-image: url(../img/img-work/03.jpg.webp);
}

#img4 {
    background-image: url(../img/img-work/04.jpg.webp);
}

#img5 {
    background-image: url(../img/img-work/05.jpg.webp);
}

#img6 {
    background-image: url(../img/img-work/06.jpg.webp);
}

#img7 {
    background-image: url(../img/img-work/07.jpg.webp);
}

#img8 {
    background-image: url(../img/img-work/08.jpg.webp);
}

#img9 {
    background-image: url(../img/img-work/09.jpg.webp);
}
#img10 {
    background-image: url(../img/img-work/10.jpg.webp);
}
#img11 {
    background-image: url(../img/img-work/spm.png);
}


.workMain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

.workMainImg {
    height: 270px;
    margin: 10px;
    margin-bottom: 150px;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.portfolio-desc {
    z-index: 3;
    padding: 15px 5px 10px;
}

.portfolio-desc h3 {
    margin: 0;
    padding: 0;
    font-size: 1.4em;
    letter-spacing: 2px;
}

.portfolio-desc h3 a {
    text-decoration: none;
}

.portfolio-desc span {
    display: block;
    margin-top: 6px;
    font-size: 1.2em;
}

image,
.portfolio-item .portfolio-image a,
.portfolio-item .portfolio-image img {
    display: block;
    width: 276px;
    height: 207px;
}

body:not(.device-touch):not(.device-xs):not(.device-xxs) .portfolio-overlay {
    -webkit-transition: opacity .4s ease-in-out;
    transition: opacity .4s ease-in-out;
}

.portfolio-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    text-align: center;
    background-color: rgba(0, 0, 0, .5);
}

.portfolio-overlay a {
    -webkit-transition: color .2s linear, background-color .2s linear, margin-top .2s linear, opacity .2s linear;
    transition: color .2s linear, background-color .2s linear, margin-top .2s linear, opacity .2s linear;
}

.portfolio-overlay:hover .animRight {
    animation: animRight 2s infinite;
}

@keyframes animRight {
    0%,
    20%,
    80%,
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    40% {
        -webkit-transform: translateX(-20px);
        transform: translateX(-20px);
    }
    50% {
        -webkit-transform: translateX(10px);
        transform: translateX(10px);
    }
    60% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px);
    }

}

.portfolio-overlay a div {
	width: 100%;
	height: 100%;
	z-index: 99999999;
	position: relative;
	top: -30px;
}

.portfolio-overlay svg {
	width: 40px;
	margin-top: 1px;
}

.portfolio-overlay:hover {
    opacity: 1;
}

.preview-button {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #4A6BB5;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    height: 75%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: 10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}