/* style.css */
:root { color-scheme: dark; }

body{
  margin:0;
  background:#0b0b0b;
  color:#eee;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Login */
.login{
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.card{
  width:min(420px,100%);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  padding:16px;
}
.card h1{ font-size:16px; margin:0 0 10px; }
.card p{ font-size:13px; opacity:.75; margin:0 0 12px; }
.row{ display:flex; gap:10px; }

input{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.25);
  color:#eee;
  font-size:14px;
  outline:none;
}

button{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#eee;
  cursor:pointer;
  font-size:14px;
  white-space:nowrap;
}

.err{
  margin-top:10px;
  font-size:13px;
  color:#ffb4b4;
  display:none;
}

/* Topbar + Layout */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(11,11,11,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
  display:none;
}
.bar{
  max-width:1100px;
  margin:0 auto;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.title{ font-weight:650; font-size:14px; }
.sub{ font-size:12px; opacity:.7; }

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:12px;
  display:none;
}

/* Grid: mobile 3, desktop max 7 */
.grid{
  display:grid;
  gap:3px;
  grid-template-columns:repeat(3, 1fr);
}
@media (min-width:520px){ .grid{ grid-template-columns:repeat(4, 1fr); gap:4px; } }
@media (min-width:820px){ .grid{ grid-template-columns:repeat(6, 1fr); gap:5px; } }
@media (min-width:1020px){ .grid{ grid-template-columns:repeat(7, 1fr); } }

/* Tiles */
.tile{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:6px;
  background:rgba(255,255,255,.04);
}
.tile > img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Overlay: Full image ohne Verzerren (contain) */
.glightbox-container .gslide-image img{
  object-fit:contain !important;
  max-height:100vh !important;
}

/* Download Button im Overlay */
.glightbox-download{
  position: fixed;
  top: 14px;
  right: 54px;             /* links neben X */
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2147483647;     /* garantiert oben */
}
.glightbox-download:hover{ background: rgba(0,0,0,.65); }
.glightbox-download svg{ width: 18px; height: 18px; fill: #fff; }
