/*
Theme Name: Newsroom theme
Theme URI: https://n11.nl
Author: Buro N11
Author URI: https://n11.nl
Description: Setup for a basic newsroom.
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 7.4
Version: 1.0
Text Domain: newsroom-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news, n11-beeldbank
*/

:root {
    --header-one-bg: #000;
    --content-max-width: 1200px;
    --content-columns-small: 1fr 1fr;
    --content-columns-large: 1fr 1fr 1fr;
    --articles-border-radius: 0;
}

html, body {
    scroll-behavior: smooth;
}

img {
    height: auto;
    vertical-align: middle;
}

.custom-logo {
    width: 300px;

}

.header-one {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-one-bg)
}

@media only screen and (min-width: 768px) {
    .header-one {
        flex-direction: row;
        align-items: end;
    }
}

.header-one-menu {
    flex-grow: 1;
    padding: 0 2rem;
}

.header-one-menu .menu {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.header-one-menu .menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.header-one-menu .menu li a {
    color: #FFF;
    display: block;
    padding: .5rem;
}

.header-one-search form {
    display: flex;
    padding: .5rem;
}

.header-one-search button,
.header-one-search input {
    border: 2px solid rgba(255, 255, 255, .3);
    background: none;
    color: #FFF;
    padding: .5rem;
}

.header-one-search input {
    border-right-width: 0;
}

.header-one-search button {
    border-left-width: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, .3);
}

.articles {
    display: grid;
    grid-template-columns: var(--content-columns-small);
    max-width: var(--content-max-width);
    padding: .5rem;
    gap: .5rem;
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
    .articles {
        grid-template-columns: var(--content-columns-large);
        padding: 1rem;
        gap: 1rem;
    }
}

.articles > a {
    /*display: grid;*/
    overflow: hidden;
}

.articles > a > * {
    grid-column: 1/1;
    grid-row: 1/1;
}

.articles .entry-thumbnail {
    aspect-ratio: 4 / 3;
    background: #000;
    overflow: hidden;
    border-radius: var(--articles-border-radius)
}

.articles .entry-thumbnail img {
    max-width: 100%;
    object-fit: cover;
    height: 100%;
    transition: .3s ease-in-out transform;
}

.articles > a:hover .entry-thumbnail img {
    transform: scale(1.1);
}

.articles .entry-content {
    position: relative;
    /*background: rgba(0, 0, 0, .3);*/
    /*color: #FFF;*/
    padding: .5rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.articles .entry-title {
    margin: 0;
    padding: 0;
}

.nav-links {
    display: flex;
    max-width: var(--content-max-width);
    padding: 1rem;
    margin: 0 auto;
    justify-content: space-between;
}

.pagination .nav-links {
    justify-content: center;
}

.nav-links .page-numbers {
    padding: .5rem;
    display: block;
}

.nav-links span.page-numbers {
    opacity: .5;
}