@charset "UTF-8";

/* Photo gallery (pages/GalleryPage.php, pages/GalleryDetailPage.php). Uses .fleet*, .car-head, .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; }
}
