.gallery__link.modals-gallery {
    position: relative;
    padding: 45px 0 50px 0;
}

.gallery-text {
    text-align: center;
    padding-top: 40px;
}

.swipe {
    position: relative;
    background-color: #D4F1F5;
    text-align: center;
    color: #001830;
    line-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.swipe::after {
    content: '\e90a';
    font-family: 'icomoon';
    position: absolute;
    font-size: 12px;
    right: 8px;
    color: #2DB4CB;
}

.swipe::before {
    content: '\e905';
    font-family: 'icomoon';
    position: absolute;
    font-size: 12px;
    left: 8px;
    color: #2DB4CB;
}


.swipe span {
    padding-left: 10px;
}

.js-gallery{
    margin: 0 -7px;
    padding-bottom: 15px;
}

.gallery--item {
    padding: 20px 7px;
}

.gallery__link {
    display: block;
    position: relative;
    width: 351px;
    height: 227px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(17,30,73,0.18);
}

.gallery__link span {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    background-color: rgba(13,31,75,0.72);
    text-transform: uppercase;
    padding: 12px 24px;
}

.gallery__hover {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    color: #fff;
    background: rgba(13,31,75,0.72);
    padding: 12px 20px;
    transition: background ease-in-out 0.3s;
}

.gallery__hover h4 {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 0 0;
    display: block;
    font-family: 'Work Sans', sans-serif;
}

/* Animation */

@media (min-width: 768px) {

    .modals-gallery {
        padding: 56px 0 61px 0;
    }

    .gallery-text {
        max-width: 547px;
        margin: 0 auto;
        padding-top: 0;
    }

    .gallery-flex {
        display: flex;
        align-items: center;
    }

    .gallery {
        padding-bottom: 32px;
    }

    .gallery__link {
        width: 100%;
        height: 242px;
    }

    .gallery--sml .gallery__link {
        height: 373px;
    }

    .gallery-btn  {
        padding-top: 17px;
    }

    .gallery__link span {
        font-size: 14px;
    }
    
}

@media (min-width: 1200px) {

    .modals-gallery {
        padding: 124px 0 92px 0;
    }

    .gallery-text {
        text-align: left;
        padding-bottom: 36px;
        padding-top: 0;
    }

    .gallery-text h2 {
        padding-bottom: 15px;
    }

    .gallery-text p {
        padding-right: 20px;
    }

    .gallery__link {
        height: 238px;
    }

    .gallery--sml .gallery__link {
        height: 373px;
    }

    .gallery-static__link {
        display: block;
        height: 462px;
        overflow: hidden;
        border-radius: 3px;
        box-shadow: 0 0 20px rgba(17,30,73,0.18);
        position: relative;
    }

    .gallery-static__details {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0,52,103,0.82);
        top: 0;
        left: 0;
        flex-wrap: wrap;
        transition: all .3s;
    }

    .gallery-static__details h3 {
        color: #fff;
        font-size: 28px;
        text-transform: uppercase;
    }

    .gallery-static__details .btn-tertiary {
        color: #2DB4CB;
    }

    .gallery img,
    .gallery-static img {
        transition: all .3s;
    }

    .gallery:hover img,
    .gallery-static:hover img {
        transform: scale(1.1);
        transition: all .3s;
    }

    .gallery-static__details:hover {
        background-color: rgba(0,52,103,0.62);
        transition: all .3s;
    }

    .gallery__hover .btn {
        display: none;
    }

    .gallery__hover .btn:hover {
        color: #fff;
    }

    .gallery__link:hover .gallery__hover .btn,
    .gallery-static__link:hover .gallery__hover .btn {
        display: inline-block;
    }

    .gallery__link:hover .gallery__hover h4,
    .gallery-static__link:hover .gallery__hover h4 {
        font-size: 28px;
        padding: 0 0 14px;
        width: 100%;
        font-family: 'Archivo Narrow', sans-serif;
    }

    .gallery__link:hover .gallery__hover,
    .gallery-static__link:hover .gallery__hover {
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: rgba(0,52,103,0.82);
    }
}