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

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.5;
  padding-bottom: 60px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Make all images non-draggable */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Header */
header {
  background: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 2rem;
}

/* Intro */
.intro {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 30px;
}

.intro img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.intro p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
}

.contact-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-links a {
  color: #3498db;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.contact-links a:hover {
  background: #3498db;
  color: white;
}

/* Dates */
.date {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.art-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.art-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.art-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.description {
  padding: 20px;
}

.description h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.description p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Content pages */
.content {
  max-width: 800px;
  margin: 20px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
}

.content .date {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1rem;
}

.image-container {
  width: 100%;
  max-height: 400px;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Text content - simplified formatting */
.text-content {
  max-width: none;
}

.text-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.text-content h3 {
  margin: 25px 0 12px 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.text-content h4 {
  margin: 20px 0 10px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.text-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.text-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.text-content strong {
  font-weight: 600;
}

.text-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.text-content a {
  color: #3498db;
  text-decoration: underline;
}

.text-content a:hover {
  color: #2980b9;
}

/* Images and figures */
.text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}

.text-content figure {
  margin: 20px 0;
  text-align: center;
}

.text-content figcaption {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* YouTube videos */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.back-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background: #3498db;
  color: white;
  border-radius: 6px;
  transition: background 0.2s ease;
  font-weight: 500;
}

.back-btn:hover {
  background: #2980b9;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #999;
  font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .art-item img {
    height: 160px;
  }

  .image-container {
    max-height: 300px;
  }

  .content {
    margin: 10px;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .content h2 {
    font-size: 1.6rem;
  }
}