body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background-color: #faf8f4;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ccc;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
}

header h1 a,
header h1 a:hover {
  text-decoration: none;
  color: #333;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  color: #007acc;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

figure {
  margin: 0;
  text-align: center;
}

.gallery figure {
  position: relative;
}

.gallery figure.sold::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #d22;
  box-shadow: 0 0 0 2px #faf8f4;
}

.gallery figure.white-border {
  background: #ffffff;
  padding: 15px;
}

.gallery figure.white-border img {
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.gallery img {
  width: 100%;
  cursor: pointer;
  border-radius: 0px;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.03);
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.about {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

main {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.exhibition-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibition {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0ddd8;
}

.exhibition:last-child {
  border-bottom: none;
}

.exhibition-image {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  border-radius: 4px;
  background-color: #dddddd;
}

.exhibition-content {
  flex: 1;
}

.exhibition-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.exhibition-meta {
  font-size: 0.9rem;
  color: #777;
  margin: 0.25rem 0 0.75rem;
}

.exhibition-description {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .exhibition {
    flex-direction: column;
  }

  .exhibition-image {
    width: 100%;
    height: 180px;
  }
}

.writing {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0ddd8;
}

.writing:last-child {
  border-bottom: none;
}

.writing-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.writing-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.25rem;
}

.writing-excerpt {
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* Modal styles for gallery images */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}


/* Homepage hero */
.hero {
  max-width: 1000px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-image {
  margin-bottom: 1.5rem;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 1000px;
  border-radius: 4px;
}

.hero-image-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-text p {
  max-width: 650px;
  margin: 0.5rem auto;
  line-height: 1.6;
}



.page-banner {
  width: 100%;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}