/* ============================================================
   Art Inventory — featured pieces carousel
   Self-contained: its own CSS custom properties, not dependent on gallery.css being loaded on
   the same page — this is meant to be embedded on a different page than the main gallery (e.g.
   the homepage), on its own. Mirrors gallery.css's default palette for visual consistency; swap
   the values below the same way you'd swap gallery.css's :root block.
   ============================================================ */

:root {
  --fc-accent: #8a7458;
  --fc-caption-bg: rgba(20, 18, 15, 0.85);
  --fc-caption-text: #f2f0ea;
  --fc-control-bg: rgba(255, 255, 255, 0.08);
  --fc-control-border: rgba(255, 255, 255, 0.25);
  --fc-control-bg-hover: rgba(255, 255, 255, 0.18);
  --fc-dot-color: rgba(128, 128, 128, 0.45);
  --fc-dot-active-color: #8a7458;
  --fc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.fc-carousel, .fc-carousel * { box-sizing: border-box; }

.fc-carousel {
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  font-family: var(--fc-font-sans);
  outline: none;
}

.fc-carousel:focus-visible { outline: 2px solid var(--fc-accent); outline-offset: 4px; }

.fc-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.fc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.fc-prev, .fc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: var(--fc-control-bg);
  border: 1px solid var(--fc-control-border);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s;
}

.fc-prev:hover, .fc-next:hover { background: var(--fc-control-bg-hover); }
.fc-prev { left: 18px; }
.fc-next { right: 18px; }

@media (max-width: 640px) {
  .fc-prev, .fc-next { width: 38px; height: 38px; }
}

/* Flush against the image — no gap between the artwork and this caption bar. */
.fc-caption {
  flex: 0 0 auto;
  background: var(--fc-caption-bg);
  color: var(--fc-caption-text);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
}

.fc-caption-title { font-weight: 600; }

.fc-dots {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.fc-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--fc-dot-color);
  cursor: pointer;
}

.fc-dot[aria-current="true"] { background: var(--fc-dot-active-color); }
