/*!
 * Theme Name: 2025 PingPong
 * Theme URI: www.wouterhuis.com
 * Author: Wouter Huis
 * Author URI: www.wouterhuis.com
 * Version: 1.0
 */

/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */

html {
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
  background: #ffffff80;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: 1.3;
  border: 0.5px solid;
  padding: 2px 8px;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
  transition: background-color 5s ease;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

html, body { height: 100%; }

/* Begin Typography & Colors */
body {
  font-size: 16px;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  background: #fff;
  padding: 0 20px;
  margin: 0px;
  color: #000000;
  overflow-x: hidden;
  overflow-y: scroll;
  text-shadow: 0.2px 0.2px black;
}

h1, h2, h3, h4, h5, h6 {
  margin: 20px 0;
  font-weight: bold;
}

p { margin: 20px 0; }

blockquote {
  border-left: 1px solid black;
  padding: 0 0 0 10px;
  margin: 20px 0 20px 20px;
}

a, a:visited {
  color: #404040;
  text-decoration: none;
  -webkit-transition: 0.5s color ease;
  -moz-transition: 0.5s color ease;
  -o-transition: 0.5s color ease;
  transition: 0.5s color ease;
}

a:focus, a:hover, .button:hover, .button:focus {
  color: black;
  outline: none;
  text-decoration: none;
}

/*
 * Sidebar
 */
#header {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 210px;
  display: none;
}

#header h1 { margin: 0 0 40px; }

#header a { mix-blend-mode: screen; }

#sidebar { margin-top: 18px; }
#header { z-index: 2; }

#header ul,
#header ol {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

/*
 * Content
 */

ol, ul {
  box-sizing: border-box;
  padding: 0;
}

li {
  list-style-type: none;
}

#page { padding: 0px 0px 2rem 0px; }

#content, #DitISDECONTENT {
  position: relative;
  /*! width: 60%; */
  max-width: 85vw;
  z-index: 0;
  margin: 9px auto;
  top: 5rem;
}

/*
 * Format: Image
 */
#content img {
  width: auto;
  height: auto;
  max-width: 1000px;
  max-height: 1000px;
}

.category-works #content img {
  width: inherit;
  height: auto;
  max-width: 100%;
  max-height: 200px;
}

.gallery-item {
  margin: 0 0 10rem 0;
}

.gallery-item > img {
  max-width: 70vw !important;
  max-height: 70vh !important;
}

.page-template-random #content .hentry,
.tag #content .hentry,
.blog #content .hentry {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  padding: 5px;
}

.page-template-random article.format-gallery a,
.tag article.format-gallery a,
.blog article.format-gallery a,
.page-template-random article.format-image a,
.tag article.format-image a,
.blog article.format-image a {
  display: block;
  position: relative;
}

.page-template-random article.format-gallery a:after,
.tag article.format-gallery a:after,
.blog article.format-gallery a:after,
.page-template-random article.format-image a:after,
.tag article.format-image a:after,
.blog article.format-image a:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.05);
  z-index: 0;
}

.page-template-random article.format-gallery img,
.tag article.format-gallery img,
.blog article.format-gallery img,
.tag article.format-image img,
.blog article.format-image img {
  position: relative;
  z-index: 1;
  display: block;
}

.hentry img.lazyload,
.hentry img.lazyloading,
.hentry img.lazyloaded {
  -webkit-transition: 0.6s opacity ease;
  -moz-transition: 0.6s opacity ease;
  -o-transition: 0.6s opacity ease;
  transition: 0.6s opacity ease;
}

.hentry img.lazyload,
.hentry img.lazyloading { opacity: 0; }
.hentry img.lazyloaded { opacity: 1; }
.hentry img.lazyloading { cursor: wait; }

.caption, .image_title {
  font-size: 75%;
  margin-bottom: 2rem;
  margin-top: -5px;
  text-shadow: 0.5px 0.5px black;
}

.entry-header h1 {
  font-weight: bold;
  margin: 0rem 0 auto;
  line-height: 1.4;
  font-size: 24px;
  text-transform: uppercase;
}

/*
 * Format: Default
 */
.page-template-random .hentry h2,
.tag .hentry h2,
.blog .hentry h2 {
  margin: 110px auto;
  max-width: 200px;
  width: 100%;
  letter-spacing: 0.025em;
  padding: 0 20px;
  text-align: center;
}

.hentry h2 a { color: #404040; }
.hentry h2 a:hover { color: blue; }

.search h2,
.archive h2 {
  margin: 20px 0 0 0;
}

.search h2 a,
.archive.category h2 a {
  color: initial;
  text-decoration: underline;
}

.thumbnail { margin: 20px 0; display: block; }
.thumbnail img { display: block; width: 100%; height: auto; }

.image-title { margin-top: 8px; }
.image-title a:after { content: ""; display: none; }

.page-template-random .hentry .thumbnail,
.tag .hentry .thumbnail,
.blog .hentry .thumbnail { margin: 0; }

/*
 * Tags
 */
.tag-title {
  position: fixed;
  top: 77px;
  z-index: 2;
  mix-blend-mode: unset;
  left: auto;
  right: 35px;
  margin: 0;
}

/*
 * works / archive category — AANGEPAST: betere 3-kolommen verdeling
 */

body.archive #content {
  display: block !important;
  width: 90vw !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  /*! padding-top: 57px; */
  padding-bottom: 57px;
  float:   none !important;
}

/* #main-content is de echte grid container */
body.archive #main-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 3rem 3.5rem;
  align-items: start;
}

/* elk post-item vult zijn kolom */
body.archive #main-content > div[id^="post-"] {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  height: auto !important;
}

body.archive #main-content > div[id^="post-"] a.image_link {
  display: block;
}

body.archive #main-content > div[id^="post-"] img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block;
}

body.archive #main-content > div[id^="post-"] .image_title {
  font-size: 10px;
  line-height: 1.4;
  margin-top: 1px;
}

.image_link {
  font-size: 12px;
  font-family: mono;
}

/*
 * Single / Page
 */

#content,
#page {
  margin: auto;

}

.single #content p a,
.page #content p a {
  text-decoration: underline;
}

figure { margin: 20px 0; }
figure a { display: block; }

/* Meta */
.entry-meta { margin: 0; }
.entry-meta a {
  color: initial;
  text-decoration: none !important;
}
.entry-meta a:hover { color: blue; }

/* Tagcloud */
.tagcloud a {
  text-decoration: none !important;
}

.post-navigation {
  list-style: none;
  padding: 0 5px;
  margin: 50px 0 0 0;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
}

.navigation {
  width: 100%;
  bottom: 1rem;
  font-weight: bold;
  margin-top: 11rem;
  position: relative;
  height: auto;
}

.alignleft { float: left; }
.alignright { float: right; }

@media (min-width: 768px) {
  .page-template-random .hentry h2,
  .tag .hentry h2,
  .blog .hentry h2 {
    margin-left: 120px;
    margin-right: 120px;
  }

  .tag-title {
    right: auto;
    left: 330px;
  }
}

@media (max-width: 1024px) {
  body.archive #content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    width: 92vw;
  }
}


#colophon {
  position: fixed;
  margin-top: 0rem;
  rotate: 90deg;
  right: -2.3rem;
  margin: 0;
  padding: 0;
  bottom: 60px;
  font-size: 5px;
  color: lightgreen;
  display: none;
}

label {
  display: inline-block;
  width: 6rem;
}

.tnp-field {
  margin: 15px 0;
}

.tnp-field.tnp-field-button {
  margin: 10px 0;
}

.corner-layer {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 99999;
}

.corner {
  position: absolute;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: black;
  pointer-events: auto;
}

.top-left {
  top: 65px;
  left: -46px;
  rotate: -90deg;
}

.top-right {
  top: 10px;
  right: 10px;
}

.bottom-left {
  bottom: 10px;
  left: 10px;
}

.bottom-right {
  bottom: 45px;
  right: -23px;
  rotate: 90deg;
}

.corner a {
  text-decoration: none;
  color: black;
}

.category-archive {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  transition: background-color 0.5s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s ease;
}

.post-title {
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* Alleen op shop-pagina */
body.shop .inner {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 4%;
  background-color: #f5f5f5f2;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#primary {
  width: 100%;
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.page-content {
  margin-bottom: 3rem;
}

.shop-posts {
  /*! width: 100%; */
  /*! max-width: 1200px; */
  /*! margin: 2rem auto; */
  /*! padding: 2rem 4%; */
  /*! background-color: #fff; */
  /*! box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  /*! box-sizing: border-box; */
}

.shop-item {
  /*! border-top: 1px solid #000; */
  padding: 1.5rem 0;
  background: #f5f5f5f2;
  margin-bottom: 3rem;
  width: 100%;
  padding: 30px 15px 100px;
}

.shop-link {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
}

.shop-image {
  flex: 0 0 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.shop-image img {
  width: 100%;
  height: auto;
  display: block;
}

.shop-content {
  flex: 1;
}

.shop-title {
  margin: 0 0 0.5rem 0;
  font-size: 14px;
  font-weight: 600;
}

.shop-text {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 0.5rem;
  color: #333;
}


@media (max-width: 768px) {
  #content .inner, .main-content {
  }

  #content {
    width: 100% !important;
    margin-top: 10rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body.archive #content {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 0rem !important;
  }


  body.archive #main-content {
    display: grid !important;
    grid-template-columns: none !important;
    gap: 3rem 6.5rem;
    align-items: start;
  }

  .shop-posts {
    width: 100%;
    padding: 2rem 2%;
  }

  .shop-link {
    flex-direction: column;
  }

  .shop-image {
    flex: none;
    width: 100%;
  }
}
