.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.artwork-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.artwork-card--landscape {
  grid-column: span 2;
}

.artwork-card--full {
  grid-column: span 3;
}

@media (max-width: 600px) {
  .artwork-grid {
    grid-template-columns: 1fr;
  }
  .artwork-card--landscape,
  .artwork-card--full {
    grid-column: span 1;
  }
}

.artwork-card img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Not strictly necessary with height:auto, but safe */
  display: block;
}

.artwork-info {
  padding: 12px;
  margin-top: auto;
}

.artwork-info h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #333;
}

.artwork-info p {
  margin: 0;
  font-weight: thin;
  color: black;
}

.artwork-card img {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.gallery-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-link {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
}

.gallery-link img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.gallery-link h2 {
  margin: 0;
  padding: 12px;
  font-size: 1.2em;
  color: #333;
}

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