:root {
  color-scheme: dark;
  --panel: rgba(17, 24, 20, 0.88);
  --muted: #b9c5bd;
  --accent: #d9f99d;
  --border: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #08110c;
  color: #f7fbf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.gallery-shell {
  min-height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem;
  padding: 0.5rem;
  background:
    radial-gradient(circle at top left, rgba(81, 120, 73, 0.28), transparent 36rem),
    #08110c;
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
}

#current-date {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.latest-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}

.latest-button:hover { border-color: var(--accent); }
.latest-button:disabled { opacity: 0.45; cursor: not-allowed; }

.rose-swiper {
  width: 100%;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.rose-swiper .swiper-slide {
  display: grid;
  place-items: center;
}

.rose-photo {
  width: 100%;
  margin: 0;
  display: grid;
  place-items: center;
}

.rose-photo img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.swiper-button-prev,
.swiper-button-next {
  border: 0;
  color: white;
  filter: drop-shadow(0 2px 5px black);
}

[dir="rtl"] .swiper-button-prev {
  left: 1rem;
  right: auto;
}

[dir="rtl"] .swiper-button-next {
  right: 1rem;
  left: auto;
}

.swiper-pagination {
  width: auto !important;
  left: auto !important;
  right: 1rem;
  bottom: 1rem !important;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--panel);
}

.thumbs-swiper {
  width: 100%;
  padding-bottom: 0.25rem;
}

.thumbs-swiper .swiper-wrapper { align-items: stretch; }

.thumb {
  width: 112px;
  height: 92px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #101813;
  color: white;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.thumb:hover,
.thumb.swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.thumb span {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 55vh;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted);
}

code { color: var(--accent); }

@media (max-width: 640px) {
  .gallery-shell { 
    padding: 0.25rem; 
    gap: 0.25rem;
    min-height: 90vh;
    max-height: 90vh;
  }
  .latest-button { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
  .rose-photo img { 
    max-height: 50vh;
  }
  .swiper-button-prev,
  .swiper-button-next { display: none; }
  .thumb { width: 72px; height: 60px; }
}
