/* Global Reset & Base Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
}

html, body {
  height: 100%;
  background-color: #f5f7fa;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
  /*min-width: 800px;*/
}

a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Layout Containers */
.container {
  display: flex;
  height: 100vh;
  background-color: #f5f7fa;
  /*min-width: 800px;*/
}

@media (min-width: 801px) {
  .container {
    min-width: 800px;
  }
}

/* Sidebar */
.sidebar {
  width: 260px;
  padding: 0 20px 20px 20px;
  background-color: #f5f7fa;
  flex-shrink: 0;
}

.sidebar h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 17px;
  white-space: nowrap;
}

.sidebar h2 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 2px;
  white-space: nowrap;
  margin-bottom: 24px;
}

.nav-item {
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px 0 10px 0;
  display: block;
}

/* Content Columns */
.content {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-grow: 1;
  position: relative;
  padding: 0 5px;
}

.column {
  width: 420px;
  overflow-y: scroll;
  padding: 0 5px;
  white-space: normal;
  overflow-wrap: break-word;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: opacity 0.1s ease, transform 0.1s ease;
  background-color: #f5f7fa;
}

.column::-webkit-scrollbar {
  display: none;
}

.column h2 {
  position: sticky;
  top: 0;
  background-color: #f5f7fa;
  padding: 20px 0;
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  z-index: 100;
  box-shadow: 0 -1px 0 #f5f7fa;
}

/* Entry Styling */
.entry, .curation-entry {
  margin-bottom: 24px;
}

.entry p, .curation-entry p {
  font-size: 0.95em;
  line-height: 1.75;
  color: #333;
  margin-bottom: 12px;
  
}

.role-group {
  margin-bottom: 32px;
}

.role {
  display: block;
  font-size: 0.95em;
  font-weight: bold;
  color: #666;           /* Lighter gray for subtle contrast */
  margin-top: 16px;      /* Adds spacing above the role label */
  margin-bottom: 4px;    /* Tightens spacing below */
}

.entry {
  margin-bottom: 16px;
}

.catalog-link {
  display: block;
  margin-top: 2px;
  color: black !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.catalog-link:hover {
  color: #333 !important;
}

.curation-entry p {
  line-height: 1.6; /* or whatever value you're using across all columns */
}

.curation-entry .project-title {
  font-style: italic;
  font-weight: 700;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  visibility: visible;
}

.fade-in.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in.fade-out,
.fading-out {
  opacity: 0 !important;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Disable animation for Criticism column */
.column-criticism,
.column-criticism.fade-in,
.column-criticism.fade-in.visible,
.column-criticism.fade-in.fade-out,
.column-criticism.fading-out {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Hamburger Menu */
.hamburger-center {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

#menuToggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#menuToggle .bar {
  height: 2px;
  width: 80%;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Overlay Menu */
#mobileOverlayMenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 247, 250, 0.97);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlayNav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* center vertically within container */
  height: 100%;
  text-align: center;
  gap: 20px; /* consistent spacing between links */
  padding: 0;
  margin: 0;
}

.overlayNav a {
  font-size: 1.5em;
  color: #333;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 200px; /* Adjust as needed */
  margin: 0;
  padding: 0;
}

.overlayNav a:hover {
  color: #777;
  text-decoration: underline;
}

.closeOverlay {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  text-decoration: none;
  color: #333;
}

/* Responsive Column Hiding */
@media (max-width: 1200px) and (min-width: 900px) {
  .column-invitations {
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    visibility: hidden;
  }
}

@media (max-width: 1000px) and (min-width: 801px) {
  .column-curation {
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    visibility: hidden;
  }
}

/* Mobile and Tablet Overrides */
@media (max-width: 800px) {
  html, body {
    overflow: auto;
    height: auto;
    min-width: 0;
  }

  .container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .content {
    flex-direction: column;
    overflow-x: hidden;
  }

  .column {
    width: 100%;
    max-width: none;
    overflow-y: visible;
    padding: 24px 32px;
    margin-bottom: 32px;
    white-space: normal;
    word-break: break-word;
  }

  .column h2 {
    position: relative;
    top: auto;
    padding-top: 16px;
    padding-bottom: 12px;
    font-size: 1em;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-center {
    display: flex;
  }

  /* Disable animation in mobile */
  .column,
  .fade-in,
  .fade-in.visible,
  .fade-in.fade-out,
  .fading-out {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;  
  }
}

@media (min-width: 801px) {
  .hamburger-center {
    display: none !important;
  }
}

/* Writings Page */
.writings-page-container .writings-body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.writings-page-container .coming-soon {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: auto 0;
}

.writings-page-container .back-button {
  margin-top: auto;
  padding: 30px 0;
}

.writings-page-container .back-button a {
  display: inline-block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.writings-page-container .back-button a:hover {
  border: 1px solid #bbb;
}


/* === Readings Page Styles === */
.readings-page-container {
  max-width: 693px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.readings-page-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.readings-page-container img {
  max-width: 693px;
  margin-bottom: 8px;
  cursor: pointer;
}

@media (max-width: 765px) {
  .readings-page-container img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto 24px;
  }
}

.readings-page-container figcaption {
  margin-top: -8px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 4px 0 24px;
  font-style: italic;
}

.readings-page-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.readings-page-container p {
  text-align: left;
  font-size: 16px;
}

.readings-page-container ul.project-list {
  list-style-type: none;
  text-align: left;
  font-size: 16px;
  margin-top: 30px;
  padding-left: 20px;
}

.readings-page-container .back-button {
  display: inline-block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.readings-page-container .back-button:hover {
  border: 1px solid #bbb;
}

.readings-page-container #lightboxOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.readings-page-container #lightboxOverlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.readings-page-container #lightboxOverlay:target {
  display: flex;
}

.scrollable-page {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* Notes Page Styling */
.notes-page-container {
  max-width: 693px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  overflow: hidden;
}

.notes-page-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.notes-page-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
  cursor: pointer;
  display: block;
  margin: 0 auto 24px;
}

.notes-page-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.notes-page-container p {
  text-align: left;
  font-size: 16px;
}

.notes-page-container * {
  box-sizing: border-box;
}

/* Exhibition Overlay Page Styling */

.exhibition-overlay-page {
  margin: 0;
  padding: 60px 40px;
  font-family: 'Lato', sans-serif;
  background-color: #f5f7fa;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 1s ease;
}

.exhibition-overlay-page.fade-in {
  opacity: 1;
}

.exhibition-overlay-page .overlay-content {
 position: relative;
  padding-top: 80px; /* previously just vertical padding inside .overlay-page */
  max-width: 900px;
  margin: 0 auto;
}

.exhibition-overlay-page .overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  padding: 0 20px;
}

.exhibition-overlay-page .overlay-text p {
   margin-top: -6px; 
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  text-align: justify;
}

.exhibition-overlay-page .button-stack {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.exhibition-overlay-page .sub-button {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #222;
  border: 1px solid transparent;
  padding: 8px 24px;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  background-color: transparent;
  display: inline-block;
  width: fit-content;
}

.exhibition-overlay-page .sub-button:hover {
  border-color: #bbb;
}

.exhibition-overlay-page .overlay-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: block;
  margin-top: 0px;
  transform: scale(1.05);
  transform-origin: top left;
}

.exhibition-overlay-page .back-button {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  position: static; /* ← key change */
  transform: none;  /* ← remove centering since it's not positioned absolutely */
}


.exhibition-overlay-page .back-button a {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #222;
  border: 1px solid transparent;
  padding: 8px 24px;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  display: inline-block;
}

.exhibition-overlay-page .back-button a:hover {
  border-color: #bbb;
}


.exhibition-overlay-page .image-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 20px;
  text-align: left;
  line-height: 1.4;
}

@media (max-width: 765px) {
  .exhibition-overlay-page .overlay-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .exhibition-overlay-page .overlay-image {
    order: 1;
  }

  .exhibition-overlay-page .image-caption {
    order: 2;
  }

  .exhibition-overlay-page .overlay-text {
    order: 3;
  }

  .exhibition-overlay-page .button-stack {
    order: 4;
    margin-top: 16px;
  }

  .exhibition-overlay-page .back-button {
    order: 5;
    position: static;
    margin: 40px auto 0 auto;
    text-align: center;
  }
}

/* Catalog Page Styles */

.catalog-page-container {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  font-family: 'Lato', sans-serif;
}

.catalog-page-container .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 100vh;
  box-sizing: border-box;
  padding: 60px 20px 20px 20px; /* Top, Right, Bottom, Left */
  width: 100%;
  max-width: 1200px;
}

.catalog-page-container #flipbook {
  position: relative;
  width: 1000px;
  height: 750px;
  margin: 0 auto;
}

.catalog-page-container #flipbook .page {
  position: absolute;
  z-index: 1;
  width: 500px;
  height: 750px;
  background-color: white;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.catalog-page-container .nav-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 750px;
  width: 60px;
}

.catalog-page-container .nav-buttons button {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 24px;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  cursor: pointer;
  background-color: #fff !important;
  color: #222 !important;
  border-radius: 6px;
  border: 1px solid #bbb !important;
  transition: all 0.3s ease;
}

.catalog-page-container .nav-buttons button:hover {
  background-color: #eee !important;
  border-color: #999 !important;
}

.catalog-page-container .catalog-wrapper {
  position: relative;
  width: 1000px;
  height: 850px;
  margin: 0;
}

.catalog-page-container .back-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15000;
  width: 100%;
  text-align: center;
}

.catalog-page-container .back-button a {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #222;
  border: 1px solid transparent;
  padding: 8px 24px;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  display: inline-block;
}

.catalog-page-container .back-button a:hover {
  background-color: transparent;
  color: #222;
  border-color: #bbb;
}


/* === Restless Debris Documentation Carousel Styles === */
.documentation-page-container {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  font-family: 'Lato', sans-serif;
  display: block;
  min-height: 100vh;
  overflow-y: auto;
}

.documentation-page-container .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: 85%;
  background: #f5f5f5;
  padding: 150px 20px 80px 20px;
  margin: 0 auto;
  box-sizing: border-box;
  height: 850px;
}

.documentation-page-container .glide {
  width: 100%;
  max-width: 100%;
  position: relative;
  background: none;
  padding: 0;
  margin: 0;
}

.documentation-page-container .glide__slide img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  user-select: none;
  pointer-events: none;
}

.documentation-page-container .glide__arrow {
 font-weight: 600;
  background-color: #fff !important;
  color: #222 !important;
  border: 1px solid #bbb !important;
  border-radius: 6px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  z-index: 1000;
  transition: all 0.3s ease;
  user-select: none;
}

.documentation-page-container .glide__arrow:hover {
  background-color: #eee !important;
  border-color: #999 !important;
}

.documentation-page-container .glide__arrow--left {
  left: -80px;
}

.documentation-page-container .glide__arrow--right {
  right: -80px;
}

.documentation-page-container .back-button {
  position: static;
  margin-top: 40px;
  text-align: center;
  width: 100%;
}


.documentation-page-container .back-button a {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #222;
  border: 1px solid transparent;
  padding: 8px 24px;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  display: inline-block;
}

.documentation-page-container .back-button a:hover {
  border-color: #bbb;
}

.documentation-page-container .caption-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(245, 245, 245, 0.4);
  color: #000;
  box-shadow: 0 0 6px 3px rgba(245, 245, 245, 0.1);
  padding: 4px 10px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  border-radius: 1px;
  pointer-events: none;
  z-index: 500;
}

@media (max-width: 765px) {
  .documentation-page-container .container {
    padding: 20px 0 60px 0;
    width: 100vw;
    max-width: 100%;
    height: auto;
  }

  .documentation-page-container .glide {
    width: 100%;
    padding: 0 10px;
  }

  .documentation-page-container .glide__slide img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 765px) {
  .documentation-page-container .glide__arrow {
    display: none;
  }

  .documentation-page-container .close-button {
    display: block;
    position: absolute;
    top: -6px;
    right: 25px;
    font-size: 36px; /* was 28px */
    color: #222;
    text-decoration: none;
    font-weight: bold;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
  }
}

@media (max-width: 765px) {
  .documentation-page-container .caption-overlay {
    display: none;
  }
}

@media (max-width: 765px) {
  .documentation-page-container .back-button {
    display: none;
  }
}

@media (min-width: 766px) {
  .documentation-page-container .close-button {
    display: none;
  }
}
