/* style.css */

/* Override Pico CSS default colors to black and white theme */
:root {
  --primary: #000;
  --primary-hover: #333;
  --primary-focus: #666;
  --secondary: #666;
  --contrast: #000;
  --contrast-hover: #333;
  --contrast-focus: #666;
}

/* Links - override blue defaults */
a {
  color: #000 !important;
}

a:hover {
  color: #333 !important;
}

a:focus {
  color: #666 !important;
}

/* Button overrides */
button, [type="button"], [type="reset"], [type="submit"] {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

button:hover, [type="button"]:hover, [type="reset"]:hover, [type="submit"]:hover {
  background-color: #333 !important;
  border-color: #333 !important;
}

/* Form elements */
input:focus, textarea:focus, select:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

/* General body styling */
html {
  scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background: #fafafa;
    color: #222;
  }
  
  /* Navigation adjustments */
  nav ul li a {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  nav ul li a:hover {
    text-decoration: underline;
  }
  
  /* Landing page headline */
  main.container h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
  }
  
  main.container h3 {
    color: #666;
    font-weight: 400;
  }
  
  /* Section headers */
  h2 {
    margin-top: 2rem;
    font-size: 2rem;
  }
  
  h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #555;
  }
  
  /* Gallery grid */
  .grid {
    gap: 2rem;
  }
  
  .grid figure {
    margin: 0;
    text-align: center;
  }
  
  .grid figure img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
  }
  
  .grid figure img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }
  
  /* Captions */
  figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #555;
  }
  
  /* Footer */
  footer {
    margin-top: 4rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
  }
  
  footer a {
    color: inherit;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  /* === Navigation dropdown styles === */
/* Make the nav placeholder sticky */
#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  font-family: sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

/* Navigation search - Minimalistic design */
.nav-search {
  position: relative;
  min-width: 300px;
  max-width: 400px;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#global-search {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  border: 1px solid #000;
  border-radius: 0;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
  transition: all 0.2s;
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  color: #000;
  pointer-events: none;
}

#global-search:focus {
  border: 2px solid #000;
  outline: none;
  background: #fff;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 4000;
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.search-result {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #000;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result:hover {
  background: #000;
  color: #fff;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.25rem;
}

.search-result-snippet {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.search-result-page {
  font-size: 0.75rem;
  color: #007bff;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 0.25rem;
}

.search-results-header {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #000;
  font-weight: 500;
  font-size: 0.85rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-close-btn {
  background: none !important;
  border: none !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  color: #666 !important;
  cursor: pointer;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

.search-close-btn:hover {
  background: #000 !important;
  color: #fff !important;
}

/* Search filters */
.search-filters {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #000;
  border-top: none;
  padding: 0.75rem;
  z-index: 3000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.filter-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  min-width: 50px;
}

.filter-buttons {
  display: flex;
  gap: 0.25rem;
}

.filter-btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
  background: transparent !important;
  border: 1px solid #000 !important;
  color: #000 !important;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #f5f5f5 !important;
}

.filter-btn.active {
  background: #000 !important;
  color: #fff !important;
}

.year-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#year-filter {
  width: 120px;
  background: #000;
}

#year-display {
  font-size: 0.75rem;
  color: #666;
  min-width: 70px;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
  justify-content: space-between;
}


.toggle-btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
  background: transparent !important;
  border: 1px solid #666 !important;
  color: #666 !important;
  cursor: pointer;
}

.toggle-btn:hover {
  background: #666 !important;
  color: #fff !important;
}

/* Search highlighting styles */
.search-highlight-exact {
  background: #000;
  color: #fff;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
}

.search-highlight-word {
  background: #f0f0f0;
  color: #000;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
  border: 1px solid #ccc;
}

/* Search result meta and badges */
.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.search-result-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.search-badge-work {
  background: #e3f2fd;
  color: #1976d2;
}

.search-badge-group-exhibition, .search-badge-solo-exhibition {
  background: #f3e5f5;
  color: #7b1fa2;
}

.search-badge-review, .search-badge-publication {
  background: #e8f5e8;
  color: #388e3c;
}

.search-badge-collections, .search-badge-collection-work {
  background: #fff3e0;
  color: #f57c00;
}

.search-result-year {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.search-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #888;
}

.search-result-relevance {
  font-style: italic;
}

/* No results styling */
.search-no-results {
  padding: 1rem;
  text-align: center;
}

.search-suggestions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.suggestion-item {
  background: #f5f5f5;
  color: #666;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.navbar .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.navbar .menu li {
  position: relative;
}

.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
}

/* Dropdown */
.navbar .submenu {
  list-style: none;
  position: absolute;
  top: 100%;   /* sits exactly below parent */
  left: 0;
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.25rem 0;   /* less padding so no gap */
  min-width: 180px;
  z-index: 1000;
  margin: 0;           /* remove gaps */
}

.navbar .submenu li {
  display: block;
  padding: 0;
}


.navbar .submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #000;
  font-size: 0.9rem;   /* smaller text */
  font-weight: 400;    /* lighter than main nav */
  white-space: nowrap;
}

.navbar .submenu a:hover {
  background: #f2f2f2;
  color: #000;
}

/* Keep submenu open when hovering parent OR submenu */
.navbar .dropdown:hover .submenu,
.navbar .submenu:hover {
  display: block;
}
/* Shared archival list style (for exhibitions, awards, films, etc.) */
.archival section {
  margin-bottom: 1.2rem;
}

.archival .year {
  font-weight: bold;
  font-size: 1rem;
  margin: 0.8rem 0 0.2rem 0;
}

.archival ul {
  margin: 0;
  padding-left: 1.2rem;
}

.archival li {
  margin: 0.1rem 0;
  line-height: 1.3;
}
.under-construction {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 1em;
  margin: 1em 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 4px;
}
/* All exhibitions pages */
.container.archival {
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
  line-height: 1.6;
}

/* Years */
.container.archival .year {
  font-weight: bold;
  margin-top: 1.5em;
  font-size: 1.1em;
  color: #444;
}

/* Exhibition title */
.container.archival .title {
  font-style: italic;
}

/* Venue */
.container.archival .venue {
  font-weight: 600;
}

/* === WORKS PAGE STYLES === */

/* Works Layout - Sidebar */
.works-layout {
  display: flex;
  min-height: calc(100vh - 200px);
  gap: 0;
}

.filter-sidebar {
  width: 300px;
  min-width: 300px;
  background: #f8f9fa;
  border-right: 1px solid #e9ecef;
  padding: 1.5rem;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: calc(100vh - 100px);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.filter-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-category {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.category-header:hover {
  background: #f8f9fa;
}

.category-header h3 {
  color: #495057;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pin-btn, .expand-btn {
  background: none !important;
  border: none !important;
  font-size: 0.8rem !important;
  color: #6c757d !important;
  cursor: pointer;
  padding: 0.2rem !important;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.pin-btn:hover, .expand-btn:hover {
  opacity: 1 !important;
}

.filter-category.pinned .pin-btn {
  opacity: 1;
  color: #007bff !important;
}

.category-content {
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  background: #fafafa;
  max-height: 300px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.category-content.collapsed {
  max-height: 0;
  padding: 0 0.75rem;
  border-top: none;
  overflow: hidden;
}

.works-main {
  flex: 1;
  padding: 0 2rem;
  overflow-x: hidden;
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
}

.works-header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #212529;
}

.works-count {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

.tag-group, .decade-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}


#search-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #000;
  border-radius: 0;
  font-size: 1rem;
  background: #fff;
  color: #000;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

#search-input:focus {
  border: 2px solid #000;
  outline: none;
  background: #fff;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#year-range {
  min-width: 200px;
}

.tags-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-checkbox:hover {
  background: #e9ecef;
}

.tag-checkbox input[type="checkbox"] {
  margin: 0;
}

.clear-btn {
  padding: 0.4rem 0.8rem !important;
  background: #000 !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.8rem !important;
}

.clear-btn:hover {
  background: #333 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .works-layout {
    flex-direction: column;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Hide the entire filter sidebar on mobile */
  .filter-sidebar {
    display: none !important;
  }

  .works-main {
    padding: 0 1rem;
    width: 100%;
    max-width: 100vw !important;
    flex: none;
    box-sizing: border-box !important;
  }

  .works-header h1 {
    font-size: 2rem;
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 100% !important;
  }
}

/* Works grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.work-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.work-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.work-image img,
.work-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.work-card:hover .video-indicator {
  opacity: 0;
}

.audio-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

.work-card:hover .audio-indicator {
  opacity: 0.8;
}

.work-info {
  padding: 1rem 0.75rem 0.5rem 0.75rem;
  background: #fff;
}

.work-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

.work-info .work-year {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
}

.audio-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.audio-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.1) 2px,
    rgba(255, 255, 255, 0.1) 4px
  );
  pointer-events: none;
}

.audio-icon {
  font-size: 40px;
  margin-bottom: 0.75rem;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 1;
  position: relative;
}

.audio-title {
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0 1rem;
  opacity: 0.9;
  z-index: 1;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-style: italic;
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.work-card:hover .work-overlay {
  transform: translateY(0);
}

.work-overlay h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: white;
}

.work-overlay p {
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.work-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 12px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #6c757d;
  font-style: italic;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header-sticky {
  position: sticky;
  top: 0;
  background-color: #fff;
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 8px 8px 0 0;
}

.modal-work-title {
  font-size: 1.5rem;
  margin: 0;
  flex-grow: 1;
}

.work-year-header {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
}

.close {
  position: sticky;
  top: 15px;
  right: 25px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1003;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  float: right;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.close:hover {
  color: #000;
  background: rgba(255, 255, 255, 1);
}

.work-detail {
  padding: 2rem;
}

.work-images img,
.work-images video,
.work-images audio {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.pdf-download {
  display: inline-block;
  margin-bottom: 1rem;
}

.pdf-download a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.pdf-download a:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.pdf-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.pdf-title {
  font-size: 1.1rem;
  font-weight: 500;
}

/* 3D Model Viewer Styles */
.model-viewer-container {
  width: 100%;
  margin: 2rem 0;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.model-viewer-container model-viewer {
  width: 100%;
  height: 500px;
  border-radius: 4px;
  --poster-color: transparent;
}

.model-caption {
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

.model-credit {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .model-viewer-container model-viewer {
    height: 350px;
  }
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.photo-credit {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  padding: 0.5rem;
  background: #f8f9fa;
  border-left: 3px solid #dee2e6;
}

.work-info h2 {
  margin: 0 0 0.5rem 0;
  color: #222;
}

.work-year {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.work-description {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.work-info .work-tags {
  margin-bottom: 1.5rem;
}

.work-info .tag {
  background: #f8f9fa;
  color: #495057;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.exhibitions h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

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

.exhibitions li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.exhibitions li:last-child {
  border-bottom: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tags-filter {
    justify-content: center;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .work-detail {
    padding: 1rem;
  }
}

/* === MOBILE HAMBURGER NAVIGATION === */

/* Mobile breakpoints */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Override navbar layout for mobile */
  .navbar {
    display: block !important;
    padding: 0.25rem !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Hide ALL existing navigation elements */
  .nav-search {
    display: none !important;
  }

  .desktop-search {
    display: none !important;
  }

  .desktop-search .search-input-wrapper {
    display: none !important;
  }

  .navbar .menu {
    display: none !important; /* Hide by default on mobile */
  }

  .navbar ul.menu {
    display: none !important;
  }

  .navbar > ul {
    display: none !important;
  }

  /* Hide any other navigation elements */
  .navbar > *:not(.nav-header):not(.mobile-search):not(.nav-menu) {
    display: none !important;
  }

  /* Simple flexbox approach */
  .nav-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 0.25rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .nav-brand {
    flex: 1 !important;
    overflow: hidden !important;
    display: block !important;
  }

  .nav-brand .brand-link {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .nav-controls {
    flex-shrink: 0 !important;
    width: auto !important;
    display: flex !important;
    gap: 0.2rem !important;
  }

  /* For very narrow screens */
  @media (max-width: 320px) {
    .navbar {
      padding: 0.1rem !important;
    }

    .nav-brand .brand-link {
      font-size: 0.8rem !important;
    }

    .nav-controls {
      min-width: 50px !important;
      gap: 0.1rem !important;
    }
  }

  /* Nav controls container */
  .nav-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }

  /* Make sure buttons are visible */
  .nav-controls * {
    display: block !important;
  }

  /* Fix mobile button positioning */
  .search-toggle-btn, .hamburger-btn {
    flex-shrink: 0 !important;
    z-index: 10 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 0 !important;
  }

  /* Hide any hamburger lines on mobile */
  .hamburger-btn .hamburger-line {
    display: none !important;
  }

  .mobile-search {
    display: none; /* Hidden by default, but can be shown via JavaScript */
  }

  .mobile-search.search-open {
    display: block !important;
  }

  .mobile-search .search-input-wrapper {
    display: flex !important;
  }

  .nav-menu {
    display: block !important;
  }

  .nav-menu.mobile-open .menu {
    display: block !important;
  }
}

/* Desktop Language Selector - hidden on mobile by default */
.desktop-language-selector {
  display: none;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 100;
}

@media (min-width: 769px) {
  /* Hide mobile elements, show desktop */
  .nav-header {
    display: none;
  }

  .mobile-search {
    display: none;
  }

  .nav-menu {
    display: block !important;
  }

  .desktop-search {
    display: block;
  }

  .desktop-language-selector {
    display: block !important;
  }
}

/* Navigation Header (Mobile) */
.nav-header {
  display: none; /* Hidden by default, shown on mobile via media query */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0;
}

.nav-brand .brand-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000 !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

/* Search toggle button */
/* Language Toggle Button */
.language-toggle-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  font-weight: bold;
  height: 30px;
  min-width: 30px;
  transition: background 0.2s;
}

.language-toggle-btn:hover {
  background: #333333;
}

.search-toggle-btn {
  background: none !important;
  border: none !important;
  font-size: 1.2rem !important;
  color: #000 !important;
  cursor: pointer;
  padding: 0.5rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle-btn:hover {
  color: #333 !important;
  background: #f8f9fa !important;
  border-radius: 4px;
}

/* Hamburger Button */
.hamburger-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 3px !important;
  cursor: pointer;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  position: relative;
  box-sizing: border-box !important;
  text-align: center !important;
}

.hamburger-btn:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

.hamburger-btn:active,
.hamburger-btn.open {
  background: #555555 !important;
  color: #ffffff !important;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: #000;
  margin: 2px 0;
  transition: 0.3s;
  transform-origin: center;
}

/* Hamburger animation when open */
.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Search */
.mobile-search {
  display: none; /* Hidden by default */
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.mobile-search.search-open {
  display: block;
}

/* Navigation Menu */
.nav-menu {
  position: relative;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav-menu.mobile-open {
    display: block;
  }

  .navbar .menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .navbar .menu > li {
    border-bottom: 1px solid #f1f3f4;
  }

  .navbar .menu > li:last-child {
    border-bottom: none;
  }

  .navbar .menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
  }

  .navbar .menu > li > a:hover {
    background: #f8f9fa;
    text-decoration: none;
  }

  /* Menu sections styling */
  .menu-section {
    padding: 0;
  }

  .menu-section h3 {
    margin: 0;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8f9fa;
  }

  .section-links {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
  }

  .section-links li {
    border-bottom: 1px solid #f1f3f4;
  }

  .section-links li:last-child {
    border-bottom: none;
  }

  .section-links a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    color: #555 !important;
    font-weight: 400;
  }

  .section-links a:hover {
    background: #f1f3f4;
    color: #000 !important;
    text-decoration: none;
  }
}

/* Desktop Navigation adjustments */
@media (min-width: 769px) {
  .navbar {
    padding: 1rem 2rem;
  }

  .navbar .menu {
    gap: 2.5rem;
  }

  /* Convert menu sections to dropdowns on desktop */
  .menu-section {
    position: relative;
  }

  .menu-section h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.5rem 0;
  }

  .menu-section h3:hover {
    text-decoration: underline;
  }

  .section-links {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.25rem 0;
    min-width: 180px;
    z-index: 1000;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .menu-section:hover .section-links {
    display: block;
  }

  .section-links li {
    padding: 0;
  }

  .section-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: #000 !important;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
  }

  .section-links a:hover {
    background: #f2f2f2;
    text-decoration: none;
  }
}
