.model-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-bottom: .5rem;
}
.model-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #18294a;
  font-size: .9375rem;
}
.model-shortcuts a:last-child {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}
main :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #3568a1;
  outline-offset: 2px;
}
.preview-bar { flex-wrap: wrap; gap: .25rem 1rem; }
.preview-bar a { text-underline-offset: .2em; }
@media (max-width: 600px) {
  .preview-bar { justify-content: flex-start; }
  .preview-bar a { padding-block: .35rem; }
  .model-shortcuts { gap: 0 1rem; }
}
.preview-bar span, .preview-bar a { font-size: .75rem; line-height: 1.4; }
.preview-bar a { display: inline-flex; align-items: center; min-height: 32px; }

/* Keep an entire portrait installation in view when visitors switch photographs. */
.model-overview-portrait .model-gallery .project-gallery-main { aspect-ratio: 4 / 5; background: #f4f5f7; }
.model-overview-portrait .model-gallery .project-gallery-main img { object-fit: contain; }
.model-overview-portrait .model-full-gallery { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .classic-variant .model-overview-portrait { grid-template-columns: minmax(310px, 410px) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
  .model-overview-portrait .model-information dl { grid-template-columns: 1fr; gap: 0; }
  .model-overview-portrait .model-information { max-width: 72ch; }
}
.model-next-links { align-items: center; }
.model-next-links a.model-end-quote { margin-inline-start: auto; padding: .65rem 1.05rem; border: 0; }
.gallery-result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .30rem 1.1rem; margin: .65rem 0 .85rem; }
.gallery-result-tools #photo-result-count { margin: 0; }
.gallery-result-tools a { min-height: 38px; display: inline-flex; gap: .4em; align-items: center; }
.gallery-result-tools [hidden] { display: none; }
.project-map-tools { display: grid; gap: .4rem; margin-bottom: 1rem; }
.project-map-tools > a { justify-self: start; }
.project-map-tools .google-project-map { width: 100%; height: clamp(280px, 58vh, 570px); border: 0; }
.google-map-section h2 { margin: 0 0 .65rem; }
.map-projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.map-projects a { min-width: 0; display: grid; grid-template-rows: auto 1fr; color: #101d36; border: 1px solid #d6dce3; border-radius: 7px; overflow: hidden; }
.map-projects img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.map-projects a > span { padding: .5rem .7rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .5rem; }
.map-projects small { color: #44536a; }
.map-projects a:hover strong { text-decoration: underline; }
@media (max-width: 660px) {
  .map-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .model-next-links a.model-end-quote { margin-inline-start: 0; }
}

@media (max-width: 660px) {
  .map-projects a > span { display: grid; grid-template-rows: auto auto; justify-content: start; gap: .1rem; }
}

@media (max-width: 640px), (min-width: 1001px) and (max-width: 1250px) {
  :lang(de) .photo-filters[data-series-models] > button.model-option {
    height: auto; min-height: 216px; grid-template-rows: auto 1fr;
  }
  :lang(de) .model-option-copy { justify-content: flex-start; }
  :lang(de) .model-option-label { hyphens: auto; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  :lang(hu) .photo-filters[data-series-models] > button.model-option { height: auto; min-height: 198px; }
  :lang(hu) .model-option-copy { justify-content: flex-start; }
}

html:lang(hu) .original-series-card { container: series-card / inline-size; }
@container series-card (max-width: 380px) {
  html:lang(hu) .original-series-caption { flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; }
  html:lang(hu) .original-series-caption p { text-align: start; }
}
.series-alternative-card > div { min-width: 0; }
.series-alternative-card .series-alt-action { display: inline; white-space: normal; line-height: 1.55; padding-block: .2em; overflow-wrap: anywhere; }
@media (min-width: 761px) {
  .series-alternative-card { grid-template-columns: minmax(0,.43fr) minmax(0,.57fr); }
}
/* A photograph can change orientation without moving the dialogue controls. */
.lightbox[open]:has(.lightbox-navigation) {
  box-sizing: border-box; width: min(1040px,calc(100vw - 24px)); height: min(830px,91dvh);
  max-height: 91dvh; padding: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden;
}
.lightbox:has(.lightbox-navigation) figure:not([hidden]) {
  grid-area: 1 / 1; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; margin: 0;
}
.lightbox:has(.lightbox-navigation) figure img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.lightbox:has(.lightbox-navigation) figcaption { margin: 0; padding: 8px 14px; font-size: .875rem; line-height: 1.4; }
.lightbox:has(.lightbox-navigation) .photo-load-status { grid-area: 1 / 1; place-self: center; margin: 0; }
.lightbox .lightbox-navigation {
  grid-area: 2 / 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 12px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #d5dbe4; background: #fff;
}
.lightbox .lightbox-navigation button {
  min-height: 44px; margin: 0; padding: 5px 12px; border: 0; border-radius: 5px;
  background: #142448; color: #fff; font: inherit; font-size: .9375rem; font-weight: 650; cursor: pointer;
}
.lightbox .lightbox-navigation output { font-size: .875rem; color: #142448; font-variant-numeric: tabular-nums; }
.lightbox[open]:has(.lightbox-navigation) { background: #0d1628; color: #f5f7fc; }
.lightbox:has(.lightbox-navigation) figure { background: transparent; }
.lightbox:has(.lightbox-navigation) figcaption { background: #131e31; color: #f5f7fc; }
.lightbox:has(.lightbox-navigation) .photo-load-status { color: #fff; }
@media (max-width: 600px) {
  .lightbox.wide-first-photo[open]:has(.lightbox-navigation) { height: min(90dvh,calc(100vw + 105px)); }
}
.lightbox:has(.lightbox-navigation) [data-dialog-close] {
  color: #142448; background: #fff; border: 1px solid #9aa6b8;
}
.lightbox .lightbox-navigation button { display: inline-flex; align-items: center; justify-content: center; gap: .35em; white-space: nowrap; }
.lightbox .lightbox-navigation output { flex: none; white-space: nowrap; }
/* Phone viewers use the same arrow controls at every photo count and text length. */
@media (max-width: 600px) {
  .lightbox .lightbox-navigation button { min-width: 48px; font-size: 1.125rem; }
  .lightbox .lightbox-navigation .photo-navigation-text { display: none; }
}

.model-shortcuts .model-faq-shortcut {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.model-overview > .model-faq {
  grid-column: 1 / -1;
  min-width: 0;
  gap: .65rem;
  border-top: 1px solid #d6dce3;
  padding-top: 1.25rem;
  scroll-margin-top: 5rem;
}
.model-overview > .model-faq h2 { margin: 0; }
