/* ============ BASE STYLES ============ */
/* Change if you want bg to be different
:root {
  Color variables for easy theming 
  --primary: #333;
  --secondary: #666;
  --accent: #4a89dc;
}

body {
  Basic typography and spacing
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f9f9f9;
}
*/

/* ============ GRID VIEW ============ */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.art-card {
  /* Card styling with hover effect */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  /*background: white;*/
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.art-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
}


/* ============ TIMELINE VIEW ============ */

.timeline {
  display: block;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-item img {
  margin-bottom: 20px;
  margin-top: 20px;
  max-width: 500px;
  width: 100%;
  height: auto;    
  border-radius: 8px;
  object-fit: contain;
}

/* ============ FILTER CONTROLS ============ */
.filters {
  /* Filter panel styling */
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  order: 1;
}

.filter-group {
  /* Individual filter group styling */
  min-width: 150px;
  padding: 10px;
  border-radius: 4px;
}

.filter-group h3 {
  /* Filter group headings */
  margin-top: 0;
  font-size: 1rem;
}

.filter-group label {
  /* Filter checkbox labels */
  display: block;
  margin: 5px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: #181819
}

/* ============ LIGHTBOX ============ */
.lightbox {
  /* Full-screen overlay */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  order: 0;
}

.lightbox-close {
    position: fixed;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#lightbox-image {
    max-height: 85vh;
    max-width: 85vw;
    object-fit: contain;
    width: auto;
    height: auto;
}

.nav-arrow {
  /* Navigation arrow buttons */
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  transform: scale(1.1);
}

/* ============ VIEW CONTROLS ============ */
.view-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* ============ MOBILE STYLES ============ */
@media (max-width: 768px) {
  .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
  }
    
  .nav-arrow {
      width: 50px;
      height: 50px;
      font-size: 2rem;
      margin: 0 10px;
  }
  
  #lightbox-image {
      max-height: 70vh;
      max-width: 95vw;
  }

  .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .timeline-item img {
        max-width: 90%;
        height: auto;
  }
  
  .filters {
    /* Stack filters vertically on mobile */
    flex-direction: column;
  }
  
  /* Show mobile touch areas */
  .mobile-nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25%;
    z-index: 100;
  }

  .mobile-nav-area.left {
      left: 0;
  }

  .mobile-nav-area.right {
      right: 0;
  }
}