.gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 90%;
  margin: auto;
  gap: 2rem;
}

.gallery-main {
  flex: 1 1 600px;
}

.main-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.thumbnail {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border: 2px solid #ff7a00;
}

.gallery-info {
  flex: 1 1 300px;
  align-items: center;
  width: 100%;
  display: flex;
}

.gallery-info h2 {
  margin-top: 0;
}

.gallery-info p {
  text-align: justify;
  line-height: 30px;
}

.image-container {
  position: relative;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  user-select: none;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 768px) {
  .gallery-wrapper {
    display: flex;
    flex-direction: column-reverse;
    margin: auto;
    gap: 2rem;
  }

  .gallery-info {
    flex: 0;
    align-items: center;
    display: flex;
  }
}
