@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Inter:wght@300&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at center, #0e0a15 0%, #000 100%);
  color: #f0e8ff;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #c9b2ff;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #ffffff;
}

/* Polaroid Gallery Layout */
.polaroid-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
}

/* Polaroid Styling */
.polaroid {
  background: #fff;
  display: inline-block;
  padding: 10px 10px 25px 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  border-radius: 4px;
  transform: rotate(var(--tilt, -2deg)) scale(1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #000;
  position: relative;
}

.polaroid img {
  width: 220px;
  height: auto;
  border-radius: 3px;
  display: block;
}

.polaroid .caption {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 1rem;
  margin-top: 8px;
  color: #3a2b47;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* =========== Carrd-style Filter UI =========== */
.is-hidden{display:none!important}

.filter-bar{
  --default-pressed-bg:#111;
  --default-pressed-fg:#fff;
  display:flex; flex-wrap:wrap; gap:.5rem; align-items:center;
  margin:1rem 0; padding:.5rem; justify-content:center;
}

/* Controls */
.filter-ctl{
  display:inline-block; border:1px solid currentColor; border-radius:999px;
  padding:.45rem .8rem; font:inherit; line-height:1; cursor:pointer;
  background:transparent; user-select:none; color:#ffffff;
}

/* Filter buttons */
.filter-btn{
  --btn-color: currentColor;
  --btn-pressed-bg: var(--btn-color);
  --btn-pressed-fg: #fff;
  display:inline-block; border-radius:999px; padding:.45rem .8rem;
  font:inherit; line-height:1; cursor:pointer; user-select:none; text-decoration:none;
  color:var(--btn-color); border:1px solid var(--btn-color); background:transparent;
}
.filter-btn:not([style*="--btn-color"]){
  --btn-pressed-bg: var(--default-pressed-bg);
  --btn-pressed-fg: var(--default-pressed-fg);
}
.filter-btn[aria-pressed="true"]{
  background:var(--btn-pressed-bg); color:var(--btn-pressed-fg); border-color:var(--btn-pressed-bg);
}
.filter-btn[aria-pressed="true"]::before{content:"✓";font-weight:700;margin-right:.35rem}
.filter-btn:focus-visible{ outline:2px solid var(--btn-pressed-bg); outline-offset:2px; }

/* AND/OR cue */
.mode-indicator{display:flex; align-items:center; gap:.35rem; margin-left:.25rem; font-size:.95rem}
.mode-pill{padding:.2rem .5rem; border-radius:999px; border:1px solid currentColor; opacity:.55}
.filter-bar[data-mode="all"] .mode-pill.and{font-weight:800; opacity:1}
.filter-bar[data-mode="any"] .mode-pill.or {font-weight:800; opacity:1}

#no-results {
  text-align:center;
  color:#aaa;
  font-style:italic;
  margin-top:1rem;
}

/* =========================================================
   RETURN + BACK TO TOP BUTTONS (ADDITIVE)
   ========================================================= */
.return-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;

  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;

  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;

  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.return-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateX(-2px);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;

  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;

  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;

  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

html {
  scroll-behavior: smooth;
}

/* --- FILTER BAR LAYOUT: allow wrapping --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* --- FILTER BAR LAYOUT: allow wrapping --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* FILTER BAR stays a column */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* SEARCH ROW */
.filter-search-row {
  display: flex;
  justify-content: center;
}

.filter-search {
  width: 520px;           /* <-- control length here */
  max-width: 90%;
  padding: 0.85rem 1.1rem;

  border-radius: 14px;
  font-size: 1.1rem;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.filter-search::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.filter-search:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.65);
  outline: none;
}

/* TAGS ROW */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center; /* or flex-start if you prefer */
}


