.body-frame3-eligecurso {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 1rem;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

.gallery-container {
  width: 100%;
  max-width: 800px;
  z-index: 2;
}

.main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.5s;
  touch-action: pan-y;
  z-index: 2;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumbnail.active {
  border-color: #333;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}

/* --- RESPONSIVE --- */

/* 480px y menos */
@media (max-width: 480px) {
  .thumbnail {
    width: 40px;
    height: 40px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Hasta 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-container {
    max-width: 600px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }
}

/* Hasta 912px */
@media (min-width: 769px) and (max-width: 912px) {
  .gallery-container {
    max-width: 700px;
  }

  .thumbnail {
    width: 55px;
    height: 55px;
  }
}

/* Hasta 1024px */
@media (min-width: 913px) and (max-width: 1024px) {
  .gallery-container {
    max-width: 750px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* Hasta 1024px en landscape */
@media (min-width: 913px) and (max-width: 1024px) and (orientation: landscape) {
  .gallery-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 100%;
  }

  .main-image {
    flex: 3;
    max-width: 70%;
  }

  .thumbnails {
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-y: auto;
    max-height: 450px;
    gap: 10px;
  }

  .thumbnail {
    width: 70px;
    height: 70px;
  }

  .dots {
    justify-content: flex-start;
  }
}

/* Hasta 1024px en portrait */
@media (min-width: 913px) and (max-width: 1024px) and (orientation: portrait) {
  .gallery-container {
    max-width: 100%;
  }

  .main-image {
    max-width: 100%;
  }

  .thumbnails {
    justify-content: center;
  }
}

/* Pantallas grandes (1440px en adelante) */
@media (min-width: 1440px) {
  .gallery-container {
    max-width: 1000px;
  }

  .thumbnail {
    width: 80px;
    height: 80px;
  }

  .main-image {
    max-width: 900px;
  }
}
