@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  background: #f8f8f8;
  color: #222;
}

header {
  background: #222;
  color: #fff;
  padding: 2rem 0 1.5rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  background: none;
  color: #fff;
}

section {
  max-width: 900px;
  margin: 2em auto;
  border-radius: 12px;
}

/* About Section Styles */
.about-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.portrait-container {
  flex-shrink: 0;
}

.portrait {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #222;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
}

.about-text p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Exhibition Styles */
.exhibition-list {
  margin-top: 1.5rem;
}

.exhibition-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.exhibition-item:last-child {
  margin-bottom: 0;
}

.exhibition-year {
  flex-shrink: 0;
  background: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.exhibition-content {
  flex: 1;
  margin: 0 auto;
}

.exhibition-content h3 {
  margin: 0 0 0.5rem 0;
  color: #222;
  font-size: 1.2rem;
  font-weight: 700;
}

.exhibition-location {
  margin: 0.25rem 0;
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
}

.exhibition-description {
  margin: 0.5rem 0 0 0;
  line-height: 1.6;
  color: #555;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #222;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: #222;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #222;
}

.timeline-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #222;
  margin-left: 1rem;
}

.timeline-content h3 {
  margin: 0 0 0.5rem 0;
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
}

.timeline-content .institution {
  margin: 0.25rem 0;
  font-weight: 600;
  color: #444;
  font-size: 1rem;
}

.timeline-content .period {
  margin: 0.25rem 0 0.75rem 0;
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

.timeline-content .description {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #888;
}

@media (max-width: 1200px) {
  section {
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }
  .portrait {
    width: 150px;
    height: 150px;
  }
  .exhibition-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .exhibition-year {
    align-self: center;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline::before {
    left: 0.75rem;
  }
  .timeline-marker {
    left: -1.5rem;
  }
  .timeline-content {
    margin-left: 0.5rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 0.75rem;
    margin: 1.5rem auto;
  }
  
  .about-content {
    gap: 1rem;
  }
  
  .portrait {
    width: 120px;
    height: 120px;
  }
  
  .exhibition-item {
    margin-bottom: 2rem;
  }
  
  .exhibition-content h3 {
    font-size: 1.1rem;
  }
  
  .exhibition-location {
    font-size: 0.9rem;
  }
  
  .exhibition-description {
    font-size: 0.85rem;
  }
  
  .timeline {
    padding-left: 1.25rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-marker {
    left: -1.25rem;
    width: 0.75rem;
    height: 0.75rem;
    top: 0.75rem;
  }
  
  .timeline-content {
    margin-left: 0.25rem;
    padding: 0.75rem;
  }
  
  .timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  
  .timeline-content .institution {
    font-size: 0.9rem;
    margin: 0.2rem 0;
  }
  
  .timeline-content .period {
    font-size: 0.8rem;
    margin: 0.2rem 0 0.5rem 0;
  }
  
  .timeline-content .description {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .timeline-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 360px) {
  section {
    padding: 0.5rem;
    margin: 1rem auto;
  }
  
  .about-content {
    gap: 0.75rem;
  }
  
  .portrait {
    width: 100px;
    height: 100px;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 0.375rem;
  }
  
  .timeline-marker {
    left: -1rem;
    width: 0.625rem;
    height: 0.625rem;
    top: 0.875rem;
  }
  
  .timeline-content {
    margin-left: 0.125rem;
    padding: 0.625rem;
  }
  
  .timeline-content h3 {
    font-size: 1rem;
  }
  
  .timeline-content .institution {
    font-size: 0.85rem;
  }
  
  .timeline-content .period {
    font-size: 0.75rem;
  }
  
  .timeline-content .description {
    font-size: 0.8rem;
  }
}