@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --teal: #46847F;
  --teal-dark: #285b57;
  --rose: #BA5A6E;
  --gold: #C7A17A;
  --cream: #F8F3EC;
  --cream-deep: #efe1d2;
  --ink: #2d2523;
  --muted: rgba(45, 37, 35, 0.68);
  --white-glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 80px rgba(70, 132, 127, 0.18);
  --border-gold: 1px solid rgba(199, 161, 122, 0.46);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 161, 122, 0.28), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(186, 90, 110, 0.18), transparent 28%),
    linear-gradient(135deg, #fff9f2, #f8eee9 42%, #e8f3ef);
}

button, input, select { font: inherit; }

.photo-page {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(199, 161, 122, 0.42);
  border-radius: 38px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(199, 161, 122, 0.20);
  border-radius: 30px;
  pointer-events: none;
}

.hero-bg-orb {
  position: absolute;
  border: 1px solid rgba(199, 161, 122, 0.5);
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.hero-bg-orb-one {
  width: 520px;
  height: 520px;
  top: 8%;
  right: -180px;
}

.hero-bg-orb-two {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -80px;
}

.hero-inner {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--rose);
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  color: var(--teal);
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.94;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

h3 { margin: 0; }

.intro,
.upload-card p,
.section-heading p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(70, 132, 127, 0.16);
}

.btn.primary { background: var(--gold); color: white; }
.btn.secondary { background: rgba(255, 255, 255, 0.58); color: var(--teal); }
.btn.full { width: 100%; }

.hero-stats {
  margin: 2.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  max-width: 520px;
  border: var(--border-gold);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 1rem;
  display: grid;
  gap: 0.15rem;
}

.hero-stats div + div { border-left: 1px solid rgba(199, 161, 122, 0.35); }

.hero-stats strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--teal);
}

.hero-stats span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.event-strip {
  max-width: 1160px;
  margin: -2rem auto 2rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.event-strip span {
  padding: 0.72rem 1rem;
  border: var(--border-gold);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.upload-section,
.albums-section,
.gallery-section {
  padding: 5rem 1.5rem;
}

.upload-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--white-glass);
  border: var(--border-gold);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card-heading,
.section-heading {
  text-align: center;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.flow-step {
  border: 1px solid rgba(199, 161, 122, 0.42);
  border-radius: 22px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.flow-step strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(199, 161, 122, 0.22);
  color: var(--teal);
}

.flow-step.active {
  background: linear-gradient(135deg, rgba(70, 132, 127, 0.95), rgba(199, 161, 122, 0.8));
  color: white;
  border-color: transparent;
}

.flow-step.active strong {
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
}

.upload-form { display: grid; gap: 1rem; }

.upload-step {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.upload-step.active {
  display: grid;
  gap: 1.25rem;
  opacity: 1;
  transform: translateY(0);
  animation: smoothStep 0.34s ease both;
}

@keyframes smoothStep {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label span {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

input, select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(199, 161, 122, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
}

input:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(70, 132, 127, 0.11);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 190px;
  border: 1.5px dashed var(--gold);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(248, 243, 236, 0.82), rgba(255, 255, 255, 0.6)),
    radial-gradient(circle at center, rgba(199, 161, 122, 0.16), transparent);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--teal);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
}

.dropzone input { display: none; }

.dropzone span {
  font-weight: 800;
  color: var(--teal);
  font-size: 1.02rem;
}

.dropzone small {
  max-width: 520px;
  color: rgba(45, 37, 35, 0.68);
  line-height: 1.55;
}

.step-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.step-actions.split {
  justify-content: space-between;
  gap: 1rem;
}

.selected-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.selected-files-header h3 {
  font-family: 'Playfair Display', serif;
  color: var(--teal);
}

.selected-files-header button {
  border: 0;
  background: transparent;
  color: var(--rose);
  font-weight: 800;
  cursor: pointer;
}

.file-preview { display: grid; gap: 0.7rem; }

.preview-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(199, 161, 122, 0.28);
}

.file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(70, 132, 127, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.file-meta { min-width: 0; }

.file-meta strong {
  display: block;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.remove-file {
  border: 0;
  background: rgba(186, 90, 110, 0.12);
  color: var(--rose);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 900;
}

.upload-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.upload-summary div {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(199, 161, 122, 0.3);
}

.upload-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.upload-summary strong {
  display: block;
  color: var(--teal);
  margin-top: 0.25rem;
}

.upload-progress-wrap { display: grid; gap: 0.5rem; }

.upload-progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--teal-dark);
  font-size: 0.9rem;
}

.upload-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(199, 161, 122, 0.2);
  overflow: hidden;
}

.upload-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.2s ease;
}

.upload-status {
  min-height: 24px;
  color: var(--teal-dark);
  font-weight: 700;
  text-align: center;
}

.upload-status.error { color: var(--rose); }

.albums-section {
  padding-top: 3rem;
}

.album-grid {
  max-width: 1180px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 1rem;
}

.album-card {
  min-height: 320px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 32px;
  color: white;
  box-shadow: 0 22px 60px rgba(45, 37, 35, 0.17);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.album-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.32), transparent 58%);
  z-index: -1;
  transform: rotate(20deg);
}

.album-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  font-weight: 900;
}

.album-card h3 {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
}

.album-card p {
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
}

.album-card.qawali { background: linear-gradient(135deg, #285b57, #8b6c3e); }
.album-card.haldi { background: linear-gradient(135deg, #c9942e, #d96d55); }
.album-card.mehndi { background: linear-gradient(135deg, #6e3f79, #ba5a6e); }
.album-card.church { background: linear-gradient(135deg, #567a9b, #c7a17a); }
.album-card.reception { background: linear-gradient(135deg, #203348, #46847f); }

.album-actions {
  display: grid;
  gap: 0.55rem;
}

.album-actions button {
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 999px;
  padding: 0.72rem;
  background: rgba(255,255,255,0.16);
  color: white;
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.album-actions button:hover {
  background: rgba(255,255,255,0.26);
}

.gallery-section { padding-top: 4rem; }

.section-heading { margin-bottom: 2rem; }

.gallery-toolbar {
  max-width: 1180px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 1rem;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gallery-filters button {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal);
  cursor: pointer;
  font-weight: 800;
}

.gallery-filters button.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.search-wrap {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.search-wrap span {
  position: absolute;
  left: -9999px;
}

.gallery-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.photo-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(199, 161, 122, 0.35);
  box-shadow: 0 18px 50px rgba(70, 132, 127, 0.14);
  animation: riseIn 0.35s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.photo-thumb {
  min-height: 245px;
  width: 100%;
  display: grid;
  place-items: center;
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.photo-thumb.gradient-qawali { background: linear-gradient(135deg, #285b57, #8b6c3e); }
.photo-thumb.gradient-haldi { background: linear-gradient(135deg, #c9942e, #d96d55); }
.photo-thumb.gradient-mehndi { background: linear-gradient(135deg, #6e3f79, #ba5a6e); }
.photo-thumb.gradient-church { background: linear-gradient(135deg, #567a9b, #c7a17a); }
.photo-thumb.gradient-reception { background: linear-gradient(135deg, #203348, #46847f); }

.photo-thumb::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 65%);
}

.photo-thumb img,
.photo-thumb video {
  width: 100%;
  height: 245px;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  margin: 1rem;
  top: 0;
  left: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(45, 37, 35, 0.68);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 2;
}

.photo-info { padding: 1.1rem; }

.photo-info span {
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-info h3 {
  margin: 0.35rem 0 0.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--teal);
}

.photo-info p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-actions {
  display: flex;
  gap: 0.75rem;
}

.photo-actions button,
.photo-actions a {
  flex: 1;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.7rem;
  background: transparent;
  color: var(--teal);
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

.empty-state {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(199, 161, 122, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.lightbox.open { display: block; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 19, 0.74);
  backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cream);
  border: 1px solid rgba(199, 161, 122, 0.55);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.34);
}

.lightbox-media {
  min-height: 520px;
  display: grid;
  place-items: center;
  background: #201b1b;
}

.lightbox-media img,
.lightbox-media video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 2rem);
  object-fit: contain;
}

.lightbox-placeholder {
  font-family: 'Great Vibes', cursive;
  color: white;
  font-size: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.lightbox-details {
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.lightbox-details p {
  margin: 0;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.lightbox-details h3 {
  font-family: 'Playfair Display', serif;
  color: var(--teal);
  font-size: 2rem;
}

.lightbox-details span { color: var(--muted); }

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero { min-height: 82vh; }
  .hero::before { inset: 0.7rem; }
  .hero::after { inset: 1.2rem; }

  .hero-stats {
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(199, 161, 122, 0.35);
  }

  .flow-steps,
  .form-grid,
  .upload-summary,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .photo-actions,
  .step-actions.split {
    flex-direction: column;
  }

  .selected-files-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox-panel {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lightbox-media { min-height: 340px; }
}

/* Full image display + hover download overlay */
.photo-card {
  position: relative;
}

.photo-thumb {
  min-height: unset;
  background: rgba(255, 255, 255, 0.72);
}

.photo-thumb img,
.photo-thumb video {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  display: block;
  background: rgba(248, 243, 236, 0.9);
}

.photo-info {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
}

.photo-actions {
  position: absolute;
  inset: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(45, 37, 35, 0.46);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.photo-card:hover .photo-actions {
  opacity: 1;
  pointer-events: auto;
}

.photo-actions button,
.photo-actions a {
  max-width: 180px;
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.photo-actions button:hover,
.photo-actions a:hover {
  background: var(--gold);
  color: white;
}

@media (max-width: 760px) {
  .photo-actions {
    position: static;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    margin-top: 1rem;
  }

  .photo-actions button,
  .photo-actions a {
    max-width: none;
    background: transparent;
    color: var(--teal);
    box-shadow: none;
  }
}
