.flex-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;
  outline: none;
}
.flex-carousel[data-hover='open'] { cursor: zoom-in; }
.flex-carousel[data-hover='close'] { cursor: zoom-out; }
.flex-carousel[data-dragging] { cursor: grabbing; }
.flex-carousel:focus-visible { box-shadow: inset 0 0 0 2px rgba(128, 128, 140, 0.55); }
.flex-carousel__caption {
  position: absolute; left: 0; right: 0;
  top: calc(50% + var(--flex-carousel-half) * var(--flex-carousel-lift, 1) + 22px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 16px; pointer-events: none; text-align: center;
  animation: flex-carousel-reveal 900ms ease both;
}
.flex-carousel__title {
  display: flex; flex-direction: column; align-items: center; max-width: 100%;
  font-size: 15px; font-weight: 500; line-height: 1.35;
  animation: flex-carousel-title 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.flex-carousel__subtitle { font-weight: 400; opacity: 0.6; }
.flex-carousel__count {
  display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1;
  font-variant-numeric: tabular-nums; opacity: 0.5; transition: opacity 400ms ease;
}
.flex-carousel__count[data-hidden] { opacity: 0; }
.flex-carousel__digits { display: inline-flex; }
.flex-carousel__digit { display: inline-block; height: 1em; overflow: hidden; }
.flex-carousel__reel { display: flex; flex-direction: column; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.flex-carousel__reel span { height: 1em; }
.flex-carousel__slash { opacity: 0.6; }
.flex-carousel__live {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@keyframes flex-carousel-title { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flex-carousel-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .flex-carousel__caption, .flex-carousel__title { animation: none; }
  .flex-carousel__reel { transition: none; }
}

.fc-lightbox {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms;
  overscroll-behavior: contain; cursor: zoom-out;
}
.fc-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.fc-card {
  position: relative; display: flex; flex-direction: column; width: fit-content; max-width: 92vw; max-height: 92vh;
  background: #111; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); color: #fff; cursor: default;
  transform: translateY(24px) scale(0.92); transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fc-lightbox.is-open .fc-card { transform: none; }
.fc-card img { display: block; width: auto; height: auto; max-width: min(92vw, 560px); max-height: calc(92vh - 5.5rem); min-width: 260px; object-fit: contain; background: #000; }
.fc-card-info { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.25rem 1.1rem; }
.fc-card-info strong { font-size: 1rem; font-weight: 600; }
.fc-card-info span { font-size: 0.85rem; opacity: 0.6; line-height: 1.4; }
.fc-close {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.fc-close:hover { background: rgba(0, 0, 0, 0.8); }
@media (prefers-reduced-motion: reduce) { .fc-lightbox, .fc-card { transition: none; } }
