:root {
  --pink-bg-1: #ffd3e6;
  --pink-bg-2: #ff9fc8;
  --pink-deep: #e0457f;
  --pink-deeper: #c22e69;
  --card-bg: #fff5f9;
  --card-bg-solid: #ffffff;
  --text-dark: #3a1f2b;
  --text-soft: #7a4a5f;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(194, 46, 105, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: linear-gradient(160deg, var(--pink-bg-1) 0%, var(--pink-bg-2) 55%, var(--pink-bg-1) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 245, 249, 0.75);
  border-bottom: 1px solid rgba(224, 69, 127, 0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Text and its own background are the same color, so it's invisible
   regardless of what's blurred/translucent beneath the header — only the
   browser's text-selection highlight reveals it. */
.secret-admin-link {
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  padding: 0.15rem 0.3rem;
  margin: -0.15rem -0.3rem;
  background: #ffeaf2;
  color: #ffeaf2;
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1;
  z-index: 5;
}

.secret-admin-link:hover,
.secret-admin-link:focus,
.secret-admin-link:visited {
  background: #ffeaf2;
  color: #ffeaf2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pink-deeper);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.brand-icon {
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--pink-deep);
}

/* Hero */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink-deeper);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 500px;
  margin: 0 auto;
}

/* Sections */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-hint {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

.gallery-section, .about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Gallery filters */
.gallery-controls {
  margin-bottom: 2rem;
}

.search-input {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 46, 105, 0.25);
  background: white;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.filter-row select {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 46, 105, 0.25);
  background: white;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
}

.filter-row select:hover {
  border-color: var(--pink-deep);
}

.clear-filters-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--pink-deep);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  display: none;
}

.clear-filters-btn.visible {
  display: inline-block;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.art-card {
  background: var(--card-bg-solid);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(194, 46, 105, 0.28);
}

.art-card .art-image-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe3ef, #ffc1de);
}

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

.art-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--pink-deeper);
  border: 2px dashed rgba(194, 46, 105, 0.35);
  border-radius: 0;
  text-align: center;
  padding: 1rem;
}

.art-placeholder .plus {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.art-placeholder span.label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.art-info {
  padding: 1rem 1.1rem 1.2rem;
}

.art-info h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

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

/* About */
.about-card {
  background: var(--card-bg-solid);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 805px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.copyright {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

.heart {
  color: var(--pink-deep);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(58, 31, 43, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 800px;
  max-height: 85vh;
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-content img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #fbeaf1;
  display: block;
}

.lightbox-caption {
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.lightbox-caption h3 {
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.lightbox-caption p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.lightbox-tags {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem !important;
  font-weight: 600;
  color: var(--pink-deep) !important;
  margin-bottom: 0.6rem;
}

.lightbox-desc {
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.lightbox-details {
  font-size: 0.8rem !important;
  opacity: 0.85;
}

.lightbox-tags:empty,
.lightbox-desc:empty,
.lightbox-details:empty {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-soft);
  padding: 3rem 1rem;
  font-size: 1.05rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
