.elgw-gallery {
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  position: relative;
}

.elgw-main-image {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.elgw-main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.elgw-main-image img:hover {
  transform: scale(1.02);
}

.elgw-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  user-select: none;
  z-index: 1;
  transition: background 0.3s ease;
}

.elgw-arrow:hover {
  background: rgba(0, 0, 0, 0.1);
}

.elgw-prev {
  left: -40px;
}

.elgw-next {
  right: -40px;
}

.elgw-thumbnails {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.elgw-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s ease;
}

.elgw-thumb.active, .elgw-thumb:hover {
  border-color: #0073aa;
}