/* ==========================================
   Global & Lightbox Adjustments
   ========================================== */
[class*="lightbox-trigger-"] {
  cursor: pointer;
}
[class*="lightbox-content-"] {
  position: relative;
  z-index: unset !important;
}
[class*="lightbox-content-"] .mfp-close {
  color: #999999 !important;
}
[class*="lightbox-content-"] .mfp-close:active {
  top: 0px !important;
}

body.single-project {
  background: #eeecee;
}
body.single-project .container {
  z-index: 0;
  width: 90% !important;
  max-width: var(--content-width);
  margin: auto;
}
body.single-project .elementor-section {
  background: transparent;
}
body.single-project .py-0 {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}
.sec-space {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.single-project-container {
  padding: 20px 0;
}
.service-text-col {
  flex-direction: column;
}

/* ==========================================
   Font & Icon Adjustments
   ========================================== */
.fas {
  font-family: "Font Awesome 5 Brands" !important;
}
/* .fa {
  font-family: "Font Awesome 5 Free" !important;
}
.fab {
  font-family: "Font Awesome 5 Brands" !important;
} */
.fa-twitter:before {
  content: "𝕏" !important;
}

/* ==========================================
   Shared Flexbox Layout (Replaces Divi Rows)
   ========================================== */
body.single-project .single-project-container .project-service-row {
  width: 100% !important;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* ==========================================
   Rounded Media & Videos
   ========================================== */
.project-hero-image img,
.media-gallery img,
.video-gallery img,
.project-service-row img,
.mobile-only-slider img {
  border-radius: 15px;
  width: 100%;
  object-fit: cover;
  display: block;
  height: 100%;
}

.media-video iframe,
.media-video video {
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.media-video.video-vertical iframe,
.media-video.video-vertical video {
  aspect-ratio: 9/16;
  max-width: 375px;
  margin: auto;
}

.media-video.video-square iframe,
.media-video.video-square video {
  aspect-ratio: 1/1;
  margin: auto;
}

/* ==========================================
   Typography & Service Titles
   ========================================== */
.project-service-row h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px !important;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #111;
}
.project-service-row p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}
.project-description {
  max-width: 900px;
  font-size: 18px;
  font-weight: 800;
  color: #3d3d3d;
}

/* ==========================================
   Hero Section
   ========================================== */
.project-hero-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-bottom: 50px;
  align-items: center;
}
.project-hero-text {
  flex: 1 1 28%;
  /* min-width: 300px; */
}
.project-hero-image {
  flex: 1 1 67%;
  /* min-width: 300px; */
}
.project-hero-image img {
  height: auto;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-weight: 500;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.project-back-link:hover {
  opacity: 0.7;
}

.project-hero-text h1.project-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 30px;
  line-height: 1.1;
  color: #111;
  background-color: transparent;
  padding: 0 !important;
}

/* ==========================================
   Meta Data List & Tags
   ========================================== */
.project-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.project-meta-list li {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #444;
  font-weight: 500;
}
.project-meta-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #89c0c4;
  font-size: 24px;
  line-height: 1;
}

.project-tags-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.tag-capsule {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #a4a4a4;
  border-radius: 40px;
  background-color: transparent;
  color: #3f3f3f;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}
.tag-capsule:hover {
  border-color: #89c0c4;
  color: #89c0c4;
  background-color: transparent;
}
.client-label {
  color: #89c0c4;
}

/* ==========================================
   Buttons
   ========================================== */
.project-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.btn-website-preview,
.btn-social-icon {
  color: #3c3c3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-case-study {
  background-color: #7f0ba7;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  min-width: 200px;
  text-align: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.btn-case-study:hover {
  background-color: #fff;
  color: #7f0ba7;
}
.btn-social-icon:hover {
  border-color: #111;
  color: #111;
}

.project-link-popup {
  width: 40px !important;
  height: 40px;
  padding: 0 20px;
  text-decoration: none;
  border-radius: 50px;
  background-color: #fff;
}
.lightbox-iframe {
  width: auto !important;
}
.project-link-popup span {
  padding: 4px 5px 0;
  font-size: 12px;
}

/* ==========================================
   About & CTA Section
   ========================================== */
.project-about-section {
  margin-bottom: 20px;
  align-items: flex-start;
  display: flex;
  gap: 2%;
}
.about-label {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-label .circle-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #a379c9;
  border-radius: 50%;
}

body.single-project .elementor-column.flex-col {
  display: flex;
  flex-flow: column;
  justify-content: center;
}
body.single-project .cta-col a {
  border: 0;
}
.project-cta-section {
  padding: 100px 0;
  margin-top: 60px;
  position: relative;
  z-index: 10;
  background: #eeecee;
}
.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cta-btn-wrap-outer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.cta-title.margin-auto {
  margin: 0 auto 30px auto;
  text-align: center;
}

/* ==========================================
   Gallery Columns Helper
   ========================================== */
body.single-project .single-project-container .media-gallery .elementor-column,
body.single-project .single-project-container .video-gallery .elementor-column {
  margin: 0 0 30px 0;
}
body.single-project
  .single-project-container
  .media-gallery
  .last-full:last-child {
  width: 100%;
}
body.single-project .single-project-container .media-gallery {
  flex-wrap: wrap;
}

/* ==========================================
   Swiper Nav Global (Consolidated)
   ========================================== */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  color: #000;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900;
}
.swiper-button-prev {
  left: auto;
  right: 40px;
  top: 98%;
  height: 20px;
}
.swiper-button-next {
  top: 98%;
  height: 20px;
}
.swiper-button-prev::after {
  content: "\f060" !important;
}
.swiper-button-next::after {
  content: "\f061" !important;
}
.mobile-only-slider {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

/* ==========================================
   Grouped Services (Stacking Effect)
   ========================================== */
.services-grouped-row {
  align-items: flex-start;
}
.service-text-group {
  padding-bottom: 40px;
}
.service-title .circle-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #a379c9;
  border-radius: 50%;
  flex-shrink: 0;
}
.service-description {
  color: #3c3c3c;
}

.gsap-images-col {
  width: 100%;
}
.desktop-images-stack {
  position: relative;
  display: block;
  width: 100%;
  height: calc(90vh - 120px);
}
.gsap-image-card {
  position: absolute;
  top: 0;
  left: 0;
  height: calc(90vh - 120px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.gsap-image-card-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  transform-origin: top center;
  background: #fff;
  position: relative;
}
.gsap-image-card-inner:has(.video-square),
.service-media-col:has(.video-square) img,
.service-media-col:has(.video-square) .gsap-image-card-inner {
  aspect-ratio: 1/1;
}

.gsap-image-card-inner:has(.video-vertical),
.service-media-col:has(.video-vertical) img,
.service-media-col:has(.video-vertical) .gsap-image-card-inner {
  aspect-ratio: 9/16;
  max-width: 375px;
}

.gsap-image-card-inner img,
.gsap-image-card-inner video,
.gsap-image-card-inner iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  background: #f7f7f7;
}

.service-media-col .gsap-image-card-inner:after {
  position: absolute;
  content: "";
  width: 50px;
  height: 50px;
  top: 20px;
  right: 20px;
  border-radius: 50px;
  background: rgb(90 74 74 / 18%) url(../assets/expand-icon.png) no-repeat
    center;
  opacity: 0;
  transition: 0.3s ease-in-out;
  background-size: 25px;
}
.service-media-col .gsap-image-card-inner:hover:after {
  opacity: 1;
}

/* ==========================================
   Normal Section (Case 5 Layout)
   ========================================== */
.normal-section {
  overflow: hidden;
}
.normal-section .media-video {
  width: 100%;
  max-width: 500px;
  margin-inline-start: auto;
}
.normal-section video {
  max-width: 500px !important;
  width: 100%;
}
.normal-section .swiper-button-next,
.normal-section .swiper-button-prev {
  z-index: 120;
}

/* ==========================================
   Custom Video Lightbox & Drag Cursor
   ========================================== */
.custom-drag-cursor {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 99;
  opacity: 0;
  white-space: nowrap;
}

.video-lightbox-thumbnail {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}
.video-play-overlay i {
  font-size: 50px;
  color: #ffffff;
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}
.video-lightbox-link:hover .video-play-overlay i {
  transform: scale(1.1);
}
.video-lightbox-link:hover .video-lightbox-thumbnail {
  opacity: 0.9;
}

/* ==========================================
   Related Projects Slider
   ========================================== */
.related-projects-section {
  padding: 20px 0;
  position: relative;
  z-index: 20;
  background: #eeecee;
  overflow: hidden !important;
}
.related-projects-slider,
.service-bottom-slider {
  padding-bottom: 40px !important;
}
.service-bottom-slider .swiper-slide {
  height: auto;
}
.related-projects-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.related-projects-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #111;
}
.related-projects-header .icon-circle {
  width: 14px;
  height: 14px;
  border: 2px solid #a379c9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a379c9;
  font-size: 20px;
}

.related-project-card {
  position: relative;
  border-radius: 15px !important;
  overflow: hidden;
  border: none !important;
  background: transparent !important;
  display: block;
}
.related-project-card:hover {
  border: none !important;
}
.related-card-image {
  display: block;
  position: relative;
  width: 100%;
}
.related-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 15px !important;
}

.related-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  display: flex;
  align-items: flex-end;
  padding: 30px 20px;
  border-radius: 15px;
}
.related-project-title {
  color: #fff;
  font-size: 20px;
  margin: 0;
}

/* ==========================================
   Responsive Media Queries (Consolidated)
   ========================================== */

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .gsap-left-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .desktop-images-stack {
    display: block;
    position: relative;
  }
  .mobile-only-slider {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body.single-project .single-project-container .project-service-row {
    gap: 2%;
  }
  body.single-project
    .single-project-container
    .media-gallery
    .elementor-column,
  body.single-project
    .single-project-container
    .video-gallery
    .elementor-column {
    width: 48%;
  }

  .related-card-image img {
    aspect-ratio: 16/9;
  }
  .desktop-images-stack {
    display: none !important;
  }
  .mobile-only-slider {
    display: block !important;
    padding-bottom: 35px;
  }
  .mobile-only-slider .swiper-slide a {
    justify-content: center;
  }
  .service-text-group {
    padding-bottom: 10px;
  }
  .project-service-row h2 {
    text-align: start;
  }
  .service-media-col {
    justify-content: center;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .project-hero-text {
    flex: 1 1 45%;
  }

  .project-hero-image {
    flex: 1 1 53%;
  }
}
@media (max-width: 767px) {
  .project-hero-section {
    flex-direction: column;
    gap: 30px;
  }
  .project-hero-text,
  .project-hero-image {
    min-width: 100%;
    flex: 1 1 100%;
  }
  body.single-project .elementor-column {
    text-align: center;
  }
  .d-sm-none {
    display: none !important;
  }

  body.single-project .single-project-container .project-service-row {
    flex-wrap: wrap;
  }
  body.single-project .single-project-container p {
    margin: 10px 0;
  }

  .project-about-section {
    flex-wrap: wrap;
  }
  .normal-section .media-video {
    margin: auto;
  }
}
