/* فقط زیر .portfolio-section اعمال می‌شود */
.portfolio-section * {
  box-sizing: border-box;
}

/* کانتینر اصلی */
.portfolio-section .slide-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  background: #1c1c1c;
  margin-top: 200px;
}

/* ردیف بندانگشتی‌ها */
.portfolio-section .info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.portfolio-section .thumbnails {
  display: flex;
  gap: 10px;
}
.portfolio-section .thumbnail {
  flex: 1;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  width: 0; /* برای اینکه flex کار کند */
  transition: transform 0.3s ease;
}
.portfolio-section .thumbnail:hover {
  transform: scale(1.05);
}

/* عنوان و توضیحات */
.portfolio-section .title {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  text-align: right;
  color: #ffffff;
  position: relative;
}

/* خط خاکستری باریک زیر عنوان با عرض 50% و راست‌چین */
.portfolio-section .title::after {
  content: "";
  display: block;
  height: 1px;
  width: 50%;
  background-color: #444;
  margin: 10px 0;
  margin-right: 0;
}

.portfolio-section .description {
  margin: 0;
  font-size: 14px;
  color: #c7c6c6;
  line-height: 1.4;
  text-align: right;
}

/* بخش ویدئو */
.portfolio-section .video-section {
  flex: 2;
}
.portfolio-section .video-section .plyr {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* مدال */
.portfolio-section .modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center;
  z-index: 1000;
}
.portfolio-section .modal-overlay.show {
  display: flex;
}
.portfolio-section .modal-content {
  position: relative;
  max-width: 90%; max-height: 90%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.portfolio-section .modal-img {
  width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-section .modal-img.loaded {
  opacity: 1;
}

/* دکمه‌ها */
.portfolio-section .modal-close,
.portfolio-section .nav-button {
  position: absolute;
  background: rgba(255,255,255,0.8);
  border: none; cursor: pointer;
  font-size: 24px; padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}
.portfolio-section .modal-close { top: 10px; right: 10px; }
.portfolio-section .nav-button.left  { left: 10px; top: 50%; transform: translateY(-50%); }
.portfolio-section .nav-button.right { right: 10px; top: 50%; transform: translateY(-50%); }
.portfolio-section .modal-close:hover,
.portfolio-section .nav-button:hover {
  background: #fff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .portfolio-section .slide-container {
    flex-direction: column;
  }
  .portfolio-section .thumbnails {
    flex-direction: column;
  }
  .portfolio-section .thumbnail {
    width: 100%;
  }
}
