.CityProjectsPage {
  padding: 80px 0;
  flex-grow: 1;
}

.CityProjectsPage__header {
  margin-bottom: 36px;
}

.CityProjectsPage__heading {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.125;
  color: #011f3b;
}

.CityProjectsPage__lead {
  margin: 8px 0 0;
  color: #011f3b;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.CityProjectsPage__lead p {
  margin: 0;
}

.CityProjectsPage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 32px;
}

.CityProjectCard {
  border-radius: 10px;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.CityProjectCard__content {
  color: #011f3b;
  transition: color 0.2s ease;
}

.CityProjectCard__image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 165 / 84;
}

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

.CityProjectCard__content {
  padding: 16px;
}

.CityProjectCard__title {
  margin: 0;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: normal;
}

.CityProjectCard__location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: #868686;
  font-size: 1rem;
  line-height: 1;
}

.CityProjectCard__location svg {
  flex: 0 0 auto;
  width: 18px;
  aspect-ratio: 1 / 1;
  color: #b37b5b;
}

.CityProjectCard__location span {
  margin-top: 2px;
}

.CityProjectCard__meta {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.CityProjectCard__text {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.CityProjectCard__year {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px 8px;
  border-radius: 999px;
  border: 1px solid #011f3b;
  color: #0a0a0a;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.CityProjectCard__button {
  margin-top: 12px;
  width: 100%;
}

.CityProjectCard__more {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 100px;
  border-radius: 999px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.CityProjectsDetail__image {
  display: block;
  width: 100%;
  border-radius: 20px;
  margin-bottom: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .CityProjectCard .CityProjectCard__button {
    display: none;
  }

  .CityProjectCard {
    cursor: none;
  }

  .CityProjectCard.CityProjectCard--static {
    cursor: default;
  }

  .CityProjectCard:hover {
    background-color: #011f3b;
  }

  .CityProjectCard__more {
    display: flex;
    transition: opacity 0.2s ease;
  }

  .CityProjectCard:hover .CityProjectCard__more {
    opacity: 1;
  }

  .CityProjectCard:hover .CityProjectCard__content {
    color: #fff;
  }

  .CityProjectCard:hover .CityProjectCard__location {
    color: #fff;
    opacity: 0.5;
  }

  .CityProjectCard:hover .CityProjectCard__year {
    color: #fff;
    border-color: #fff;
  }
}

@media (max-width: 1024px) {
  .CityProjectsPage {
    padding: 64px 0;
  }

  .CityProjectsPage__header {
    margin-bottom: 28px;
  }

  .CityProjectsPage__heading {
    font-size: 2.4rem;
  }

  .CityProjectsPage__grid {
    column-gap: 16px;
    row-gap: 28px;
  }

  .CityProjectCard__content {
    padding: 12px 0 16px;
  }

  .CityProjectCard__image {
    aspect-ratio: 22 / 15;
  }

  .CityProjectCard__title {
    font-size: 1.25rem;
  }

  .CityProjectCard__location {
    font-size: 0.875rem;
  }

  .CityProjectCard__text {
    font-size: 1rem;
  }

  .CityProjectCard__year {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .CityProjectsPage.Layout__body {
    margin-top: 0;
  }

  .CityProjectCard__title {
    font-size: 1.125rem;
  }

  .CityProjectCard__text {
    font-size: 0.875rem;
  }

  .CityProjectCard__location {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .CityProjectsPage {
    padding: 48px 0;
  }

  .CityProjectsPage__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .CityProjectsPage__heading {
    font-size: 2rem;
  }

  .CityProjectsPage__lead {
    font-size: 1.125rem;
  }
}

@media (max-width: 390px) {
  .CityProjectsPage__heading {
    font-size: 1.75rem;
  }

  .CityProjectsPage__lead {
    font-size: 1rem;
  }

  .CityProjectCard__meta {
    flex-direction: column;
  }
}

.CityProjectsPage--detail {
  padding: 0 0 80px;
}

.CityProjectsPage--detail .page-section--gallery {
  padding-bottom: 0;
}

.CityProjectsPage--detail #section_hero,
.CityProjectsPage--detail #section_about,
.CityProjectsPage--detail #section_features {
  scroll-margin-top: 81px;
}

@media (min-width: 768px) {
  .CityProjectsPage--detail #section_hero,
  .CityProjectsPage--detail #section_about,
  .CityProjectsPage--detail #section_features {
    scroll-margin-top: 187px;
  }
}

@media (min-width: 1440px) {
  .CityProjectsPage--detail #section_hero,
  .CityProjectsPage--detail #section_about {
    scroll-margin-top: 153px;
  }

  .CityProjectsPage--detail #section_features {
    scroll-margin-top: 172px;
  }
}

.CityProjectsDetail__hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.CityProjectsDetail__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #00000066;
  pointer-events: none;
}

.CityProjectsDetail__hero--empty {
  min-height: 180px;
  background: #011f3b;
}

.CityProjectsDetail__hero img {
  display: block;
  width: 100%;
  height: 512px;
  object-fit: cover;
}

.CityProjectsDetail__header {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 48px;
  left: 0;
  margin: 0;
  width: 100%;
  color: #fff;
}

.CityProjectsDetail__subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.CityProjectsDetail__title {
  margin: 8px 0 0;
  color: inherit;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.CityProjectsDetail__gallery {
  overflow: hidden;
}

.CityProjectsPage--detail .media--map {
  position: relative;
  height: auto;
  min-height: 420px;
  align-self: stretch;
}

.CityProjectsPage--detail .media--map #mapIntro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
}

.CityProjectsPage--detail .media--map .icon-map {
  width: 20px !important;
  height: auto !important;
  max-width: none;
}

.CityProjectsDetailStats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 32px 20px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
}

.CityProjectsDetailStats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
}

.CityProjectsDetailStats__icon {
  aspect-ratio: 1 / 1;
  width: 64px;
}

.CityProjectsDetailStats__icon svg {
  width: 100%;
  height: 100%;
}

.CityProjectsDetailStats__label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.page-section--gallery.CityProjectsDetail__gallery .slider__slide {
  aspect-ratio: 1000 / 647;
  width: 1000px;
  max-width: 100%;
  height: auto;
}

.page-section--gallery.CityProjectsDetail__gallery .gallery-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 647;
}

@media (max-width: 1599px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 840px;
  }
}

@media (max-width: 1439px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 786px;
  }
}

@media (max-width: 1199px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 684px;
  }
}

@media (max-width: 1023px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 536px;
  }
}

@media (max-width: 767px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 443px;
  }
}

@media (max-width: 575px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 354px;
  }
}

@media (max-width: 389px) {
  .page-section--gallery.CityProjectsDetail__gallery .slider__slide {
    width: 100%;
  }
}

@media (min-width: 1440px) {
  .CityProjectsDetail__main .page-section--dark .media--map {
    height: 100%;
  }
}

@media (max-width: 1024px) {
  .CityProjectsDetail__hero img {
    height: 420px;
  }

  .CityProjectsDetail__header {
    bottom: 44px;
  }

  .CityProjectsDetail__subtitle {
    font-size: 1.25rem;
  }

  .CityProjectsDetail__title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .CityProjectsPage--detail {
    padding: 0 0 64px;
  }

  .CityProjectsDetail__main .media--courtyard {
    aspect-ratio: 288 / 162;
    height: 100%;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .CityProjectsPage--detail {
    padding: 0 0 48px;
  }

  .CityProjectsDetail__subtitle {
    font-size: 1.125rem;
  }

  .CityProjectsDetail__title {
    font-size: 2rem;
  }

  .CityProjectsDetailStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 16px;
  }

  .CityProjectsDetailStats__item {
    justify-content: flex-start;
  }

  .CityProjectsDetailStats__icon {
    width: 48px;
  }

  .CityProjectsDetailStats__label {
    font-size: 0.875rem;
  }
}

@media (max-width: 390px) {
  .CityProjectsDetail__hero img {
    height: 300px;
  }

  .CityProjectsDetail__header {
    bottom: 24px;
  }

  .CityProjectsDetail__subtitle {
    font-size: 1rem;
  }

  .CityProjectsDetail__title {
    font-size: 1.75rem;
  }

  .CityProjectsDetailStats {
    padding: 20px 12px;
  }

  .CityProjectsDetailStats__icon {
    width: 36px;
  }

  .CityProjectsDetailStats__label {
    font-size: 0.75rem;
  }
}

@media (max-width: 330px) {
  .CityProjectsDetailStats {
    padding: 20px 8px;
    gap: 12px 8px;
  }

  .CityProjectsDetailStats__label {
    font-size: 0.625rem;
  }
}
