:root {
  --navy: #0B1059;
  --red: #FE4A4A;
  --light-blue: #9DC5FD;
  --white: #FEFEFE;
  --gray: #6b6f8a;
  --border: #e3e6f5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1, h2, h3, .display {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a { color: inherit; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 12px 0 20px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 24px;
}

.topbar .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  color: var(--navy);
}

.topbar .event-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 14px rgba(11, 16, 89, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--red);
  color: var(--white);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

input[type="text"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
  background: var(--white);
  color: var(--navy);
}

textarea { resize: vertical; min-height: 60px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.file-drop {
  border: 2px dashed var(--light-blue);
  border-radius: 14px;
  padding: 36px 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  background: #f6f9ff;
}

.file-drop.has-preview {
  padding: 0;
  border-style: solid;
  overflow: hidden;
  background: var(--navy);
}

.file-drop img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: contain;
  background: var(--navy);
}

.file-drop .hint {
  color: var(--gray);
  font-size: 14px;
}

.file-drop .hint strong { color: var(--navy); }

.status-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}

.status-msg.show { display: block; }
.status-msg.success { background: #eafaf1; color: #157347; }
.status-msg.error { background: #fdeaea; color: var(--red); }

.footer-links {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--gray);
}

.footer-links a { color: var(--navy); text-decoration: underline; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--light-blue);
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

/* Admin queue */
.queue-item {
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.queue-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.queue-item .meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--gray);
}

.queue-item .meta .caption {
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 4px;
}

.queue-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.queue-actions button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.approve-btn { background: #157347; color: white; }
.reject-btn { background: var(--red); color: white; }

.badge {
  display: inline-block;
  background: var(--light-blue);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Slideshow */
body.slideshow-body {
  background: var(--navy);
  height: 100vh;
  overflow: hidden;
}

.slideshow-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slideshow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}

.slideshow-stage img.active { opacity: 1; }

.slideshow-branding {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 5;
}

.slideshow-empty {
  color: var(--white);
  text-align: center;
  padding-top: 40vh;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
}

/* =========================================================
   EDITORIAL REDESIGN — Upload (index.html) & Gallery pages
   High-end / fashion-magazine direction. Scoped under .ed-*
   classes so admin.html and slideshow.html are unaffected.
   ========================================================= */

.ed-serif {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.ed-body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ed-body.ed-body--light {
  background: var(--white);
  color: var(--navy);
}

.ed-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(157, 197, 253, 0.16), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(254, 74, 74, 0.10), transparent 55%);
}

.ed-shell {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.ed-shell--wide { max-width: 1080px; }

.ed-mark {
  text-align: center;
  margin-bottom: 44px;
}

.ed-mark .ed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 10.5px;
  color: var(--light-blue);
  font-weight: 500;
}

.ed-mark .ed-eyebrow::before,
.ed-mark .ed-eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
  opacity: 0.9;
}

.ed-mark h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 16px 0 10px;
}

.ed-mark .ed-event {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.55);
}

.ed-body--light .ed-mark .ed-event { color: var(--gray); }

.ed-rule {
  width: 46px;
  height: 1px;
  background: rgba(254, 254, 254, 0.25);
  margin: 22px auto 0;
}

.ed-body--light .ed-rule { background: var(--border); }

/* Upload dropzone */
.ed-drop {
  border: 1px solid rgba(254, 254, 254, 0.22);
  padding: 0;
  text-align: center;
  cursor: pointer;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.ed-drop:hover { border-color: rgba(254, 254, 254, 0.45); }

.ed-drop .ed-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.ed-drop svg { opacity: 0.85; }

.ed-drop .ed-drop-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  color: rgba(254, 254, 254, 0.9);
}

.ed-drop .ed-drop-sub {
  font-size: 12.5px;
  color: rgba(254, 254, 254, 0.45);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 15px;
}

.ed-drop.has-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fields */
.ed-field { margin-bottom: 22px; }

.ed-field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(254, 254, 254, 0.5);
  margin-bottom: 10px;
}

.ed-field input[type="text"],
.ed-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(254, 254, 254, 0.25);
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  padding: 4px 0 10px;
  transition: border-color 0.2s ease;
}

.ed-field input[type="text"]:focus,
.ed-field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.ed-field input::placeholder,
.ed-field textarea::placeholder {
  color: rgba(254, 254, 254, 0.32);
  font-style: italic;
}

.ed-field textarea { resize: none; min-height: 44px; }

/* Button */
.ed-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}

.ed-btn span { position: relative; z-index: 2; }

.ed-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-101%);
  transition: transform 0.35s ease;
  z-index: 1;
}

.ed-btn:hover:not(:disabled)::before { transform: translateX(0); }
.ed-btn:hover:not(:disabled) { color: var(--navy); }
.ed-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ed-status {
  margin-top: 18px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  display: none;
}

.ed-status.show { display: block; }
.ed-status.success { color: var(--light-blue); }
.ed-status.error { color: var(--red); }

.ed-footer {
  text-align: center;
  margin-top: 40px;
}

.ed-footer a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(254, 254, 254, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 254, 254, 0.25);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ed-footer a:hover { color: var(--white); border-color: var(--white); }

/* ---- Gallery (masonry + lightbox) ---- */
.ed-masonry {
  column-count: 2;
  column-gap: 16px;
  margin-top: 8px;
}

@media (min-width: 640px) { .ed-masonry { column-count: 3; } }
@media (min-width: 1100px) { .ed-masonry { column-count: 4; } }

.ed-tile {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #10163f repeat;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(4, 6, 30, 0.4), 0 10px 26px -8px rgba(4, 6, 30, 0.55);
  transform: translateY(0);
  opacity: 0;
  transform: translateY(22px);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
}

.ed-tile.ed-in-view {
  opacity: 1;
  transform: translateY(0);
}

.ed-tile:hover {
  box-shadow: 0 4px 10px rgba(4, 6, 30, 0.45), 0 22px 40px -10px rgba(4, 6, 30, 0.7);
  transform: translateY(-4px);
}

.ed-tile img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ed-tile img.ed-loaded { opacity: 1; }

.ed-tile:hover img { transform: scale(1.045); }

.ed-tile .ed-tile-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(to top, rgba(11,16,89,0.9), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ed-tile:hover .ed-tile-scrim { opacity: 1; }

.ed-tile .ed-tile-caption {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--white);
  line-height: 1.3;
}

.ed-tile .ed-tile-name {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.6);
  margin-top: 4px;
}

.ed-empty {
  text-align: center;
  padding: 100px 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(254, 254, 254, 0.55);
}

/* Lightbox */
.ed-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 40, 0.97);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 50;
  padding: 32px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ed-lightbox.open { display: flex; }
.ed-lightbox.open.ed-visible { opacity: 1; }

.ed-lightbox img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ed-lightbox img.ed-visible {
  opacity: 1;
  transform: scale(1);
}

.ed-lightbox-play {
  position: absolute;
  top: 22px;
  left: 24px;
  background: none;
  border: 1px solid rgba(254, 254, 254, 0.35);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ed-lightbox-play:hover { border-color: var(--white); }
.ed-lightbox-play.playing { background: var(--white); color: var(--navy); border-color: var(--white); }

.ed-lightbox .ed-lightbox-caption {
  text-align: center;
  margin-top: 18px;
  max-width: 560px;
}

.ed-lightbox .ed-lightbox-caption .cap {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--white);
}

.ed-lightbox .ed-lightbox-caption .name {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.55);
}

.ed-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.75;
}

.ed-lightbox-close:hover { opacity: 1; }

.ed-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
  padding: 12px;
  font-family: Georgia, serif;
}

.ed-lightbox-nav:hover { opacity: 1; }
.ed-lightbox-prev { left: 8px; }
.ed-lightbox-next { right: 8px; }

@media (min-width: 600px) {
  .ed-lightbox-prev { left: 24px; }
  .ed-lightbox-next { right: 24px; }
}

/* Custom scrollbar — small touch, reads more designed than a stock OS bar */
.ed-body::-webkit-scrollbar { width: 9px; }
.ed-body::-webkit-scrollbar-track { background: var(--navy); }
.ed-body::-webkit-scrollbar-thumb {
  background: rgba(157, 197, 253, 0.35);
  border-radius: 20px;
  border: 2px solid var(--navy);
}
.ed-body::-webkit-scrollbar-thumb:hover { background: rgba(157, 197, 253, 0.55); }
.ed-body { scrollbar-width: thin; scrollbar-color: rgba(157, 197, 253, 0.4) var(--navy); }

/* Skeleton shimmer while the first batch of photos is loading */
.ed-skeleton-grid {
  column-count: 2;
  column-gap: 16px;
  margin-top: 8px;
}
@media (min-width: 640px) { .ed-skeleton-grid { column-count: 3; } }
@media (min-width: 1100px) { .ed-skeleton-grid { column-count: 4; } }

.ed-skeleton {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 3px;
  background: linear-gradient(100deg, #10163f 30%, #171d4d 50%, #10163f 70%);
  background-size: 220% 100%;
  animation: ed-shimmer 1.6s ease-in-out infinite;
}

@keyframes ed-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}
