* {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: url(img/ruit1-FC0.gif) fixed, #f5f5f5;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 60px;
}

/* Links */
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #ff6b00;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #ff8c2a;
  text-decoration: underline;
}

a {
  color: #ff6b00;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff8c2a;
  text-decoration: underline;
}

/* Hamburger button */
.hamburger {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu */
.menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: min(300px, 85vw);
  height: 100vh;
  height: -webkit-fill-available;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 80px;
  padding-bottom: 30px;
  border-radius: 0 0 12px 0;
}

.menu.active {
  left: 0;
}

.menu-header {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 5px;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  border-bottom: 1px solid #f0f0f0;
}

.menu ul li a {
  display: block;
  padding: 20px 30px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.1;
  transition: background 0.2s ease;
}

.menu ul li a:hover {
  background: rgba(245, 245, 245, 0.7);
}

.menu ul li a.active-page {
  background: rgba(51, 51, 51, 0.15);
  font-weight: 600;
}

.menu ul li.page-numbers {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  gap: 10px;
}

.menu ul li.page-numbers span {
  font-size: 1.2rem;
}

.menu ul li.page-numbers a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
}

.menu ul li.page-numbers a:hover {
  background: rgba(51, 51, 51, 0.1);
}

.menu ul li.page-numbers a.active-page {
  background: rgba(51, 51, 51, 0.15);
  font-weight: 600;
}

/* Active menu links */
.menu a.active-page {
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.1);
  font-weight: 600;
}

/* Nested menu items */
.menu-section {
    padding: 20px 30px;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
    line-height: 1.1;
    border-bottom: 1px solid #f0f0f0;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.menu .submenu li a {  /* .menu toegevoegd voor meer specificiteit */
    padding: 12px 30px 12px 50px;
    font-size: 0.85rem !important; /* !important om zeker te zijn */
    font-weight: normal;
    line-height: 1.1;
}

.menu .submenu li a:hover {
    background: rgba(245, 245, 245, 0.7);
}

.menu .submenu li a.active-page {
    background: rgba(51, 51, 51, 0.15);
    font-weight: 600;
}
/* Gallery items */
.item {
  background: white;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.item.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* News items - AANGEPAST MET RUITJE.GIF */
.news-item {
  background: url(img/ruitje.gif) fixed, white;
  padding: 30px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-item time {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.news-item img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Special drop-shadow for Lokta images */
.news-item img[src*="onlokta"] {
  filter: drop-shadow(5px 5px 5px #7F7F7F);
}

.news-item iframe {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 20px;
}

.news-item h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 20px 0 15px 0;
  color: #333;
}

.news-item p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 15px 0;
  color: #333;
}

.news-item p:last-child {
  margin-bottom: 0;
}

.news-item strong {
  font-weight: 600;
}

.news-item ul {
  margin: 10px 0;
  padding-left: 20px;
}

.news-item cite {
  font-style: italic;
}

.container h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 40px 0 30px 0;
  color: #333;
}

.title {
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 300;
  color: #333;
  margin: 15px 0;
  line-height: 1.4;
}

.translation {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-style: italic;
  color: #999;
  margin: 10px 0;
}

/* Language sections - for about pages */
.language-section {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-section h2 {
  font-size: 1.3rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.language-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin: 0 0 15px 0;
  font-weight: 500;
}

.language-section p {
  margin: 0 0 1em 0;
  font-size: 1.05rem;
}

.language-section p:last-child {
  margin-bottom: 0;
}

/* Scroll to top arrow - fixed version */
.scroll-to-top-arrow {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scroll-to-top-arrow.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-arrow:hover {
  background: rgba(255, 140, 42, 0.9);
}

/* Scroll to top arrow - centered version */
.scroll-to-top-center {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 30px auto;
  transition: background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scroll-to-top-center:hover {
  background: rgba(255, 140, 42, 0.9);
}

/* Navigation arrows container */
.navigation-arrows {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
}

.navigation-arrows .scroll-to-top-center {
  margin: 0; /* Reset the margin since container handles spacing */
}

.scroll-to-next-page {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-decoration: none;
}

.scroll-to-next-page:hover {
  background: rgba(255, 140, 42, 0.9);
}

/* Responsive video wrapper */
.video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 verhouding */
  height: 0;
  margin-bottom: 20px;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Content area */
.content {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Portrait sections */
.portraits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.portrait {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.portrait img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 15px;
}

.portrait h3 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 20px 0;
  color: #666;
  text-align: center;
}

.portrait-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #666;
  font-style: normal;
  text-align: center;
}

/* Glass sections grid */
.glass-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.glass-section {
  text-align: center;
}

.glass-section a {
  display: block;
  text-decoration: none;
}

.glass-section img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.glass-section a:hover img {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.glass-section h3 {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: #666;
  transition: color 0.2s ease;
}

.glass-section a:hover h3 {
  color: #ff6b00;
}

.glass-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

/* Past exhibition filter */
.glass-section.past-exhibition {
  position: relative;
}

.glass-section.past-exhibition::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 1;
  border-radius: 4px;
}

.glass-section.past-exhibition img {
  opacity: 0.5;
}

.glass-section.past-exhibition h3,
.glass-section.past-exhibition .glass-caption {
  color: #999;
  position: relative;
  z-index: 2;
}

.glass-section.past-exhibition a:hover h3 {
  color: #bbb;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding-top: 50px;
  }

  .hamburger {
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
  }

  .hamburger span {
    width: 25px;
    height: 2px;
  }

  .menu {
    width: 250px;
    left: -250px;
  }

  .menu-header {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .item {
    padding: 20px;
    margin: 20px 0;
  }

  .title {
    font-size: 1.5rem;
  }

  .translation {
    font-size: 1rem;
  }

  .language-section {
    padding: 20px;
  }

  .language-section h2 {
    font-size: 1.1rem;
  }

  .news-item {
    padding: 20px;
    margin: 20px 0;
  }

  .news-item h2 {
    font-size: 1.3rem;
  }

  .container h1 {
    font-size: 1.5rem;
  }

  .scroll-to-top-arrow {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .scroll-to-top-center {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin: 25px auto;
  }

  .navigation-arrows {
    gap: 15px;
    margin: 25px auto;
  }

  .navigation-arrows .scroll-to-top-center {
    margin: 0;
  }

  .scroll-to-next-page {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .content {
    padding: 25px;
  }

  .content h1 {
    font-size: 1.6rem;
  }

  .portraits {
    grid-template-columns: 1fr;
  }

  .glass-sections {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .container {
    padding-top: 45px;
  }

  .hamburger {
    top: 10px;
    left: 10px;
  }

  .menu {
    width: 200px;
    left: -200px;
  }

  .menu-header {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .menu ul li a {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .item {
    padding: 15px;
    margin: 15px 0;
  }

  .title {
    font-size: 1.3rem;
  }

  .translation {
    font-size: 0.95rem;
  }

  .language-section p {
    font-size: 1rem;
  }

  .news-item {
    padding: 15px;
    margin: 15px 0;
  }

  .news-item h2 {
    font-size: 1.2rem;
  }

  .container h1 {
    font-size: 1.3rem;
    margin: 20px 0 15px 0;
  }

  .scroll-to-top-arrow {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .scroll-to-top-center {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin: 20px auto;
  }

  .navigation-arrows {
    gap: 12px;
    margin: 20px auto;
  }

  .navigation-arrows .scroll-to-top-center {
    margin: 0;
  }

  .scroll-to-next-page {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .glass-sections {
    gap: 20px;
  }

  .glass-caption {
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  body {
    padding: 3px;
  }

  .container {
    padding-top: 40px;
  }

  .hamburger {
    width: 30px;
    height: 30px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .menu {
    width: 80vw;
    padding-top: 60px;
  }

  .menu-header {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .menu ul li a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .item {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
  }

  .item img {
    margin-bottom: 10px;
  }

  .title {
    font-size: 1.1rem;
    margin: 10px 0;
  }

  .translation {
    font-size: 0.85rem;
    margin: 5px 0;
  }

  .news-item {
    padding: 10px;
    margin: 10px 0;
  }

  .news-item h2 {
    font-size: 1.1rem;
  }

  .news-item p {
    font-size: 0.9rem;
  }

  .container h1 {
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
  }

  .scroll-to-top-arrow {
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .scroll-to-top-center {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin: 15px auto;
  }

  .navigation-arrows {
    gap: 10px;
    margin: 15px auto;
  }

  .navigation-arrows .scroll-to-top-center {
    margin: 0;
  }

  .scroll-to-next-page {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .glass-sections {
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .glass-caption {
    font-size: 0.8rem;
  }
}
