@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500&display=swap');

:root { --ivory:#faf6ef; --ink:#2b1d1a; --maroon:#7a1f2b; --gold:#b8913a; --muted:#8a7d74; }
* { box-sizing: border-box; margin: 0; }
body { background: var(--ivory); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
h1, h2, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }

header { text-align: center; padding: 48px 16px 24px; }
header h1 { font-size: clamp(36px, 7vw, 64px); color: var(--maroon); letter-spacing: .02em; }
header p { color: var(--muted); letter-spacing: .25em; text-transform: uppercase; font-size: 12px; margin-top: 6px; }
.rule { width: 80px; height: 1px; background: var(--gold); margin: 18px auto 0; }

nav.crumbs { max-width: 1400px; margin: 0 auto; padding: 0 20px 12px; display: flex; justify-content: space-between; align-items: center; }
nav.crumbs a { color: var(--maroon); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
nav.crumbs .count { color: var(--muted); font-size: 13px; }

.albums { max-width: 1400px; margin: 0 auto; padding: 8px 20px 60px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.album { display: block; }
.album .cover { aspect-ratio: 4/5; background: #eee5d8 center/cover; border-radius: 2px; transition: transform .4s, box-shadow .4s; }
.album:hover .cover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43,29,26,.15); }
.album h2 { font-size: 26px; margin-top: 10px; text-align: center; }

.grid { max-width: 1600px; margin: 0 auto; padding: 0 12px 60px; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 31vw), 1fr)); }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; background: #eee5d8; display: block; }

.lb { position: fixed; inset: 0; background: rgba(15,10,9,.96); display: none; align-items: center; justify-content: center; z-index: 10; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lb button, .lb a.btn { position: absolute; background: none; border: 0; color: #f3e9da; font: 500 13px Inter, sans-serif; letter-spacing: .08em; cursor: pointer; padding: 14px; text-transform: uppercase; }
.lb .prev, .lb .next { top: 50%; transform: translateY(-50%); font-size: 40px; }
.lb .prev { left: 4px; } .lb .next { right: 4px; }
.lb .close { top: 6px; right: 6px; font-size: 26px; }
.lb .bar { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.lb .bar > * { position: static !important; }
.lb .del { color: #e9a3a3 !important; }

.card { max-width: 380px; margin: 12vh auto; padding: 40px 32px; text-align: center; }
input, select, .button { width: 100%; padding: 12px 14px; border: 1px solid #d9cdbd; background: #fff; border-radius: 2px; font: inherit; margin-top: 12px; }
.button { background: var(--maroon); color: #fff; border: 0; cursor: pointer; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.button:disabled { opacity: .5; }
.err { color: var(--maroon); margin-top: 10px; font-size: 13px; }

.drop { border: 1px dashed var(--gold); padding: 40px 16px; margin-top: 16px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { background: #f3ead9; }
.log { margin-top: 16px; font-size: 13px; text-align: left; max-height: 40vh; overflow: auto; }
.log div { padding: 3px 0; border-bottom: 1px solid #eee5d8; display: flex; justify-content: space-between; gap: 8px; }
.progress { height: 4px; background: #eee5d8; margin-top: 16px; } .progress i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
