.factory-video__trigger {
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.factory-video__dialog {
  box-sizing: border-box;
  width: min(880px, calc(100% - 24px));
  max-width: none;
  max-height: 92svh;
  padding: clamp(12px, 2.4vw, 22px);
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: #f4f2e9;
  color: #21342a;
  box-shadow: 0 16px 60px #07120d55;
}

.factory-video__dialog::backdrop { background: #07120dcc; }

.factory-video__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 12px;
}

.factory-video__header h2 {
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.factory-video__header form { margin: 0; }

.factory-video__header button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #879980;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.factory-video__header svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.factory-video__dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 67svh;
  border-radius: 8px;
  background: #07120d;
}

.factory-video__fallback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #385b1e;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.factory-video__dialog :focus-visible, .factory-video__trigger:focus-visible {
  outline: 2px solid #385b1e;
  outline-offset: 3px;
}
