.gallery-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(245, 232, 168, 0.08);
  flex-wrap: wrap;
}
.gallery-hero-eyebrow {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--green-deep);
  opacity: 0.9;
  margin-bottom: 16px;
}
.gallery-hero-title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--gold-light) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: clamp(2px, 0.5vw, 6px);
}
.gallery-hero-sub {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  color: var(--cream);
  opacity: 0.85;
  line-height: 1.75;
  max-width: 380px;
}
.gallery-hero-right { flex-shrink: 0; }

.gallery-count-ring {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: clamp(100px, 12vw, 148px);
  height: clamp(100px, 12vw, 148px);
  border: 1px solid rgba(245, 232, 168, 0.18);
  border-radius: 50%;
}
.gallery-count-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(245, 232, 168, 0.07);
}
/* Fixed: was "Cinzel Decorative" which stylizes digits until they look like
   letters ("10" -> "IO"). Josefin Sans keeps numerals legible. */
.gallery-count-num {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--gold-light);
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(245, 232, 168, 0.35));
}
.gallery-count-lbl {
  font-family: "IM Fell English SC", serif;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--cream);
  opacity: 0.35;
  margin-top: 4px;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: clamp(40px, 6vw, 64px);
  border: 1px solid rgba(245, 232, 168, 0.1);
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 2px;
}
.filter-btn {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: rgba(245, 232, 168, 0.55);
  background: transparent;
  border: none;
  border-right: 1px solid rgba(245, 232, 168, 0.1);
  padding: 13px 20px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover {
  color: var(--gold);
  background: rgba(245, 232, 168, 0.04);
}
.filter-btn.active {
  color: var(--gold);
  background: rgba(245, 232, 168, 0.07);
}

/* ---------- Category sections ---------- */
.gallery-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 88px);
}
.gallery-cat-section { transition: opacity 0.4s; }
.gallery-cat-section.hidden { display: none; }

.cat-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.cat-header-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.arrow-chevron {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--green-deep);
  opacity: 0.8;
  line-height: 1;
}
.arrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, rgba(143, 168, 50, 0.5), transparent);
}
.cat-title {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 5px;
  color: var(--gold);
  opacity: 0.85;
  margin: 0;
  flex: 1;
}
.cat-count {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  font-weight: 200;
  color: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
  letter-spacing: 2px;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 28vw, 340px), 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.art-card {
  cursor: pointer;
  outline: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s, transform 0.5s;
  display: flex;
  flex-direction: column;
}
.art-card.card-visible { opacity: 1; transform: translateY(0); }

.art-card.art-card-extra { display: none; }

.art-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(245, 232, 168, 0.07);
  transition: border-color 0.3s;
}
.art-card:hover .art-card-img-wrap { border-color: rgba(245, 232, 168, 0.22); }
.art-card-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.02) 0%, rgba(245, 232, 168, 0.04) 40%, rgba(255, 255, 255, 0.02) 80%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.6s infinite;
  transition: opacity 0.4s;
}
@keyframes gallery-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.art-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.art-card-img.loaded { opacity: 1; }
.art-card:hover .art-card-img { transform: scale(1.04); }
.art-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 14, 0.75) 0%, rgba(10, 8, 14, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-card:hover .art-card-overlay { opacity: 1; }
.overlay-badge {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  border: 1px solid rgba(245, 232, 168, 0.4);
  padding: 10px 22px;
  background: rgba(10, 8, 14, 0.5);
  transform: translateY(6px);
  transition: transform 0.35s, opacity 0.35s;
  opacity: 0;
}
.art-card:hover .overlay-badge { transform: translateY(0); opacity: 1; }
.art-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 4px;
}
.art-card-label {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cream);
  opacity: 0.6;
  transition: opacity 0.25s;
}
.art-card:hover .art-card-label { opacity: 0.9; }
.art-card.img-error .art-card-img-wrap { display: flex; align-items: center; justify-content: center; }

/* ---------- See More ---------- */
.see-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}
.see-more-btn {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(245, 232, 168, 0.25);
  padding: 14px 34px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.see-more-btn:hover {
  background: rgba(245, 232, 168, 0.08);
  border-color: rgba(245, 232, 168, 0.55);
  transform: translateY(-2px);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 12, 0.95); z-index: 0; }
.lightbox-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img-wrap { display: flex; align-items: center; justify-content: center; }
.lightbox-img {
  max-width: 85vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s;
  border: 1px solid rgba(245, 232, 168, 0.1);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}
.lightbox-img.lb-loaded { opacity: 1; }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(245, 232, 168, 0.06);
  border: 1px solid rgba(245, 232, 168, 0.18);
  color: var(--gold);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.lightbox-close:hover { background: rgba(245, 232, 168, 0.12); border-color: rgba(245, 232, 168, 0.4); }
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(245, 232, 168, 0.05);
  border: 1px solid rgba(245, 232, 168, 0.14);
  color: var(--gold);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.lightbox-arrow:hover { background: rgba(245, 232, 168, 0.1); border-color: rgba(245, 232, 168, 0.35); }
.lightbox-prev { left: 20px; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next { right: 20px; }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
.lightbox-meta { display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; }
.lightbox-label {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.85;
}
.lightbox-counter {
  font-family: "Josefin Sans", sans-serif;
  font-size: 15px;
  font-weight: 200;
  letter-spacing: 2px;
  color: var(--cream);
  opacity: 0.55;
}

.vp-bubbles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 40px);
}
.vp-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.vp-bubble.vp-visible { opacity: 1; transform: translateY(0); }
.vp-bubble-wrap {
  position: relative;
  width: clamp(130px, 15vw, 190px);
  height: clamp(130px, 15vw, 190px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s;
  overflow: visible;
}
.vp-bubble-bg {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background-size: cover;
  background-position: top center;
  filter: blur(14px) saturate(0.8);
  opacity: 0.55;
  transform: scale(1);
  transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.vp-bubble:hover .vp-bubble-bg { filter: blur(16px) saturate(1.2); opacity: 0.85; transform: scale(1.18); }
.vp-bubble:hover .vp-bubble-wrap { transform: translateY(-4px) scale(1.03); }
.vp-bubble-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(245, 232, 168, 0.2);
  padding: 5px;
  transition: border-color 0.3s;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
  clip-path: circle(50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-bubble:hover .vp-bubble-ring { border-color: rgba(245, 232, 168, 0.6); }
.vp-bubble-ring::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(245, 232, 168, 0.07);
  pointer-events: none;
  z-index: 2;
}
.vp-bubble-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.35s, transform 0.35s;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}
.vp-bubble:hover .vp-bubble-img { filter: saturate(1.15); }
.vp-bubble-name {
  font-family: "IM Fell English SC", serif;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 2.5px;
  color: var(--cream);
  opacity: 0.7;
  text-align: center;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}
.vp-bubble:hover .vp-bubble-name { opacity: 1; color: var(--gold-light); }

.vp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 6, 4, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
}
.vp-modal-overlay.open { opacity: 1; pointer-events: all; }
.vp-modal {
  position: relative;
  background: rgba(18, 14, 8, 0.95);
  border: 1px solid rgba(245, 232, 168, 0.18);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s;
}
.vp-modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(20px) saturate(0.8);
  opacity: 0.4;
  transform: scale(1.15);
  pointer-events: none;
  z-index: 0;
}
.vp-modal-overlay.open .vp-modal { transform: scale(1) translateY(0); }
.vp-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 232, 168, 0.35);
  background: rgba(10, 8, 5, 0.75);
  color: rgba(245, 232, 168, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
}
.vp-modal-close:hover { background: rgba(20, 16, 10, 0.9); color: var(--gold-light); }
.vp-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  position: relative;
  z-index: 1;
}
.vp-modal-img-col {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-modal-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(75vh, 640px);
  object-fit: contain;
  object-position: center;
}
.vp-modal-img-col.has-hscroll {
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  align-items: stretch;
  height: min(58vh, 520px);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 232, 168, 0.5) rgba(0, 0, 0, 0.3);
}
.vp-modal-img-col.has-hscroll .vp-modal-img { width: auto; max-width: none; height: 100%; max-height: none; }
.vp-modal-img-col.has-hscroll::-webkit-scrollbar { height: 6px; }
.vp-modal-img-col.has-hscroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.vp-modal-img-col.has-hscroll::-webkit-scrollbar-thumb { background: rgba(245, 232, 168, 0.5); border-radius: 999px; }
.vp-modal-info-col {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  border-left: 1px solid rgba(245, 232, 168, 0.1);
}
.vp-modal-made {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
  letter-spacing: 2px;
}
.vp-modal-credits { display: flex; flex-direction: column; gap: 28px; }
.vp-modal-credit-item { display: flex; flex-direction: column; gap: 6px; }
.vp-modal-credit-label {
  font-family: "IM Fell English SC", serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cream);
  opacity: 0.45;
}
.vp-modal-credit-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1;
  margin: 0;
}
.vp-modal-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "IM Fell English SC", serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(245, 232, 168, 0.5);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
}
.vp-modal-credit-link:hover { color: var(--gold); }
.vp-modal-credit-link svg { opacity: 0.7; flex-shrink: 0; }

@media (max-width: 768px) {
  .vp-modal-close {
    top: max(14px, env(safe-area-inset-top, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    width: 34px;
    height: 34px;
  }
  .vp-modal-inner { grid-template-columns: 1fr; }
}
#secVtubers,
#secOriginal,
#secIllustrations { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }