/* ===== GALLERY SECTION ===== */
.custom-sram-gallery-section {
  padding: 57px 0;
  background: var(--white);
}

.custom-sram-gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.custom-sram-filter-btn {
  padding: 12px 25px;
  background: transparent;
  border: 2px solid #006cc5;
  color: #006cc5;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-sram-filter-btn.active,
.custom-sram-filter-btn:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 91, 161, 0.3);
}

.custom-sram-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.custom-sram-gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.custom-sram-gallery-item.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.custom-sram-gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.custom-sram-gallery-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.custom-sram-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.custom-sram-gallery-item:hover .custom-sram-gallery-image img {
  transform: scale(1.1);
}

.custom-sram-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 91, 161, 0.9),
    rgba(0, 116, 212, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.custom-sram-gallery-item:hover .custom-sram-gallery-overlay {
  opacity: 1;
}

.custom-sram-gallery-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.custom-sram-gallery-content h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.custom-sram-gallery-content p {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.custom-sram-gallery-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  margin: 0 auto;
}

.custom-sram-gallery-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.1);
}

/* ===== VIDEOS SECTION ===== */
.custom-sram-videos-section {
  padding: 58px 0 76px;
  background: var(--light-bg);
}

.custom-sram-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.custom-sram-video-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.custom-sram-video-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.custom-sram-video-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.custom-sram-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.custom-sram-video-item:hover .custom-sram-video-thumbnail img {
  transform: scale(1.05);
}

.custom-sram-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-gradient);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 91, 161, 0.4);
}

.custom-sram-video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 91, 161, 0.6);
}

.custom-sram-video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.custom-sram-video-content {
  padding: 25px;
}

.custom-sram-video-content h4 {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.custom-sram-video-content p {
  color: #222;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.custom-sram-video-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.custom-sram-video-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #222;
  font-size: 14px;
}

.custom-sram-video-meta i {
  color: var(--primary-color);
}

/* ===== LIGHTBOX MODAL ===== */
.custom-sram-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.custom-sram-lightbox-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.custom-sram-lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.custom-sram-lightbox-close:hover {
  color: #ccc;
}

/* ===== VIDEO MODAL ===== */
.custom-sram-video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s;
}

.custom-sram-video-modal-content {
  position: relative;
  margin: auto;
  width: 90%;
  max-width: 900px;
  height: 70%;
  top: 50%;
  transform: translateY(-50%);
}

.custom-sram-video-modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.custom-sram-video-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.custom-sram-video-close:hover {
  color: #ccc;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-sram-gallery-item,
.custom-sram-video-item {
  animation: slideUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .custom-sram-gallery-section,
  .custom-sram-videos-section {
    padding: 45px 0;
  }

  .custom-sram-gallery-grid,
  .custom-sram-videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .custom-sram-gallery-filters {
    gap: 10px;
  }

  .custom-sram-filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .custom-sram-gallery-image,
  .custom-sram-video-thumbnail {
    height: 200px;
  }

  .custom-sram-gallery-content p,
  .custom-sram-video-content p {
    font-size: 15px;
  }

  .custom-sram-video-content h4,
  .custom-sram-gallery-content h4 {
    font-size: 20px;
  }

  .custom-sram-video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .custom-sram-lightbox-content {
    width: 95%;
  }

  .custom-sram-video-modal-content {
    width: 95%;
    height: 60%;
  }

  .custom-sram-video-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .custom-sram-gallery-filters {
    flex-direction: column;
    align-items: center;
  }

  .custom-sram-filter-btn {
    width: 100%;
    max-width: 200px;
  }

  .custom-sram-gallery-image,
  .custom-sram-video-thumbnail {
    height: 180px;
  }

  .custom-sram-gallery-content h4,
  .custom-sram-video-content h4 {
    font-size: 18px;
  }

  .custom-sram-video-content {
    padding: 20px;
  }

  .custom-sram-lightbox-close {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }
}

/* ===== SECTION HEADERS (REUSE FROM PREVIOUS CODE) ===== */
.custom-sram-placement-section-head {
  text-align: center;
  margin-bottom: 60px;
}

.custom-sram-placement-section-badge {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: 8px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-sram-placement-section-title {
  color: #222;
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.custom-sram-placement-section-line {
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.custom-sram-placement-section-desc {
  color: #222;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 768px) {
  .custom-sram-placement-section-title {
    font-size: 32px;
  }

  .custom-sram-placement-section-desc {
    font-size: 15px;
  }
}
