body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
}

header, footer {
  background-color: #fff3a0;
  text-align: center;
  padding: 1rem;
}

main {
  padding: 1rem;
}

.container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#slideshow {
  margin-top: 2rem;
}

.gallery-container {
  max-width: 800px;
  margin: auto;
  background-color: white;
  padding: 1rem;
}

.slideshow {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 80vh; /* Se till att bilden inte är för hög för skärmen */
  margin: auto;
}

.numbertext {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 12px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev { left: 16px; }
.next { right: 16px; }

.caption-container {
  text-align: center;
  background-color: #111;
  color: #eee;
  padding: 8px;
  font-size: 16px;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background-color: #222;
}

.thumbnail-row img {
  width: 60px;
  height: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.thumbnail-row img.active,
.thumbnail-row img:hover {
  opacity: 1;
  border: 2px solid #333;
}

#caption {
  color: #d7d6d6; /* Ändra till valfri färg */
  font-size: 16px;
  text-align: center;
}

/* Responsiv anpassning */
@media screen and (max-width: 600px) {
  .prev, .next {
    font-size: 18px;
    padding: 8px;
  }

  .thumbnail-row img {
    width: 45px;
    height: 45px;
    color: #f2f2f2;
  }

  .caption-container {
    font-size: 14px;
    
  }
}



