/* Artwork figure styling - alternating left/right */
.artwork-figure {
  float: right;
  margin: 0 0 1.5rem 2rem;
  padding: 0;
  max-width: 40%;
  clear: both;
}

/* Alternate every other image to the left */
.artwork-figure:nth-of-type(even) {
  float: left;
  margin: 0 2rem 1.5rem 0;
}

.artwork-figure .artwork-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 0.5rem 0;
  border-radius: 2px;
}

.artwork-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  text-align: center;
  margin: 0;
}

.artwork-link {
  font-weight: normal;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #999;
}

.artwork-link:hover {
  border-bottom-style: solid;
}

/* Ensure section headers clear floats and span full width */
/* Only h2 and below - let content flow naturally at the top */
h2, h3, h4, h5, h6 {
  clear: both;
}

/* Responsive: remove float on mobile */
@media (max-width: 768px) {
  .artwork-figure {
    float: none;
    margin: 2rem auto;
    max-width: 90%;
  }
  
  .artwork-caption {
    text-align: center;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .artwork-caption {
    color: #999;
  }
  
  .artwork-link {
    border-bottom-color: #666;
  }
}
