@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&display=swap');

body {
    margin: 0;
    line-height: 1.5;
    background-color: #f3f2f1;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
}

* {
    box-sizing: border-box;
    margin: 0;
}

.container {
    max-width: 1170px;
    margin: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.section-title {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 0 15px;
}

.section-title h1 {
    display: inline-block;
    font-size: 40px;
    color: #000000;
    font-weight: 700;
    margin: 0;
    position: relative;
}

.section-title h1:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #111;
}

/* Service Section */

.gallery-section {
    padding: 40px 0 0;
}

.gallery-section .gallery-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 15px;
}

.gallery-section .gallery-item-inner img {
    width: 100%;
    display: block;
    transform: scale(1.1);
    transition: all 0.5s ease;
}

.gallery-section .gallery-item-inner:hover img {
    filter: grayscale(100%);
    transform: scale(1);
}

.gallery-section .gallery-item-inner {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-section .gallery-item-inner .overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: flex-end;
    transition: all 0.5s ease;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
}

.gallery-section .gallery-item-inner:hover .overlay {
    opacity: 1;
}

.gallery-section .gallery-item-inner .overlay h4 {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.gallery-section .gallery-item-inner:hover .overlay h4 {
    transform: translateX(0);
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

.modal::before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    opacity: 0.7;
    z-index: -1;
}

.column {
    float: left;
    width: 25%;
}


/* Modal Content */
.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 50%;
    max-width: 1200px;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
}

.cursor {
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}

.demo {
    opacity: 0.6;
}

.active,
.demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.allimg {
    flex-wrap: nowrap;
    display: flex;
    white-space: nowrap;
    overflow: auto;
}

@media(max-width: 767px) {

    .gallery-section .gallery-item,
    .service-section .service-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .modal {
        padding-top: 100px;
    }

    .modal-content {
        width: 90%;
    }
}

@media(max-width: 575px) {

    .gallery-section .gallery-item,
    .service-section .service-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .allimg {
        flex-wrap: wrap;
        display: flex;
        white-space: nowrap;
        overflow: auto;
        justify-content: center;
    }

    .allimg .column {
        float: right;
        width: 25%;
        flex: 0 0 30%;
        padding: 5px;
    }

    .prev,
    .next {
        top: 32%;
    }

}