/* Each artwork and its centered title form a single sliding figure. */
.hero-visual--rotating {
  min-height: 680px;
  height: auto;
  flex-direction: column;
  padding: 20px 0;
  overflow: hidden;
}
.motion-ready .hero-visual--rotating { animation: none; }
.hero-slides {
  display: grid;
  width: 100%;
  max-width: 500px;
  height: 600px;
  overflow: hidden;
}
.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px;
}
.hero-visual--rotating .hero-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  clip-path: none;
  animation: none;
  filter: drop-shadow(2px 5px 3px rgba(54,39,23,.14)) drop-shadow(10px 15px 12px rgba(54,39,23,.19));
}
.hero-visual--rotating .visual-caption {
  position: static;
  inset: auto;
  align-self: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.6;
  font-size: 10px;
  letter-spacing: .13em;
}
.hero-controls { display: flex; justify-content: center; gap: 8px; margin-top: 4px; direction: ltr; }
.hero-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cdbfae;
  border-radius: 10px;
  background: rgba(252,250,246,.72);
  color: #574834;
  cursor: pointer;
  font-size: 15px;
}
.hero-controls button:hover { background: #e6dccd; border-color: #a68a69; }
.hero-controls button:focus-visible { outline: 2px solid #795536; outline-offset: 3px; }
html[lang="ar"] .hero-visual--rotating .visual-caption { letter-spacing: 0; }
@media (max-width: 900px) and (min-width: 701px) {
  .hero-visual--rotating { min-height: 570px; }
  .hero-slides { height: 490px; }
  .hero-visual--rotating .hero-slide img { max-height: 380px; }
}
@media (max-width: 700px) {
  .hero-visual--rotating { height: auto; min-height: 0; padding: 8px 16px 40px; }
  .hero-slides { height: 510px; max-width: 420px; }
  .hero-slide { padding: 16px 20px; gap: 18px; }
  .hero-visual--rotating .hero-slide img { max-height: 390px; }
  .hero-visual--rotating .visual-caption { font-size: 9px; }
}
