body.public-capture-modal-open {
  overflow: hidden;
}

.capture-day-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.capture-day-modal[hidden] {
  display: none;
}

.capture-day-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, 0.74);
  backdrop-filter: blur(6px);
}

.capture-day-modal-dialog {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.35rem;
  background: rgba(18, 35, 26, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.capture-day-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.capture-day-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.capture-day-modal-nav[hidden] {
  display: none;
}

.capture-day-modal-nav-previous {
  left: 0.8rem;
}

.capture-day-modal-nav-next {
  right: 0.8rem;
}

.capture-day-modal-title {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.capture-day-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 3.5rem 0.75rem 0;
}

.capture-day-modal .capture-day-modal-like {
  position: static;
  flex-shrink: 0;
}

.capture-day-modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 10rem);
  margin: 0 auto;
  border-radius: 0.95rem;
  object-fit: contain;
}

@media (max-width: 900px) {
  .capture-day-modal {
    padding: 0.75rem;
  }

  .capture-day-modal-dialog {
    width: min(96vw, 1200px);
    padding: 0.75rem;
  }

  .capture-day-modal-toolbar {
    margin-right: 3rem;
  }

  .capture-day-modal-nav {
    width: 2.75rem;
    height: 2.75rem;
  }

  .capture-day-modal-nav-previous {
    left: 0.5rem;
  }

  .capture-day-modal-nav-next {
    right: 0.5rem;
  }

  .capture-day-modal-image {
    max-height: calc(100dvh - 8rem);
  }
}
