:root {
  --background-image: url("http://marseille.dk/wp-content/uploads/2026/04/Asta-Konfirmation-148-x-210-mm-scaled.jpg");
  --card: #ffffff;
  --text: #2a2420;
  --muted: #6c625b;
  --accent: #ef9d9d;
  --accent-dark: #ffb1e1;
  --accent-soft: #000;
  --danger: #9b2c2c;
  --border: #e7ddd4;
  --shadow: 0 8px 28px rgba(27, 18, 10, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.lock-scroll { overflow: hidden; }
.container {
  width: min(1120px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.8rem 0 2rem;
}
.has-sticky-upload { padding-bottom: 6.5rem; }
.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
}
.hero-tight h1 { margin: 0 0 .25rem; }
.hero p { margin: 0; color: var(--muted); max-width: 760px; }
.hero-album-line { margin-top: .45rem; font-size: .98rem; }
.top-nav { display:flex; gap:.45rem; flex-wrap:wrap; }
.tab-button {
  display:inline-flex; align-items:center; justify-content:center;
  min-height: 44px; padding:.72rem .95rem; border-radius:12px; text-decoration:none;
  background:#fff; color:var(--text); border:1px solid var(--border); font-weight:700;
}
.tab-button.active { background-image: url("https://fotodrop.marseille.dk/assets/fotodrop-bg.jpg");background-size:     cover; color:#fff;border-color: #d7c0ae; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.compact-card { padding: .95rem 1rem; }
.narrow { max-width: 640px; }
label { display: block; margin: .85rem 0 .35rem; font-weight: 700; }
input[type="text"], input[type="password"], input[type="file"], input[type="date"], select {
  width: 100%;
  padding: .95rem .95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("https://fotodrop.marseille.dk/assets/fotodrop-bg.jpg");
  background-size: cover;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: .92rem 1rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.button:hover { background: var(--accent-dark); }
.button-secondary { background: var(--accent-soft); color: #fff; }
.button-secondary:hover { 
  background-image: url("https://fotodrop.marseille.dk/assets/fotodrop-bg.jpg");
  background-size: cover;
  color:#fff;
}
.danger { background-image: url("https://fotodrop.marseille.dk/assets/fotodrop-bg.jpg");
  background-size: cover;
  color:#fff; }
.small-button { padding: .65rem .75rem; font-size: .9rem; }
.full-width { width: 100%; }
.secondary-space { margin-top: .65rem; }
.flash { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.flash.success { background: #e7f7ec; color: #1f5f39; }
.flash.error { background: #fdecec; color: #8a2323; }
.small { color: var(--muted); font-size: .95rem; }
.split { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.admin-create-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;align-items:end}
.admin-create-grid-4{grid-template-columns:1.1fr .9fr .8fr auto}
.admin-create-actions{display:flex;align-items:end;height:100%}
.album-list,.batch-admin-list{display:grid;gap:12px}
.album-card{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--border);border-radius:16px;background:#fff}
.album-card-active{border-color:#7a4b2c;box-shadow:0 0 0 2px rgba(122,75,44,.12)}
code{background:#f3f4f6;padding:2px 6px;border-radius:6px}
.batch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.batch-card { padding: 0; overflow: hidden; }
.batch-link { text-decoration: none; color: inherit; display: block; }
.batch-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eee; }
.batch-placeholder { display:grid;place-items:center;color:var(--muted); }
.batch-content { padding: 1rem; }
.batch-content h3 { margin: 0 0 .45rem; }
.batch-content p { margin: 0 0 .35rem; }
.image-grid { display:grid; gap:.35rem; }
.image-grid-3col { grid-template-columns: repeat(3, 1fr); }
.photo-card { padding:0; border:0; background:transparent; cursor:pointer; }
.photo-card img, .admin-photo-card img, .admin-batch-card img { width:100%; display:block; object-fit:cover; }
.photo-card img { aspect-ratio: 1 / 1; border-radius: 0px; }
.photo-card:hover img { transform: scale(1.015); }
.photo-card img { transition: transform .15s ease; }
.thumb-button { padding:0; border:0; background:transparent; }
.admin-batch-card { display:grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items:start; border:1px solid var(--border); border-radius:16px; padding:1rem; background:#fff; }
.admin-batch-card img { border-radius: 14px; aspect-ratio: 1 / 1; }
.admin-photo-grid, .album-admin-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.admin-photo-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:.55rem; }
.admin-photo-card img { border-radius: 12px; aspect-ratio: 1 / 1; }
.photo-card-meta { margin:.45rem 0 .6rem; }
.inline-actions { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.sticky-upload-bar { 
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom));
  width: min(1120px, calc(100% - 1rem)); background: #000;background-size:     cover;background-image: url("http://fotodrop.marseille.dk/assets/fotodrop-bg.jpg"); color:#fff; text-decoration:none;
  text-align:center; border-radius: 16px; padding: 1rem 1rem; font-weight:800; box-shadow: 0 12px 30px rgba(95,56,32,.32);
  z-index: 90;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000;
  display: grid; place-items: center; padding: 1rem 1rem 7rem;
}
.lightbox[hidden] { display:none; }
.mobile-figure { margin:0; width:min(100%, 1050px); max-height:100%; }
.mobile-figure img { width:100%; max-height:70vh; object-fit:contain; display:block; margin:0 auto; }
.lightbox-caption { color:#fff; margin-top:.8rem; }
.lightbox-caption.left-aligned { text-align:left; display:block; }
.lightbox-close, .lightbox-nav {
  position: fixed; border:0; background: rgba(255,255,255,.14); color:#fff; width:52px; height:52px; border-radius:999px; cursor:pointer; font-size:1.6rem;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-actions-bottom {
  position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index:1005;
  display:flex; align-items:center; gap:.8rem;
}
.fab-upload {
  width:62px; height:62px; display:grid; place-items:center; text-decoration:none; font-size:2rem;
  border-radius:999px;   background-image: url("https://fotodrop.marseille.dk/assets/fotodrop-bg.jpg");
  background-size: cover; color:#fff; box-shadow: 0 10px 22px rgba(95,56,32,.35); font-weight:700;
}
.upload-card { margin-bottom: 1rem; }
@media (max-width: 900px) {
  .admin-create-grid-4 { grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px){
  .container { width: calc(100% - .75rem); }
  .admin-create-grid, .admin-create-grid-4 { grid-template-columns:1fr; }
  .admin-create-actions { height:auto; }
  .admin-batch-card { grid-template-columns: 1fr; }
  .top-nav { width:100%; }
  .tab-button { flex:1 1 calc(50% - .5rem); }
  .lightbox { padding: 1rem 1rem 7.2rem; }
  .lightbox-nav { width:46px; height:46px; }
}

.grid-media { width:100%; display:block; object-fit:cover; aspect-ratio:1/1; border-radius:12px; background:#111; }
.photo-card.is-video { position:relative; }
.media-badge {
  position:absolute; right:8px; bottom:8px; background:rgba(0,0,0,.72); color:#fff;
  font-size:.78rem; font-weight:700; padding:.25rem .45rem; border-radius:999px;
}
.batch-cover.video-cover, .admin-cover-placeholder {
  display:grid; place-items:center; font-weight:800; letter-spacing:.02em; background:#221c19; color:#fff;
}
.admin-media { width:100%; display:block; object-fit:cover; aspect-ratio:1/1; border-radius:12px; background:#111; }
.mobile-figure video { width:100%; max-height:70vh; display:block; margin:0 auto; background:#000; }

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
