﻿#blog div.headline {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--dark-maroon);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #blog div.headline h1 {
        display: inline-block;
    }

    #blog div.headline .search {
        float: right;
    }

        #blog div.headline .search button {
            width: 20px;
            border: none;
            background: #fff;
        }

        #blog div.headline .search input {
            padding: 0.2rem 0.4rem;
        }

        #blog div.headline .search form{
            display: flex;
            align-items: center;
        }

        #blog.container {
            max-width: 1400px !important;
        }

#blog {
    margin-bottom: 5rem;
}

    #blog ul.articles li {
        flex: 0 0 300px;
        margin: 1.25rem;
        color: var(--dark-maroon);
        box-shadow: 0 6px 6px rgb(0 0 0 / 13%);
        border: solid 1px #dadada;
        background: #fff;
    }

        #blog ul.articles li a {
            text-decoration: none !important;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            color: var(--dark-maroon) !important;
        }

        #blog ul.articles li .photo {
            width: 100%;
            height: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow:hidden;
        }

            #blog ul.articles li .photo img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: 0.5s;
            }

                #blog ul.articles li .photo img:hover {
                    -ms-transform: scale(1.1);
                    -moz-transform: scale(1.1);
                    -webkit-transform: scale(1.1);
                    -o-transform: scale(1.1);
                    transform: scale(1.1);
                }



        #blog ul.articles li .options {
            padding: 0rem 1.5rem 1.5rem 1.5rem;
        }


    #blog ul.articles .title {
        height: 4.5rem;
        vertical-align: middle;
        padding: 0 0.75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

        #blog ul.articles .title h4 {
            font-size: 1rem;
        }


    #blog .title {
        margin-top: 0.75rem;
    }

    #blog .mobile {
        display: none !important;
    }

        #blog .mobile.title {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            z-index: 10;
            background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
            color: #fff;
            text-align: center;
            padding: 1rem !important;
            height: 8rem !important;
        }

            #blog .mobile.title h4 {
                color: #fff;
                height: 5rem !important;
                overflow: hidden;
                font-size: 1rem !important;
            }

@media(max-width: 1048px) {

    #blog ul.articles li {
        margin: .75rem;
    }

    #blog .title {
        margin-top: 0 !important;
    }

    #blog .mobile {
        display: block !important;
    }

    #blog .desktop {
        display: none !important;
    }

    #blog .options {
        padding: 1rem !important;
    }

    #blog div.headline {
        display: block;
        border-bottom: none;
        text-align: center;
    }

        #blog div.headline h1 {
            width: 100%;
            margin-bottom: 1rem;
        }

        #blog div.headline .search {
            float: none;
            display: block !important;
            width: 100%;
        }



            #blog div.headline .search form {
                display: inline-block;
            }
}


@media(max-width: 709px) {

    #blog ul.articles li {
        flex: 0 0 400px;
        margin: 1rem 0;
    }

        #blog ul.articles li .photo {
            width: 100%;
            height: 240px;
        }
}

@media(max-width: 420px) {
    #blog ul.articles li {
        flex: 0 0 100%;
    }

    #blog div.headline .search input{
        width: 150px;
    }
}
