/* FF-016 v1.2.1: immediate preview with a modest, centred close-up. */
.ff016-target {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ff016-target > img.ff016-hover-image,
.ff016-target > .ff016-preview {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 180ms ease;
}
.ff016-target > .ff016-preview {
  z-index: 3;
  background: #000;
  transition: none;
}
.ff016-preview > iframe,
.ff016-preview > video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: scale(var(--ff016-preview-zoom, 1.25)) !important;
  transform-origin: center center !important;
  object-fit: contain !important;
  pointer-events: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .ff016-target.ff016-active > img.ff016-hover-image,
  .ff016-target.ff016-video-active > .ff016-preview {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff016-target > img.ff016-hover-image,
  .ff016-target > .ff016-preview { transition: none; }
}

/* FF-016: touch- and desktop-accessible video action. */
.ff016-has-video { position: relative; isolation: isolate; }
.ff016-has-video > .ff016-play {
  position: absolute !important;
  z-index: 10 !important;
  right: 10px;
  bottom: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  min-width: 76px;
  padding: 8px 12px;
  border: 2px solid #ffde00;
  border-radius: 7px;
  background: rgba(14, 14, 14, .9);
  color: #ffde00;
  font: 900 13px/1.1 inherit;
  font-family: Outfit, sans-serif;
  cursor: pointer;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.ff016-has-video > .ff016-play:hover,
.ff016-has-video > .ff016-play:focus-visible {
  background: #ffde00;
  color: #171717;
  outline-offset: 3px;
}
.ff016-has-video.ff016-video-active > .ff016-preview { opacity: 1; }
@media (hover: none) {
  .ff016-has-video > .ff016-play { min-width: 44px; min-height: 44px; }
}
