/* === FONTS === */
@font-face {
  font-family: 'ImpactNieuw';
  src: url('/fonts/ImpactNieuw-2012.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Social';
  src: url('/fonts/ABCSocial-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Social';
  src: url('/fonts/ABCSocial-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === RESET & BASICS === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: 'Social', sans-serif;
  background: linear-gradient(to bottom, #faf6ed, #e9e5dd);
  color: #111;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
}

/* Focus styles for keyboard navigation */
:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  background: #0066cc;
  color: white;
  text-align: center;
  z-index: 1000;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  transition: clip-path 0.3s ease;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  padding: 0.5rem;
}

h1,
h2,
h3 {
  font-family: 'ImpactNieuw', Impact, sans-serif;
  font-weight: normal; /* Impact only has one weight */
}

/* === TITLE === */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.site-title {
  font-size: 1.8rem;
  font-weight: normal;
  color: #555;
  text-align: center;
  margin: 0;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #333;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.title-container {
  width: 100%;
  max-width: 1400px;
  text-align: center;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: #111;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.date-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.25rem;
}

/* === TITLE CONTAINER === */
.title-container {
  width: 100%;
  max-width: 1400px;
  margin-bottom: 2rem;
  text-align: center;
}

.main-title {
  font-family: 'ImpactNieuw', Impact, sans-serif;
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.date-label {
  font-family: 'Social', sans-serif;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* === CAROUSEL WRAPPER === */
.carousel-wrapper {
  width: 100%;
  min-width: 800px;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

/* === IMAGE PANEL === */
.image-row {
  display: flex;
  width: 100%;
  min-width: 800px;
  height: 50vh;
  max-width: 1400px;
  gap: 2rem;
  margin-bottom: 2rem;
}

.image-section {
  flex: 1;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Label overlays */
.image-section h2 {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'ImpactNieuw', Impact, sans-serif;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
}

/* === CAPTION / PROCESS TEXT === */
.caption-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 2rem;
  min-width: 800px;
  max-width: 900px;
  width: 100%;
  text-align: left;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.caption-section h2 {
  font-family: 'ImpactNieuw', Impact, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.caption {
  font-family: 'Social', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
}

/* === RENDER IN PROGRESS STATE === */
.in-progress {
  position: relative;
}

.in-progress::after {
  content: 'Render in progress…';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

#lottie-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

/* === INFO MODAL === */
#info-btn {
  background: #111;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
}

#info-btn:hover {
  transform: scale(1.1);
}

#info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Add a new rule for when the modal is visible */
#info-modal[style*='display: block'] {
  display: flex !important;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.missing-id-message {
  text-align: center;
  padding: 2rem;
  font-family: sans-serif;
}

.missing-id-message code {
  background: #eee;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

#close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

#close-modal:hover {
  color: #111;
}

/* === NAVIGATION === */
.nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav {
  font-size: 2rem;
  background: #111;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.nav:hover {
  transform: scale(1.1);
}

/* === LIGHTBOX & ZOOM === */
.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s;
  z-index: 10;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: 2% auto;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 10px;
  z-index: 2001;
}

.close-lightbox:hover {
  color: #ccc;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  html,
  body {
    padding: 0.5rem;
  }

  .carousel-wrapper {
    min-width: 100%;
  }

  .image-row {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    min-width: 100%;
  }

  .image-section {
    height: 35vh;
  }

  .caption-section {
    padding: 1.5rem;
    margin-bottom: 1rem;
    min-width: 100%;
    max-width: 900px;
  }

  .site-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .caption {
    min-height: 80px;
    max-height: 200px;
  }

  .nav-buttons {
    margin-bottom: 1rem;
  }

  .zoom-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .image-section {
    height: 30vh;
  }

  .caption {
    font-size: 1rem;
  }
}

/* === CONTAINER STYLES === */
.container {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
  min-width: 800px;
  max-width: 900px;
}

.sketch-container,
.render-container {
  position: relative;
  flex: 1;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  max-height: 60vh;
}

.sketch-container h2,
.render-container h2 {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'ImpactNieuw', Impact, sans-serif;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  z-index: 5;
}

.sketch-container img,
.render-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 60vh;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    min-width: auto;
    gap: 1rem;
  }

  .carousel-wrapper {
    min-width: auto;
    width: 100%;
  }

  .image-row {
    min-width: auto;
    width: 100%;
    flex-direction: column;
    height: auto;
  }

  .caption-section {
    min-width: auto;
    width: 100%;
  }

  .nav-buttons {
    margin-bottom: 1rem;
  }

  .site-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .site-title {
    font-size: 1.75rem;
  }

  .nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .caption-section {
    padding: 1.5rem;
  }

  .caption-section h2 {
    font-size: 1.25rem;
  }

  .caption {
    font-size: 1rem;
    min-height: 80px;
  }
}

/* Gallery styles */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(300px, 1fr)
  );
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-title {
  transform: translateY(0);
}

.gallery-in-progress {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  z-index: 1;
}

.gallery-description {
  text-align: center;
  margin: 2rem 0;
  color: #666;
  font-size: 1.1rem;
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
  .gallery-container {
    grid-template-columns: repeat(
      auto-fill,
      minmax(250px, 1fr)
    );
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(
      auto-fill,
      minmax(200px, 1fr)
    );
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .gallery-title {
    font-size: 1rem;
    padding: 0.75rem;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.8);
  }

  .gallery-in-progress {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .gallery-description {
    font-size: 1rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-title {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .gallery-in-progress {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .gallery-description {
    font-size: 0.9rem;
    margin: 1rem 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
  }

  .site-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .main-title {
    font-size: 2rem;
  }

  .title-container {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .nav-buttons {
    margin-top: 0.5rem;
  }

  #info-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
}

.pagination-button {
  background: #111;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
  transform: scale(1.1);
  background: #333;
}

.pagination-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-number {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-number:hover {
  background: #eee;
}

.page-number.active {
  background: #111;
  color: white;
  border-color: #111;
}

/* Update pagination styles for mobile */
@media (max-width: 768px) {
  .pagination-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .page-numbers {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .page-number {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .pagination-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-number {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .pagination-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}
