.container {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.slider-container .middle-image {
  display: block;
}

@media screen and (max-width: 768px) {  /* Ajusta el valor '768px' a tu necesidad */
  .slider-container .middle-image {
    display: none;
  }
}

.image-content:nth-child(n+2) {
  display: none;
}

button.openModal {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  margin-bottom: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000000; /* Color de fondo negro */
}

.modal-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 10px;
  color: white;
  box-sizing: border-box;
  z-index: 2;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  color: #ffffff; /* Color de las letras blanco */
  margin-top: 0;
}

@media screen and (max-width: 600px) {
  .modal-content {
    margin-top: 60px;
  }
}

.background-image,
.middle-image {
  width: auto;
  height: auto;
}

.background-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Cambia la opacidad (el último número) para hacer el fondo más o menos oscuro */
}

.banner-title {
  position: absolute;
  bottom: 50px; /* Ajusta esta distancia para mover el título del banner arriba o abajo */
  width: 100%;
  text-align: center;
  color: #fff; /* Cambia este color si necesitas que el texto sea de un color diferente */
}

.image-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.image-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Divide en dos columnas de igual ancho */
  margin-bottom: 20px;
}

.mySlides {
  object-fit: cover;
  width: 100%;
  height: auto;
  margin: auto;
}

.image-info {
  padding: 20px;
  box-sizing: border-box;
  background-color: white;
}

.slide-title {
  color: black;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.next i,
.prev i {
  color: white;
}

.close-button {
  background-color: #ccc;
  border: 2px solid #999;
  color: #333;
  cursor: pointer;
  padding: 5px 10px;
}

@media screen and (max-width: 600px) {
  .image-content {
    grid-template-columns: 1fr; /* Solo una columna */
  }
}

@media screen and (max-width: 600px) {
.background-image,
.middle-image {
  width: 100%;
  height: auto;
}
}