/* ============================================================
   COUNTRY Guild — gallery.css
   ============================================================ */

/* ── Filter bar ───────────────────────────────────────────── */
.gallery-filter-bar {
  background: linear-gradient(180deg, #fce0ee 0%, #fdf0f7 100%);
  border-bottom: 1px solid rgba(227,145,177,0.2);
  padding: 1.2rem 0;
  position: sticky;
  top: 72px;
  z-index: 100;
}
.filter-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  border: 1px solid rgba(227,145,177,0.3);
  background: rgba(255,255,255,0.7);
  color: #c0437a;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-tab:hover {
  background: rgba(227,145,177,0.12);
  border-color: #E391B1;
}
.filter-tab.active {
  background: linear-gradient(135deg,#d4619a,#E391B1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(227,145,177,0.4);
}

/* ── Featured Item ────────────────────────────────────────── */
.gallery-featured {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.gallery-featured.revealed {
  opacity: 1; transform: translateY(0);
}
.gallery-featured canvas {
  width: 100%;
  display: block;
  height: 340px;
  object-fit: cover;
}

/* ── Grid ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s, transform 0.5s, box-shadow 0.3s;
  border: 1px solid rgba(227,145,177,0.15);
}
.gallery-item.revealed {
  opacity: 1; transform: translateY(0);
}
.gallery-item:hover { box-shadow: 0 12px 36px rgba(227,145,177,0.25); }
.gallery-item.hidden { display: none; }

.gallery-canvas {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}
.gallery-featured .gallery-canvas {
  height: 340px;
}

/* ── Overlay ──────────────────────────────────────────────── */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,5,30,0.85) 0%, rgba(20,5,30,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay,
.gallery-featured:hover .gallery-overlay { opacity: 1; }

.gallery-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.gallery-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #E391B1;
  background: rgba(227,145,177,0.12);
  border: 1px solid rgba(227,145,177,0.3);
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}
.gallery-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.gallery-info p {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

.gallery-expand {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 34px; height: 34px;
  background: rgba(227,145,177,0.2);
  border: 1px solid rgba(227,145,177,0.35);
  border-radius: 50%;
  color: #E391B1;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-expand:hover { background: rgba(227,145,177,0.4); }

/* ── Load more ────────────────────────────────────────────── */
.gallery-load-more {
  text-align: center;
  padding: 1rem 0 2rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-featured canvas { height: 220px; }
}

/* ── Real image in gallery grid ─────────────────────────── */
.gallery-item {
  position: relative;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
