/* Sacred Canvas Collection — gallery page only */

.gallery-hero {
  min-height: 60vh;
  background: linear-gradient(135deg, var(--red) 0%, #3d0000 60%, #1a0a00 100%);
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.gallery-hero__inner {
  position: relative;
  z-index: 1;
  padding: 48px 0;
}
.gallery-hero .eyebrow {
  color: var(--gold);
}
.gallery-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #fff;
  margin: 12px 0;
}
.gallery-hero__title em {
  color: var(--gold);
  font-style: normal;
}
.gallery-hero__sub {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 1);
  opacity: 0.88;
  line-height: 1.7;
}
.gallery-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.gallery-section {
  padding: 64px 0 80px;
  background: var(--cream);
}

.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0 0;
}
.gf-btn {
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  font-family: var(--sans);
}
.gf-btn.active,
.gf-btn:hover {
  background: var(--gold);
  color: #1a0a00;
  border-color: var(--gold);
  font-weight: 700;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.artwork-card {
  background: rgba(255, 248, 240, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.artwork-card--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.artwork-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(122, 0, 0, 0.18), 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.artwork-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #1a0a00;
}
.artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.artwork-card:hover .artwork-img {
  transform: scale(1.06);
}

.artwork-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.artwork-card:hover .artwork-overlay {
  opacity: 1;
}
.artwork-view-btn {
  min-height: 44px;
  min-width: 44px;
}

.artwork-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  display: inline-block;
}
.badge-available {
  background: rgba(212, 175, 55, 0.9);
  color: #1a0a00;
}
.badge-sold {
  background: rgba(122, 0, 0, 0.85);
  color: #fff;
}
.badge-featured {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.artwork-info {
  padding: 20px;
}
.artwork-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 2px;
  color: var(--text-dark);
}
.artwork-title-hi {
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0 0 10px;
  font-style: italic;
}
.artwork-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}
.artwork-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.artwork-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 14px;
  font-family: var(--serif);
}
.artwork-wa-btn {
  width: 100%;
  text-align: center;
  font-size: 0.88rem;
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.artwork-modal[hidden] {
  display: none;
}
.artwork-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 0, 0.85);
  backdrop-filter: blur(4px);
}
.artwork-modal__box {
  position: relative;
  background: var(--cream);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.artwork-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  z-index: 2;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}
.artwork-modal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.artwork-modal__img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}
.artwork-modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artwork-modal__details {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-artwork-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0;
}
.modal-title-hi {
  color: var(--gold);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}
.modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.modal-story {
  color: var(--text-dark);
  font-size: 0.88rem;
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.8rem;
}
.modal-meta strong {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.modal-wa-btn {
  margin-top: auto;
  text-align: center;
  font-size: 0.92rem;
  padding: 12px 20px;
  min-height: 44px;
}

.artist-section {
  background: linear-gradient(135deg, #fdf6e9 0%, #fff8f0 100%);
  padding: 80px 0;
}
.artist-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.artist-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.artist-badges span {
  background: rgba(122, 0, 0, 0.08);
  color: var(--red);
  border: 1px solid rgba(122, 0, 0, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.artist-mandala {
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.15;
  font-family: var(--serif);
  user-select: none;
  line-height: 1;
}

.gallery-cta {
  background: var(--red);
  padding: 80px 0;
}
.gallery-cta .btn-lg {
  min-height: 48px;
  padding: 14px 28px;
}

@media (max-width: 768px) {
  .artwork-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .artwork-modal__content {
    grid-template-columns: 1fr;
  }
  .artwork-modal__img-wrap {
    border-radius: 20px 20px 0 0;
    aspect-ratio: 16/10;
  }
  .modal-meta {
    grid-template-columns: 1fr 1fr;
  }
  .artist-inner {
    grid-template-columns: 1fr;
  }
  .artist-mandala {
    display: none;
  }
}
@media (max-width: 480px) {
  .artwork-grid {
    grid-template-columns: 1fr;
  }
  .artwork-modal__details {
    padding: 20px 16px;
  }
}
