[hidden] {
  display: none !important;
}

#content {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.period {
  flex-shrink: 0;
}

.items {
  display: flex;
  gap: 10px;
}

.item {
  width: 240px;
}

.item img,
.item video,
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 240px;
  height: 240px;
  object-fit: cover;
  background: #ddd;
  text-align: center;
  overflow: hidden;
}

.item video {
  object-fit: contain;
  background: black;
}

.audio-placeholder small {
  word-break: break-all;
  padding: 0 10px;
}

.audio-placeholder audio {
  width: 220px;
  margin-top: 20px;
}

.delete-form {
  display: inline;
}

.error {
  color: red;
}

.viewer {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  color: white;
}

.viewer img,
.viewer video {
  max-width: 100vw;
  max-height: 100vh;
}

.viewer-audio {
  text-align: center;
}

#preview {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  background: black;
}

#audio-indicator {
  padding: 12px;
  border: 3px solid black;
  color: black;
  text-align: center;
}

#camera-button.recording {
  background: red;
  color: white;
}

.mode-button.active {
  font-weight: bold;
  text-decoration: underline;
}

#last-capture img,
#last-capture video {
  max-width: 240px;
  max-height: 240px;
  display: block;
}
