@font-face {
  font-family: 'Unisolar Jakarta';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Unisolar Jakarta';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.ttf') format('truetype');
}

.uni-single-project {
  background: #fff;
  color: #2b2621;
  font-family: 'Unisolar Jakarta', sans-serif;
}

.uni-project-hero {
  max-width: 1380px;
  margin: 0 auto;
  padding: 96px 80px 40px;
}

.uni-project-heading {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.uni-project-kicker {
  margin: 0 0 8px;
  color: #a1793d;
  font: 800 11px/1.5 'Unisolar Jakarta', sans-serif;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}

.uni-project-heading h1 {
  margin: 0;
  color: #2b2621;
  font: 600 clamp(48px, 6vw, 82px)/1.08 'Unisolar Jakarta', sans-serif;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.uni-project-location {
  margin: 18px 0 0;
  color: #716961;
  font-size: 16px;
}

.uni-project-featured {
  height: min(62vw, 720px);
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #f7f0e5;
}

.uni-project-featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uni-project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  max-width: 1380px;
  margin: 40px auto 80px;
  overflow: hidden;
  border-radius: 24px;
  background: #eadfce;
  box-shadow: 0 16px 40px rgb(67 53 36 / 5%);
}

.uni-project-fact {
  min-width: 0;
  padding: 28px 24px;
  background: #f7f0e5;
}

.uni-project-fact span {
  display: block;
  margin-bottom: 8px;
  color: #8a837a;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.uni-project-fact strong {
  display: block;
  color: #2b2621;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.uni-project-story {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  gap: 64px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.uni-project-content {
  color: #716961;
  font-size: 18px;
  line-height: 1.75;
}

.uni-project-content> :first-child {
  margin-top: 0;
}

.uni-project-content> :last-child {
  margin-bottom: 0;
}

.uni-project-content h2,
.uni-project-content h3 {
  color: #2b2621;
  font-weight: 600;
}

.uni-project-gallery {
  max-width: 1380px;
  margin: 0 auto;
  padding: 80px;
  border-radius: 30px;
  background: #f7f0e5;
}

.uni-project-gallery header {
  margin-bottom: 30px;
  padding: 0 32px;
}

.uni-project-gallery h2 {
  margin: 0;
  color: #2b2621;
  font: 400 42px/1.5 'Unisolar Jakarta', sans-serif;
  letter-spacing: -2.31px;
}

.uni-project-gallery-slider {
  padding: 0 32px 50px;
}

.uni-project-gallery-item {
  display: block;
  height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.uni-project-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.uni-project-gallery-item:hover img,
.uni-project-gallery-item:focus-visible img {
  transform: scale(1.035);
}

.uni-project-gallery-item:focus-visible {
  outline: 3px solid #f9b74f;
  outline-offset: 4px;
}

.uni-project-gallery-controls {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 0;
  left: 32px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 16px;
}

.uni-gallery-prev,
.uni-gallery-next {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2b2621;
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}

.uni-gallery-prev::before,
.uni-gallery-next::before {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 20px;
  line-height: 1;
  transform: translate(-50%, -54%);
}

.uni-gallery-prev::before {
  content: '←';
}

.uni-gallery-next::before {
  content: '→';
}

.uni-gallery-prev:hover,
.uni-gallery-next:hover {
  background: #a1793d;
  transform: translateY(-2px);
}

.uni-gallery-prev.swiper-button-disabled,
.uni-gallery-next.swiper-button-disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.uni-gallery-pagination {
  position: static !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.uni-gallery-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #8a837a;
  opacity: .35;
}

.uni-gallery-pagination .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 999px;
  background: #a1793d;
  opacity: 1;
}

@media (max-width: 1024px) {
  .uni-project-hero {
    padding: 72px 32px 32px;
  }

  .uni-project-facts {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-inline: 32px;
  }

  .uni-project-gallery {
    margin-inline: 30px;
    padding: 64px 32px;
  }

  .uni-project-gallery header,
  .uni-project-gallery-slider {
    padding-inline: 0;
  }

  .uni-project-gallery-controls {
    right: 0;
    left: 0;
  }
}

@media (max-width: 767px) {
  .uni-project-hero {
    padding: 56px 12px 24px;
  }

  .uni-project-heading {
    padding-inline: 12px;
    margin-bottom: 32px;
  }

  .uni-project-heading h1 {
    font-size: clamp(42px, 13vw, 64px);
    letter-spacing: -.045em;
  }

  .uni-project-featured {
    height: 68svh;
    min-height: 430px;
    border-radius: 24px;
  }

  .uni-project-facts {
    grid-template-columns: 1fr;
    margin: 24px 12px 64px;
    border-radius: 20px;
  }

  .uni-project-fact {
    padding: 22px 18px;
  }

  .uni-project-fact strong {
    font-size: 17px;
  }

  .uni-project-story {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 24px 64px;
  }

  .uni-project-content {
    font-size: 16px;
  }

  .uni-project-gallery {
    margin-inline: 12px;
    padding: 56px 20px;
    border-radius: 24px;
  }

  .uni-project-gallery h2 {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -1.2px;
  }

  .uni-project-gallery-item {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .uni-project-gallery-item img,
  .uni-gallery-prev,
  .uni-gallery-next {
    transition: none;
  }

  .uni-project-gallery-item:hover img,
  .uni-project-gallery-item:focus-visible img,
  .uni-gallery-prev:hover,
  .uni-gallery-next:hover {
    transform: none;
  }
}