body.gallery-page {
  background-color: #0f0d0d;
  color: #fff;
  font-family: 'Georgia', serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.gallery-page header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f0d0d;
  padding: 30px 60px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-page nav a.active {
  color: #caa880;
  font-weight: bold;
}

/* HERO */
.video-hero {
  margin-top: 140px;
  text-align: center;
  color: #f2e6da;
  padding: 40px 20px;
}

.gallery-title {
  font-size: 48px;
  margin-bottom: 10px;
  color: #caa880;
}

.gallery-sub {
  font-size: 18px;
  color: #ccc;
}

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  padding: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 203, 143, 0.08);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card h2 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
  font-weight: 400;
}

/* EMBED CONTAINER */
.embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.embed-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* PHOTO GALLERY SECTION */
.photo-gallery {
  margin: 60px auto 80px auto;
  text-align: center;
  max-width: 1200px;
  padding: 0 40px;
}

.photo-gallery h2 {
  font-size: 30px;
  color: #caa880;
  margin-bottom: 10px;
  border-bottom: 1px solid #caa88044;
  display: inline-block;
  padding-bottom: 6px;
}

.photo-gallery .gallery-sub {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  padding: 0 40px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.02);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.caption {
  margin-top: 10px;
  font-size: 16px;
  color: #ddd;
  text-align: center;
}

.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* FOOTER */
.gallery-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 40px 20px;
  text-align: center;
  color: #ccc;
  background: transparent;
}

.gallery-footer .contact-info {
  max-width: 100%;
}

.gallery-footer .contact-info p {
  margin: 6px 0;
  line-height: 1.6;
  font-size: 16px;
  text-align: center;
}

.gallery-footer a {
  color: #caa880;
  text-decoration: none;
}

.gallery-footer a:hover {
  text-decoration: underline;
}

.gallery-footer .copyright {
  margin-top: 10px;
  font-size: 14px;
  color: #888;
}
/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


/* === BACKDROP cuando imagen ampliada === */
body.lightbox-active {
  overflow: hidden;
}

.lightbox-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9998;
  pointer-events: none;
}
.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  position: fixed;
  z-index: 9999;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: zoom-out;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.lightbox-image.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image:focus {
  outline: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 32px;
  }

  .gallery-sub {
    font-size: 14px;
  }

  .video-grid {
    padding: 30px 20px;
    gap: 30px;
  }

  .video-card h2 {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .photo-gallery {
    padding: 0 20px;
  }
}