/* Global styles for SmallSketches site */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Jost:wght@300;400;600;700;800&family=Roboto+Mono:wght@400;500;700&display=swap');

html, body {
  min-height: 100vh;
}

body {
  font-family: 'Jost', sans-serif;
  background-color: #FFFFF0;
  color: #333333;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  margin: 0;
}

h1 {
  font-weight: 800;
  font-size: 4.6875rem;
  text-align: left;
  color: #333333;
  margin: 0;
  padding: 0 0 0.4rem 0;
  line-height: 1;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

/* font-family removed: inherited from body */
h2 {
  font-weight: 700;
  font-size: 1.875rem; /* 30px */
  line-height: 1.1;
  color: #333333;
  margin: 5px 0;
}

/* Container */
.container {
  background-color: #FFFFF0;
  width: 100%;
  margin: 0;
  padding: 3.4375rem 0;
  position: relative;
  flex: 1;
}

/* Gallery */
.gallery-container {
  max-width: 62.5rem; /* 1000px */
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.gallery-year, .gallery-tag {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 6.25rem;
  color: #B76E79;
  text-align: right;
  text-shadow: 0em 0.02em 0em rgba(0, 0, 0, 0.4);
  line-height: 1;
  z-index: 45;
  position: relative;
  pointer-events: none;
  margin-top: -2.5rem;
  margin-right: 0;
  margin-left: auto;
  width: fit-content;
}

@media (min-width: 1000px) {
  .gallery-year, .gallery-tag {
    margin-right: -4rem;
  }
}

/* Shared column layout; margin-top differs per variant */
.gallery,
.tag-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.gallery     { margin-top: -3rem; }
.tag-gallery { margin-top: -2.5rem; }

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  display: block;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFF0;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  margin-top: 0.5rem;
  color: #333333;
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: transparent;
  border: none;
  color: #cccccc;
  font-family: Arial, sans-serif;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  position: absolute;
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Footer */
footer {
  background-color: #EEEE22;
  width: 100%;
  padding: 2rem 0 0 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 75rem; /* 1400px */
  margin: 0 auto;
  padding: 0 4.0625rem;
  box-sizing: border-box;
}

/* Rij 1: 50/50 */
.footer-row-top {
  display: flex;
}

.footer-top-left {
  flex: 0 0 50%;
}

.footer-top-right {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Rij 2: 70/30 */
.footer-row-bottom {
  display: flex;
  margin-top: 2rem;
}

.footer-bottom-left {
  flex: 0 0 70%;
}

.footer-bottom-right {
  flex: 0 0 30%;
}

/* font-family removed: inherited from body */
.footer-title {
  font-weight: 600;
  font-size: 3.75rem;
  color: #333333;
  line-height: 1;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* font-family removed: inherited from body */
.footer-nav a {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333333;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #B76E79;
}

.footer-copyright {
  margin-top: 2rem;
  padding-bottom: 0;
  font-size: 0.85rem;
  color: #555555;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-copyright-text {
  padding-bottom: 2rem;
}

.footer-copyright p {
  margin: 0.2rem 0;
}

.footer-copyright a {
  color: #B76E79;
  text-decoration: none;
}

.footer-copyright-image {
  flex-shrink: 0;
  overflow: hidden;
}

.footer-portrait {
  display: block;
  margin-right: 5rem;
  height: auto;
  object-fit: cover;
  vertical-align: bottom;
  transform: translateY(120%);
  transition: transform 4s ease;
  transition-delay: 1s;
}

.footer-portrait.in-view {
  transform: translateY(0);
}

/* Tagcloud — was: gap + conflicting column-gap; now consolidated in one gap shorthand */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 1rem;
  line-height: 1.2;
  padding: 0;
  margin-top: -2rem;
}

.tagcloud-item {
  display: inline-block;
  color: #B76E79;
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  text-transform: lowercase;
}

.tagcloud-item:hover {
  color: #333333;
  transform: scale(1.1);
  text-transform: uppercase;
}

/* Homepage year masonry */
.year-masonry {
  column-count: 4;
  column-gap: 1rem;
  max-width: 62.5rem; /* 1000px */
  margin: 0 auto;
  padding: 0;
}

.year-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  text-decoration: none;
  break-inside: avoid;
}

.year-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  display: block;
}

/* font-family removed: inherited from body */
.year-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333333;
  margin-top: 0.3rem;
  text-align: left;
}

.year-item:hover img {
  opacity: 0.85;
}

.year-item:hover .year-label {
  color: #B76E79;
}

/* Period overview pages (year tile grid) */
.period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 62.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.period-tile {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 86%;
  overflow: hidden;
  text-decoration: none;
  border-radius: 2px;
}

.period-tile-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fffff0;
  transition: opacity 0.3s ease;
}

.period-tile:hover .period-tile-bg {
  opacity: 0.85;
}

/*
 * Consolidated label style — was three near-identical blocks:
 * .period-tile-label, .ss-mega-single-title, .ss-mega-year-label
 */
.period-tile-label,
.ss-mega-single-title,
.ss-mega-year-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  font-size: 6.25rem;
  color: rgba(255, 255, 255, 0.25);
  text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0);
  margin: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  pointer-events: none;
}

/* !important removed: no specificity conflict exists */
.period-tile:hover .period-tile-label,
.ss-mega-single:hover .ss-mega-single-title,
.ss-mega-year:hover .ss-mega-year-label {
  color: #EDF000;
  text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.15);
}

@media (max-width: 980px) {
  .period-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .period-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .period-tile-label {
    font-size: 3.5rem;
  }
}


/* About Jan Nieuwenhuys page */

.about-jn-stage {
  position: relative;
  overflow: hidden;
  background-color: #EEEE22;
  flex: 1;
}

.about-jn-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.015);
  z-index: 0;
}

.about-jn-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(238, 238, 34, 0) 0%,
    rgba(238, 238, 34, 0) 84%,
    rgba(238, 238, 34, 0.04) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.about-jn-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1rem 2.4rem;
  box-sizing: border-box;
}

.about-jn-single > .about-jn-paper {
  max-width: 1015px;
  margin-left: auto;
  margin-right: auto;
}

/* lichte kaart achter de tekst */
.about-jn-paper {
  background: rgba(255, 255, 241);
  border: 1px solid rgba(51, 51, 51, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  padding: 2rem;
  margin-bottom: 0;
  box-sizing: border-box;
}

.about-jn-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 0.85rem 1rem;
  align-items: start;
}

.about-jn-copy {
  min-width: 0;
}

.about-jn-copy > h2,
.about-jn-text > h2 {
  margin-bottom: 0.45rem;
}

.about-jn-text > h2 {
  margin-top: 0.78rem;
}

.about-jn-text {
  color: #666666;
}

.about-jn-text p {
  font-family: 'IBM Plex Sans', Helvetica, Arial, Lucida, sans-serif;
  color: #666666;
  line-height: 1.7em;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 1.5rem;
  max-width: none;
  text-align: justify;
}

.about-jn-text strong {
  font-weight: 700;
}

.about-jn-text em {
  font-style: italic;
}

.about-jn-portrait-card,
.about-jn-small-portrait {
  padding: 0;
  border: 1px solid rgba(51, 51, 51, 0.05);
  background: rgba(255,255,255,0.1);
}

.about-jn-portrait-card img,
.about-jn-small-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.about-jn-intro-float::after {
  content: '';
  display: table;
  clear: both;
}

.about-jn-intro-float .about-jn-portrait-card {
  float: right;
  margin: 1rem;
  max-width: 500px;
  width: 50%;
}

@media (max-width: 900px) {
  .about-jn-intro-float .about-jn-portrait-card {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

.about-jn-split-story {
  margin-top: 0.72rem;
}

.about-jn-split-story::after {
  content: '';
  display: table;
  clear: both;
}

.about-jn-small-portrait {
  float: left;
  margin: 0 1rem 0.5rem 0;
  max-width: 260px;
  width: 45%;
}

/* lichte drager loopt door achter de onderste werken */
.about-jn-gallery {
  background: rgba(255, 255, 240, 0.965);
  padding: 0 1.05rem 1.2rem;
  margin-top: 0;
  box-sizing: border-box;
}

.about-jn-art-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0.72rem 0 0;
  box-sizing: border-box;
}

.about-jn-art-panel img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .about-jn-inner {
    max-width: 1080px;
  }

  .about-jn-single > .about-jn-paper,
  .about-jn-single > .about-jn-gallery {
    max-width: 960px;
  }
}

@media (max-width: 900px) {
  .about-jn-inner {
    padding: 0.45rem 0.85rem 2rem;
  }

  .about-jn-single > .about-jn-paper,
  .about-jn-single > .about-jn-gallery {
    max-width: 100%;
  }

  .about-jn-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-jn-small-portrait {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }

  .about-jn-gallery {
    padding: 0 0.8rem 1rem;
  }
}

@media (max-width: 640px) {
  .about-jn-stage::before {
    background-position: 56% 0;
  }

  .about-jn-inner {
    padding: 0.35rem 0.55rem 1.6rem;
  }

  .about-jn-paper {
    padding: 0.78rem 0.76rem 0;
  }

  .about-jn-gallery {
    padding: 0 0.5rem 0.8rem;
  }

  .about-jn-art-panel img {
    border-width: 5px;
  }
}

/* ========================================
   Site Header & Mega Menu
   ======================================== */

.ss-header {
  background: #EEEE22;
  height: 185px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 4.0625rem 0.75rem;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ss-nav {
  width: 100%;
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 4.0625rem;
  box-sizing: border-box;
}

.ss-root-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  line-height: 30px;
}

.ss-menu-item {
  position: relative;
  display: inline-block;
}

.ss-menu-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 0.3125rem;
}

.ss-menu-text {
  font-family: 'Jost', Helvetica, Arial, Lucida, sans-serif;
  font-size: 2.625rem;
  font-weight: 400;
  color: #8c8c8c;
  cursor: default;
  transition: color 0.3s ease;
  line-height: 1.1em;
}

.ss-menu-text:hover {
  color: #b76e79;
}

/* ===== Mega dropdown ===== */
.ss-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: var(--dropdown-width);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding-top: 0.5rem;
}

.ss-menu-item:hover .ss-mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 500;
}

.ss-mega-inner {
  background: var(--dropdown-bg);
  border-radius: 0 0 5px 5px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.1);
}

/* ===== Single image (1922 / 1986) ===== */
.ss-mega-single {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 86%;
  overflow: hidden;
  text-decoration: none;
}

.ss-mega-inner:has(.ss-mega-single) {
  padding: 50px;
}

.ss-mega-single-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fffff0;
}

/* ===== Multi-year grid ===== */
.ss-mega-grid {
  display: grid;
  gap: 5px;
  padding: 50px;
}

.ss-mega-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ss-mega-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ss-mega-year {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 86%;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
}

.ss-mega-year-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.3s ease;
}

.ss-mega-year:hover .ss-mega-year-bg {
  opacity: 0.85;
}

/* ===== Site title ===== */
.ss-site-title {
  font-weight: 800;
  font-size: 4.6875rem;
  text-align: left;
  color: #333333;
  margin: 0 auto;
  padding: 0 4.0625rem 0.4rem 4.0625rem;
  line-height: 1;
  max-width: 78.5rem;
  width: 100%;
  box-sizing: border-box;
}

.ss-site-title a {
  color: inherit;
  text-decoration: none;
}

/* ===== Responsive — merged two separate @media (max-width: 980px) blocks ===== */
@media (max-width: 980px) {
  .ss-nav {
    padding: 0 1rem;
  }

  .ss-header {
    height: auto;
    padding: 1rem;
  }

  .ss-menu-text {
    font-size: 1.5rem;
  }

  .ss-site-title {
    padding: 0 1rem 0.4rem 1rem;
    font-size: 2.5rem;
  }

  .ss-mega-dropdown {
    display: none;
  }
}