.project-gallery-page {
  background: #fdf8f2;
  color: #292521;
}

.project-gallery-header {
  background: #fff;
  border-bottom: 1px solid #eee2d8;
}

.project-gallery-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.project-gallery-logo img {
  display: block;
  width: 190px;
}

.project-gallery-header nav,
.gallery-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.project-gallery-header nav a {
  color: #292521;
  font-size: 14px;
  font-weight: 600;
}

.project-gallery-header nav a:hover,
.project-gallery-header nav a[aria-current="page"] {
  color: var(--tj-color-theme-primary);
}

.project-gallery-intro {
  padding: 110px 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, .88), rgba(28, 25, 23, .48)),
    url("../img/urbaniqanmoldeep/Project%20Renders/Realistic%20architectural%20entrance%20view-3.png") center 48% / cover no-repeat;
  color: #fff;
}

.project-gallery-intro h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 16px;
}

.project-gallery-intro p,
.project-gallery-footer p {
  color: #e5dad2;
}

.gallery-eyebrow {
  color: var(--tj-color-theme-primary) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-project-links {
  margin-top: 30px;
}

.gallery-project-links a {
  color: #fff;
  border: 1px solid #b98c75;
  padding: 12px 18px;
}

.gallery-project-links a:hover {
  color: #fff;
  background: var(--tj-color-theme-primary);
}

.gallery-project-links i {
  margin-left: 8px;
}

.project-gallery-section {
  padding: 90px 0;
  scroll-margin-top: 20px;
}

.project-gallery-completed {
  background: #fff;
}

.gallery-heading {
  margin-bottom: 35px;
}

.gallery-heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 24px;
  background: var(--tj-color-theme-primary);
}

.gallery-heading h2 {
  color: #292521;
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 12px;
}

.gallery-heading p {
  color: #625a54;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 16px;
}

.project-gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #292521;
}

.project-gallery-grid a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.project-gallery-grid a::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(25, 25, 25, .35);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  pointer-events: none;
}

.project-gallery-grid a:focus-visible {
  outline: 3px solid var(--tj-color-theme-primary);
  outline-offset: 3px;
}

.project-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .45s ease;
}

.project-gallery-grid a:hover img,
.project-gallery-grid a:focus-visible img {
  transform: scale(1.04);
  opacity: .85;
}

.gallery-lightbox {
  width: min(1100px, 96vw);
  max-width: none;
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: #1d1b1a;
  color: #fff;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, .88);
}

.gallery-lightbox-inner {
  position: relative;
  padding: 54px 24px 20px;
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  height: 65vh;
  object-fit: contain;
}

.gallery-lightbox button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gallery-lightbox-close {
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 36px;
  line-height: 1;
}

.gallery-lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
}

.gallery-lightbox-caption {
  margin: 0;
  color: #e5dad2;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery-grid img {
    transition: none;
  }
}

.gallery-video {
  margin: 30px 0 0;
}

.gallery-video a {
  color: #9c3d19;
  font-weight: 600;
}

.gallery-video i {
  margin-right: 8px;
}

.project-gallery-footer {
  padding: 35px 0;
  background: #242323;
}

.project-gallery-footer p {
  margin-bottom: 8px;
}

.project-gallery-footer a {
  color: #fff;
}

@media (max-width: 767px) {
  .project-gallery-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-gallery-header nav {
    gap: 10px 20px;
  }

  .project-gallery-intro,
  .project-gallery-section {
    padding: 60px 0;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
  }

  .project-gallery-grid a:first-child {
    grid-row: span 1;
  }

  .gallery-lightbox-inner {
    padding: 50px 12px 20px;
  }

  .gallery-lightbox-image {
    height: 55vh;
  }

  .gallery-lightbox-controls {
    gap: 8px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .project-gallery-grid {
    grid-auto-rows: 150px;
  }
}
