.gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.main-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.thumbnail-container {
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #e3e6e8;
  transition: border 0.2s, transform 0.2s;
}

.thumbnail-container.selected {
  border: 2px solid #676e73;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid #b2b9bf;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease-in-out;
}

.arrow img {
  width: 24px;
  height: 24px;
}

.prev-arrow {
  left: -24px;
}

.prev-arrow img {
  transform: rotate(180deg);
}

.next-arrow {
  right: -24px;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .thumbnails {
    justify-content: center;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .arrow img {
    width: 20px;
    height: 20px;
  }

  .prev-arrow {
    left: -16px;
  }

  .next-arrow {
    right: -16px;
  }
}
