.details-header {
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-direction: column;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: var(--semiBold);
  color: var(--neutral-08);
}

.previous-page {
  font-size: 16px;
  font-weight: var(--semiBold);
  color: var(--neutral-08);
}

.previous-page:is(:hover, :focus-visible, :focus-within) {
  scale: 1.02;
  color: var(--neutral-04);
}

.current-page {
  font-size: 16px;
  font-weight: var(--semiBold);
  color: var(--neutral-01);
  text-transform: uppercase;
}

.current-page:is(:hover, :focus-visible, :focus-within) {
  scale: 1.02;
  color: var(--white);
}

.project-name {
  font-size: 48px;
  font-weight: var(--bold);
  color: var(--white);
  text-align: center;
}

.project-details-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-details-main-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-top: -80px;
}

.project-details-info-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 32px;
}

.klinker-type {
  padding: 12px 14px;
  font-size: 16px;
  line-height: 20px;
  color: var(--white);
  background-color: var(--neutral-19);
  border: solid 3px var(--brand-terracotta-02);
  width: fit-content;
}

.project-name-details {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--bold);
  color: var(--white);
}

.project-details-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.project-details-separator {
  width: 1px;
  height: 24px;
  background-color: var(--neutral-17);
}

.project-detail {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.project-detail-icon {
  width: 20px;
  height: 20px;
}

.project-detail-value {
  font-size: 14px;
  line-height: 24px;
  font-weight: var(--semiBold);
  color: var(--neutral-01);
}

.project-details-description {
  font-size: 16px;
  line-height: 24px;
  color: var(--neutral-06);
}

.project-btn {
  margin-top: 16px;
}

.project-gallery {
  width: 100%;
  max-width: 592px;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  flex-shrink: 0;
  flex: 1 1 592px;
}

.image-gallery {
  width: 100%;
  cursor: zoom-in;
  display: block;
}

.project-gallery:not(.project-gallery-single) .image-gallery {
  height: 288px;
  object-fit: cover;
}

.project-gallery.project-gallery-single {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
}

.project-gallery.project-gallery-single .image-gallery {
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.recomended-projects {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 164px 0 4px 0;
  overflow: hidden;
}

.recomended-projects-main-container {
  width: 100%;
  max-width: 1376px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
}

.recomended-projects-heading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.recomended-projects-subheading {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: var(--regular);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neutral-05);
}

.recomended-projects-heading {
  font-size: 44px;
  line-height: 42px;
  font-weight: var(--bold);
  color: var(--neutral-01);
}

.recomended-projects-carousel {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1280px 48px;
  align-items: center;
  column-gap: 24px;
  justify-content: center;
}

.recomended-projects-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: transparent;
  transition: opacity 180ms ease;
}

.carrussel-arrow-icon {
  width: 48px;
  height: 48px;
  filter: var(--filter-white);
}

.recomended-projects-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.recomended-projects-arrow:not(:disabled):is(
    :hover,
    :focus-visible,
    :focus-within
  ) {
  cursor: pointer;
}

.recomended-projects-viewport {
  width: 100%;
  overflow: hidden;
}

.recomended-projects-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 260ms ease;
}

.recomended-projects-carousel.recomended-projects-carousel-static {
  grid-template-columns: minmax(0, 1fr);
}

.recomended-projects-carousel.recomended-projects-carousel-static
  .recomended-projects-arrow {
  display: none;
}

.recomended-projects-carousel.recomended-projects-carousel-static
  .recomended-projects-viewport {
  display: flex;
  justify-content: center;
}

.recomended-projects-carousel.recomended-projects-carousel-static
  .recomended-projects-track {
  justify-content: center;
}

.recomended-project-card {
  flex: 0 0 320px;
  width: 320px;
  height: 550px;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border: 1px solid var(--neutral-18);
}

.recomended-project-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.recomended-project-card-details {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 16px;
  flex: 1 1 auto;
  border-top: 1px solid var(--neutral-18);
}

.recomended-project-card-location-name {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.recomended-project-location-year {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recomended-project-text {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 14px;
  font-weight: var(--regular);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neutral-05);
}

.recomended-project-name {
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--bold);
  color: var(--neutral-01);
}

.recomended-project-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--neutral-10);
  flex-shrink: 0;
  margin-top: auto;
}

.recomended-project-btn img {
  width: 20px;
  height: 20px;
}

.recomended-project-card:is(:hover, :focus-visible, :focus-within) {
  background-color: var(--white);
}

.recomended-project-card:is(:hover, :focus-visible, :focus-within)
  .recomended-project-text {
  color: var(--neutral-18);
  font-weight: var(--medium);
}

.recomended-project-card:is(:hover, :focus-visible, :focus-within)
  .recomended-project-name {
  color: var(--neutral-20);
}

.recomended-project-card:is(:hover, :focus-visible, :focus-within)
  .recomended-project-btn {
  background-color: var(--brand-terracotta-01);
  border-color: var(--brand-terracotta-01);
}

.recomended-project-card:is(:hover, :focus-visible, :focus-within)
  .recomended-project-btn
  img {
  filter: var(--filter-white);
  rotate: 270deg;
}

.project-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.project-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-gallery-lightbox-close,
.project-gallery-lightbox-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
}

.project-gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  line-height: 1;
  color: var(--white);
}

.project-gallery-lightbox-arrow img {
  width: 20px;
  height: 20px;
  filter: var(--filter-white);
}

.project-gallery-lightbox-close:is(:hover, :focus-visible, :focus-within),
.project-gallery-lightbox-arrow:is(:hover, :focus-visible, :focus-within) {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
}

.project-gallery-lightbox-stage {
  width: min(92vw, 1440px);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  column-gap: 24px;
}

.project-gallery-lightbox-figure {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-gallery-lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}

body.project-gallery-open {
  overflow: hidden;
}

@media (max-width: 1380px) {
  .project-details-main-container,
  .recomended-projects-main-container {
    max-width: none;
    padding-inline: 40px;
  }

  .recomended-projects-carousel {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
}

@media (max-width: 1180px) {
  .project-details-main-container {
    flex-direction: column;
  }

  .project-gallery {
    width: 100%;
    max-width: none;
  }

  .recomended-project-card {
    flex-basis: 320px;
  }
}

@media (max-width: 700px) {
  .details-header {
    padding-inline: 20px;
    align-items: flex-start;
    padding-bottom: 60px;
    justify-content: flex-end;
    gap: 16px;
  }

  .project-name {
    text-align: start;
    font-size: 28px;
    line-height: 36px;
  }

  .project-details-main-container {
    margin-top: -30px;
    gap: 80px;
  }

  .project-name-details,
  .current-page {
    display: none;
  }
  .project-details-main-container,
  .recomended-projects-main-container {
    padding-inline: 20px;
  }

  .recomended-projects {
    padding-top: 96px;
  }

  .recomended-projects-heading {
    font-size: 28px;
    line-height: 32px;
  }

  .recomended-projects-carousel {
    display: block;
  }

  .recomended-projects-arrow {
    display: none;
  }

  .recomended-projects-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .recomended-projects-viewport::-webkit-scrollbar {
    display: none;
  }

  .recomended-projects-track {
    width: max-content;
    transform: none !important;
    will-change: auto;
    transition: none;
    padding-right: 20px;
  }

  .recomended-project-card {
    flex-basis: 280px;
    width: 302px;
    height: 512px;
    scroll-snap-align: start;
  }

  .recomended-project-image {
    height: 378px;
  }

  .recomended-project-name {
    max-width: none;
    font-size: 20px;
    line-height: 26px;
  }

  .project-gallery-lightbox-stage {
    width: min(100vw - 32px, 1440px);
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    column-gap: 12px;
  }

  .project-gallery:not(.project-gallery-single) .image-gallery {
    height: 220px;
  }

  .project-gallery-lightbox-close {
    top: 16px;
    right: 16px;
  }

  .project-details-container {
    flex-wrap: wrap;
  }

  .klinker-type {
    font-size: 12px;
    line-height: 12px;
  }

  .recomended-projects-subheading {
    font-size: 12px;
    line-height: 12px;
  }

  .recomended-projects-main-container {
    padding: 40px 16px;
  }

  .recomended-project-card-details {
    gap: 12px;
    padding: 24px 16px;
  }

  .project-name {
    max-width: unset;
  }
}
