* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #333333;
  font: normal 11px menlo, "andale mono", "courier new", monospace;
  line-height: 155%;
}

html {
  padding-left: 64px;
  padding-right: 64px;
}

a {
  color: #111111;
}

a:hover {
  text-decoration: none;
  color: #111111;
}

#container {
  margin-bottom: 64px;
}

#blog_title {
  margin-top: 64px;
  text-align: center;
  text-transform: uppercase;
  font-weight: normal;
  font-size: 11px;
}

#blog_title a {
  text-decoration: none;
}

ul#posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

li.post {
  margin-top: 64px;
  text-align: center;
}

.photo_div {
  line-height: 0;
}

img.photo_img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.4em;
}

.date {
  margin-top: 1.5em;
}

.date a {
  color: #999999;
  text-decoration: none;
}

.date a:hover {
  text-decoration: underline;
}

.caption {
  width: 500px;
  max-width: 100%;
  margin: 1.5em auto 0;
  text-align: center;
}

#pagers {
  margin-top: 64px;
  text-align: center;
}

#pagers a {
  margin: 0 2em;
  text-decoration: none;
}

#pagers a:hover {
  text-decoration: underline;
}

.admin,
.panel {
  width: 500px;
  max-width: 100%;
  margin: 64px auto 0;
  text-align: left;
}

.admin-wide {
  width: 920px;
}

.admin h2,
.panel h2 {
  text-transform: uppercase;
  font-weight: normal;
  font-size: 11px;
  margin: 0 0 1.5em;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em;
  align-items: baseline;
}

.admin-head h2,
.admin-head .message {
  margin: 0;
}

.admin form,
.panel form {
  margin: 0;
}

.admin label {
  display: block;
  margin-bottom: 0.5em;
  color: #666666;
}

.admin input[type="file"],
.admin input[type="text"],
.admin input[type="date"] {
  display: block;
  width: 100%;
  margin-bottom: 1.5em;
  font: inherit;
}

.admin button,
.panel a.button,
.admin a.button,
.nav-links a {
  font: inherit;
  background: none;
  border: 1px solid #111;
  padding: 0.4em 1em;
  cursor: pointer;
  text-decoration: none;
  color: #111;
  display: inline-block;
}

.admin button:hover,
.panel a.button:hover,
.admin a.button:hover,
.nav-links a:hover {
  background: #111;
  color: #fff;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.5em 0;
}

.admin-upload {
  margin: 1.5em 0 0;
}

.admin-dropzone {
  position: relative;
  border: 1px dashed #111;
  padding: 2.5em 1.5em;
  text-align: center;
  cursor: pointer;
  outline: none;
}

.admin-dropzone:hover,
.admin-dropzone:focus-visible,
.admin-dropzone.is-dragover {
  background: #111;
  color: #fff;
}

.admin-dropzone.is-dragover .admin-dropzone-hint,
.admin-dropzone:hover .admin-dropzone-hint,
.admin-dropzone:focus-visible .admin-dropzone-hint,
.admin-dropzone.is-dragover .admin-dropzone-files,
.admin-dropzone:hover .admin-dropzone-files,
.admin-dropzone:focus-visible .admin-dropzone-files {
  color: #ccc;
}

.admin-dropzone.is-uploading {
  opacity: 0.55;
  pointer-events: none;
}

.admin-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-dropzone-title {
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

.admin-dropzone-hint,
.admin-dropzone-files {
  margin: 0;
  color: #666;
}

.admin-dropzone-files {
  margin-top: 1em;
}

.admin-upload-extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5em;
  align-items: end;
  margin-top: 1em;
}

.admin-upload-extras label {
  margin-bottom: 0;
}

.admin-upload-extras input[type="text"] {
  margin-bottom: 0;
}

.admin-upload-status {
  margin: 0.75em 0 0;
  color: #666;
}

.admin-upload-status.is-busy {
  color: #111;
}

.admin-upload-status.is-error {
  color: #990000;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ddd;
}

.admin-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1em;
  align-items: center;
  padding: 0.85em 0;
  border-bottom: 1px solid #ddd;
}

.admin-thumb {
  display: block;
  line-height: 0;
}

.admin-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.admin-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}

.admin-meta a {
  text-decoration: none;
}

.admin-meta a:hover {
  text-decoration: underline;
}

.admin-caption {
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-id {
  color: #bbbbbb;
  font-size: 10px;
}

.admin-badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.45em;
  border: 1px solid #999;
  color: #666;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  justify-content: flex-end;
}

.admin-controls form {
  display: inline;
}

.admin-controls button {
  padding: 0.3em 0.55em;
  min-width: 2em;
}

.admin-preview {
  margin-bottom: 1.5em;
  line-height: 0;
}

.admin-preview img {
  max-width: 100%;
  height: auto;
}

.message {
  color: #666;
  margin-bottom: 1.5em;
}

.error {
  color: #990000;
  margin-bottom: 1.5em;
}

.nav-links {
  margin-top: 64px;
  text-align: center;
}

.nav-links a {
  margin: 0 0.5em;
}

@media (max-width: 720px) {
  html {
    padding-left: 16px;
    padding-right: 16px;
  }

  .caption,
  .admin,
  .panel {
    width: 100%;
  }

  .admin-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .admin-upload-extras {
    grid-template-columns: 1fr;
  }

  .admin-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-thumb img {
    width: 56px;
    height: 56px;
  }
}
