/* Полигон — слоты фото и превью камеры (телефон / iOS) */

.poligon-page {
  max-width: 720px;
  width: 100%;
}

.poligon-slot {
  width: 112px;
  height: 112px;
  padding: 0;
  margin: 0;
  border: 2px dashed var(--mantine-color-gray-4);
  border-radius: 8px;
  background: var(--mantine-color-gray-0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.poligon-slot:hover,
.poligon-slot:active {
  border-color: var(--mantine-color-cyan-5);
  background: var(--mantine-color-cyan-0);
}

.poligon-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.poligon-video-wrap {
  width: 100%;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: min(70vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poligon-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  /* задняя камера — без зеркала (фронтальную часто зеркалят) */
  transform: none;
  -webkit-transform: none;
}

@media (max-width: 480px) {
  .poligon-slot {
    width: 96px;
    height: 96px;
  }

  .poligon-video-wrap {
    aspect-ratio: 3 / 4;
    max-height: 55vh;
  }
}
