@import url(../root.css);

.portfolio-modern {
  background: #2F2733;
  padding: 40px 20px;
  font-family: 'Sora', sans-serif;
}

.portfolio-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 40px 0 20px;
  text-align: center;
  color: var(--accent, #111);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.carousel-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

.carousel-scroll::-webkit-scrollbar {
  display: none;
}

.carousel-scroll img,
.carousel-scroll video {
  flex: 0 0 auto;
  width: 200px;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
  scroll-snap-align: start;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.carousel-scroll img:hover,
.carousel-scroll video:hover {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

.video-thumbnail {
  position: relative;
  width: 200px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.video-thumbnail .thumb-default,
.video-thumbnail .thumb-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.video-thumbnail .thumb-default,
.video-thumbnail .thumb-hover:hover {
  pointer-events: none;
}

.video-thumbnail .thumb-hover {
  opacity: 0;
}

.video-thumbnail:hover .thumb-hover {
  opacity: 1;
}

.video-thumbnail:hover .thumb-default {
  opacity: 0;
}