/* Keep the existing grid's hero-photo dimensions on the gallery wrapper. */
.ff-live-content .hero-grid .tff-gallery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}
.ff-live-content .hero-grid .tff-gallery > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--tff-photo-position, 50% 54%);
  z-index: 0;
}
.ff-live-content .hero-grid .tff-gallery > img[data-tff-active] { z-index: 1; }
.ff-live-content .tff-gallery [hidden] { display: none !important; }

.ff-live-content .tff-gallery .tff-gallery-controls {
  position: absolute;
  z-index: 2;
  inset-inline-end: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgb(188 73 87 / 18%);
  border-radius: 99px;
  background: #fffcfc;
  box-shadow: 0 2px 12px rgb(39 19 24 / 14%);
  color: #65313b;
  font-family: inherit;
}
.ff-live-content .tff-gallery-controls button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #993747;
  font: inherit;
  cursor: pointer;
}
.ff-live-content .tff-gallery-controls button:focus-visible {
  outline: 2px solid #bc4957;
  outline-offset: -3px;
}
@media (hover: hover) {
  .ff-live-content .tff-gallery-controls button:hover {
    background: #faeef0;
    color: #993747;
  }
}
.ff-live-content .tff-gallery-controls button svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.ff-live-content .tff-gallery-count {
  min-width: 4ch;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ff-live-content .tff-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ff-live-content .hero-grid .tff-gallery > img {
    object-position: var(--tff-photo-position-mobile, var(--tff-photo-position, 50% 54%));
  }
  .ff-live-content .tff-gallery .tff-gallery-controls {
    bottom: 10px;
    inset-inline-end: 10px;
  }
}
