.hm-gallery > .hm-skoc-gallery-video {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  gap: 6px;
  width: auto;
  min-width: 80px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 8px;
  background: #c91f25;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(19, 47, 73, .16);
  cursor: pointer;
}
.hm-skoc-gallery-video > svg { flex: 0 0 18px; width: 18px; height: 18px; }
.hm-gallery > .hm-skoc-gallery-video:hover { background: #a71920; }
.hm-skoc-gallery-video:focus-visible,
.hm-skoc-gallery-close:focus-visible { outline: 3px solid #4478bb; outline-offset: 3px; }
.hm-skoc-gallery-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #101927;
  color: #fff;
  overflow: auto;
  box-shadow: 0 16px 64px rgba(0, 0, 0, .35);
}
.hm-skoc-gallery-dialog:not([open]) { display: none; }
.hm-skoc-gallery-dialog::backdrop { background: rgba(10, 20, 31, .78); }
.hm-skoc-gallery-dialog-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; }
.hm-skoc-gallery-dialog-head > h2 { flex: 1; min-width: 0; margin: 0; color: inherit; font-size: 16px; font-weight: 600; line-height: 1.45; font-family: inherit; }
.hm-skoc-gallery-close {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hm-skoc-gallery-close:hover { background: rgba(255, 255, 255, .12); }
.hm-skoc-gallery-close > svg { width: 24px; height: 24px; }
.hm-skoc-gallery-player { width: 100%; aspect-ratio: 16 / 9; }
.hm-skoc-gallery-player > iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 650px) {
  .hm-gallery > .hm-skoc-gallery-video { top: 10px; left: 10px; }
  .hm-skoc-gallery-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .hm-skoc-gallery-dialog-head { gap: 6px; padding: 6px 8px 6px 12px; }
  .hm-skoc-gallery-dialog-head > h2 { font-size: 14px; }
}
