/* ===== Base / Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #faf9f7;
  color: #111;
  font-family: 'Bookman', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  padding-top: 40px;
}

@font-face {
  font-family: 'Bookman';
  src: url('/static-files/Bookman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body, button, input, select, textarea {
  font-family: 'Bookman', serif;
}

/* ===== Top Bar ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;   /* center the title */
  background: rgb(222, 222, 194);
  color: rgb(114, 92, 3);
  padding: 10px 18px;
  font-size: 1.05rem;
  font-weight: bold;
}

/* left and right containers */
.topbar-left,
.topbar-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* left side */
.topbar-left {
  left: 18px;
}

/* right side */
.topbar-right {
  right: 18px;
}

/* title stays centered naturally */
.topbar-title {
  text-align: center;
  flex: 1;
}

/* icon button in topbar */
.icon-btn { color: rgb(114, 92, 3); background: rgb(222, 222, 194); text-decoration: none; display:flex; align-items:center; }
.icon-btn svg { width: 26px; height: 26px; }

/* ===== Layout ===== */
.container { padding: 16px; color: rgb(114, 92, 3); }
.center { display:flex; align-items:center; justify-content:center; min-height:100vh; }

/* ===== Card / Landing ===== */
.card {
  background: rgba(222, 222, 194, 0.95);
  padding: 2rem;
  color: rgb(114, 92, 3);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  width: min(720px, 92%);
  text-align: center;
}

.password-input {
  text-align: center; font-size: 16px !important;
}

.password-input::placeholder {
  text-align: center;
}

/* Landing background (animated) */
.landing-bg-wrap { position: fixed; inset: 0; z-index: -1; overflow: hidden; will-change: transform, opacity; }
.landing-photo { width:100%; height:100%; object-fit:cover; display:block; transform: translate3d(0,-60px,0) scale3d(1.03,1.03,1); opacity:0; transition: transform 10s cubic-bezier(.2,.8,.2,1), opacity 10s cubic-bezier(.2,.8,.2,1); }
.landing-bg-wrap.animate .landing-photo { transform: translate3d(0,0,0) scale3d(1,1,1); opacity:1; }
.landing-content { display:flex; justify-content:center; align-items:center; height:100vh; text-align:center; }

/* ===== Forms & Buttons ===== */
input[type="password"] { width:100%; padding:10px; margin:8px 0; border-radius:6px; border:1px solid #ddd; }
button, input, a.btn { font-family: 'Bookman', sans-serif; }
button { padding:10px 14px; border-radius:6px; border:none; background:#fff; color: rgb(114,92,3); cursor:pointer; }
.error { color:#c00; }

/* ===== Albums list ===== */
.albums { display:flex; flex-direction:column; gap:10px; }
.album {
  display:flex; justify-content:space-between; padding:12px; border-radius:8px;
  background: rgb(222,222,194); border:1px solid #eee; text-decoration:none; color: rgb(114,92,3);
  transition: transform .15s ease;
}
.album:hover { transform: translateY(-3px); }

/* ===== Gallery (single-column feed) ===== */
.grid-two {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-two .thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* loader */
#loader { text-align:center; padding:12px; color:#666; }

/* photo-item: icons positioned relative to each photo */
.photo-item { position: relative; display: inline-block; width:100%; }
.photo-item img.thumb { display:block; width:100%; border-radius:6px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

/* download & like icons (always visible) */
.download-icon, .like-icon {
  position: absolute; bottom: 10px; width: 36px; height: 36px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.45); border-radius:8px; cursor:pointer; z-index:10;
  transition: background .12s ease, transform .12s ease;
}
.download-icon svg { width:18px; height:18px; fill: #fff; }
.like-icon svg { width:80px; height:80px; fill: #fff; }
.download-icon { right: 10px; }
.like-icon { right: 54px; }
.download-icon:hover, .like-icon:hover { background: rgba(0,0,0,0.7); transform: translateY(-2px); }

/* liked state */
.like-icon.liked svg { fill: #e44; }

/* ===== Fonts (local ttf) ===== */
@font-face {
  font-family: 'AmalfiCoast';
  src: url('/static-files/AmalfiCoast.ttf') format('truetype');
  font-display: swap;
}

/* ===== Guest Upload Section ===== */
#guest-upload {
  margin-top: 40px;
  padding: 20px;
  border: 2px dashed rgb(222, 222, 194);
  border-radius: 12px;
  background: #faf9f7;
  text-align: center;
}

#guest-upload h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: rgb(114, 92, 3);
}

#guest-upload input[type="file"] {
  display: inline-block;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid rgb(222, 222, 194);
  cursor: pointer;
  background: #fff;
}


#guest-upload button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: rgb(222, 222, 194);
  color: rgb(114, 92, 3);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}


#guest-upload button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Footer styling */
.footer {
  text-align: center;
  padding: 15px 10px;
  color: rgb(114, 92, 3);
  font-size: 0.9rem;
}


h1.wedding-title { font-family: 'AmalfiCoast', cursive; color: rgb(93,173,89); font-size: 1.4rem; }
