/* index.html — hero carousel, testimonials, recent paintings */

.hero-slider {
  position: relative;
  width: 100%;
  background: color-mix(in srgb, var(--brand) 42%, #1a1a1a);
  min-height: min(88vh, 900px);
}

.hero-slides {
  position: relative;
  width: 100%;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: min(88vh, 900px);
  object-fit: cover;
  display: block;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 44px;
  height: 72px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--fs-scroll);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-scroll:hover {
  color: #ffffff;
  opacity: 0.85;
  text-decoration: none;
}

.hero-scroll .chev {
  display: block;
  text-align: center;
  font-size: var(--fs-body);
  margin-top: 4px;
  line-height: 1;
}

.quote-band {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 55%, var(--bg-quote)) 0%, var(--bg-quote) 100%);
  border-bottom: 1px solid var(--rule-light);
  padding: 36px 16px 32px;
}

.quote-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.quote-slides {
  position: relative;
  min-height: 112px;
}

.quote-slides blockquote {
  margin: 0 auto;
  padding: 12px 16px 12px 24px;
  max-width: 52ch;
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-quote);
  line-height: var(--lh-quote);
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
  display: none;
  border-left: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-soft) 40%, transparent), transparent 88%);
}

.quote-slides cite a {
  color: inherit;
  text-decoration: none;
}

.quote-slides cite a:hover {
  color: var(--link-hover);
}

.quote-slides blockquote.is-active {
  display: block;
}

.quote-slides cite {
  display: block;
  margin-top: 20px;
  font-size: var(--fs-cite);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  text-align: right;
  color: var(--cite-color);
}

.quote-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.quote-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 0;
  cursor: pointer;
}

.quote-dots button[aria-selected="true"] {
  background: var(--heading);
  border-color: var(--heading);
}

.recent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.recent-grid a {
  display: block;
  border: 1px solid var(--rule-light);
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.recent-grid a:hover {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--rule-light));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 10%, transparent);
  text-decoration: none;
}

.recent-grid a img {
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.recent-grid a:hover img {
  transform: scale(1.03);
}

.recent-grid figcaption {
  font-family: var(--font-display);
  padding: 12px 0 0;
  font-size: calc(var(--fs-body) + 1px);
  line-height: var(--lh-body);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--heading);
}

.recent-grid img {
  width: 100%;
  display: block;
}

.antiques-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.antiques-preview a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule-light);
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.antiques-preview a:hover {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--rule-light));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 10%, transparent);
  text-decoration: none;
}

.antiques-preview a img {
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.antiques-preview a:hover img {
  transform: scale(1.04);
}

.antiques-preview figure {
  margin: 0;
}

.antiques-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.antiques-preview figcaption {
  font-family: var(--font-display);
  padding: 10px 12px;
  font-size: calc(var(--fs-body) + 1px);
  line-height: var(--lh-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--heading);
}

.antiques-preview-footer {
  text-align: center;
  margin: 16px 0 8px;
  font-size: var(--fs-body);
}

.home-exhibitions-preview {
  margin-bottom: 8px;
}

.home-exhibitions-preview .exhibition-item:last-child {
  border-bottom: 1px solid var(--rule-light);
}

.home-exhibitions-footer {
  text-align: center;
  margin: 20px 0 4px;
  font-size: var(--fs-body);
}

@media (max-width: 760px) {
  .antiques-preview {
    grid-template-columns: 1fr;
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }

  .hero-prev,
  .hero-next {
    width: 36px;
    height: 56px;
    font-size: 1.6rem;
  }
}
