.voice-gallery-section {
  padding: 80px 20px;
  background-color: #f8f9fa;
  text-align: center;
}
.no-p{
  padding-top: 0px !important;
}
.voice-gallery-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}

.voice-gallery-subtitle {
  color: #666;
  margin-bottom: 40px;
}

.voice-gallery-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.voice-gallery-img {
  width: calc(25% - 10px);
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  display: none;
}
.pdf-container {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 450px;
  border-radius: 10px;
  overflow: hidden; /* يخفي أي جزء زايد */
}

.pdf-container iframe {
  width: 96%;
  height: 100%;
  border: none;
}
.voice-gallery-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}
.voice-gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .voice-gallery-img { width: calc(33.333% - 10px); }
}
@media (max-width: 576px) {
  .voice-gallery-img { width: calc(50% - 10px); }
}
.may-vid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* مسافة بين الفيديوهات */
  justify-content: center; /* يوسّط الفيديوهات أفقياً */
}

.may-vid video {
  border-radius: 12px; /* حواف مستديرة */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* ظل ناعم */
  height: 400px;
  transition: transform 0.3s, box-shadow 0.3s; /* حركة عند hover */
}

.may-vid video:hover {
  transform: scale(1.05); /* تكبير بسيط عند المرور */
  box-shadow: 0 12px 25px rgba(0,0,0,0.25); /* ظل أقوى عند hover */
}

/* للأجهزة الصغيرة */
@media (max-width: 768px) {
  .may-vid {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .may-vid video {
    width: 100%;
    height: auto;
  }
}

.voice-gallery-btn {
  margin-top: 40px;
  padding: 12px 30px;
  border: none;
  background-color: #222;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.voice-gallery-btn:hover {
  background-color: var(--primaryColor);
}

/* ====== Lightbox ====== */
.voice-lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.voice-lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.voice-lightbox-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
}

.voice-lightbox-prev,
.voice-lightbox-next {
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.voice-lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}
