:root {
    --bw-blue: #78aaba;
    --bw-black: #000;
    --bw-greyish: #ddd;
    --bw-darkgrey: #666;

    --item-no: 4;
    --item-width: calc(50vw / var(--item-no));
    --item-height: calc(100vh - 6rem);
    --slope-width: calc(var(--item-height) * sin(15deg) / sin(75deg));
}

::placeholder {
    color: var(--bw-darkgrey);
    text-transform: uppercase;
    font-style: italic;
}

:focus::placeholder {
    color: var(--bw-greyish);
    opacity: 0.2;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    font-weight: 200;
    font-size: 1.2rem;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: white;
    height: 6rem;
    box-shadow: 0 0 10px 0 #666;
    z-index: 2;
    display: flex;
    flex-flow: row nowrap;
    gap: 2rem;
}

p {
    margin-bottom: 1rem;
    text-wrap: balance;
}

input {
    outline: none;
}

header div {
    position: relative;
}

header h1 {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 3rem;
    display: flex;
    flex-flow: row nowrap;
    gap: 0 0.5rem;
    margin: 0.5rem 1rem;
}

header h2 {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.5rem;
    position: absolute;
    background-color: var(--bw-blue);
    color: white;
    padding-inline: 1.5rem;
    top: 2.5rem;
    left: 6rem;
    border-radius: 3px;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

header h1 span {
    display: block;
    line-height: 2.5rem;
}

.logo--blue {
    color: var(--bw-blue);
}

.logo--black {
    color: var(--bw-black);
}

header h1 span::first-letter {
    font-size: 7rem;
    initial-letter: 2;
}

navigation {
    font-size: 1.5rem;
    justify-items: center;
    align-content: center;
    flex: 1;
    margin-inline: 2rem;
}

navigation .menu {
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
}

navigation .menu .menu-item {
    display: flex;
    flex-flow: row wrap;
    height: 2rem;
    align-content: center;
    color: var(--bw-darkgrey);
    background:
    radial-gradient(100% 100% at top left,#fff 98%,#000) ,
    radial-gradient(100% 100% at bottom right,#fff 98%,#000) ,
    radial-gradient(100% 100% at top left,#000 98%,#0000) ,
    radial-gradient(100% 100% at bottom right,#000 98%,#0000) ,
    #000;
    -webkit-background-clip: text,text,padding-box,padding-box,text;
          background-clip: text,text,padding-box,padding-box,text;
    background-size: 0% 0%;
    background-position: top 4px left 4px, bottom 4px right 4px;
    background-repeat: no-repeat;
    transition: 0.5s;
}

navigation .menu .menu-item:hover {
    background-size: 90% 74%;
}

navigation .menu .menu-item:hover span,
navigation .menu .menu-item:hover a {
    color: white;
}

navigation .menu li::before {
    content: "+";
    font-size: 1rem;
    padding-right: 0.2rem;
    margin-top: -1.5rem;
}

navigation .menu li::after {
    content: "+";
    font-size: 1rem;
    padding-left: 0.2rem;
    margin-bottom: -1.5rem;
}

navigation .menu a,
navigation .menu span {
    line-height: 3rem;
    text-decoration: none;
}

.layout-container {
    margin-top: 6rem;
}

.region-content {
    display: grid;
    grid-template-areas: "timeline fptext"
    "timeline search"
    "timeline search";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto repeat(2, 1fr);
}

.block-views-blockfrontpage-block-1 {
    grid-area: timeline;
}

.block-system-main-block {
    grid-area: fptext;
}

.block-views-blocksearch-block-1 {
    grid-area: search;
    padding-inline: 7rem 3rem;
}

.timeline .view-content {
    display: flex;
    flex-flow: row nowrap;
    gap: 3px;
    /*width: 50%;*/
    position: relative;
    left: calc((var(--slope-width) * -1) / 2);
    transition: left 1s;
}

.timeline .views-row {
    width: var(--item-width);
    transition: width 1s;
}

.views-field-field-coverpage {
    position: relative;
    z-index: 1;
    height: var(--item-height);
    clip-path: url(#mask);
}

.timeline--image {
    width: var(--item-width);
}

.timeline--image img {
    filter: grayscale(1);
    height: var(--item-height);
    width: auto;
    transition: all 1s;
}

.mask {
    position: absolute;
    z-index: 2;
    width: 0;
    height: 0;
}

.mask svg {
    width: 0;
    height: 0;
}

.mask--rectangle {
    width: var(--item-width);
    height: var(--item-height);
    transform: skewX(-15deg) translateX(var(--slope-width));
    transition: all 1s;
}

.timeline .view-content:hover {
    left: 0;
}

.timeline .view-content:hover .mask--rectangle {
    transform: skewX(0);
}

.timeline .view-content .views-row:hover img {
    filter: grayscale(0);
    transform: scale(1.5);
}

article {
    margin-block: 4rem;
    margin-inline: 7rem 2rem;
}

.form--inline {
    display: flex;
    flex-flow: row nowrap;
}

.bef-exposed-form .form--inline > .form-item {
    float: none;
    margin-right: 0;
    padding: 1rem;
    background-color: var(--bw-greyish);
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    flex: 1;
}

#edit-search-api-fulltext {
    background-color: var(--bw-greyish);
    border: 0px none;
    border-bottom: 1px solid var(--bw-darkgrey);
    width: 100%;
}

.form--inline .form-actions {
    clear: none;
    padding-top: 1rem;
    padding-right: 1rem;
    background-color: var(--bw-greyish);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

#edit-submit-search {
    padding: 0.1rem 0.2rem;
    border: 0px none;
    background-color: var(--bw-greyish);
    color: var(--bw-darkgrey);
}