/* Estilos específicos para la página "Día de Oración por México" */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/oracion.jpg") no-repeat center;
  background-size: cover;
  background-position: center;
  color: white;
  /* Aumentado el padding para hacer el cuadro más alto */
  padding: 15rem 0 10rem;
  margin-top: 4rem;
  text-align: center;
}

.page-header h2 {
  font-size: 4rem; /* Modificado para un tamaño más grande */
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.page-header a {
  text-decoration: none; /* NUEVO: Quita el subrayado del enlace */
}

/* Added styles for Together header section */
.together-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.together-text,
.together-title {
  flex: 1;
  min-width: 300px;
}

.together-text h2,
.together-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.together-text p,
.together-title p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Reduced image sizes for Together sections */
.together-image {
  flex: 0 0 auto;
  max-width: 200px;
  width: 200px;
}

.together-image img {
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .together-header {
    flex-direction: column;
    text-align: center;
  }

  .together-image {
    max-width: 150px;
    width: 150px;
    margin: 0 auto;
  }

  .together-image img {
    max-width: 150px;
    max-height: 150px;
  }
}

/* Sección que engloba ambas galerías */
.gallery-section {
  padding: 5rem 0;
  background-color: var(--surface);
}

/* Estructura para las subsecciones de imágenes y videos */
.section-content {
  margin-bottom: 4rem;
}

.section-content.video-section-content {
  margin-bottom: 0;
}

/* Diseño de la cuadrícula para ambos tipos de contenido */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Estilos para cada elemento de la galería (imágenes y videos) */
.gallery-item {
  background-color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Estilo para las imágenes dentro de la galería */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  transition: transform 0.3s ease-in-out;
}

.gallery-item a:hover img {
  transform: scale(1.05); /* Efecto al pasar el mouse por encima */
}

/* Estilo para los títulos o descripciones */
.gallery-item .caption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Estilos para los iframes de video (dentro de un .gallery-item) */
.gallery-item iframe {
  border-radius: 0.5rem;
}

/* Estilos para el indicador "EN VIVO" */
.live-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.live-indicator {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  background-color: red; /* Color del punto parpadeante */
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: live-blink 1.5s infinite;
}

@keyframes live-blink {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
