.wrapper {
    width: 80%;
    max-width: 1500px;
    margin: auto;
    padding-bottom: 15vmin;
}

form {
    width: 100%;
    margin-top: 10vmin;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
}

form input {
    width: 100%;
    display: inline;
    font-size: 21px;
    padding: 12px 16px;
    background-color: #111;
    border: none;
    border-bottom: 2px white solid;
    outline: none;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    padding-right: 50px;
}

.search_bar {
    width: 30%;
    position: relative;
}

.search_bar .icon {
    content: url('/img/magnifying_glass.svg');
    height: 20px;
    width: 20px;
    position: absolute;
    right: 16px;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    cursor: pointer;
}

form input::-webkit-input-placeholder {
    color: #fff;
}

form input::-moz-placeholder {
    color: #fff;
}

form input:-ms-input-placeholder {
    color: #fff;
}

form input::-ms-input-placeholder {
    color: #fff;
}

form input::placeholder {
    color: #fff;
}

form input:hover {
    background: rgba(255,255,255,0.1);
}

.custom-select {
    width: 30%;
    margin: 0;
}

.news_container {
    width: 100%;
    margin-top: 10vmin;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    padding-bottom: 5vmin;
}

.news_container::after {
  content: "";
  width: 30%;
}

.news_element {
    width: 30%;
    margin-bottom: 10vmin;
}

.news_element > * {
    width: 100%;
    margin-bottom: .75vmin;
}

.news_element a {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 0;
}

.news_element span {
    display: block;
    font-weight: 400;
    color: #808080;
}

.news_element time {
    font-weight: 400;
    color: #808080;
}

.news_element p {
    font-family: 'Barlow';
    height: 100px;
    overflow: hidden;
    position: relative;
    text-align: justify;
    font-size: 16px;
}

.news_element p::after {
    content: "";
    position: absolute;
    width: 100%;
    right: 0;
    bottom: 0;
    text-align: right;
    background-color: #111;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(17,17,17,1)), to(rgba(17,17,17,0)));
    background: -o-linear-gradient(bottom, rgba(17,17,17,1) 0%, rgba(17,17,17,0) 100%);
    background: linear-gradient(0deg, rgba(17,17,17,1) 0%, rgba(17,17,17,0) 100%);
    height: 3em;
}

.news_element h2 {
    line-height: 1em;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
}

.no_results {
    display: block;
    width: 100%;
}

.no_results img {
    width: 20vmin;
    display: block;
    margin: auto;
    margin-bottom: 5vmin;
}

.news_element span.search_highlight {
    background-color: white;
    color: #111;
    display: inline;
}

@media only screen and (max-width: 1400px) {
    .news_element p {
        font-size: 14px;
    }
}

@media only screen and (max-width: 1000px) {
    .news_element p {
        font-size: 12px;
    }
}

@media only screen and (max-width: 850px) {
    .news_element {
        width: 45%;
    }
    .news_container::after {
      width: 45%;
    }
    form {
        margin-top: 15vmin;
    }
}

@media only screen and (max-width: 850px) and (max-height: 600px) {
    form {
        margin-top: 20vmin;
    }
}

@media only screen and (max-width: 850px) and (max-height: 400px) {
    form {
        margin-top: 25vmin;
    }
}

@media only screen and (max-width: 750px) {
    form {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    form .search_bar, form .custom-select {
        margin-top: 1em;
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .news_element {
        width: 100%;
    }
    .news_container::after {
      content: none;
    }
    .wrapper {
        width: 61.8%;
    }
}

@media only screen and (max-width: 600px) {
    .wrapper {
        width: 75%;
    }
}

@media only screen and (max-width: 300px) {
    .wrapper {
        width: 85%;
    }
}
