.gallery-main { max-width: 1440px; margin: auto; padding: 64px 4.4%; }
.gallery-heading { text-align: center; margin-bottom: 40px; }
.gallery-heading > p:first-child { font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.gallery-heading h1 { color: var(--fc-orange); font-size: clamp(32px, 5vw, 64px); font-weight: 700; text-transform: uppercase; }
.gallery-heading p { line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-project { min-width: 0; overflow: hidden; border: 1px solid #e9e9e5; border-radius: 18px; background: white; box-shadow: 0 5px 20px #00000006; }
.gallery-media { position: relative; background: #f4f4f2; }
.gallery-track { display: flex; position: relative; overflow-x: auto; scroll-snap-type: none; cursor: grab; user-select: none; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { display: flex; align-items: center; justify-content: center; flex: 0 0 100%; min-width: 0; aspect-ratio: 4 / 3;  }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-slide:focus-visible, .gallery-track:focus-visible { outline-offset: -5px; }
.gallery-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 5px; border: 1px solid #ffffff66; border-radius: 30px; background: #333333ed; color: white; box-shadow: 0 3px 12px #0002; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 3px; border: 0; border-radius: 50%; background: transparent; color: white; font-size: 30px; line-height: 1; }
.gallery-controls button:hover { background: var(--fc-orange); }
.gallery-counter { min-width: 40px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gallery-project-info { position: relative; padding: 22px 22px 24px; border-top: 1px solid #ededeb; }
.gallery-project-info p { margin: 0 0 9px; font-size: 11px; line-height: 1.5; color: #827565; letter-spacing: .045em; }
.gallery-project-info h2 { margin: 0 0 16px; font-size: 19px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.gallery-image-count { display: inline-block; font-size: 11px; font-weight: 600; color: #956000; background: #fff4de; border-radius: 20px; padding: 5px 10px; }
#lighting-gallery .gallery-grid { gap: 18px; }
#lighting-gallery .gallery-project-info { padding: 18px; }
#lighting-gallery .gallery-project-info h2 { font-size: 16px; }
.gallery-back { display: inline-block; margin-top: 40px; font-weight: 600; }
.gallery-back:hover, .gallery-footer a:hover, .main-navigation .nav-link[aria-current="page"] { color: var(--fc-orange); }
.gallery-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 4.4%; background: var(--fc-charcoal); color: white; font-size: 13px; }
.gallery-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 540px) { .gallery-main { padding-top: 36px; } .gallery-grid { grid-template-columns: 1fr; } .gallery-footer { flex-direction: column; } }


.gallery-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.gallery-category { min-width: 0; }
.gallery-category-heading { border-top: 4px solid var(--fc-orange); padding: 20px 4px; min-height: 110px; }
.gallery-category-heading h2 { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.gallery-category-heading p { color: #827565; font-size: 13px; margin: 0; }
.gallery-category-cards { display: grid; gap: 24px; }
.gallery-project-info h3 { margin: 0 0 16px; font-size: 19px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.gallery-lightbox { width: min(1100px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 16px; border: 1px solid #ffffff33; border-radius: 20px; background: #30302f; color: white; box-shadow: 0 24px 100px #0008; }
.gallery-lightbox::backdrop { background: #151515df; }
.gallery-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gallery-lightbox h2 { font-size: 18px; margin: 0; }
.gallery-lightbox button { border: 0; border-radius: 50%; background: #f79400; color: #252525; width: 44px; height: 44px; font-size: 25px; flex-shrink: 0; }
.gallery-lightbox figure { margin: 0; }
.gallery-lightbox img { display: block; width: 100%; height: min(70dvh, 760px); object-fit: contain; background: #232323; }
.gallery-lightbox-nav { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 12px; }
.gallery-lightbox-nav button[hidden] { display: none; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-category-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .gallery-category-heading { min-height: 0; } }
@media (max-width: 540px) { .gallery-category-cards { grid-template-columns: 1fr; } .gallery-lightbox { padding: 10px; } }
/* Klar getrennte Kategorien mit eigener Kartenreihe. */
.gallery-grid, #lighting-gallery .gallery-grid { display: flex; flex-direction: column; gap: 44px; }
.gallery-category-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px; background: #fff5e5; border: 1px solid #f1d5ac; border-radius: 16px; }
.gallery-category-nav a { padding: 10px 15px; border: 1px solid #ddd5c9; border-radius: 24px; background: white; color: #3c3c3b; font-size: 13px; font-weight: 600; text-decoration: none; }
.gallery-category-nav a:hover, .gallery-category-nav a:focus-visible { background: #f29100; border-color: #f29100; color: #252525; }
.gallery-category { scroll-margin-top: 24px; }
.gallery-category-heading { display: flex; align-items: center; gap: 18px; min-height: 0; padding: 22px 24px; margin-bottom: 22px; border: 0; border-left: 6px solid #f29100; border-radius: 0 12px 12px 0; background: #3c3c3b; color: white; }
.gallery-category-heading h2 { font-size: clamp(21px,2.1vw,30px); margin: 0 0 6px; }
.gallery-category-heading p { color: #e3e0da; }
.gallery-category-number { color: #ffac29; font-size: 32px; font-weight: 700; }
.gallery-category-cards { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
@media(max-width:900px) { .gallery-category-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .gallery-category-cards { grid-template-columns: 1fr; } .gallery-category-nav { padding: 14px; gap: 8px; } .gallery-category-nav a { font-size: 12px; padding: 9px 12px; } .gallery-category-heading { padding: 18px 14px; gap: 12px; } }
