.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);
}
.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", cursive;
  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-title em {
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(48px, 8.5vw, 108px);
  letter-spacing: clamp(1px, 0.3vw, 4px);
}
.gallery-hero-sub {
     font-family: "Playfair Display", 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);
}
.gallery-count-num {
    font-family: "Cinzel Decorative", cursive;
    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 {
  display: flex;
  gap: 0;
  margin-bottom: clamp(40px, 6vw, 64px);
  border: 1px solid rgba(245, 232, 168, 0.1);
  width: fit-content;
}
.filter-btn {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(245, 232, 168, 0.55);
  background: transparent;
  border: none;
  border-right: 1px solid rgba(245, 232, 168, 0.1);
  padding: 14px 26px;
  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);
}
.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 Decorative", cursive;
  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;
  font-style: normal;
  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-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: shimmer 1.6s infinite;
  transition: opacity 0.4s;
}
@keyframes 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-idx {
  font-family: "Josefin Sans", sans-serif;
  font-size: 13px;
  font-weight: 200;
  letter-spacing: 2px;
  color: var(--cream);
  opacity: 0.35;
}
.art-card.img-error .art-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.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;
}