/* Family Studio: keep photographs clean while preserving documented identities. */
.person-filter,
.photo-people,
.stage-people {
  display: none !important;
}

/* The face layer remains an invisible hit area; no boxes are painted. */
.face-tag rect,
.face-tag:hover rect {
  fill: transparent !important;
  stroke: transparent !important;
  stroke-width: 0 !important;
  filter: none !important;
}

/* Names appear only while the pointer is over the corresponding face. */
.face-tag text {
  opacity: 0 !important;
  pointer-events: none !important;
  fill: #fff !important;
  stroke: rgba(4, 9, 12, .92) !important;
  stroke-width: 6px !important;
  paint-order: stroke fill !important;
  font-size: clamp(16px, 1.35vw, 22px) !important;
  transition: opacity .16s ease !important;
}

.face-tag:hover text {
  opacity: 1 !important;
}

/* The old face-marker toggle is no longer needed while hover labels are active. */
.studio-actions > button.active:first-child {
  display: none !important;
}

@media (hover: none), (pointer: coarse) {
  /* Touch screens keep photos clean; identities remain listed under the image. */
  .face-tag text,
  .face-tag:hover text {
    opacity: 0 !important;
  }
}
