/* Optional public photo and schedule details. */
.library-upload-form { max-width: 800px; margin: 0 auto 48px; }
.library-upload-form h2, .library-list-heading h2 { margin: 0; font-size: 22px; font-weight: 500; }
.library-intro { font-size: 13px; line-height: 1.9; color: #796474; margin-bottom: 24px; }
.library-upload-form .drop-zone { margin-bottom: 28px; }
.library-metadata-help { margin: -7px 0 20px; line-height: 1.8; }
.library-event-fields select { width: 100%; min-width: 0; }
.library-event-fields select:disabled { background: #f6f0f4; color: #847781; }
.library-list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.library-count { margin: 0; color: #796474; font-size: 12px; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.library-card { min-width: 0; border: 1px solid #dfdbe5; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 6px 0 #dff3ef; }
.library-photo-button { display: block; width: 100%; padding: 0; border: 0; background: #eef8f9; cursor: zoom-in; }
.library-photo-button img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.library-photo-button:focus-visible { outline: 3px solid #91617e; outline-offset: -4px; }
.library-card-body { padding: 18px; }
.library-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.library-card-title h3 { margin: 0; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.library-state { flex-shrink: 0; font-size: 10px; border: 1px solid #e7dae1; border-radius: 20px; padding: 5px 8px; color: #796474; }
.library-state.is-public { background: #e1f9f1; color: #386f63; border-color: #b4e1d4; }
.library-original-link { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 11px; color: #796474; }
.library-original-link span { margin-left: auto; font-size: 10px; }
.library-editor { border-top: 1px solid #eee0e8; }
.library-editor>summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-size: 12px; color: #79546d; list-style: none; }
.library-editor>summary::-webkit-details-marker { display: none; }
.library-editor[open]>summary .icon { transform: rotate(45deg); }
.library-edit-form { padding-top: 16px; }
.library-edit-form .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
.library-edit-form .field { min-width: 0; }
.library-edit-form .field input, .library-edit-form .field select { width: 100%; min-width: 0; }
.library-edit-form .optional-fields { padding-inline: 12px; }
.library-edit-form .check-field { font-size: 12px; }
.library-empty { grid-column: 1 / -1; padding: 30px 0; }
.library-more { display: flex; justify-content: center; margin-top: 30px; }
.library-more [hidden] { display: none; }
@media(max-width: 1050px) { .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 767px), (max-width: 1024px) and (max-height: 500px) {
  .library-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .library-upload-form { margin-bottom: 32px; }
  .library-upload-form h2, .library-list-heading h2 { font-size: 18px; }
  .library-intro { font-size: 12px; }
  .library-upload-form .field input, .library-upload-form .field select, .library-edit-form .field input, .library-edit-form .field select { font-size: 16px; min-height: 48px; }
  .library-photo-button img { aspect-ratio: 1 / 1; }
  .library-card-body { padding: 18px; }
  .library-editor>summary { min-height: 48px; }
  .library-list-heading { align-items: baseline; }
}
.photo-context { display: grid; gap: 4px; margin: 7px 0; min-width: 0; }
.gallery-tile figcaption .photo-context .photo-meta-line,
.lightbox-copy .photo-context .photo-meta-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px;
  margin: 0; font-size: 11px; line-height: 1.65; color: #716373;
  overflow-wrap: anywhere;
}
.photo-schedule time { color: #776f7c; font-variant-numeric: tabular-nums; }
.photo-meta-label { flex-shrink: 0; color: #557a82; font-size: 10px; }
.photo-context + .photo-credit { display: inline-block; margin-top: 2px; }
.lightbox-copy .photo-context { gap: 7px; margin: 14px 0; }
.lightbox-copy .photo-context .photo-meta-line { font-size: 12px; }
.lightbox-copy .photo-meta-label { font-size: 11px; }
.event-copy .event-cosplay,
.schedule-admin-item .event-cosplay { color: #526e76; overflow-wrap: anywhere; }
.event-cosplay .photo-meta-label { margin-right: 7px; }
.calendar-event-name { display: block; }
.calendar-event-cosplay { display: block; margin-top: 2px; font-size: .92em; color: #526e76; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .gallery-tile figcaption .photo-context .photo-meta-line { font-size: 10px; gap: 2px 5px; }
  .gallery-tile .photo-meta-label { font-size: 9px; }
  .photo-context { gap: 3px; margin: 6px 0; }
  .calendar-event-cosplay { font-size: 8px; line-height: 1.4; }
}

/* Private, per-photo return selection. */
.file-selection-state:empty, .file-selection-feedback:empty { display: none; }
.file-selection-notice { padding: 12px; margin: 12px 0; border: 1px solid #ddcfd9; border-radius: 10px; background: #f8f1f6; color: #674e61; overflow-wrap: anywhere; }
.file-selection-notice .file-selection-label { display: inline-block; padding: 3px 7px; margin-bottom: 8px; border-radius: 12px; background: #e9dce6; font-size: 11px; font-weight: 500; }
.file-selection-notice strong { display: block; font-size: 12px; line-height: 1.75; font-weight: 500; }
.file-selection-notice p { margin: 7px 0 0; font-size: 12px; line-height: 1.85; }
.file-info .file-selection-toggle { margin-top: 10px; min-height: 44px; font-size: 12px; }
.file-info .file-selection-toggle[aria-pressed="true"] { background: #f4eaf1; border-color: #baa1b3; }
.file-info .file-selection-feedback { margin: 8px 0 0; font-size: 11px; line-height: 1.75; white-space: normal; color: #674e61; }
.lightbox-copy .file-selection-notice p { font-size: 12px; }
