/* Core Styles */
.products_gallary {
  width: 100%;
  margin: 0 auto;
}
.slider_gallery {
  position: relative;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
}

.gallery-title {
  text-align: center;
  margin: 0 0 30px;
  font-size: 2.5rem;
  font-weight: 700;
  color: inherit;
}

/* Swiper Container */
.products_gallary swiper-container {
  width: 100%;
  overflow: visible;
}

/* Slide Styling */
.products_gallary swiper-slide {
  height: auto;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  box-sizing: border-box;
  padding: 0 15px;
}

.products_gallary swiper-slide .swiper-slide-next,
.products_gallary swiper-slide .swiper-slide-prev {
  transform: translate3d(0px, 0px, -100px) rotateX(0deg) rotateY(0deg) scale(1) !important;
}

/* Active slide visual enhancement */
.products_gallary swiper-slide.swiper-slide-active .slide-card {
  transform: scale(1.05);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Card component - clean and modular */
.products_gallary .slide-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  border-radius: 40px;
}

/* Image container - proper aspect ratio handling */
.products_gallary .slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Modern, clean approach */
  overflow: hidden;
}

.products_gallary .slide-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Handles any image shape gracefully */
  object-position: center;
}

/* Content area - consistent spacing */
.products_gallary .slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
}

.products_gallary .slide-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Button styling - minimal and functional */
.products_gallary .slide-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.products_gallary .slide-button:hover {
  gap: 12px;
}

/* Pagination */
.products_gallary .products_pagination {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.products_gallary .products_pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: light-dark(var(--primary-color), var(--secondary-color));
  opacity: 0.4;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin: 0 4px;
  cursor: pointer;
}

.products_pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -10px;
}

.products_gallary .products_pagination .swiper-pagination-bullet-active {
  width: 30px;
  height: 10px;
  background-color: light-dark(var(--primary-color), var(--secondary-color));
  border-radius: 5px;
  opacity: 1;
}

.products_gallary .swiper-pagination-clickable .swiper-pagination-bullet {
  cursor: pointer;
}

.products_gallary .swiper-pagination-bullet:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .gallery-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
  }

  .products_gallary swiper-slide {
    padding: 0 10px;
  }

  .products_gallary .slide-content {
    padding: 12px;
  }

  .products_gallary .slide-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .products_gallary .products_pagination {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .gallery-title {
    font-size: 1.5rem;
  }

  .products_gallary .products_pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .products_gallary .products_pagination .swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
  }
}
