/* HEADER */

header[role="banner"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1em;
  padding: 1em 0;
}

header[role="banner"] h1 {
  padding-left: 1.8em;
  position: relative;
}

header[role="banner"] h1::before {
  content: "";
  background-size: cover;
  position: absolute;
  top: calc(50% - .75em);
  left: 0;
  display: block;
  height: 1.5em;
  width: 1.5em;
}

header.vinyl h1::before {
  background-image: url("/css/icons/vinyl.svg");
}
header.default h1::before {
  background-image: url("/css/icons/OB.svg");
}
body.search header.default h1::before {
  background-image: url("/css/icons/searchbutton.svg");
}
header.portfolio h1::before {
  background-image: url("/css/icons/portfolio.svg");
}
header.design h1::before {
  background-image: url("/css/icons/design.svg");
}
header.retrokid h1::before {
  background-image: url("/css/icons/OB.svg");
}

header nav ul {
  display: flex;
  gap: 0 1em;
  padding-left: 0;
}

header nav ul li {
  list-style: none;
  font-size: clamp(1.125rem, 0.9293rem + 0.6522vw, 1.5rem);
  font-weight: 600;
}

/* CONTENTHEADER */

.contentheader {
  margin-left: -1.5em;
  margin-right: -1.5em;
  border: solid #f5f5f5;
  border-width: 1px 0;
}

.contentheader .latest_article,
 article .contentheader {
  display: flex;
  flex-wrap: wrap;
}

.column {
  flex: 1 1 calc((481px - 100%) * 9999);
  position: relative;
}

.home .column {
  aspect-ratio: 1 / 1;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: flex-end;
}

.imagecolumn {
  background-color: var(--dark-purple);
  display: flex;
}

.imagecolumn img {
  object-fit: cover;
}

.imagecolumn:nth-child(1) {
  background-image: url(css/p-dark.png);
  background-position: 40px 12px;
}

.imagecolumn:nth-child(2) {
  background-color: rgb(209,214,216);
  background-image: url(css/p-light.png);
  background-position: calc(100% - 40px) calc(100% - 12px);
}

.home .imagecolumn:nth-child(1) {
  flex-direction: column;
}

.home .imagecolumn:nth-child(2) {
  flex-direction: column-reverse;
}

.home .imagecolumn .article-image {
  width: 50%;
  height: 50%;
  position: relative;
}

.home .imagecolumn:nth-child(1) .article-image {
  padding-left: 80px;
  background-color: rgb(209,214,216);
  align-self: flex-end;
}

.home .imagecolumn:nth-child(2) .article-image {
  padding-right: 80px;
  background-color: var(--dark-purple);
}

.home .column .article-image img {
    object-fit: cover;
    max-width: 100%;
}

.imagecolumn header {
   margin: 1em;
}

.imagecolumn:nth-child(1) header {
   margin-left: calc(50% - 80px);
}

.imagecolumn:nth-child(2) header {
   margin-right: calc(50% - 80px);
   text-align: right;
}


.column.imagecolumn:nth-child(2) header h1 a {
  color: var(--dark-purple);
}

.column.imagecolumn:nth-child(1) header h1 a {
  color: rgb(209,214,216);
}

.column.imagecolumn header h1 a:hover {
  color: var(--pale-red);
  text-decoration: none;
}

.textcolumn {
  background-color: rgb(209,214,216);
  background-image: url(css/p-light.png);
  background-position: calc(100% - 40px) calc(100% - 12px);
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.textcolumn.dark {
  background-color: var(--dark-purple);
  background-image: url(css/p-dark.png);
  background-position: 12px 40px;
}

.textcolumn h1 {
  margin: 1.5rem 1.5rem 2rem 1.5rem;
  line-height: 1.4;
}

.textcolumn h1 .subtitle {
  font-size: smaller;
  display: block;
  margin-top: .5em;
}

.textcolumn.dark h1 {
  color: rgb(221, 224, 226);
}

.article_id-header {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  right: 24px;
  padding-left: 8px;
}

.textcolumn .article_id-header {
  background-color: var(--dark-purple);
}

.textcolumn.dark .article_id-header {
  background-color: rgb(209,214,216);
}

.textcolumn.dark .article_id-header .h_text {
  color: var(--dark-purple);
}

.home .column .article_id-header {
   top: calc(50% - 30px);
   left: 18px;
   display: flex;
   flex-direction: column;
   padding: 0;
   right: inherit;
}

.home .column:nth-child(2) .article_id-header {
   color: #fff;
    left: inherit;
    right: 18px;
}

.article_id-header span {
  color: #fff;
  font-weight: 600;
  vertical-align: sub;
  font-size: 1.4rem;
}

.article_id-header .h_link {
  width: 44px;
  padding-top: 6px;
  display: inline-block;
  text-align: center;
  line-height: 38px;
  background-color: #fff;
  color: var(--dark-purple);
}

.column:nth-child(1) .article_id-header .h_link {
  background-color: var(--dark-purple);
  color: rgb(221, 224, 226);
}

.home .column .article_id-header .h_text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: .72em;
  margin-bottom: .1em;
}

.home .column:nth-child(1) .article_id-header .h_text {
  color: var(--dark-purple);
}


/* CONTENTBLOCK homepage */

.content_block {
  display: flex;
  flex-wrap: wrap;
  --min-margin: calc(900px - 3em); /* margin left and right on container */
}

.content_block .stickyarticle,
.content_block .recent_articles {
  flex: 1 1 calc((var(--min-margin) - 100%) * 999);
}

.content_block .recent_articles div { 
  gap: .5em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.content_block .recent_articles article {
  flex: 1 1 calc(((480px - 5em) - 100%) * 999);
  }

.content_block .recent_articles ul {
  padding-left: 0;
}

.article_context {
  padding: 4px 0;
}

.article_context p {
  font-size: .8em;
  color: #555;
}

/* PAGINATION */

.article_pagination {
  margin: 2.5em 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  --padding-pagination: calc(550px - 3rem);
}

.article_pagination > * {
  padding: .55rem .2rem .45rem .2rem;
  text-align: center;
  border: .7px dashed var(--dark-purple);
}

.article_pagination > div {
  padding: .85rem;
}

.article_pagination ul {
  padding: 0;
  margin: 0;
}

.article_pagination li {
  list-style: none;
  font-size: 1em;
  padding: 0;
  display: inline-block;
}

.article_pagination li:nth-child(1) a {
   border-right: .7px dashed var(--dark-purple);
}

.article_pagination li:nth-child(1) span {
  padding-right: .7rem;
}

.article_pagination a {
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  font-size: .9em;
}

.article_pagination a span {
  position: relative;
  padding: 0 .5rem;
  font-weight: 600;
  color: var(--dark-purple);
  font-size: 1.2em;
  display: inline-block;
  top: 2px;
}

.article_pagination a:hover {
  text-decoration: underline;
}

/* ARTICLE PAGE */

.articlecontent {
  margin: 1.5em 0;
}

.articlecontent h3 {
  margin-bottom: 0;
}

figure .article_block img,
article .article_block img,
.gallery li img,
.articlecontent .inline_images li img {
    width: 100%;
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.40);
}

body.home figure .article_block img {
  width: auto;
}

.articlecontent .inline_images li img,
.gallery li img {
   height: 100%;
}

img.inline-image {
  margin: .5em 0;
}

.inline_images img {
  object-fit: cover;
}

figcaption {
  font-weight: 900;
}

figcaption h3 {
  margin: 0;
  font-size: 1em;
}


/* FOOTER */

footer {
  background: #f5f5f5;
  padding: .5em 1.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

footer > * {
  flex: 1 1 calc((750px - 100%) * 999);
  text-align: center;
}

footer h4,
footer .search_input {
  white-space: nowrap;
}

footer .search {
  position: relative;
}

/* LIJSTEN */

body:not(.search, .home) .articles,
.gallery,
.articlecontent .inline_images {
    display: grid;
    --auto-grid-min-size: 10em;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    gap: 1.5em;
    padding-left: 0;
}

.gallery li,
.articlecontent .inline_images li {
  list-style: none;
}

.gallery li a {
  display: block;
  font-weight: 600;
  aspect-ratio: 1 / 1;
}

.smd_gallery_nav {
  display: flex;
  gap: 0 1em;
  padding-left: 0;
}

.smd_gallery_nav li {
  list-style: none;
}

body:not(.search, .home) h2 {
  background-color: #ececec;
  margin-top: 0;
  padding-left: .5rem;
  line-height: 1.5em;
}

body:not(.search, .home) h2 + p {
  
}


/* SEARCH */

.search input[type="search"] {
  line-height: 2.5;
  border: 1px solid #414141;
  border-radius: 50px;
  padding-left: 8px;
  font-weight: 600;
  background-color: #fff;
  position: relative;
  top: 0;
}

.search input[type="search"]::placeholder {
  color: #999;
}

.search input[type="submit"] {
    border: none;
    background-color: transparent;
    background-image: url("/css/icons/searchbutton.svg");
    width: 36px;
    height: 36px;
    background-size: cover;
    background-position: center;
    text-indent: -9999px;
    position: relative;
    left: 4px;
}

.search-label span {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}






