.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: #fffdfa;
  color: #333;
  padding: 2.3rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: #000;
  z-index: 10;
}

/* Slideshow Structure */
.slideshow-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9; 
  border-radius: 4px;
  overflow: hidden; 
  background-color: #f0f0f0;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* Nav Buttons overlaying the image */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 5;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.8);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.prev { left: 0.5rem; }
.next { right: 0.5rem; }

/* Dots indicator styling */
.dots-indicator {
  text-align: center;
  position: absolute;
  bottom: 0.8rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 5;
}

.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.2s;
}

.dot.active, .dot:hover {
  background-color: #fff;
  transform: scale(1.2);
}

.modal-no-img {
  width: 100%;
  height: 150px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 1rem;
  color: #888;
}

.modal-desc {
  margin-top: 0.3rem;
  line-height: 1.6;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.repo-btn {
  font-family: 'Sao Chingcha', 'Google Sans', sans-serif;
  background: #24292e;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.repo-btn:visited {
  background: #24292e;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
