/* Change 1: Updated the gallery border, color, and thickness. */
#all {
  border: 3px solid #8b0000;
  border-radius: 20px;
  position: relative;
  width: 1000px;
  min-height: 850px;
  margin: 30px auto;
  box-shadow: 5px 5px 15px #555555;
  background-color: #242424;
  overflow: hidden;
}

/* Change 2: Updated the title font, size, color, and alignment. */
#headline {
  font-size: 2.5em;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  text-align: center;
  margin: 28px 20px 25px;
  text-decoration: none;
  font-weight: bold;
}

/* Change 3: Adjusted thumbnail placement and spacing. */
#thumbnails {
  position: absolute;
  top: 125px;
  left: 25px;
  width: 170px;
  height: auto;
  opacity: 0.9;
  padding: 0;
}

/* Change 4: Removed list bullets and added spacing between thumbnails. */
#thumbnails li {
  list-style: none;
  margin-bottom: 8px;
}

/* Change 5: Added a pointer cursor and hover effect. */
#thumbnails:hover {
  cursor: pointer;
  opacity: 1;
}

/* Change 6: Changed thumbnail size, border, and corner shape. */
.smallimg {
  width: 125px;
  height: 82px;
  object-fit: cover;
  margin: 4px;
  border: 2px solid #aaaaaa;
  border-radius: 8px;
  cursor: pointer;
}

/* Change 7: Moved and resized the large image section. */
#largearea {
  position: absolute;
  top: 115px;
  left: 235px;
  width: 720px;
}

/* Change 8: Changed the main photo size, border, and image fit. */
#mainphoto {
  width: 680px;
  height: 490px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 4px solid #8b0000;
  border-radius: 12px;
}

/* Change 9: Updated caption font, color, size, and spacing. */
#caption {
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  text-align: center;
  margin: 18px auto;
  width: 680px;
  font-weight: bold;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  #all {
    width: 95%;
    min-height: auto;
    padding-bottom: 25px;
  }

  #thumbnails {
    position: static;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 15px;
  }

  #thumbnails li {
    margin: 3px;
  }

  #largearea {
    position: static;
    width: 95%;
    margin: 0 auto;
  }

  #mainphoto, #caption {
    width: 100%;
    height: auto;
  }
}
