/* LUFTKUNST gallery – scoped to the existing orbit design */
dialog.lk-gallery-dialog {
  width: calc(100vw - clamp(20px, 2.5vw, 80px));
  max-width: none;
  max-height: min(94dvh, 1120px);
  border-radius: 22px;
}
.lk-gallery-dialog .lk-gallery-shell {
  max-height: min(94dvh, 1120px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 45% -15%, rgba(111,62,152,.23), transparent 45%), #100a19;
}
.lk-gallery-dialog .lk-gallery-head {
  padding: clamp(17px,2.1vw,34px) clamp(20px,2.8vw,48px);
  flex: none;
}
.lk-gallery-heading .lk-overlay-kicker { margin-bottom: 4px; }
.lk-gallery-heading h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.05rem, 3.4vw, 3.8rem);
  line-height: 1.06;
  font-weight: 400;
  margin: 0;
  color: #f7f1fb;
}
.lk-gallery-title-dot { color: #d8b8ff; }
.lk-gallery-head-actions { display:flex; align-items:center; gap: clamp(12px, 2vw, 28px); }
.lk-gallery-dismiss { display:inline-flex; align-items:center; gap:10px; font-size:.75rem; }
.lk-gallery-dismiss span { font-size:1.4rem; line-height:.6; font-weight:300; }
.lk-gallery-content { min-height:0; overflow-y:auto; padding: clamp(14px,1.8vw,26px) clamp(14px,2.8vw,48px) clamp(16px,2vw,30px); }
.lk-gallery-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding-bottom:16px; }
.lk-gallery-intro { font-family:inherit; font-size:.9rem; color:#d1c3dc; letter-spacing:.01em; margin:0; }
.lk-gallery-navigation { display:flex; align-items:center; gap:9px; }
.lk-gallery-arrow, .lk-gallery-viewer-arrow, .lk-gallery-viewer-close {
  display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(221,193,255,.24); color:#f7f1fb;
  background:rgba(255,255,255,.045); cursor:pointer; transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.lk-gallery-arrow { width:45px; height:45px; border-radius:50%; font-size:1.28rem; }
.lk-gallery-arrow:hover:not(:disabled), .lk-gallery-viewer-arrow:hover:not(:disabled) { background:rgba(166,108,255,.20); border-color:#d8b8ff; }
.lk-gallery-arrow:disabled, .lk-gallery-viewer-arrow:disabled { opacity:.28; cursor:default; }
.lk-gallery-track {
  display:flex;
  gap:clamp(10px, 1vw, 18px);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:1px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(216,184,255,.4) transparent;
  padding:2px 2px 8px;
}
.lk-gallery-card { flex:0 0 calc((100% - 3 * clamp(10px, 1vw, 18px)) / 4); min-width:0; margin:0; scroll-snap-align:start; }
.lk-gallery-tile {
  position:relative;
  display:block;
  width:100%;
  height:clamp(310px,55svh,660px);
  padding:0;
  border:1px solid rgba(221,193,255,.18);
  border-radius:13px;
  background:#1a1124;
  color:#f7f1fb;
  overflow:hidden;
  cursor:zoom-in;
  text-align:left;
}
.lk-gallery-photo { width:100%; height:100%; display:block; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.lk-gallery-tile:hover .lk-gallery-photo { transform:scale(1.035); }
.lk-gallery-tile::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(5,3,9,.78)); pointer-events:none; }
.lk-gallery-tile-label { position:absolute; inset:auto 13px 16px; z-index:1; display:flex; align-items:flex-end; gap:9px; }
.lk-gallery-tile-title { flex:1; font-size:.8rem; line-height:1.3; color:#fff; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-wrap:pretty; }
.lk-gallery-tile-zoom { font-size:1rem; flex:none; color:#e3caff; }
.lk-gallery-hint { color:#a99ab6; font-size:.75rem; letter-spacing:.03em; margin:11px 0 0; }
.lk-gallery-empty { font-size:1rem; margin:24px 0; }

/* Full-size viewer: original image, no cropping */
dialog.lk-gallery-viewer {
  width:min(1480px,calc(100vw - 18px));
  max-width:none;
  max-height:96dvh;
  padding:0;
  margin:auto;
  border:1px solid rgba(221,193,255,.24);
  border-radius:16px;
  background:#0b0711;
  color:#f7f1fb;
  overflow:hidden;
}
.lk-gallery-viewer::backdrop { background:rgba(3,2,7,.91); backdrop-filter:blur(18px); }
.lk-gallery-viewer-shell { display:flex; flex-direction:column; max-height:96dvh; }
.lk-gallery-viewer-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px clamp(14px,2vw,28px); border-bottom:1px solid rgba(221,193,255,.15); flex:none; }
.lk-gallery-viewer-index { font:.7rem/1.5 ui-monospace,SFMono-Regular,monospace; color:#d2bee0; letter-spacing:.1em; }
.lk-gallery-viewer-close { min-height:40px; border-radius:9px; padding:0 14px; font-size:.75rem; gap:9px; }
.lk-gallery-viewer-close span { font-size:1.4rem; }
.lk-gallery-viewer-stage { position:relative; display:flex; justify-content:center; align-items:center; min-height:0; flex:1; padding:8px 64px; }
.lk-gallery-viewer-stage img { display:block; max-width:100%; max-height:min(72dvh,840px); width:auto; height:auto; object-fit:contain; }
.lk-gallery-viewer-arrow { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:52px; border-radius:12px; font-size:1.3rem; }
.lk-gallery-viewer-arrow[data-lk-gallery-viewer-prev] { left:12px; }
.lk-gallery-viewer-arrow[data-lk-gallery-viewer-next] { right:12px; }
.lk-gallery-viewer-details { flex:none; overflow-y:auto; max-height:20dvh; padding:11px clamp(14px,2vw,28px) 16px; border-top:1px solid rgba(221,193,255,.13); }
.lk-gallery-viewer-details h3 { font-size:1rem; line-height:1.35; font-weight:500; margin:0; color:#f7f1fb; }
.lk-gallery-viewer-details p { margin:4px 0 0; color:#d6c8df; font-size:.8rem; line-height:1.5; }
.lk-gallery-viewer-details p[data-lk-gallery-viewer-description] { color:#af9ebd; }
.lk-gallery-dialog button:focus-visible, .lk-gallery-viewer button:focus-visible, .lk-gallery-track:focus-visible { outline:2px solid #d8b8ff; outline-offset:3px; }

@media(max-width:1100px) {
  .lk-gallery-card { flex-basis:calc((100% - clamp(10px, 1vw, 18px)) / 2); }
  .lk-gallery-tile { height:clamp(310px,55svh,600px); }
}
@media(max-width:680px) {
  dialog.lk-gallery-dialog { width:calc(100vw - 12px); max-height:96dvh; border-radius:14px; }
  .lk-gallery-dialog .lk-gallery-shell { max-height:96dvh; border-radius:14px; }
  .lk-gallery-dialog .lk-gallery-head { padding:16px; gap:12px; }
  .lk-gallery-heading h2 { font-size:2.2rem; }
  .lk-gallery-content { padding:12px 12px 18px; }
  .lk-gallery-toolbar { align-items:center; }
  .lk-gallery-intro { font-size:.75rem; }
  .lk-gallery-navigation { gap:5px; }
  .lk-gallery-arrow { width:40px; height:40px; }
  .lk-gallery-card { flex-basis:calc(100% - 17px); }
  .lk-gallery-tile { height:min(62svh,620px); min-height:285px; border-radius:11px; }
  .lk-gallery-tile-label { inset:auto 12px 15px; }
  .lk-gallery-hint { font-size:.7rem; line-height:1.4; }
  dialog.lk-gallery-viewer { width:calc(100vw - 8px); max-height:98dvh; }
  .lk-gallery-viewer-shell { max-height:98dvh; }
  .lk-gallery-viewer-stage { padding:6px 42px; }
  .lk-gallery-viewer-stage img { max-height:68dvh; }
  .lk-gallery-viewer-arrow { width:35px; height:45px; border-radius:8px; }
  .lk-gallery-viewer-arrow[data-lk-gallery-viewer-prev] { left:4px; }
  .lk-gallery-viewer-arrow[data-lk-gallery-viewer-next] { right:4px; }
  .lk-gallery-viewer-details { max-height:22dvh; }
}
@media(prefers-reduced-motion:reduce) {
  .lk-gallery-photo, .lk-gallery-arrow, .lk-gallery-viewer-arrow { transition:none; }
  .lk-gallery-track { scroll-behavior:auto; }
}
