/* Portfolio Slider Styles */
.portfolio-slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}
.portfolio-slider-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5%;
  height: 100%;
  background: linear-gradient(to right, #1c1c1c, transparent);
  z-index: 2;
}
.portfolio-slider-container::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 5%;
  height: 100%;
  background: linear-gradient(to left, #1c1c1c, transparent);
  z-index: 2;
}
/* Swiper Container */
.portfolio-swiper {
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
}

.portfolio-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-item-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.portfolio-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #0000009e;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Prevents blocking interactions */
}

.portfolio-item-wrapper:hover .portfolio-image::after {
  opacity: 1;
}
.portfolio-content {
  padding: 10px 0px;
}

.portfolio-title {
  font-family: "Montserrat", Sans-serif;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-style: normal;
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 5px !important;
}

.portfolio-category {
  font-family: "Montserrat", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  color: #feca2c;
}

/* Swiper Navigation */
.portfolio-prev, .portfolio-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10 !important;
    cursor: pointer !important;
    width: 70px !important;
    height: 70px !important;
    background: transparent;
    border: 3px solid #fecb2b;
    border-radius: 50%;
    font-size: 24px;
    color: #fecb2b !important;
    display: flex !important
;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
}

.portfolio-prev {
  left: 20px !important;
}

.portfolio-next {
  right: 20px !important;
}

.portfolio-prev:hover,
.portfolio-next:hover {
  background: #fecb2b;
  color: #1c1c1c !important;
  transform: translateY(-50%) scale(1.1);
}
.portfolio-cta-button {
       background: #fecb2b;
    color: #1c1c1c !important;
    padding: 12px 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 800;
    text-decoration: none !important;
    display: flex
;
    align-items: center;
    justify-content: center;
    max-width: max-content;
    margin-left: auto;
    margin-top: 20px; 
    letter-spacing: .5px;
    border-radius: 8px;
    z-index: 3;
    position: relative;
    
}
/* Swiper Pagination */
.portfolio-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.portfolio-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.2);
}

/* Portfolio Modal Styles */
.portfolio-modal {
  display: none;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}
.portfolio-modal.flex-fade {
  display: flex !important; /* override jQuery's default block */
}
.portfolio-modal-content {
  position: relative;
/*   margin: 0 auto; */
  padding: 0px;
  width: 90%;
  max-width: 1000px;
  height: 100vh;
  background: white;
  overflow-y: scroll; 
  border-radius: 0;
}

.portfolio-modal-close {
	margin-top: -5px;
    color: #290849;
    background: #ffc602;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    height: 25px;
    width: 25px;
}

.portfolio-modal-close:hover {
  color: #000;
}
.portfolio-modal-close-sm {
	display: none;
}
.portfolio-modal-gallery {
  display: flex;
  flex-direction: column;
}

.portfolio-modal-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.portfolio-modal-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.portfolio-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.portfolio-modal-nav button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.portfolio-modal-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.portfolio-modal-thumbnails {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 0;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.portfolio-modal-thumbnail {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.portfolio-modal-thumbnail:hover {
  border-color: #007cba;
}

.portfolio-modal-thumbnail.active {
  border-color: #007cba;
  opacity: 0.8;
}

/* Hidden gallery data */
.portfolio-gallery-data {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-slider-container {
    margin: 0 10px;
  }

  .portfolio-title {
    font-size: 20px;
  }

  .portfolio-prev,
  .portfolio-next {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .portfolio-prev {
    left: 10px !important;
  }

  .portfolio-next {
    right: 10px !important;
  }

  .portfolio-slide {
    width: 100%;
    margin: auto;
  }
  .portfolio-content {
    padding: 10px 0px;
    text-align: center;
  }
	.portfolio-slider-container::before, .portfolio-slider-container::after {
		display: none;
	}
	.portfolio-cta-button {
		margin: 30px auto 0px auto;
		padding: 8px 18px; 
    font-size: 20px;
	}
 .portfolio-modal-close-md {
	display: none;
}
.portfolio-modal-close-sm {
	display: flex;
	position: sticky;
    top: -5px;
    margin-left: auto;
	margin-top: -30px;
}
    
}

@media (max-width: 480px) {
  .portfolio-title {
    font-size: 16px;
  }

  .portfolio-category {
    font-size: 16px;
  }
  .portfolio-prev,
  .portfolio-next {
    width: 30px !important;
    height: 30px !important;
    font-size: 20px;
  }
  .portfolio-prev::after,
  .portfolio-next::after {
    font-size: 20px !important;
  }
	.portfolio-prev:hover,
	.portfolio-next:hover {
	  background: transparent;
	  color: #fecb2b !important;
		transform: scale(1);
	}
	.portfolio-prev, .portfolio-next { 
		top: unset !important;
		transform: unset;
		bottom: 13%; 
	}
}
