html {
  scroll-behavior: smooth;
}

img,
video {
  max-width: 100%;
}

.static-modal-open {
  overflow: hidden;
}

.static-media-viewer[hidden],
.static-attendee-count[hidden],
.static-tools-empty[hidden] {
  display: none !important;
}

.static-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.static-media-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 12, 8, 0.88);
  cursor: zoom-out;
}

.static-media-panel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92vh;
  padding: 16px;
  border: 1px solid rgba(190, 255, 41, 0.34);
  background: #11140e;
  box-shadow: 16px 16px 0 rgba(190, 255, 41, 0.18);
  color: #fff;
}

.static-media-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
}

.static-media-panel header p,
.static-media-caption {
  margin: 0;
  color: #d9e2d0;
  font-weight: 700;
}

.static-media-close,
.static-media-prev,
.static-media-next {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: #beff29;
  color: #11140e;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.static-media-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.static-media-stage figure {
  display: grid;
  place-items: center;
  min-height: 280px;
  max-height: calc(92vh - 130px);
  margin: 0;
  overflow: hidden;
  background: #080a07;
}

.static-media-stage img {
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 150px);
  object-fit: contain;
}

.static-media-caption {
  padding-top: 12px;
  text-align: center;
}

.static-form-status {
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px solid #ccd3c5;
  background: #f7f9f4;
  color: #24291f;
  font-weight: 700;
}

.static-form-status[data-kind="success"] {
  border-color: #679800;
  background: #f2ffd7;
  color: #294000;
}

.static-form-status[data-kind="error"] {
  border-color: #d94a35;
  background: #fff1ed;
  color: #8d2518;
}

.static-form-status[data-kind="working"] {
  border-color: #8ca623;
  background: #fbffe9;
}

.static-loading {
  cursor: wait !important;
  opacity: 0.72;
}

.static-attendee-count {
  display: grid;
  gap: 8px;
}

.media-load-error {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d6ddcc;
  background: #f7f9f4;
  color: #252a20;
}

.media-load-error button,
.static-tools-empty button {
  width: fit-content;
  margin-top: 4px;
  padding: 10px 16px;
  border: 1px solid #11140e;
  border-radius: 0;
  background: #beff29;
  color: #11140e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.static-tool-clear {
  flex: 0 0 auto;
}

.static-image-error {
  background: #f1f3ed;
}

@media (max-width: 720px) {
  .static-media-viewer {
    padding: 10px;
  }

  .static-media-panel {
    width: 100%;
    padding: 10px;
    box-shadow: 7px 7px 0 rgba(190, 255, 41, 0.18);
  }

  .static-media-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .static-media-close,
  .static-media-prev,
  .static-media-next {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .static-media-stage figure {
    min-height: 220px;
  }
}
