/*gallery main image container*/
.sp-thumbnail-container.sp-selected-thumbnail{
    display: none;
}
.style5  .sp-image-container {
    border-radius: 20px;
}

.style5 .sp-image {
    border-radius: 20px;
    width: 100% !IMPORTANT;
    height: auto !important;
}

#ap-smart-layerslider-mod_225 .sp-caption-container {
    font-size: 20px;
    text-align: left;
    position: absolute;
    padding-left: 40px;
    color: #fff;
}

a.readmore,
a.readmore:hover {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.style5 .sp-image-container {
    position: relative;
}

.style5 .sp-image-container:before {
    content: '';
    width: 100%;
    height: 40%;
    position: absolute;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.90) 100%); 
}

.sp-thumbnail-title > .date {
    display: block;
}

.style5  .sp-left-thumbnails .sp-thumbnail-arrows,
.style5  .sp-right-thumbnails .sp-thumbnail-arrows {
    margin-left: 0;
}

.sp-slides-container {
    margin-top: 20px;
}


/* Desktop view
------------------------*/


@media screen and (min-width: 980px) {
    .style5 .sp-image-container {
        width: calc(100% - 30px) !important;
    }

     #ap-smart-layerslider-mod_225 .sp-caption-container  {
        width: calc(100% - 290px) !important;
    }


    #ap-smart-layerslider-mod_225 .sp-caption-container {
    font-size: 34px;
     bottom: 40px;
     top: auto;
    }

    .style5 .sp-previous-thumbnail-arrow:before,
    .style5 .sp-next-thumbnail-arrow:before {
        display: inline-block;
        transform: rotate(90deg) scale(1.7) scaleY(1.3);
}

    .style5 .sp-thumbnail-container {
        height: auto !important;
        min-height: 190px;
    }
    .style5 .sp-thumbnail-container.sp-selected-thumbnail{

    } 

}

/* Mobile view
------------------------*/

@media screen and (max-width: 979px) {
    .style5 .sp-thumbnails .sp-thumbnail .sp-thumbnail-text {
        display: none !important;
    }

    .style5 .sp-thumbnail-image {
        max-height: 80px;
    }

    .style5 .sp-thumbnails {
        height: auto !important;
    }

.style5 .sp-thumbnail-arrow {
    top: 50%;
    transform: translateY(-50%);
}

a.readmore,
a.readmore:hover {
    font-size: 14px;
}

#ap-smart-layerslider-mod_225 .sp-caption-container {
    padding-left: 20px;
     bottom: 110px;
}

.style5 .sp-image-container:before {
    height: 60%;
}
    
}



/* Thumbnails */

.slider-pro.style5 .sp-thumbnails .sp-selected-thumbnail .sp-thumbnail-text {
    background-color: transparent;
}


.style5 .sp-thumbnail-image {
    border-radius: 20px;
    border: 1px solid #D9D9D9;
}

.style5 .sp-thumbnail-container {
    height: auto !important;
}

.style5 .sp-thumbnail-text h4.sp-thumbnail-title > .date {
    font-weight: normal;
    margin-bottom: 5px;
}

.sp-fade-thumbnail-arrows {
    opacity: 1 !important;
}

.style5 .sp-thumbnail-arrow[style="display: none;"] {
    display: block !important;
    background-color: #d9d9d9;
}

.style5 .sp-left-thumbnails .sp-thumbnail-arrows .sp-thumbnail-arrow,
.style5 .sp-right-thumbnails .sp-thumbnail-arrows .sp-thumbnail-arrow {
    transform: none !important;
    width: 100%;

}

.style5 .sp-thumbnail-arrow {
    background-color: #FED501;
    font-size: 22px;
    border-radius: 4px;
    color: #000;
    text-shadow: none;
}

.style5 .sp-thumbnail-arrows {
    position: static;
}

