.banner{
    display: grid;
    display: -ms-grid;
    display: -moz-grid;
}

.banner{
    margin: 4rem auto;
    grid-template-columns: 40vw 40vw;
    column-gap: 4rem;
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    /* min-height:100vh; */
    /* background-color: yellow; */
}

.banners-image-right .banner{
    justify-content: center;
}
.banners-image-right .banner > .banner-image-container{
    grid-area: 1/2/span 1/ span 1;
    justify-self: left;
}

@media (max-width: 1024px){
    .banner{
        grid-template-columns: 45vw 45vw;
        column-gap: 1rem;
    }
}

@media (max-width: 767px){
    .banner{
        grid-template-columns: auto;
        row-gap: 2rem;
        column-gap: unset;
    }
    .banner{
        padding: 1rem;
    }
    .banners-image-right .banner > .banner-image-container{
        grid-area: 1/1/span 1/ span 1;
        justify-self: unset;
    }
    .banner:nth-of-type(even) .banner-image-container{
        grid-area: 1/1/span 1/ span 1;
    }

    .banner-image-container img{
        transform: scale(110%);
    }
}

.banner-image-container{
    width: auto;
    position: relative;
    top:0px;
    animation: verticalShake 1s linear infinite;
    z-index:2;
}

.banner-image-container:hover{
    animation-play-state: paused;
}

.banner-image-container img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all .5s;
    /* transform: scale(110%); */
}

.banner-image-container img:hover{
    transform: scale(115%);
    cursor: pointer;
}

@keyframes verticalShake{
    0%{
        top:0px;
    }
    25%{
        top:-5px;
    }
    75%{
        top:5px;
    }
    100%{
        top:0px;
    }
}

.banner-content{
    /* border: 2px solid black; */
    /* width: 90%; */
}

.banner-content h2{
    margin-bottom: 1rem;
    position: relative;
    font-weight: 500;
    font-size: 1.5rem;
}

.banner-content p{
    margin-bottom: 2rem;
    position: relative;
    /* animation: flyFromRight 0.5s 0.5s ease-in; */
}

@keyframes flyFromRight{
    0%{
        left: 3rem;
        opacity: 0;
    }
    100%{
        left:0;
        opacity:1;
    }
}

.banner-content h2:hover{
    animation: verticalBounce 0.5s ease-in-out;
    cursor: pointer;
}

.banner-content p:hover{
    animation: verticalBounce 0.5s ease-in-out;
    cursor: pointer;
}

@keyframes verticalBounce{
    0%{top: 0px; }
    50%{top: -5px;}
    /* 75%{top: 5px; left: 5px;} */
    100%{top: 0px;}
}

@media (max-width: 767px){
    .banner{
        padding: 1rem !important;
    }
}