/* The Visitors' Gallery: the save button in each painting's paint tray, the save dialog
   (visitor-gallery.js) and the gallery and creation pages (visitor-pages.js). The colours are
   the homepage's: the valley's ochre sky, its ink and the tree's teal. */
.visitor-save-button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.6px;
  cursor: pointer;
}
.visitor-save-button[hidden] {
  display: none;
}

.visitor-dialog {
  width: min(470px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: 26px 26px 22px;
  border: 0;
  border-radius: 16px;
  background: #f8ecc9;
  color: #2b2210;
  font-family: Sans, Arial, sans-serif;
  box-shadow: 0 24px 60px -20px #2b2210aa;
}
.visitor-dialog::backdrop {
  background: #1c160acc;
}
.visitor-dialog h2 {
  margin: 0 0 12px;
  font: 400 26px/1.15 Dream, Georgia, serif;
  outline: none;
}
.visitor-dialog p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
}
.visitor-dialog a,
.visitor-page main a {
  color: #075262;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.visitor-warning {
  padding: 12px 14px;
  border-left: 3px solid #cf162f;
  background: #fff6dd;
}
.visitor-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
}
.visitor-field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #4d3b1477;
  border-radius: 10px;
  background: #fffaf0;
  color: inherit;
  /* 16px keeps iPhone Safari from zooming into the field. */
  font: 16px Sans, Arial, sans-serif;
}
.visitor-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 6px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.visitor-choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #075262;
}
.visitor-dialog .visitor-note {
  margin-left: 32px;
  font-size: 12px;
  color: #4d3b14;
}
.visitor-status:empty {
  display: none;
}
.visitor-dialog .visitor-status,
.visitor-page .visitor-status {
  font-weight: 600;
  color: #4d3b14;
}
.visitor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.visitor-actions button,
.visitor-actions a,
.visitor-page-actions button,
.visitor-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #2b221066;
  border-radius: 999px;
  background: transparent;
  color: #2b2210;
  font: 14px Sans, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.visitor-actions [hidden],
.visitor-page-actions [hidden],
.visitor-retry[hidden] {
  display: none;
}
.visitor-retry {
  margin-bottom: 24px;
}
/* The way to ask for a creation to be taken down: always visible next to it, never prominent. */
.visitor-report {
  margin: 14px 0 0;
  font-size: 13px;
}
.visitor-report a {
  color: inherit;
}
.visitor-actions [data-action="save"] {
  border-color: #075262;
  background: #075262;
  color: #fff8e6;
}
.visitor-actions button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.visitor-saved .visitor-actions {
  justify-content: flex-start;
}
.visitor-link {
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffaf0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.visitor-page main {
  padding-bottom: 40px;
}
.visitor-page-status {
  font-size: 15px;
}
.visitor-page-status:empty {
  display: none;
}
.visitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 34px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.visitor-grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.visitor-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: #e9dfc9;
  box-shadow: 0 22px 34px -22px #5a3600aa;
}
.visitor-grid h2 {
  margin: 14px 0 4px;
  font: 400 22px/1.2 Dream, Georgia, serif;
  overflow-wrap: anywhere;
}
.visitor-grid p,
.visitor-details {
  margin: 0;
  font-size: 13px;
  color: #4d3b14;
  overflow-wrap: anywhere;
}
.visitor-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 36px;
  font-size: 14px;
}
.visitor-creation {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 40px;
  align-items: start;
}
/* display: grid above would otherwise show the empty actions of a creation that is missing. */
.visitor-creation[hidden] {
  display: none;
}
.visitor-creation-image img {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 140px);
  width: auto;
  height: auto;
  box-shadow: 0 22px 34px -22px #5a3600aa;
}
.visitor-creation h1 {
  margin: 0 0 8px;
  font: 400 clamp(32px, 4vw, 52px) / 1.05 Dream, Georgia, serif;
  overflow-wrap: anywhere;
}
.visitor-creation #creation-author {
  margin: 0 0 12px;
  font-size: 16px;
}
.visitor-creation .visitor-actions {
  justify-content: flex-start;
  margin: 24px 0 12px;
}
@media (max-width: 650px) {
  .visitor-creation {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .visitor-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 26px 16px;
  }
  .visitor-grid h2 {
    font-size: 19px;
  }
}
