.gallery-container {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.main-image-container {
  display: flex;
  flex-direction: column;
  flex: 4;
  position: relative;
}

.main-image {
  padding: 10px;
}

.main-image img {
  width: 100%;
  height: 550px;
  display: block;
  border-radius: 10px;
}

.pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding-bottom: 25px;
}

.pagination-circle {
  width: 8px;
  height: 8px;
  background-color: #00000000;
  border-radius: 50%;
  border-color: #ffffff;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-circle.active {
  background-color: #ffffff;
}

.thumbnails-container {
  flex: 1;
  padding: 10px;
  height: 550px;
  position: relative;
  overflow: hidden;
}

.thumbnails-wrapper {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  width: 100%;
  height: 250px;
  cursor: pointer;
  transition: transform 0.3s ease, border 0.3s ease;
  margin-bottom: 10px;
  border: 2px solid transparent;
  border-radius: 10px;
}

.thumbnail:hover {
  transform: scale(1);
  border: 2px solid #40e0d0;
  padding: 2px;
  box-sizing: border-box;
}

.thumbnail.active {
  border: 3px solid #40e0d0;
}

.nav-button {
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  border-radius: 5px;
}

.nav-button.prev {
  left: 10px;
  margin-left: 15px;
  width: 40px;
  height: 40px;
}

.nav-button.next {
  right: 10px;
  margin-right: 15px;
  width: 40px;
  height: 40px;
}

.main-image-container:hover .nav-button {
  display: block;
}

