/* =========================================
   GALERIA — HERO
   ========================================= */

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 40px 20px;
  text-align: center;
}

.gallery-hero .floral-top {
  position: absolute;
  top: -30px;
  left: -20px;
  width: 130px;
  height: 150px;
  opacity: 0.65;
}

.gallery-hero .floral-bottom {
  position: absolute;
  top: -20px;
  right: -30px;
  width: 130px;
  height: 150px;
  transform: scaleX(-1) rotate(10deg);
  opacity: 0.65;
}

.gallery-hero .eyebrow {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-hero h1.script {
  font-size: 68px;
  color: var(--gold-deep);
  margin: 4px 0 14px;
}

.gallery-hero p {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* =========================================
   GRID ESTILO MOSAICO
   ========================================= */

.gallery-grid {
  max-width: var(--container);
  margin: 50px auto 0;
  padding: 0 40px 100px;
  column-count: 3;
  column-gap: 24px;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 18px 34px -26px rgba(54, 43, 34, 0.45);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item--video .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-item--video .play-icon i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(250, 244, 236, 0.9);
  color: var(--gold-deep);
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

.gallery-item--video:hover .play-icon i {
  transform: scale(1.1);
  background: var(--gold);
  color: var(--paper);
}

.gallery-status {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  padding: 20px 24px 0;
}

@media (max-width: 900px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-hero {
    padding: 44px 24px 8px;
  }
  .gallery-hero h1.script {
    font-size: 46px;
  }
  .gallery-grid {
    column-count: 1;
    margin-top: 30px;
    padding: 0 24px 70px;
  }
}

/* =========================================
   LIGHTBOX
   ========================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-media {
  max-width: min(900px, 100%);
  max-height: 82vh;
  animation: lightboxIn 0.25s var(--ease);
}

.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-media iframe {
  width: min(900px, 90vw);
  height: min(506px, 50.6vw);
  border: none;
  border-radius: 6px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 16px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}
