.gallery-container {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
  user-select: none;
}

.main-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background-color: #e4e4e7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  touch-action: pan-y;
}

.main-media-wrapper {
  width: 100%;
  height: 100%;
}

.main-media-wrapper img,
.main-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #18181b;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn.prev { 
  left: 16px; 
}

.nav-btn.next { 
  right: 16px; 
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.thumbnails-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  touch-action: pan-y;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

@media (min-width: 600px) {
  .thumbnails-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.thumb-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background-color: #e4e4e7;
  padding: 0;
}

.thumb-item img, 
.thumb-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.thumb-item:hover img,
.thumb-item:hover video {
  opacity: 1;
}

.thumb-item.active {
  border-color: #158072;
}

.thumb-item.active img,
.thumb-item.active video {
  opacity: 1;
}

.thumb-nav {
  position: static;
  transform: none;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.thumb-nav:hover {
  transform: scale(1.05);
}

.thumb-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}