:root {
  --primary: #942911;
  --accent: #d4af37;
  --accent-light: #f7e7a9;
  --bg-light: #fcfbfa;
  --surface: #ffffff;
  --surface-alt: #f7f3ee;
  --navy: #152238;
  --border-color: #e5dec9;
  --text-muted: #5f5a54;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-light);
  color: #2b2b2b;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Cinzel', serif; }

/* Top Sticky Nav */
.top-bar {
  background: var(--navy);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.back-btn:hover { color: #fff; }

/* Header */
.gallery-header {
  background: linear-gradient(135deg, var(--navy) 0%, #201127 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  border-bottom: 4px solid var(--accent);
}

.gallery-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.gallery-header p {
  color: var(--accent-light);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Gallery Grid */
.gallery-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.gallery-img-box {
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 1.2rem 1.4rem;
  flex-grow: 1;
}

.gallery-info span.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary);
}

.gallery-info h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0.3rem 0;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Placeholder Slot for New Uploads */
.add-photo-placeholder {
  border: 2px dashed var(--accent);
  background: var(--surface-alt);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  min-height: 380px;
  color: var(--navy);
}

.add-photo-placeholder i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.add-photo-placeholder h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.add-photo-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal img {
  max-width: 90%;
  max-height: 85vh;
  border: 3px solid var(--accent);
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background: var(--navy);
  color: #99a;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 4px solid var(--accent);
  font-size: 0.85rem;
}