/* ══════════════════════════════════════════
   KC-04 XV FLORAL INFERNO — PHOTO GALLERY
   "El Libro de la Reina" & Google Photos Card
   Khal Calloway Studio © 2026
   ══════════════════════════════════════════ */

#gallery-section {
  position: relative;
  background-color: var(--bg-obsidian);
  padding: 6rem 0;
}

/* Dynamic Card Stack for Main Photos */
#gallery-stack-wrap {
  width: 100%;
  max-width: 320px;
  margin: 3rem auto 4rem;
  position: relative;
  perspective: 1000px;
}

#gallery-stack {
  position: relative;
  width: 100%;
  height: 380px;
  cursor: pointer;
  outline: none;
}

.gallery-card {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  user-select: none;
  touch-action: manipulation;
  will-change: transform, opacity;
}

/* Polaroid framing matching Damas but with specific gold accents */
.gallery-card-inner {
  width: 100%;
  height: 100%;
  background: #faf8f5;
  padding: 16px 16px 24px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gallery-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.7;
}

.gallery-card-frame {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0b0505;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.gallery-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.05) contrast(1.08) brightness(0.95);
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-frame img {
  transform: scale(1.03);
}

.gallery-card-label {
  margin-top: 16px;
  font-family: var(--ff-accent);
  font-size: 1.8rem;
  color: #2b1a11;
  text-align: center;
  line-height: 1;
}

.gallery-card-label .date-stamp {
  font-family: var(--ff-label);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(43, 26, 17, 0.6);
  display: block;
  margin-top: 4px;
}


/* ── CAPTURA EL MOMENTO: GOOGLE PHOTOS COLLABORATIVE ── */
#captura-section {
  position: relative;
  background-color: var(--bg-obsidian);
  padding: 6rem 0;
}

.captura-card {
  background: rgba(18, 5, 5, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 179, 71, 0.4);
  border-radius: 8px;
  padding: 45px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(215, 38, 56, 0.15);
  max-width: 480px;
  margin: 0 auto;
  z-index: 2;
}

.captura-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 179, 71, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.captura-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.8rem;
}

.captura-cam-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.captura-icon-glow {
  position: absolute;
  inset: 10px;
  background: var(--rose-celestial);
  filter: blur(20px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 1;
}

.captura-pretitle {
  font-family: var(--ff-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rose-blush);
  margin-bottom: 0.5rem;
}

.captura-title {
  font-family: var(--ff-hero);
  font-size: 1.8rem;
  color: var(--color-champagne);
  margin-bottom: 1.2rem;
}

.captura-desc {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Jelly animations on click button */
.captura-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  background: var(--rose-inferno);
  border: 1px solid var(--rose-celestial);
  border-radius: 4px;
  color: var(--color-ivory);
  font-family: var(--ff-label);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(107, 15, 26, 0.4);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.1s ease;
}

.captura-btn:hover {
  background: var(--rose-celestial);
  border-color: var(--gold-kc);
  box-shadow: 0 0 15px rgba(161, 29, 42, 0.6);
}

.captura-btn.jelly-active {
  animation: jelly 0.5s ease-out;
}

@keyframes jelly {
  0% { transform: scale(1); }
  30% { transform: scale(1.15, 0.85); }
  40% { transform: scale(0.8, 1.2); }
  55% { transform: scale(1.1, 0.9); }
  65% { transform: scale(0.95, 1.05); }
  75% { transform: scale(1.02, 0.98); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .captura-card { padding: 35px 20px; }
  .captura-title { font-size: 1.48rem; }
}
