/* ---------------------------------------------------------------------------
 * Single Project Template Styles
 * --------------------------------------------------------------------------- */

/* Reset and base styles */

.single-project-container {
  max-width: 1150px;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
}

/* Hero Section */
.project-hero {
  position: relative;
  width: 100%;
  /* height: 100vh; */
  background-color: #121212;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  margin-top: 80px;
}

.project-hero-content {
  flex: 1;
  max-width: 50%;
}

.project-title {
  font-size: 4rem;
  font-weight: unset;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-shadow: 129px 0px 2px #ffffff0f;
}

.project-category {
  display: inline-block;
  border: 2px solid #737373;
  padding: 12px 24px;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  margin-bottom: 4rem;
  transition: all 0.3s ease;
}

/* .project-category:hover {
    background-color: #fff;
    color: #000;
} */

.project-hero-info {
  flex: 1;
  max-width: 40%;
  padding-left: 49px;
  /* border-left: 1px solid #5b5b5b; */
}

.project-info-item {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #5b5b5b;
  padding-bottom: 10px;
}

.project-info-label {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
}

.project-info-value {
  font-size: 1.1rem;
  color: #737373;
  font-style: italic;
  /* text-transform: capitalize; */
}

.project-hero-cities {
  color: #737373;
  text-transform: capitalize;
}

/* Content Sections */
.project-content {
  padding-top: 80px;
}

/* 50/50 Image Text Section */
.section-image-text {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 80px;
}

.section-image-text .image-half {
  flex: 1;
}

.section-image-text .text-half {
  flex: 1;
  padding-left: 40px;
}

.section-image-text img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.section-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #bfbebe;
  margin-bottom: 1rem;
}

/* Gallery Sections */
.gallery-section {
  margin-bottom: 60px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Gallery Row with 2 images */
.gallery-row-two {
  display: flex;
  gap: 25px;
  margin-bottom: 14px;
}

.gallery-row-two .gallery-item {
  flex: 1;
}

/* Gallery Row with 3 images */
.gallery-row-three {
  display: flex;
  gap: 25px;
}

.gallery-row-three .gallery-item {
  flex: 1;
}

/* Legacy gallery styles for backward compatibility */
.gallery-two-columns {
  display: flex;
  gap: 30px;
}

.gallery-two-columns .gallery-item {
  flex: 1;
}

.gallery-three-columns {
  display: flex;
  gap: 20px;
}

.gallery-three-columns .gallery-item {
  flex: 1;
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.01);
}

/* Photo credits styling (label + large name) */
.photo-credits {
  padding: 30px 40px;
  padding-right: 80px;
  width: fit-content;
  background: #151515;
}

.photo-credits-label {
  color: #9a9a9a;
  font-size: 14px;
  text-transform: none;
  margin-bottom: 8px;
  /* font-weight: 600; */
}

.photo-credits-name {
  color: #ffffff;
  font-size: 34px;
  line-height: 0.95;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* All Projects Button Section */
.all-projects-section {
  text-align: center;
  padding: 80px 0 100px;
  margin-top: 80px;
}

.all-projects-btn {
  display: inline-block;
  padding: 16px 40px;

  border: 2px solid #fff;

  background-color: #fff;
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  /*text-transform: capitalize;*/
  letter-spacing: 1px;
}

.all-projects-btn:hover {
  background-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .project-hero {
    padding: 0 40px;
  }

  .project-content {
    padding: 60px 40px 0;
  }

  .project-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .project-hero {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }

  .project-hero-content,
  .project-hero-info {
    max-width: 100%;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .project-content {
    padding: 40px 20px 0;
  }

  .section-image-text {
    flex-direction: column;
    gap: 30px;
  }

  .section-image-text .text-half {
    padding-left: 0;
  }

  .gallery-two-columns,
  .gallery-three-columns,
  .gallery-row-two,
  .gallery-row-three {
    flex-direction: column;
    gap: 15px;
  }

  .gallery-item img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 2rem;
  }

  .project-category {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .project-info-label {
    font-size: 1.2rem;
  }

  .all-projects-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

.project-image.gray-filter {
  filter: grayscale(100%) contrast(120%) brightness(100%);
  -webkit-filter: grayscale(100%) contrast(120%) brightness(100%);
}

.project-image-wrapper {
  position: relative;
}

.project-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.project-image-wrapper:hover .project-hover-overlay {
  opacity: 1;
}

.project-hover-content {
  text-align: center;
  color: #fff;
}

.project-hover-title {
  font-size: 1.2em;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.project-hover-city {
  font-size: 1em;
  display: block;
}

/* ---------------------------------------------------------------------------
 * Gallery Modal / Lightbox Styles
 * --------------------------------------------------------------------------- */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-modal[aria-hidden="true"] {
  display: none;
}

.gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.gallery-modal-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  height: 100%;
}

.gallery-modal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  flex-direction: column;
  margin: auto;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.gallery-modal-counter {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 40;
}

.gallery-modal-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  padding: 6px 0 0;
  overflow: hidden;
  overflow-x: auto;
}

.gallery-modal-thumbs .modal-thumb {
  height: 50px;
  width: 50px;
  z-index: 22223982139;
  /* object-fit: cover; */
  border-radius: 6px;
  /* opacity: 0.8; */
  border: 2px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  object-fit: cover;
}

.gallery-modal-thumbs .modal-thumb:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.gallery-modal-thumbs .modal-thumb.active {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.18);
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  border-radius: 4px;
}

.gallery-modal-close {
  top: 10px;
  right: 10px;
  font-size: 32px;
  padding: 6px 10px;
}

.gallery-modal-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .gallery-modal-prev,
  .gallery-modal-next {
    left: 6px;
    right: 6px;
    display: block;
    padding: 8px 10px;
    font-size: 20px;
  }

  .gallery-modal-close {
    top: 6px;
    right: 6px;
  }
}

@media (max-width: 768px) {
  .gallery-modal-prev,
  .gallery-modal-next {
    display: none;
  }
}

/* Bottom pagination with small preview thumbnails */
.project-bottom-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

.project-pagination-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  background: transparent;
  padding: 10px 14px;
}

.project-pagination-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}

.project-pagination-item .pagination-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-pagination-item .pagination-label {
  color: #9a9a9a;
  font-size: 12px;
}

.project-pagination-item .pagination-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.project-pagination-item.prev {
  justify-content: flex-start;
}

.project-pagination-item.next {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .project-bottom-pagination {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .project-pagination-item {
    justify-content: flex-start;
  }
}

.section-text p {
  text-align: justify;
}

.section-image-text .image-half {
  flex: 1;
  margin: -50px 0;
  background-size: cover;
  background-position: center;
}

section.section-image-text {
  margin-top: 60px;
  margin-bottom: 140px;
}

.elementor-slideshow__title {
  display: none !important;
}
