:root {
  --page:#4c5945;
  --panel:#3f4537;
  --accent:#c4b550;
  --text:#fff;
  --muted:#a3ad98;
  color-scheme:dark
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  overflow:hidden;
  background:var(--page);
  color:var(--text);
  font:14px/1.4 Tahoma,Arial,sans-serif
}
.layout {
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr);
  gap:16px;
  padding:16px;
  height:100vh;
  height:100dvh;
  overflow:hidden
}
aside {
  display:flex;
  flex-direction:column;
  gap:16px;
  align-self:start;
  min-height:0;
  max-height:100%;
  overflow-y:auto
}
details {
  background:var(--panel);
  padding:8px
}
summary {
  color:var(--accent);
  cursor:pointer;
  list-style:none;
  padding:1px 0 3px;
  font-size:13px
}
summary::-webkit-details-marker {
  display:none
}
summary::before {
  content:'+ ';
}
details[open]>summary::before {
  content:'− ';
}
aside button {
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  font:inherit;
  font-size:13px;
  min-height:28px;
  padding:4px 16px;
  cursor:pointer
}
aside button img {
  width:18px;
  height:18px;
  object-fit:contain
}
aside button.selected,
aside button:hover,
aside button:active {
  background:#282e22
}
button:focus-visible {
  outline:1px solid var(--accent)
}
main {
  background:var(--panel);
  padding:32px;
  min-width:0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
main, #lightbox {
  scrollbar-color:#4c5844 #3e4637;
  scrollbar-width:thin
}
@supports selector(::-webkit-scrollbar) {
  main, #lightbox { scrollbar-width:auto; scrollbar-color:auto }
  main::-webkit-scrollbar, #lightbox::-webkit-scrollbar { width:14px }
  main::-webkit-scrollbar-track, #lightbox::-webkit-scrollbar-track { background:#3e4637 }
  main::-webkit-scrollbar-thumb, #lightbox::-webkit-scrollbar-thumb { background:#4c5844; border:2px solid #3e4637; border-radius:0 }
}
.collection {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:40px 24px;
  align-items:start
}
.item {
  min-width:0
}
.photo {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none
}
.metadata {
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:2px
}
.brandline {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:baseline;
  font-size:10px;
  line-height:20px
}
.brand {
  color:var(--accent);
  text-transform:uppercase
}
.year {
  color:var(--muted)
}
h2 {
  font-size:16px;
  line-height:20px;
  font-weight:400;
  margin:0;
  overflow-wrap:anywhere
}
p {
  color:var(--muted);
  font-size:13px;
  margin:0
}
[hidden] {
  display:none!important
}
@media(max-width:1450px) {
  .collection {
  grid-template-columns:repeat(4,minmax(0,1fr))
}

}
@media(max-width:1100px) {
  .layout {
  grid-template-columns:200px minmax(0,1fr)
}
main {
  padding:24px
}
.collection {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

}
@media(max-width:760px) {
  body {
    overflow-x:hidden;
    overflow-y:auto
  }
  .layout {
  grid-template-columns:1fr;
  grid-template-rows:auto auto 1fr;
  height:auto;
  min-height:100vh;
  min-height:100dvh;
  overflow:visible;
  padding:8px;
  gap:8px
}
aside {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  max-height:none;
  overflow:visible;
  gap:8px
}
main {
  padding:16px;
  overflow:visible
}
.collection {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px 16px
}
h2 {
  font-size:14px
}

}
@media(max-width:340px) {
  .collection {
  grid-template-columns:1fr
}

}

.photo-trigger {
  position:relative;
  display:block;
  padding:0;
  min-height:0;
  width:100%;
  border:0;
  background:none;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none
}
#lightbox {
  padding:0;
  border:1px solid #59624f;
  background:var(--panel);
  color:var(--text);
  width:min(96vw, 940px);
  max-height:96dvh;
  max-width:96vw;
  overflow:auto;
}
#lightbox:focus { outline:none; }
#lightbox::backdrop { background:rgba(0,0,0,.78); }
.gallery-panel { position:relative; padding:12px; }
.gallery-stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:24px; }
.gallery-media { min-width:0; width:100%; }
.gallery-image-frame { position:relative; }
#gallery-photo { display:block; width:100%; height:auto; object-fit:contain; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
.gallery-info { min-width:0; padding-top:0; padding-bottom:4px; align-self:start; }
.gallery-topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:36px; padding-bottom:12px; border-bottom:1px solid #282e22; margin-bottom:20px; }
.gallery-franchises { display:flex; flex:1; min-width:0; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.gallery-franchise { display:flex; align-items:center; gap:6px; font-size:13px; overflow-wrap:anywhere; }
.gallery-franchise + .gallery-franchise { position:relative; padding-left:13px; }
.gallery-franchise + .gallery-franchise::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:1px; height:14px; background:#282e22; }
.gallery-franchise img { width:20px; height:20px; object-fit:contain; flex:none; }
.gallery-title { min-width:0; flex:1; }
.gallery-topbar .close-gallery { flex:0 0 36px; align-self:flex-start; }
.gallery-info .brandline { min-height:0; margin:0; align-items:flex-start; line-height:1; }
.gallery-info h2 { margin:6px 0 0; font-size:23px; line-height:1.2; }
.gallery-image-frame .previous, .gallery-image-frame .next { position:absolute; bottom:6px; }
.gallery-image-frame .previous { left:6px; }
.gallery-image-frame .next { right:6px; }
#gallery-description { margin-top:16px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }

.gallery-panel button, .imprint-heading button { display:grid; place-items:center; padding:0; width:36px; height:36px; border:0; color:var(--text); cursor:pointer; background:var(--page); }
.gallery-panel button svg, .imprint-heading button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gallery-panel button:hover, .gallery-panel button:active, .imprint-heading button:hover, .imprint-heading button:active { background:#282e22; }

.rollover-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--panel);opacity:0;pointer-events:none;transition:opacity 250ms ease-in-out;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;}
@media (hover:hover) and (pointer:fine) {.photo-trigger.rollover-ready:hover .rollover-photo {opacity:1;}}
@media (prefers-reduced-motion:reduce) {.rollover-photo {transition:none;}}

/* Gallery page indicators, aligned to the photo. */
.gallery-pagination { display:flex; gap:3px; margin:3px 0 0; }
.gallery-panel .gallery-pagination button { flex:1 1 0; min-width:0; width:auto; height:5px; background:var(--page); }
.gallery-panel .gallery-pagination button[aria-current="true"] { background:var(--accent); }
.gallery-panel .gallery-pagination button:hover:not([aria-current="true"]), .gallery-panel .gallery-pagination button:active:not([aria-current="true"]) { background:#282e22; }

#gallery-information{margin-top:16px}#gallery-attributes{margin:0}.information-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:5px 8px;min-height:28px;font-size:13px;overflow-wrap:anywhere}.information-row:nth-child(odd){background:#282e22}.information-row dd{margin:0;color:var(--muted)}

@media(max-width:760px) {
  #lightbox { width:min(96vw,520px); }
  .gallery-stage { grid-template-columns:minmax(0,1fr); gap:12px; }
  .gallery-topbar .close-gallery { position:absolute; top:18px; right:18px; z-index:3; }
  .gallery-info { position:static; }
  .gallery-topbar { position:static; min-height:20px; }
  .gallery-info h2 { font-size:20px; }
}

/* Site navigation */
.site-header { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:20px; flex-wrap:wrap; }
.site-links { display:flex; align-items:center; gap:12px; }
.site-links a, .site-links button { color:var(--text); font:400 13px/20px Tahoma,Arial,sans-serif; text-decoration:none; background:none; border:0; padding:0; cursor:pointer; }
.site-links a:not(.site-logo), .site-links button { position:relative; top:-1px; }
.site-links a:hover, .site-links button:hover { color:var(--accent); }
.site-logo { display:flex; align-items:center; margin-right:4px; }
.site-logo img { display:block; width:20px; height:20px; object-fit:contain; }
#imprint { position:relative; width:min(560px,94vw); max-height:90dvh; padding:24px 32px 32px; background:var(--panel); color:var(--text); border:1px solid #59624f; }
#imprint::backdrop { background:rgba(0,0,0,.78); }
.imprint-heading { min-height:24px; padding-right:40px; }
.imprint-heading form { position:absolute; top:12px; right:12px; margin:0; }
#imprint-text p { white-space:pre-wrap; overflow-wrap:anywhere; }
#imprint p { margin-top:16px; }
#imprint a { color:var(--accent); overflow-wrap:anywhere; }
@media(max-width:760px) { .site-header { gap:8px 16px; padding:5px 0; } .site-links { gap:10px; } .site-logo { margin-right:3px; } }


/* Active filter shortcuts: responsive layout only. */
.active-filters { display:none; }
@media (max-width:760px) {
  .active-filters:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; gap:2px 16px; padding:0 8px; min-width:0; }
  aside .active-filters .active-filter { display:inline-flex; width:auto; max-width:100%; min-height:20px; padding:0; gap:5px; background:transparent; color:var(--muted); font:400 13px/20px Tahoma,Arial,sans-serif; overflow-wrap:anywhere; }
  aside .active-filters .active-filter:hover, aside .active-filters .active-filter:active, aside .active-filters .active-filter:focus-visible { background:transparent; color:var(--accent); }
  .active-filter-cross { flex:none; font-size:16px; line-height:1; }
}
