﻿body {
    --gallery6BgClr: #14b1bb;
    --gallery6Clr: white;
    --gallery6HoverBgClr: #0a257a;
}

.gallery6 {
    overflow-x: clip;
    margin-bottom : 6rem ;
}

    .gallery6 .swiper {
        width: 100%;
        overflow: inherit;
        margin-bottom: 100px;
    }


    .gallery6 .swiper-slide {
        /* max-width: 25%; */
        /*    background: #eee;*/
        text-align: center;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        align-content: space-around;
        /* overflow: hidden; */
        /* animation-duration: 25s; */
        animation-name: slider;
        animation-iteration-count: infinite;
        animation-iteration-count: 2;
        /* animation-direction: 1s;
  transform-style: preserve-3d; */
    }

        .gallery6 .swiper-slide img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .gallery6 .swiper-slide {
        width: 80%;
    }

        .gallery6 .swiper-slide:nth-child(2n) {
            width: 60%;
        }

        .gallery6 .swiper-slide:nth-child(3n) {
            width: 40%;
        }

    .gallery6 .card {
        position: relative;
        display: block;
        /*        width: 100%;*/
        border: unset;
        display: flex;
        align-items: center;
    }

    .gallery6 .card-body-custom {
        position: absolute;
        background-color: var(--gallery6BgClr);
        width: 80%;
        /*        top: 75%;*/
        /* right: 30px; */
        border-radius: 5px;
        color: white;
        /* text-align: center; */
        z-index: 2;
        padding: 5px;
        /* display: flex; */
        /* flex-direction: column; */
        margin: 0 auto;
        padding: 10px;
        transition: .2s all ease-in-out;
        border-width: 1px;
        border-right: solid;
        border-left: solid;
        border-top: solid;
        border-bottom: solid;
        border-color: #0a257a;
        box-shadow: 0px 0px 4px 1px grey;
    }


    .gallery6 .card-h:hover {
        color: var(--gallery6BgClr);
    }

    .gallery6 .card-body-custom.hover {
        background-color: var(--gallery6HoverBgClr);
    }

    .gallery6 .card-img {
        width: 100% !important;
        border-radius: 5px;
        display: inline-block;
        height: 350px;
        transition: .2s all ease-in-out;
    }

    .gallery6 .card-img {
        position: relative;
        /* width: inherit; */
    }

        .gallery6 .card-img:hover {
            filter: brightness(0.5);
        }

    .gallery6 .card-body-custom:hover + .card-header .card-img {
        filter: brightness(0.5);
    }

    .gallery6 .card-header {
        height: 350px;
        background: unset;
        border: unset;
    }

    .gallery6 .swiper-button-next,
    .gallery6 .swiper-button-prev {
        font-size: 0;
        position: absolute;
        /* display: block; */
        padding: 0;
        cursor: pointer;
        /*        color: var(--gallery6Clr);*/
        color: #0a257a;
        outline: 0;
        z-index: 9;
        opacity: 0;
        border-radius: 100px;
        /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); */
        width: 50px;
        height: 50px;
        line-height: 55px;
        /* top: 50%; */
        -webkit-transform: translate(0, -50%);
        transform: translate(0, -50%);
        -webkit-transition: 0.5s;
        transition: 0.5s;
        border: 0 solid #0a257a;
        user-select : none ;
        -webkit-user-select : none ;
        /*        background: #0a257a;*/
    }

        .gallery6 .swiper-button-next:hover,
        .gallery6 .swiper-button-prev:hover {
            /*            background-color: var(--gallery6BgClr);*/
            opacity: 1;
        }

        .gallery6 .swiper-button-next:after,
        .gallery6 .swiper-button-prev:after {
            font-size: 60px;
            transition: all 0.3s ease 0s;
            line-height: inherit;
            opacity: 1;
        }

    .gallery6 .swiper:hover .swiper-button-prev,
    .gallery6 .swiper:hover .swiper-button-next {
        opacity: 1;
    }

    .gallery6 .card-h {
        font-weight: bold;
    }
    .gallery6 .card-p {
        overflow: hidden;
        white-space: pre-line;
        margin : 0 ;
    }

    .gallery6 .boxShadow {
        box-shadow: 1px 1px 1px 1px gray
    }

@media only screen and (max-width: 990px) {
    .gallery6 .swiper-button-next:after, .gallery6 .swiper-button-prev:after {
        font-size: 35px;
    }
}
