.community-strip {
    transition: all 0.4s ease-in-out;
}
.community-strip h3 {
    color: #000!important;
}
.community-strip:hover {
    background-color: #000;
}
.community-strip:hover h3 {
    color: #fff!important;
}
.community-strip:hover p {
    color: #fff!important;
}
.community-strip:hover img {
    transform: scale(1.07);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.5), transparent);
}

.object-fit-cover {
    object-fit: cover;
}
.grid-tile {
    border: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-out {
    opacity: 0;
    transition: all 0.4s ease;
}

.fade-in {
    opacity: 1;
    transition: all 0.8s ease;
}
#featured-section {
    position: relative;
    transition: opacity 0.8s ease;
}

#featured-section.fade-out {
    opacity: 1;
}

#featured-section.fade-in {
    opacity: 0.8;
}

.all-story-section #featured-section {
    height: calc(100vh - 72px);
}
.all-story-section #featured-quote {
    color: white!important;
}
.all-story-section .featured-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0, 0.6), rgba(0,0,0, 0.3));
}

#company-grid {
    display:grid; 
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(3, 1fr); 
    height: 100%;
}
#featured-logo {
    height: 60px;
    border-radius: 8px;
}

@media screen and (max-width: 991px) {
    .all-story-section {
        height: 100%;
    }
    .all-story-section #featured-section {
        height: 400px;
    }
    .all-story-section #company-grid {
        height: 400px!important;
    }
}

@media screen and (max-width: 576px)  {
    .community-strip img {
        height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .success-video,
    .video-frame{
        width: 720px;
        height: 405px;
    }
    #meetup1,
    #meetup2 {
        position: relative;
        height: 182px;
        width: 300px;
        cursor: pointer;
    }
    .webinar-image {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
        /* height: 236px; */
        /* width: 350px; */
        cursor: pointer;
    }
    .modal-dialog{
        top: 10%;
    }
}

@media (max-width: 576px) and (min-width: 426px) {
    .video-frame{
        width: 465px;
        height: 261px;
    }
}

@media (max-width: 425px) and (min-width: 376px) {
    .video-frame{
        width: 396px;
        height: 223px;
    }
}

@media (max-width: 375px) and (min-width: 321px) {
    .video-frame{
        width: 360px;
        height: 203px;
    }
}

@media (max-width: 320px) {
    .video-frame{
        width: 288px;
        height: 162px;
    }
}

@media (max-width: 767px) {
    .success-video,
    #meetup1,
    #meetup2 {
        position: relative;
        height: 151px;
        /* width: 250px; */
        cursor: pointer;
        float: none !important;
    }
    .webinar-image {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
        /* height: 12.62rem; */
        /* width: 18.68rem; */
        cursor: pointer;
        margin: auto;
    }
    #story-play-btn {
        display: none !important;
    }
    .modal-dialog{
        top: 30%;
    }
}

@media (min-width: 1440px) {
    .video-frame{
        width: 1080px;
        height: 608px;
    }
}

@media (max-width: 1439px) and (min-width: 1024px) {
    .video-frame{
        width: 864px;
        height: 486px;
    }
}

@media (min-width: 1024px) {
    .success-video{
        width: 864px;
        height: 486px;
    }
    #meetup1,
    #meetup2 {
        position: relative;
        height: 250px;
        width: 410px;
        cursor: pointer;
    }
    .webinar-image {
        position: relative;
        /* height: 236px; */
        /* width: 350px; */
        width: 100%;
        aspect-ratio: 16/9;
        cursor: pointer;
    }
    .modal-dialog{
        top: 10%;
    }
}

#webinar1 {
    background: url(/images/block/community/webinar-1.jpg) no-repeat;
    background-size: cover;
}

#webinar2 {
    background: url(/images/block/community/webinar-2.png) no-repeat;
    background-size: cover;
}

#webinar3 {
    background: url(/images/block/community/webinar-3.png) no-repeat;
    background-size: cover;
}

#webinar4 {
    background: url(/images/block/community/webinar-4.jpg) no-repeat;
    background-size: cover;
}

#meetup1 {
    background: url(/images/block/community/meetup-1.png) no-repeat;
    background-size: cover;
    float: right;
}

#meetup2 {
    background: url(/images/block/community/meetup-2.png) no-repeat;
    background-size: cover;
    float: left;
}

.play-btn {
    position: absolute;
    display: block;
    width: 60px;
    height: 45px;
    overflow: hidden;
    background: url(/images/block/community/play-btn.png);
    top: 50%;
    left: 50%;
    margin: -27px 0 0 -35px;
    cursor: pointer;
}

.modal-dialog {
    max-width: 800px;
    margin: 30px auto;
}

.modal-body {
    position: relative;
    padding: 0px;
}

.close {
    position: absolute;
    right: -30px;
    top: 0;
    z-index: 999;
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    opacity: 1;
}

.card1 {
    background-color: #f8fff1;
    border: none;
}

.card2 {
    background-color: #f1f1ff;
    border: none;
}

.card3 {
    background-color: #fff8f1;
    border: none;
}

.card4{
    background-color: #fff1f1;
    border: none;
}

.center-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-story-img{
    height: auto;
    width: auto;
    max-height: 100%;
    max-width: 100%;
}



/* @keyframes giffy {
    0% {
        background-image: url('http://i.imgur.com/E2ee6fI.gif');
    }
    15% {
        background-image: url('http://i.imgur.com/JIi0uul.gif');
    }
    30% {
        background-image: url('http://i.imgur.com/owNGnNN.gif');
    }
    45% {
        background-image: url('http://i.imgur.com/2Ii6XOz.gif');
    }
    60% {
        background-image: url('http://i.imgur.com/ZmQBrQ5.gif');
    }
    75% {
        background-image: url('http://i.imgur.com/iAsfHyY.gif');
    }
    90% {
        background-image: url('http://i.imgur.com/AJwRblj.gif');
    }
    100% {
        background-image: url('http://i.imgur.com/fx5wUNY.gif');
    }
} */

.success-stories-page .card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0, 0.7), transparent);
}
.success-stories-page .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.story-1 img, .story-3 img, .story-4 img, .story-5 img, .story-6 img, .story-10 img, .story-11 img, .story-12 img, .story-13 img, .story-15 img, .story-16 img, .story-17 img, .story-18 img, .story-19 img, .story-20 img  {
    aspect-ratio: 16/9;
}

.story-2 img {
    aspect-ratio: 4/3;
}
.story-7 img, .story-8 img {
    aspect-ratio: 1/1;
}
.story-9 img {
    aspect-ratio: 16/7;
}

.story-3 .card-text, .story-6 .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    overflow: hidden;
}
.story-7 .card-text, .story-13 .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

.story-9 .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.success-stories-page .card {
  overflow: hidden;
  position: relative; 
}

.success-stories-page .card .card-img {
  transition: transform 0.4s ease-in-out; 
}

.success-stories-page .card:hover .card-img {
  transform: scale(1.1); 
}

.success-stories-page .card-link {
    color: black!important;
}

.success-stories-page .card-link:hover {
    color: rgb(79, 79, 79)!important;
}

.success-stories-page .overlay-card-link {
    color: white!important;
}
.success-stories-page .overlay-card-link:hover {
    color: #f1f1f1!important;
}
.card-img-overlay {
    padding-top: 40px!important;
}

@media screen and (max-width: 576px) {
    .success-stories-page .card .card-img {
        height: 350px!important;
    }

    .story-3 .card-text, .story-6 .card-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }
}
@media screen and (min-width: 577px) and (max-width: 992px) {
    .success-stories-page .card .card-img {
        height: 400px!important;
    }

    .story-3 .card-text, .story-6 .card-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}

/* Individual Success Story Page */
.success-story-individual-page .story-image-wrapper {
    aspect-ratio: 16/9;
}

@media screen and (max-width: 576px) {
    .success-story-individual-page .story-image-wrapper  {
        height: 350px!important;
        width: 100%;
        
    }
    .success-story-individual-page .card img {
        height: 350px!important;
    }
}

.community .product-logo {
    height: 45px;
}