/* تعریف فونت لوکال - وزن معمولی */
@font-face {
  font-family: 'IRANSans';
  src: url('https://stylei.ir/wp-content/uploads/IRANSansWeb.woff2') format('woff2'),
       url('https://stylei.ir/wp-content/uploads/IRANSansWeb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* تعریف فونت لوکال - وزن پررنگ */
@font-face {
  font-family: 'IRANSans';
  src: url('https://stylei.ir/wp-content/uploads/IRANSansWeb_Bold.woff2') format('woff2'),
       url('https://stylei.ir/wp-content/uploads/IRANSansWeb_Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* استایل کلی سکشن */
.section-4-wrapper .section-four {
  padding: 40px 5px;
  font-family: 'IRANSans', sans-serif;
  text-align: center;
}

/* استایل عنوان */
.section-4-wrapper .section-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}

/* استایل کانتینر گالری */
.section-4-wrapper .gallery-container {
  touch-action: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* برای اسکرول روان در iOS */
  scrollbar-width: none; /* مخفی کردن اسکرول‌بار در فایرفاکس */
  user-select: none; /* جلوگیری از انتخاب متن یا تصاویر هنگام کشیدن */
}

.section-4-wrapper .gallery-container::-webkit-scrollbar {
  display: none; /* مخفی کردن اسکرول‌بار در کروم و سافاری */
}

/* استایل گالری */
.section-4-wrapper .gallery-layout {
  display: flex;
  gap: 15px;
  padding: 0 5px;
  min-width: max-content; /* برای اسکرول افقی */
}

/* استایل کلی آیتم گالری */
.section-4-wrapper .gallery-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* استایل wrapper تصویر برای قرار دادن متن روی تصویر */
.section-4-wrapper .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* استایل تصاویر داخل آیتم‌ها */
.section-4-wrapper .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

/* استایل متن روی تصویر */
.section-4-wrapper .image-label {
  position: absolute;
  top: 10px;
  right: 10px; /* برای متن فارسی، سمت راست (چپ منطقی) */
  background: rgba(0, 0, 0, 0.6); /* پس‌زمینه نیمه‌شفاف برای خوانایی */
  color: #FFF;
  font-family: 'IRANSans', sans-serif;
  font-size: 12px;
  font-weight: normal;
  padding: 5px 10px;
  border-radius: 5px;
}

/* استایل زیرمجموعه‌های آیتم‌های زوج (برای دو تصویر بالا و پایین) */
.section-4-wrapper .gallery-item-sub {
  width: 100%;
  height: 100%;
}

/* استایل جعبه شیشه‌ای برای آیتم 13 */
.section-4-wrapper .gallery-item-13 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .glass-box {
  width: 100%;
  height: 100%;
  background: rgba(169, 169, 169, 0.3); /* خاکستری شفاف */
  background-image: url('https://stylei.ir/wp-content/uploads/2025/04/Untitled-2.webp'); /* تصویر پس‌زمینه */
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px); /* افکت شیشه‌ای */
  -webkit-backdrop-filter: blur(10px); /* پشتیبانی برای مرورگرهای وب‌کیت */
  border-radius: 10px;
  position: relative; /* برای موقعیت‌دهی دکمه‌ها */
}

/* استایل کانتینر دکمه‌ها در آیتم 13 */
.section-4-wrapper .button-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* استایل موقعیت دکمه‌ها */
.section-4-wrapper .button-position {
  position: absolute;
  top: 70%; /* برای تنظیم موقعیت عمودی */
  left: 50%; /* برای وسط قرار گرفتن افقی */
  transform: translate(-50%, -50%); /* برای دقیق وسط قرار گرفتن */
  width: 100%; /* برای اطمینان از وسط بودن دکمه‌ها */
}

/* استایل دکمه "گالری نمونه‌ها" */
.section-4-wrapper .gallery-btn {
  background: #FFF;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'IRANSans', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-4-wrapper .gallery-btn:hover {
  background: #E0E0E0;
}

/* استایل دکمه "ثبت درخواست" در آیتم 13 */
.section-4-wrapper .glass-request-btn {
  background: #00C4B4;
  color: #FFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'IRANSans', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-4-wrapper .glass-request-btn:hover {
  background: #00A69A;
}

/* استایل جداگانه برای هر آیتم */
.section-4-wrapper .gallery-item-1 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .gallery-item-2 {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-2-top,
.section-4-wrapper .gallery-item-2-bottom {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-3 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .gallery-item-4 {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-4-top,
.section-4-wrapper .gallery-item-4-bottom {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-5 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .gallery-item-6 {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-6-top,
.section-4-wrapper .gallery-item-6-bottom {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-7 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .gallery-item-8 {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-8-top,
.section-4-wrapper .gallery-item-8-bottom {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-9 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .gallery-item-10 {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-10-top,
.section-4-wrapper .gallery-item-10-bottom {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-11 {
  width: 250px;
  height: 350px;
}

.section-4-wrapper .gallery-item-12 {
  width: 250px;
  height: 170px;
}

.section-4-wrapper .gallery-item-12-top,
.section-4-wrapper .gallery-item-12-bottom {
  width: 250px;
  height: 170px;
}

/* لایت‌باکس */
.section-4-wrapper .lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

.section-4-wrapper .lightbox-image {
  max-width: 90%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 10px;
}

.section-4-wrapper .lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 90%;
  margin-top: 10px;
}

.section-4-wrapper .lightbox-desc {
  color: #FFF;
  font-size: 18px;
  text-align: right;
}

.section-4-wrapper .request-btn {
  background: #00C4B4;
  color: #FFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'IRANSans', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-4-wrapper .request-btn:hover {
  background: #00A69A;
}

.section-4-wrapper .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #FFF;
  color: #000;
  border: none;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 16px;
  font-family: 'IRANSans', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-4-wrapper .close-btn:hover {
  background: #E0E0E0;
}

/* دکمه‌های ناوبری لایت‌باکس */
.section-4-wrapper .nav-btn.lightbox-prev-btn,
.section-4-wrapper .nav-btn.lightbox-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #FFF;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.section-4-wrapper .nav-btn.lightbox-prev-btn:hover,
.section-4-wrapper .nav-btn.lightbox-next-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.section-4-wrapper .lightbox-prev-btn {
  left: 10px;
}

.section-4-wrapper .lightbox-next-btn {
  right: 10px;
}

/* تبلت */
@media (min-width: 768px) {
  .section-4-wrapper .section-four {
    padding: 50px 5px;
  }

  .section-4-wrapper .section-title {
    font-size: 32px;
  }

  .section-4-wrapper .gallery-container {
    touch-action: auto;
    overflow-x: auto;
  }

  .section-4-wrapper .gallery-layout {
    gap: 20px;
    padding: 0 10px;
  }

  .section-4-wrapper .gallery-item-1,
  .section-4-wrapper .gallery-item-3,
  .section-4-wrapper .gallery-item-5,
  .section-4-wrapper .gallery-item-7,
  .section-4-wrapper .gallery-item-9,
  .section-4-wrapper .gallery-item-11,
  .section-4-wrapper .gallery-item-13 {
    width: 300px;
    height: 400px;
  }

  .section-4-wrapper .gallery-item-2,
  .section-4-wrapper .gallery-item-4,
  .section-4-wrapper .gallery-item-6,
  .section-4-wrapper .gallery-item-8,
  .section-4-wrapper .gallery-item-10,
  .section-4-wrapper .gallery-item-12 {
    width: 300px;
    height: 400px;
  }

  .section-4-wrapper .gallery-item-2-top,
  .section-4-wrapper .gallery-item-2-bottom,
  .section-4-wrapper .gallery-item-4-top,
  .section-4-wrapper .gallery-item-4-bottom,
  .section-4-wrapper .gallery-item-6-top,
  .section-4-wrapper .gallery-item-6-bottom,
  .section-4-wrapper .gallery-item-8-top,
  .section-4-wrapper .gallery-item-8-bottom,
  .section-4-wrapper .gallery-item-10-top,
  .section-4-wrapper .gallery-item-10-bottom,
  .section-4-wrapper .gallery-item-12-top,
  .section-4-wrapper .gallery-item-12-bottom {
    width: 300px;
    height: 200px;
  }

  .section-4-wrapper .image-label {
    font-size: 14px;
    padding: 6px 12px;
  }

  .section-4-wrapper .gallery-btn,
  .section-4-wrapper .glass-request-btn {
    font-size: 16px;
    padding: 12px 24px;
  }

  .section-4-wrapper .lightbox-desc {
    font-size: 20px;
  }

  .section-4-wrapper .request-btn {
    font-size: 18px;
  }

  .section-4-wrapper .close-btn {
    font-size: 18px;
  }

  .section-4-wrapper .nav-btn.lightbox-prev-btn,
  .section-4-wrapper .nav-btn.lightbox-next-btn {
    padding: 15px;
    font-size: 28px;
  }
}

/* دسکتاپ */
@media (min-width: 1024px) {
  .section-4-wrapper .section-four {
    padding: 60px 5px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-4-wrapper .section-title {
    font-size: 36px;
  }

  .section-4-wrapper .gallery-layout {
    gap: 25px;
    padding: 0 15px;
  }

  .section-4-wrapper .gallery-item-1,
  .section-4-wrapper .gallery-item-3,
  .section-4-wrapper .gallery-item-5,
  .section-4-wrapper .gallery-item-7,
  .section-4-wrapper .gallery-item-9,
  .section-4-wrapper .gallery-item-11,
  .section-4-wrapper .gallery-item-13 {
    width: 350px;
    height: 450px;
  }

  .section-4-wrapper .gallery-item-2,
  .section-4-wrapper .gallery-item-4,
  .section-4-wrapper .gallery-item-6,
  .section-4-wrapper .gallery-item-8,
  .section-4-wrapper .gallery-item-10,
  .section-4-wrapper .gallery-item-12 {
    width: 350px;
    height: 450px;
  }

  .section-4-wrapper .gallery-item-2-top,
  .section-4-wrapper .gallery-item-2-bottom,
  .section-4-wrapper .gallery-item-4-top,
  .section-4-wrapper .gallery-item-4-bottom,
  .section-4-wrapper .gallery-item-6-top,
  .section-4-wrapper .gallery-item-6-bottom,
  .section-4-wrapper .gallery-item-8-top,
  .section-4-wrapper .gallery-item-8-bottom,
  .section-4-wrapper .gallery-item-10-top,
  .section-4-wrapper .gallery-item-10-bottom,
  .section-4-wrapper .gallery-item-12-top,
  .section-4-wrapper .gallery-item-12-bottom {
    width: 350px;
    height: 225px;
  }

  .section-4-wrapper .image-label {
    font-size: 16px;
    padding: 8px 14px;
  }

  .section-4-wrapper .gallery-btn,
  .section-4-wrapper .glass-request-btn {
    font-size: 18px;
    padding: 14px 28px;
  }

  .section-4-wrapper .lightbox-desc {
    font-size: 22px;
  }

  .section-4-wrapper .request-btn {
    font-size: 20px;
  }

  .section-4-wrapper .close-btn {
    font-size: 20px;
  }

  .section-4-wrapper .nav-btn.lightbox-prev-btn,
  .section-4-wrapper .nav-btn.lightbox-next-btn {
    padding: 20px;
    font-size: 32px;
  }
}