/* Updated blog.css for a Modern Space-Oriented Blog Post */

/* Base Styles for Blog Content */
.blog {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  font-family: var(--font-family-sans);
}

.blog h1,
.blog h2,
.blog h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.blog p {
  margin-bottom: 1.5rem;
}

/* Link Styles */
.blog a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.blog a:hover {
  border-bottom: 1px solid var(--primary-color);
}

/* Image Gallery Container */
.container {
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
}

/* Hide all slides by default */
.mySlides {
  display: none;
}

/* Gallery Images */
.img-gallery {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Navigation Buttons for Gallery */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  transition: background-color 0.3s;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Number Text for Slides */
.numbertext {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

/* Thumbnails Row */
.row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.row img {
  width: 100px;
  height: 60px;
  object-fit: cover;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  border-radius: 4px;
}

.row img:hover,
.row img.active {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .prev,
  .next {
    font-size: 18px;
    padding: 12px;
  }
  .row img {
    width: 80px;
    height: 50px;
  }
}
