.rc-overlay,
.rc-overlay *,
.rc-overlay *::before,
.rc-overlay *::after {
  box-sizing: border-box;
  animation: none;
  transition: none;
}

.rc-overlay {
  --rc-ink: #090a0a;
  --rc-bar: #080909;
  --rc-paper: #f7f7f4;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--rc-ink);
  color: var(--rc-paper);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.rc-overlay:fullscreen {
  width: 100%;
  height: 100%;
  background: var(--rc-ink);
}

.rc-overlay::backdrop {
  background: #080909;
}

.rc-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--rc-ink);
  color: var(--rc-paper);
  box-shadow: none;
  overscroll-behavior: none;
}

.rc-dialog:focus {
  outline: none;
}

.rc-header {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  min-height: 62px;
  padding: max(6px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 6px
    max(22px, env(safe-area-inset-left));
  background: var(--rc-bar);
}

.rc-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.rc-close,
.rc-cancel,
.rc-fallback,
.rc-remove,
.rc-gallery,
.rc-switch,
.rc-torch,
.rc-shutter {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.rc-presentation-notice {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: calc(166px + env(safe-area-inset-bottom));
  left: 12px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 5px;
  background: rgb(8 9 9 / 85%);
  color: #fff;
  text-align: center;
  font-size: .8rem;
}

.rc-presentation-retry {
  position: absolute;
  z-index: 5;
  bottom: calc(111px + env(safe-area-inset-bottom));
  left: 50%;
  min-height: 44px;
  padding: 8px 16px;
  transform: translateX(-50%);
  border: 1px solid #fff;
  border-radius: 5px;
  background: #080909;
  color: #fff;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.rc-presentation-notice[hidden],
.rc-presentation-retry[hidden] {
  display: none;
}

.rc-close {
  min-width: 70px;
  min-height: 46px;
  padding: 0 4px;
  background: transparent;
  color: #f9f9f7;
  font-size: 1.27rem;
  font-weight: 650;
  letter-spacing: -.035em;
}

.rc-cancel {
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  margin-right: auto;
  padding: 0;
  background: transparent;
  color: #f9f9f7;
}

.rc-cancel svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.rc-camera-frame {
  position: absolute;
  z-index: 0;
  inset: calc(62px + env(safe-area-inset-top)) 0 calc(94px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050606;
}

.rc-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050606;
}

.rc-camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #101212;
  color: #e8e9e6;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.rc-camera-placeholder[hidden],
.rc-fallback[hidden],
.rc-torch[hidden] {
  display: none;
}

.rc-placeholder-error {
  color: #ffe1b6;
}

.rc-status {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(111px + env(safe-area-inset-bottom));
  width: min(92%, 540px);
  min-height: 1.3em;
  margin: 0;
  padding: 7px 12px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: rgb(8 9 9 / 66%);
  color: #f4f4f0;
  text-align: center;
  font-size: .84rem;
  line-height: 1.35;
  pointer-events: none;
}

.rc-status-error {
  color: #ffe0b5;
}

.rc-status:not(.rc-status-error) {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.rc-fallback {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  min-height: 46px;
  padding: 0 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 5px;
  background: #f5f5f2;
  color: #111;
  font-weight: 650;
}

.rc-count {
  position: absolute;
  z-index: 3;
  top: calc(70px + env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgb(8 9 9 / 66%);
  color: #f4f4f0;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.rc-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(54px, 1fr) 82px minmax(54px, 1fr);
  align-items: center;
  justify-items: center;
  gap: 14px;
  min-height: calc(94px + env(safe-area-inset-bottom));
  padding: 8px max(25px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom))
    max(25px, env(safe-area-inset-left));
  background: var(--rc-bar);
}

.rc-gallery,
.rc-switch,
.rc-torch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 54px;
  min-height: 58px;
  padding: 4px;
  background: transparent;
  color: #f4f4f0;
}

.rc-gallery {
  justify-self: start;
}

.rc-switch {
  justify-self: end;
}

.rc-gallery svg,
.rc-switch svg,
.rc-torch svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rc-gallery svg rect:nth-child(2) {
  fill: currentColor;
  stroke: none;
}

.rc-control-label {
  color: #d7d8d4;
  font-size: .65rem;
  line-height: 1;
}

.rc-shutter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 4px solid #f8f8f5;
  border-radius: 50%;
  background: transparent;
  color: #f8f8f5;
}

.rc-shutter:hover:not(:disabled) {
  background: rgb(255 255 255 / 15%);
}

.rc-shutter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: #f8f8f5;
  color: #101111;
}

.rc-shutter-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rc-shutter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.rc-torch {
  position: absolute;
  z-index: 4;
  top: calc(68px + env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgb(8 9 9 / 64%);
}

.rc-torch-on {
  background: #f0cf70;
  color: #15130d;
}

.rc-photos {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: calc(94px + env(safe-area-inset-bottom));
  left: 0;
  max-height: min(116px, 25dvh);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 14px 7px;
  background: rgb(8 9 9 / 90%);
}

.rc-photos[hidden] {
  display: none;
}

.rc-photos-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.rc-photo-grid {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
}

.rc-photo {
  position: relative;
  width: 70px;
  height: 88px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 4px;
  background: #111;
}

.rc-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090a0a;
}

.rc-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 76%);
  color: white;
  font-size: 0;
}

.rc-remove::before,
.rc-remove::after {
  position: absolute;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.rc-remove::after {
  transform: rotate(-45deg);
}

.rc-overlay button:focus-visible {
  outline: 3px solid #ffe083;
  outline-offset: 3px;
}

.rc-overlay button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.rc-overlay.rc-rotation-ready {
  inset: 50% auto auto 50%;
  width: 100%;
  height: 100dvh;
  transform: translate(-50%, -50%) rotate(var(--rc-ui-rotation, 0deg));
  transform-origin: center;
}

@media (max-width: 360px) {
  .rc-header {
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .rc-controls {
    grid-template-columns: minmax(48px, 1fr) 70px minmax(48px, 1fr);
    gap: 7px;
    padding-right: max(15px, env(safe-area-inset-right));
    padding-left: max(15px, env(safe-area-inset-left));
  }
}

@media (min-width: 900px) {
  .rc-controls {
    grid-template-columns: minmax(70px, 1fr) 88px minmax(70px, 1fr);
  }
}

.rc-overlay.rc-portrait-camera {
  --rc-virtual-safe-top: env(safe-area-inset-left, 0px);
  --rc-virtual-safe-right: env(safe-area-inset-top, 0px);
  --rc-virtual-safe-bottom: env(safe-area-inset-right, 0px);
  --rc-virtual-safe-left: env(safe-area-inset-bottom, 0px);
  position: fixed;
  inset: 50% auto auto 50%;
  width: 100dvh;
  height: 100dvw;
  transform: translate(-50%, -50%) rotate(var(--rc-ui-rotation));
  transform-origin: center;
}

.rc-overlay.rc-portrait-camera.rc-portrait-camera-reverse {
  --rc-virtual-safe-top: env(safe-area-inset-right, 0px);
  --rc-virtual-safe-right: env(safe-area-inset-bottom, 0px);
  --rc-virtual-safe-bottom: env(safe-area-inset-left, 0px);
  --rc-virtual-safe-left: env(safe-area-inset-top, 0px);
}

.rc-portrait-camera .rc-dialog {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.rc-portrait-camera .rc-header {
  min-height: 62px;
  padding: max(6px, var(--rc-virtual-safe-top))
    max(22px, var(--rc-virtual-safe-right)) 6px
    max(22px, var(--rc-virtual-safe-left));
}

.rc-portrait-camera .rc-close,
.rc-portrait-camera .rc-cancel {
  min-height: 46px;
}

.rc-portrait-camera .rc-camera-frame {
  inset: calc(62px + var(--rc-virtual-safe-top)) 0
    calc(94px + var(--rc-virtual-safe-bottom));
}

.rc-portrait-camera .rc-video {
  inset: 50% auto auto 50%;
  width: var(--rc-video-width);
  height: var(--rc-video-height);
  transform: translate(-50%, -50%) rotate(var(--rc-video-rotation));
  transform-origin: center;
  object-fit: cover;
}

.rc-portrait-camera .rc-controls {
  position: absolute;
  inset: auto 0 0;
  grid-template-columns: minmax(54px, 1fr) 82px minmax(54px, 1fr);
  grid-template-rows: auto;
  gap: 14px;
  width: auto;
  min-height: calc(94px + var(--rc-virtual-safe-bottom));
  padding: 8px max(25px, var(--rc-virtual-safe-right))
    max(8px, var(--rc-virtual-safe-bottom))
    max(25px, var(--rc-virtual-safe-left));
}

.rc-portrait-camera .rc-gallery,
.rc-portrait-camera .rc-switch {
  min-width: 54px;
  min-height: 58px;
  padding: 4px;
}

.rc-portrait-camera .rc-gallery {
  justify-self: start;
}

.rc-portrait-camera .rc-switch {
  justify-self: end;
}

.rc-portrait-camera .rc-shutter {
  width: 66px;
  height: 66px;
}

.rc-portrait-camera .rc-status {
  bottom: calc(111px + var(--rc-virtual-safe-bottom));
}

.rc-portrait-camera .rc-count {
  top: calc(70px + var(--rc-virtual-safe-top));
  right: max(16px, var(--rc-virtual-safe-right));
}

.rc-portrait-camera .rc-torch {
  top: calc(68px + var(--rc-virtual-safe-top));
  left: max(14px, var(--rc-virtual-safe-left));
}

.rc-portrait-camera .rc-photos {
  right: 0;
  bottom: calc(94px + var(--rc-virtual-safe-bottom));
  left: 0;
  max-height: min(116px, 25dvw);
}

/* A real portrait fullscreen viewport needs no emulated shell rotation. */
.rc-overlay.rc-rotation-ready:fullscreen {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
