/* 
Author: Neeraj Verma
LinkedIn: https://www.linkedin.com/in/neerajvermagps/
Library Used: swiper.js
Updated on: 28-06-2025
*/

.theme-sec-gallery {
  height: 400px;
  border-top: 2px solid var(--main-theme-color);
  border-bottom: 2px solid var(--main-theme-color);
  max-width: 800px;
  width: 100%;
  margin: auto;
}

.swiper {
  height: 100%;
  width: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  background: #bcbcbc;
  transition: 0.3s;
}

.swiper-slide img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

.swiper-middle-content {
  position: absolute;
  bottom: 30px;
  left: 20px;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.swiper-slide-active .swiper-middle-content {
  visibility: visible;
  opacity: 1;
}
.swiper-slide-active .swiper-middle-left {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  padding: 30px 20px;
}
.swiper-slide-active .swiper-middle-left h3 {
  font-size: 14px;
}
.swiper-slide-active .swiper-middle-left h3 div {
  width: 8px;
  height: 0;
  margin: auto 6px;
  border: 1px solid var(--secondary-font-color);
}
.swiper-slide-active .swiper-middle-left p {
  font-size: 20px;
  color: var(--black-font-color);
  margin-bottom: 0;
}

.swiper-pagination {
  width: 100% !important;
  right: 0;
  left: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet-active {
  background: var(--main-theme-color) !important;
  outline: 1px solid var(--main-theme-color);
  border: 3px solid white !important;
  width: 12px !important;
  height: 12px !important;
}

.swiper-button-next, .swiper-button-prev {
  height: 43px;
  width: 43px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 5px 0 #4f4f4f;
  right: 5px;
  opacity: 0.7;
  transition: 0.3s;
}
.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 15px;
  font-weight: bold;
  color: var(--main-theme-color);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  opacity: 1;
}

@media screen and (max-width: 530px) {
  .theme-sec-gallery {
    height: 300px;
  }
  .swiper-middle-left h3 {
    font-size: 12px;
  }
  .swiper-middle-left p {
    font-size: 18px;
  }
  .swiper-button-next, .swiper-button-prev {
    display: none;
  }
  .swiper-slide-active .swiper-middle-left {
    padding: 20px 35px;
  }
}
