.news-title {
  font-family: 'Georgia', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.news-summary {
  font-family: 'Arial', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.news-content {
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #212529;
}

.news-content p {
  margin-bottom: 1.2rem;
}

.news-meta {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
}

.news-detail-container img {
  object-fit: cover;
  max-height: 480px;
}

.news-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-more .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-modal {
  /* eliminar display: none; */
  position: fixed;
  z-index: 1050;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  display: none;
  /* agrega aquí para que inicie oculto */
  justify-content: center;
  align-items: center;
  padding: 1rem;

  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

/* Imagen principal centrada */
.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  user-select: none;
  animation: fadeInScale 0.3s ease forwards;

  display: block;
  margin: auto;
}

/* Animación */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(1.1);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Botón cerrar */
.lightbox-modal .close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  color: #f8f9fa;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  z-index: 1100;
  transition: color 0.25s ease;
}

.lightbox-modal .close:hover,
.lightbox-modal .close:focus {
  color: #ff6b6b;
  outline: none;
}

/* Controles prev y next: tamaño más pequeño y centrado vertical */
.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: fixed;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  color: #f8f9fa;
  font-weight: 700;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1100;
  border: 2px solid transparent;
}

.lightbox-prev {
  left: 1.2rem;
}

.lightbox-next {
  right: 1.2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus,
.lightbox-next:focus {
  background: rgba(255, 255, 255, 0.3);
  color: #93aaf4;
  outline: none;
  border-color: #6260fa;
}

@media (max-width: 768px) {
  .lightbox-prev {
    width: 32px;
    height: 32px;
    font-size: 22px;
    left: 0.8rem;
    /* sólo left */
    right: auto;
    /* limpia right */
  }

  .lightbox-next {
    width: 32px;
    height: 32px;
    font-size: 22px;
    right: 0.8rem;
    /* sólo right */
    left: auto;
    /* limpia left */
  }
}

@media (max-width: 480px) {
  .lightbox-prev {
    width: 28px;
    height: 28px;
    font-size: 18px;
    left: 0.6rem;
    right: auto;
  }

  .lightbox-next {
    width: 28px;
    height: 28px;
    font-size: 18px;
    right: 0.6rem;
    left: auto;
  }
}

/* Móviles: más arriba */
@media (max-width: 576px) {
  .edit-btn {
    bottom: 6rem;
    /* lo subimos más */
    right: 1rem;
    min-width: 38px;
    min-height: 38px;
    padding: 0.35rem;
  }
}



/* Imagen + pie centrado para <br> */
.br-image-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.br-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.br-image-caption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Iframes estilo NYT */
.news-content iframe {
  width: 100%;
  height: 400px;
  border: none;
  margin: 2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .news-content iframe {
    height: 250px;
  }
}

.news-cover-image img {
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.news-cover-image figcaption {
  font-style: italic;
  color: #666;
}


.news-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Citas normales centradas y responsivas */
.news-content blockquote {
  display: block;
  border-left: 4px solid #1DA1F2;
  /* azul X */
  padding: 1rem 1.2rem;
  margin: 2rem auto;
  /* centrado */
  background: #f8f9fa;
  font-style: italic;
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  /* ancho fijo para centrado */
  width: 100%;
  box-sizing: border-box;
}

.news-content blockquote p {
  margin: 0;
}

/* Tweets embebidos centrados y responsivos */
.news-content blockquote.twitter-tweet {
  display: block;
  border-left: none;
  padding: 0;
  background: transparent;
  font-style: normal;
  box-shadow: none;
  margin: 2rem auto;
  /* centrado */
  max-width: 550px;
  /* ancho máximo real */
  width: 100%;
  text-align: center;
}

.news-content blockquote.twitter-tweet p {
  font-size: 1rem;
  line-height: 1.5;
}

.news-content blockquote.twitter-tweet a {
  color: #1DA1F2;
  text-decoration: none;
}

.news-content blockquote.twitter-tweet a:hover {
  text-decoration: underline;
}

/* Ajuste en móviles */
@media (max-width: 576px) {
  .news-content blockquote {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    max-width: 95%;
  }

  .news-content blockquote.twitter-tweet {
    max-width: 95%;
  }

  .news-content blockquote.twitter-tweet p {
    font-size: 0.95rem;
  }
}

.share-btn {
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook {
  background: linear-gradient(135deg, #1877F2, #145DBF);
}

.share-btn.twitter {
  background: linear-gradient(135deg, #000000, #333333);
}

.share-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #1DA851);
}

.share-btn.telegram {
  background: linear-gradient(135deg, #0088CC, #006FA6);
}

.share-btn.email {
  background: linear-gradient(135deg, #9E9E9E, #757575);
}