/*
Theme Name: RK Gulf
Theme URI: https://standishservices.com
Template: Divi
Author: Standish Services
Author URI: https://standishservices.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 1.0.1764145727
Updated: 2025-11-26 08:28:47

*/

.project-category-slider {
    padding-left: 8%;
}
.project-card {
    padding: 15px;
    transition: 0.5s;
    height: 420px;
    width: 300px;
    transform: scale(0.7);
    background-color: rgb(0 0 0 / 40%);
    background-blend-mode: multiply;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center;
    display: flex;
    align-items: flex-end;
    border: 4px solid #fff;
}
.project-card:hover {
	transform: scale(0.72);
}
.posts-wrap {
    position: relative;
    min-height: 480px;
    padding: 200px 20px 0 20px;
}
.project-category-slider-wrap .swiper-slide {
    width: auto;
}
.cat-arrow.next , .cat-arrow.prev {
    position: absolute;
    right: 24.5%;
    bottom: 85px;
    z-index: 999;
    display: flex;
    border: 1px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
	background-color: #8C191E !important;
}
.cat-arrow.prev {
    right: calc(30% + 120px);
    transform: rotate(180deg);
}

.swiper-slide.swiper-slide-active .project-card {
    transform: scale(1);
    background-color: rgb(0 0 0 / 0%);
}
.swiper-slide.swiper-slide-active .project-card:hover {
	transform: scale(1.025);
}
.cat-arrow.next:hover, .cat-arrow.prev:hover {
    background-color: #000 !important;
    color: #fff;
}

.project-card a {
    background-color: #fff;
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 5px;
    text-transform: uppercase;
    font-size: 16px;
    color: #8c191e;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transition: 0.5s;
}

.swiper-slide.swiper-slide-active .posts-wrap .project-card:first-child a {
  opacity: 1;
}

.category-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size:28px;
    opacity: 0;
    display:flex;
    align-items:center;
    position: absolute;
    color: #333;
    bottom: 95px;
    z-index: 99;
    left: -20px;
    text-transform: uppercase;
}
.swiper-slide-active .posts-wrap {
    padding: 200px 40px 100px 40px;
}
.swiper-slide-active .category-title {
    opacity: 1;
}
.gallery-hero-title {
    position: absolute;
    top: 670px;
    right: 25%;
    font-size: 4vw;
    line-height: 0.65;
    z-index: 99;
    white-space: nowrap;
}
.gallery-hero-title span {
    margin-left: 30%;
    display: block;
}

/* Inner title must not affect layout */
.category-title-inner{
  position: absolute;
  top: -10px;
  transform: translatey(-100%);  
  left:0;        
  z-index: 120;
  margin: 0 !important;         
  padding: 0 !important;
  line-height: 1.1;
  color: #333;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.06em;
  pointer-events: none;  
	opacity: 0.5;  
	transition: 0.3s;
}
/* Selected slide: show overlay title, hide it only on hover */
.swiper-slide-active .category-title-inner {
  opacity: 1;
}

/* Locked mode: do not hide overlay title on hover for the selected (manual-active) slide */
.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.is-manual-active .project-card:hover .category-title-inner{
  opacity: 1 !important;
  transition-duration: 0.15s;
}

.project-card:hover .category-title-inner {
	opacity: 1;
}
.project-category-slider-wrap.is-locked .cat-arrow {
  display: none;
}
/* When Swiper is locked (few slides), use manual active state */
.project-category-slider-wrap.is-locked .swiper-slide.is-manual-active .project-card {
  transform: scale(1);
  background-color: rgb(0 0 0 / 0%);
}
.project-category-slider-wrap.is-locked .swiper-slide.is-manual-active .project-card:hover {
  transform: scale(1.025);
}
.project-category-slider-wrap.is-locked .swiper-slide.is-manual-active .posts-wrap {
  padding: 200px 40px 100px 40px;
}
.project-category-slider-wrap.is-locked .swiper-slide.is-manual-active .category-title {
  opacity: 1;
}
.project-category-slider-wrap.is-locked .swiper-slide.is-manual-active .posts-wrap .project-card:first-child a {
  opacity: 1;
}
/* If manual-selection is active, visually neutralise Swiper's own active slide */
/* If manual-selection is active, neutralise Swiper's own active slide ONLY when it's not the manual one */
.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.is-manual-active .category-title-inner{
  opacity: 1;
}

.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.swiper-slide-active:not(.is-manual-active) .project-card {
  transform: scale(0.7);
  background-color: rgb(0 0 0 / 40%);
}
.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.swiper-slide-active:not(.is-manual-active) .project-card:hover {
  transform: scale(0.72);
}
.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.swiper-slide-active:not(.is-manual-active) .posts-wrap {
  padding: 200px 20px 0 20px;
}
.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.swiper-slide-active:not(.is-manual-active) .category-title {
  opacity: 0;
}
.project-category-slider-wrap.is-locked.has-manual-active .swiper-slide.swiper-slide-active:not(.is-manual-active) .posts-wrap .project-card:first-child a {
  opacity: 0;
}



/* Mobile tweak */


@media (max-width:981px) {
	.category-title-inner{
		top: -10px;
		transform: translatey(-100%);
		font-size: 14px;
	}

	.project-card {
    width: 80%;
    padding: 20px;
    max-width: 100%;
	margin: auto;
	}

	.swiper-slide-active .posts-wrap , .posts-wrap {
		padding: 260px 0px 30px 0px;
	}
	.category-title {
		bottom: 30px;
		font-size: 16px;
		padding: 0;
		left: 20px;
	}
	.cat-arrow.next, .cat-arrow.prev {
		bottom: -30px;
		width: 35px;
		height: 35px;
		padding: 5px;
		left: auto;
		right: 5%;
	}
	.cat-arrow.prev {
		right: calc(5% + 40px);
	}
	.project-category-slider {
		padding-left: 30px;
	}
	.project-card a {
		font-size: 14px;
	}
	.gallery-hero-title {
		display: none;
	}
	.project-category-slider-wrap .swiper-slide{
		width: 100%;
	}

	  .project-card{
		transform: scale(1);
	  }

	  .swiper-slide.swiper-slide-active .project-card{
		transform: scale(1);
	  }

	.project-category-slider{ padding-left: 0; }



}