.video-grid.front-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0em 2em;
}

ul.video-list {
  display: flexbox;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

li.video {
  flex-grow: 1;
  position: relative;
  ooverflow: hidden;
  width: 33.333333333%;
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  border: solid 0.1em transparent;
}
li.video a {
  outline: none;
}
li.video:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color .15s;
}
li.video figure {
  display: block;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

}

/* TITULO ARRIBA — SIEMPRE VISIBLE, SIN ANIMACIÓN */
li.video figure .top-title {
  position: absolute;
  top: 0;
  width: 100%;
  padding: .8rem;
  background: rgba(20, 20, 20, 0.75); /* Puedes cambiar el color */
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  z-index: 3;

  /* Asegurar que nunca desaparece */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* TITULO ABAJO — FIJO, SIN ANIMACIÓN */
li.video figure .bottom-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.6rem 0.8rem; /* 🔹 MÁS DELGADO */

  /* 🔥 Rojo translúcido más elegante */
  background: rgba(255, 0, 0, 0.45);

  /* 🔹 Tipografía más limpia */
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem; /* 🔹 MÁS PEQUEÑO */
  line-height: 1.2;
  letter-spacing: 0.3px;

  /* 🔹 Mejor contraste */
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);

  opacity: 1 !important;
  transform: none !important;
  transition: none !important;

  z-index: 5;
}


/* Eliminar los efectos hover */
li.video:hover figure .bottom-title {
  opacity: 1 !important;
  transform: none !important;
}

li.video figure img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.5);
  transition: all .20s;
}
li.video figure figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.0rem;
  font-weight: 200;
  padding: 1rem;
  transform: translateY(0);
  opacity: 1;
  transition: all .20s;
}
li.video:hover figure img {
  opacity: 1;
  transform: scale(1);
}
li.video:hover figure figcaption {
  opacity: 0;
  transform: translateY(50%);
}
li.video:hover:before {
  background-color: rgba(0, 0, 0, 00);
}

@media screen and (max-width: 800px) {
  li.video {
    width: 50%;
    width: -webkit-calc(100% / 2);
    width: calc(100% / 2);
  }
}
@media screen and (max-width: 640px) {
  li.video {
    width: 100%;
  }
}


.pagination .page-item .page-link {
    border-radius: 50px !important;
    margin: 0 5px;
    padding: 8px 16px;
    color: #555;
    border: 1px solid #ddd;
}

.pagination .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #f1f1f1;
}