.review-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 10px 0;
  position: relative;
  width: 100%; 
  height: auto; 
}

.review {
  width: 90%;
  max-width: 400px;
  margin: 10px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
  display: none; 
  opacity: 0;
  transition: opacity 0.5s ease-in-out; 
}

.review.active {
  display: block;
  opacity: 1;
}

.review-text{height: 115px; }

.review-img {
  width: 250px;
  height: 250px;
  border-radius: 50%; 
  margin-bottom: 10px;
  object-fit: cover; 
}

.review-name{font-size:22px;padding:15px 0 10px 0; font-weight:600;font-style:italic;color:#444;}

.review-soc{ padding:10px 0;}
.review-soc a{ color:#2b76cc;}

.stars {
  font-size: 1.2em;
  color: gold;
}

.navigation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 5px;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.review-summary {
  text-align: center;
  margin-top: 20px;
}

.rating-info {
  font-size: 1.2em;
  font-weight: bold;
  color: #555;
}

#average-rating {
  color: gold;
}

hr { width: 90%; margin:40px auto 30px auto;}




@media (max-width: 651px) {
.navigation {
  top: 40%;
}

.review-text{height: 150px; }

.review {
  width: 96%;
  padding: 1%;
}

}