﻿.gallery5 {
    width: 100%;
    padding: 50px 0px 0px 0px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

    .gallery5 .wrapper {
        max-width: 70%;
        width: 100%;
        margin-bottom: 100px;
        /* padding-left: 60px;
        padding-right: 60px; */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        /* flex-wrap: wrap; */
    }

    .gallery5 .card-item {
        position: relative;
        flex: 1;
        min-width: 25%;
        overflow: hidden;
        /* justify-content: center;
        align-items: center; */
        /* column-gap: 0px;
         row-gap: 0px; */
    }

    .gallery5 .img-responsive {
        width: 100%;
        height: 100%;
        display: block;
        transition: 0.3s ease-in-out;
    }

    .gallery5 .card-text {
        position: absolute;
        /* z-index: 2; */
        background-color: rgba(233, 40, 89, 0.9);
        display: block;
        /* width: 100%; */
        text-align: center;
        /* bottom: 0px; */
        opacity: 0;
        bottom: -45px;
        left: -45px;
        padding-top: 100px;
        padding-left: 55px;
        width: 225px;
        height: 225px;
        border-radius: 50%;
        transition: 0.4s linear;
    }

    .gallery5 .card-item:hover .card-text {
        opacity: 1;
    }

    .gallery5 .card-item:hover .img-responsive {
        transform: scale(1.2);
    }

    .gallery5 .card-h2 {
        font-size: 18px;
        font-family: "SahelBlack";
    }

    .gallery5 .card-description {
        font-size: 13px;
        font-family: "Sahel";
        white-space: pre;
    }

    .gallery5 .card-image {
        overflow: hidden;
        position: relative;
    }


    .gallery5 .icon-plus {
        width: 40px;
        height: 40px;
        line-height: 45px;
        border-radius: 50%;
        background-color: #fff;
        position: absolute;
        top: 45px;
        right: 120px;
        /*        color: rgba(233, 40, 89, 0.9);*/
        font-size: 30px;
        font-weight: bold;
    }

    .gallery5 .card-text-inner {
        text-align: center;
        margin-top: -43px;
    }

    .gallery5 .icon ~ .card-text-inner {
        text-align: unset;
        margin-top: 0;
    }

    .gallery5 .icon-plus a {
        text-decoration: none
    }

@media only screen and (max-width: 1800px) {
    .wrapper {
        max-width: 1200px !important;
    }
}

@media only screen and (max-width: 990px) {

    .gallery5 .card-item {
        flex: 1 !important;
        min-width: 33.33% !important;
    }
}

@media only screen and (max-width: 740px) {
    .gallery5 .card-item {
        flex: 1 !important;
        min-width: 50% !important;
    }
}

@media only screen and (max-width: 574px) {
    .gallery5 .card-item {
        flex: 1 !important;
        min-width: 100% !important;
        width: 100% !important;
    }

    .gallery5 .wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
        display: flex !important;
        justify-content: center !important;
    }
}
