﻿.filter-section {
    padding-bottom: 0;
}

.filter-section-inner {

    justify-content:center;
}

.filter {
    flex: 0 0 33.3333%;
    max-height: 170px;
    margin-bottom: 30px;
}

@media (max-width:1399.98px) {
    .filter {
        max-height: 150px;
    }
}

@media (max-width:1023.98px) {
    .filter {
        flex: 0 0 50%;
    
        max-height: 120px;
    }
}

@media (max-width:767.98px) {
    .filter {
        flex: 1 0 100%;
    }
}

.filter-inner {
    height: 100%;
    padding: 0 20px;
}

.filter-content {
    position: relative;
    height: 100%;
    transition: transform .1s ease, opacity .4s ease .1s, -webkit-transform .1s ease;
}

.filter.active .filter-content {
    border: 1px solid rgba(15,52,98,.6);
}

.filter-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 20px;
    background-color: rgba(255,255,255,.8);
    font-size: 14px;
    transition: transform .1s ease, opacity .4s ease .1s, -webkit-transform .1s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.filter.active .overlay {
    background-color: rgba(15,52,98,.6);
}

.filter .overlay h3 {
    height: auto;
    font-size: 16px;
    font-weight: bold;
    color: #113d72;
}

.filter .overlay p {
    color: #113d72;
    margin-bottom: 0;
}

.filter.active .overlay h3,
.filter.active .overlay p {
    color: #fff;
}

.filter-content:hover {
    cursor: pointer;
}

    .filter-content:hover .overlay {
        opacity: 0;
    }

.filter-content:hover {
    transform: scale(1.01);
}

.filter-section.dark .filter .overlay {
    background-color: rgba(15,52,98,.6);
    top: 0;
    padding-bottom: 20px;
}

    .filter-section.dark .filter .overlay h3,
    .filter-section.dark .filter .overlay p {
        color: #fff;
    }

.filter-section.dark .filter.active .overlay {
    background-color: rgba(255,255,255,.8);
}

    .filter-section.dark .filter.active .overlay h3,
    .filter-section.dark .filter.active .overlay p {
        color: #113d72;
    }
