/* Оформление project.css; сохранены размеры и адаптивность исходного сайта. */
.lightbox__lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  background: #161514eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px 80px;
}
.lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 10px 40px #0006;
  will-change: transform;
}
.lightbox__close,
.lightbox__navigation {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: Onest, sans-serif;
  line-height: 1;
  opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
  transition: opacity 0.15s;
  z-index: 1;
}
.lightbox__close:hover,
.lightbox__navigation:hover {
  opacity: 1;
}
.lightbox__close {
  top: 24px;
  right: 24px;
  font-size: 26px;
}
.lightbox__navigation {
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding: 0 18px;
}
.lightbox__previous {
  left: 8px;
}
.lightbox__next {
  right: 8px;
}
.lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%);
  color: #b9b6af;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.lightbox__controls {
  display: contents;
}
@media (max-width: 760px) {
  .lightbox__lightbox {
    padding: 52px 16px 72px;
  }
  .lightbox__close {
    top: 14px;
    right: 16px;
  }
  .lightbox__controls {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px calc(10px + max(env(safe-area-inset-bottom), 8px));
    background: linear-gradient(to top, rgba(22, 21, 20, 0.72), transparent);
  }
  .lightbox__controls .lightbox__navigation {
    position: static;
    transform: none;
    font-size: 30px;
    padding: 6px 20px;
    opacity: 1;
  }
  .lightbox__controls .lightbox__count {
    position: static;
    transform: none;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__image {
    transition: none !important;
  }
}
.gallery__gallery {
  container-type: inline-size;
}
.gallery__rows {
  display: grid;
  gap: 14px;
}
.gallery__rows-mobile {
  gap: 12px;
}
.gallery__row {
  display: flex;
  gap: 14px;
}
.gallery__rows-mobile .gallery__row {
  gap: 12px;
}
.gallery__row-item {
  position: relative;
  flex-basis: 0;
  min-width: 0;
  margin: 0;
  background: var(--tint);
  cursor: pointer;
  overflow: hidden;
}
.gallery__row-item .gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__spacer {
  flex-basis: 0;
}
.gallery__row.gallery__row--featured .gallery__row-item {
  max-height: 640px;
}
.gallery__rows-mobile {
  display: none;
}
.gallery__rows-desktop {
  display: grid;
}
.gallery__gallery.is-mobile .gallery__rows-desktop {
  display: none;
}
.gallery__gallery.is-mobile .gallery__rows-mobile,
.gallery__gallery.is-desktop .gallery__rows-desktop {
  display: grid;
}
.gallery__gallery.is-desktop .gallery__rows-mobile {
  display: none;
}
@media (max-width: 760px) {
  .gallery__gallery:not(.is-desktop) .gallery__rows-desktop {
    display: none;
  }
  .gallery__gallery:not(.is-desktop) .gallery__rows-mobile {
    display: grid;
  }
}
.gallery__grid-view {
  flex-direction: column;
  gap: 14px;
}
.gallery__grid-mobile {
  gap: 12px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
}
.gallery__grid-desktop .gallery__grid {
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * 14px) / var(--cols));
  gap: 14px;
}
.gallery__grid-mobile .gallery__grid {
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * 12px) / var(--cols));
  gap: 12px;
}
.gallery__grid-item {
  position: relative;
  margin: 0;
  background: var(--tint);
  cursor: pointer;
  overflow: hidden;
}
.gallery__grid-item .gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__grid-item.is-framed:after,
.gallery__row-item.is-framed:after,
.gallery__full-width.is-framed:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gallery__grid-item.is-contain,
.gallery__row-item.is-contain {
  background: var(--paper);
}
.gallery__full-width {
  position: relative;
  background: var(--paper);
  cursor: pointer;
}
.gallery__full-width .gallery__img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery__grid-mobile {
  display: none;
}
.gallery__grid-desktop {
  display: flex;
}
.gallery__gallery.is-mobile .gallery__grid-desktop {
  display: none;
}
.gallery__gallery.is-mobile .gallery__grid-mobile,
.gallery__gallery.is-desktop .gallery__grid-desktop {
  display: flex;
}
.gallery__gallery.is-desktop .gallery__grid-mobile {
  display: none;
}
@media (max-width: 760px) {
  .gallery__gallery:not(.is-desktop) .gallery__grid-desktop {
    display: none;
  }
  .gallery__gallery:not(.is-desktop) .gallery__grid-mobile {
    display: flex;
  }
}
.project__container {
  max-width: none;
}
@media (min-width: 900px) {
  .project__section-body {
    padding: 80px 72px;
  }
}
.project__back {
  text-decoration: none;
  color: var(--ink-soft);
}
.project__back:hover {
  color: var(--marker);
}
.project__slideshow {
  display: none;
}
@media (max-width: 959px) {
  .project__slideshow {
    display: block;
    position: relative;
    margin: 0 -24px 28px;
    width: calc(100% + 48px);
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 0;
    background: var(--tint);
    overflow: hidden;
    cursor: pointer;
  }
  .project__slideshow .project__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .project__slideshow .project__slide-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 5px 9px;
    color: var(--paper);
    background: color-mix(in srgb, var(--ink) 70%, transparent);
  }
}
.project__project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) {
  .project__project {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
}
.project__h1 {
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.14;
}
.project__details > .project__lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.project__specifications {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project__specifications .project__dd {
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: break-word;
  -webkit-hyphens: none;
  hyphens: none;
}
.project__specifications .project__dt {
  margin-top: 3px;
  font-family: Archivo, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .project__specifications {
    grid-template-columns: 1fr;
    gap: 18px 0;
  }
}
.project__block {
  margin-top: 34px;
}
.project__section-title {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.project__block .project__p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.project__block p + .project__p {
  margin-top: 14px;
}
.project__actions {
  margin-top: 36px;
}
.project__media-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--tint);
  border: 1px solid var(--line);
}
.project__media-soon .project__span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.project__pagination {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) {
  .project__pagination {
    grid-template-columns: 1fr 1fr;
  }
}
.project__pagination-link {
  background: var(--paper);
  padding: 22px 26px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project__pagination-next {
  text-align: right;
  align-items: flex-end;
}
.project__pagination-label {
  color: var(--blue);
  font-size: 12px;
}
.project__pagination-title {
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
}
.project__pagination-link:hover .project__pagination-title {
  color: var(--marker);
}
.project__related {
  margin-top: 64px;
}
.project__related-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.project__related-header .project__section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.project__related-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.project__related-link:hover,
.project__related-link:focus-visible {
  color: var(--marker);
  border-bottom-color: var(--marker);
}
.project__related-grid {
  display: grid;
  column-gap: 40px;
  row-gap: 44px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .project__related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .project__related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
