* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 24px;
  font-weight: 300;
  text-decoration: none;
  color: #333;
}

.instagram-link {
  color: #333;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.instagram-link:hover {
  color: #E4405F;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: 300;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #333;
}

main {
  padding: 80px 0;
}

.hero {
  text-align: center;
  margin-bottom: 100px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #333;
}

.hero p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Series Navigation */
.series-navigation {
  margin-bottom: 60px;
}

.series-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.series-filter {
  padding: 12px 24px;
  border: 2px solid #ddd;
  background: white;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.series-filter:hover {
  border-color: var(--series-color, #333);
  color: var(--series-color, #333);
}

.series-filter.active {
  background: var(--series-color, #333);
  border-color: var(--series-color, #333);
  color: white;
}

/* Series Sections */
.series-section {
  margin-bottom: 80px;
  border-top: 3px solid var(--series-color, #ddd);
  padding-top: 40px;
}

.series-header {
  margin-bottom: 40px;
  text-align: center;
}

.series-title {
  font-size: 36px;
  font-weight: 300;
  color: var(--series-color, #333);
  margin-bottom: 15px;
}

.series-description {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto 10px auto;
  line-height: 1.7;
}

.series-year {
  font-size: 14px;
  color: #999;
  font-style: italic;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Legacy gallery grid for backwards compatibility */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.artwork-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.media-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.artwork-item img,
.artwork-item video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

/* Video indicators */
.video-indicators {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.play-button svg {
  margin-left: 2px; /* Slight offset for visual balance */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Hover effects for video indicators */
.artwork-item:hover .play-button {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.artwork-item:hover .video-indicators {
  opacity: 1;
}

.artwork-info {
  padding: 20px 0;
}

.artwork-info h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}

.artwork-info p {
  color: #666;
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 40px;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.modal img,
.modal video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal iframe {
  width: 90vw;
  height: 50.6vw; /* 16:9 aspect ratio */
  max-width: 1200px;
  max-height: 675px; /* 16:9 aspect ratio for max-width */
}

.modal-info {
  color: white;
  margin-top: 20px;
}

.modal-series-info {
  color: white;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.series-badge {
  background: var(--series-color, #333);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
}

.modal-series-info .series-description {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 15px;
}

.news-content {
  color: #666;
  line-height: 1.7;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 40px;
  text-align: center;
}

.about-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 30px;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-info h1 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-info p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .modal {
    padding: 20px;
  }
}