html, body {
  overflow-x: hidden;
}

.photo-gallery {
  padding-top: 4em !important;
}

.coverflow-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.65);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}
.scroll-btn.left { left: 10px; }
.scroll-btn.right { right: 10px; }
.scroll-btn i {
  color: #4d759b;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

.coverflow {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 1rem;
}

.coverflow-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0rem 5vw 3rem 5vw;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scroll-padding: 0%;
  scrollbar-width: none;
}
.coverflow-viewport::-webkit-scrollbar {
  display: none;
}

.coverflow-viewport:active {
  cursor: grabbing;
}

.coverflow-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-width: max-content;
}

.coverflow-item {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 12px 12px 36px;
  border-radius: 0;
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.coverflow-item img {
  display: block;
  width: clamp(320px, 35vw, 480px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

.coverflow-item {
  transform: scale(0.92) rotateY(-3deg);
  opacity: 0.85;
}
.coverflow-item.active {
  transform: scale(1.03) rotateY(0deg);
  opacity: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.coverflow-item:hover {
  transform: scale(1.04) rotateY(0deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

@media (max-width: 576px) {
  .coverflow-viewport {
    padding: 1rem 2vw 3rem 3vw;
  }
  .coverflow-item img {
    width: 70vw;
  }
}
