@charset "UTF-8";

/* Photo gallery (pages/GalleryPage.php, pages/GalleryDetailPage.php). Uses .fleet*, .car-grid, .car-thumb, .car-nav, .news-draft, .news-search, .news-result from the other files; .fleet .gallery-more overrides the margin of .fleet p */
.gallery-card.is-draft { border: 2px dashed #8a4b00; }
.fleet .gallery-card .fleet-short { font-size: 22px; }
.fleet .gallery-card .fleet-type time { text-transform: none; }
.fleet .news-draft { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border: 2px solid #8a4b00; background: #fff6e0; color: #8a4b00; font-size: 14px; font-weight: bold; }
.gallery-count { color: #53616b; }
.gallery-form .fleet-field input[type="date"] { box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 2px solid #53616b;
  background: #fff; color: #202020; font: inherit; font-size: 16px; }
.gallery-form .fleet-field input[type="text"]:focus-visible, .gallery-form .fleet-field input[type="date"]:focus-visible { outline: 3px solid #ffe600; outline-offset: 1px; }

/* Large view: the photo uses the full column width in its own aspect ratio (width/height attributes reserve the space),
   portrait photos are limited to 80 % of the window height; no frame, no gray area */
.gallery-viewer { margin: 0 0 16px; }
.gallery-stage { width: 100%; scroll-margin-top: 8px; }
.fleet img.gallery-large { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.gallery-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0 0; }
.gallery-pager .fleet-button { min-height: 44px; padding: 0 12px; }
.gallery-slot:first-child { justify-self: start; }
.gallery-slot:last-child { justify-self: end; }
.fleet .gallery-position { margin: 0; font-size: 16px; text-align: center; color: #53616b; white-space: nowrap; }
.gallery-thumbs { margin: 0 0 16px; }
.car-thumb.is-current { border-color: #039; box-shadow: 0 0 0 2px #039; }
.gallery-notice { margin: 0 0 16px; }
.gallery-empty { margin: 0 0 16px; }
.gallery-empty p { margin: 8px 0 0; }
.gallery-fragment .fleet-grid { margin: 0; }
.fleet .gallery-more { margin: 24px 0 0; text-align: center; }
.gallery-more .fleet-button.is-loading { opacity: 0.6; cursor: progress; }

@media (max-width: 420px) {
  .gallery-pager .fleet-button { padding: 0 8px; font-size: 15px; }
}

/* Linked news (ticket 34): blocks between the pager of the large view and the thumbnails (no box, only the right-aligned "Weiterlesen ›" is a link), label on the cards (no link), list in the form and the delete dialog. Uses .news-badge, .news-linked-choice from news-3.css */
.gallery-news { display: flex; flex-direction: column; margin: 0 0 16px; overflow-wrap: break-word; }
.fleet .gallery-news p { margin: 0; }
.fleet .gallery-news-title { margin: 0 0 6px; padding: 0 0 0 12px; border-left: 8px solid #ffe600; font-size: 24px; line-height: 1.3; font-weight: bold; color: #202020; }
.fleet .gallery-news-draft { margin: 0 0 6px; }
.fleet .gallery-news-excerpt { margin-top: 2px; color: #202020; }
.fleet .gallery-news-more { align-self: flex-end; margin-top: 8px; }
.fleet .gallery-card-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fleet .gallery-news-badge { margin-left: auto; font-size: 12px; text-transform: none; letter-spacing: 0; }
.gallery-news-list, .gallery-news-names { margin: 0 0 12px; padding: 0; list-style: none; }
.gallery-news-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #c5ccd6; }
.gallery-news-list img, .gallery-news-list .fleet-nophoto { flex: none; width: 120px; height: 90px; object-fit: cover; }
.fleet .gallery-news-list p { flex: 1 1 auto; margin: 0; }
.gallery-news-list label.is-remove { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #b00000; font-weight: bold; }
.gallery-news-list li:has(.is-remove input:checked) img, .gallery-news-list li:has(.is-remove input:checked) p { opacity: .35; }
.gallery-news-names li { padding: 2px 0; }
.fleet fieldset.gallery-news-add { margin: 16px 0 8px; padding: 0; border: 0; }
.gallery-news-add legend { padding: 0 0 6px; font-weight: bold; color: #202020; }
.gallery-news-choices { max-height: 360px; overflow-y: auto; padding: 4px 12px; border: 2px solid #c5ccd6; }
.fleet .gallery-news-year { margin: 8px 0 0; font-size: 14px; font-weight: bold; color: #53616b; }
.gallery-news-choices ul { margin: 0; padding: 0; list-style: none; }
.gallery-news-choices label { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #202020; }
.gallery-news-choices input { flex: none; width: 20px; height: 20px; margin: 0; }

/* Gallery page: the name of the gallery is the page heading (room for several lines), below it the back link and the line with period and number of photos */
#thwDoubleCol.plain-page.gallery-page .thwueberschrift h2 { line-height: 1.2; overflow-wrap: break-word; }
.gallery-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 16px; }
.fleet .gallery-meta p { margin: 0; color: #53616b; }
