/* Pages d'oeuvres (peinture + légende + détails) */

.artwork-block {
  margin-bottom: 40px;
}

.artwork-block:last-of-type {
  margin-bottom: 0;
}

.artwork-block h2 {
  margin-bottom: 12px;
}

.artwork-block > p:not(.artwork-caption) {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.artwork-caption {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.artwork-caption em {
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
}

.artwork-image {
  display: flex;
  justify-content: center;
}

.artwork-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.artwork-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
  margin-top: 16px;
}

.artwork-details figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artwork-details img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.artwork-details figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.artwork-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.artwork-side .artwork-image {
  flex: 0 0 auto;
}

.artwork-side .artwork-side-text {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.artwork-frise {
  margin: 32px 0;
  text-align: center;
}

.artwork-frise img {
  display: block;
  margin: 0 auto;
  max-width: 320px;
  width: 60%;
  height: auto;
  opacity: 0.7;
}

.artwork-divider {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--line);
}

.artwork-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 560px) {
  .artwork-details {
    grid-template-columns: 1fr !important;
  }

  .artwork-side {
    flex-direction: column;
    align-items: stretch;
  }
}
