/* media-items */

.whiteSection-notPtop {
  padding-top: 0;
}

.media-items {
  padding: calc(1vw - 5px) 0 1vw;
  display: flex;
  flex-wrap: wrap;
}

.media-item {
  box-sizing: border-box;
  width: 50%;
  position: relative;
  padding-bottom: 30%;
  overflow: hidden;
}

.media-item a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  margin-bottom: 0;
  position: absolute;
  height: calc(100% - 5px);
  width: 100%;
  margin: 5px;
  overflow: hidden;
}

.media-item a.text-left {
  justify-content: inherit;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 3% 5%;
}

.media-item a.center_all {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 3% 5%;
}

.media-item a.text-uchastki {
  justify-content: space-between;
  box-sizing: border-box;
  text-align: left;
  width: 100%;
  height: 100%;
  padding: 3% 5%;
}

.media-item a {
  /* filter: saturate(0.2) brightness(1) contrast(0.8); */
  transition: filter .5s ease;
}

.media-nofilter .media-item a,
.media-item a:hover {
  filter: inherit;
}

.media-item-title_left span,
.media-item-title-name span {
  text-transform: initial;
  font-weight: 300;
  display: inline;
  margin-left: 3%;
  white-space: nowrap;
}

.media-item-title-name {
  width: 80%;
}

.media-item-title-number {
  margin: 1vw 0;
  font-size: 40px;
  font-size: 1.9vw;
  text-transform: uppercase;
}

@media screen and (max-width: 1050px) {
  .media-item-title-number {
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
  }
}

.media-item:nth-child(even) a {
  margin-right: 0;
}

.media-item:nth-child(odd) a {
  margin-left: 0;
}

.media-item-title {
  position: relative;
  z-index: 2;
  margin-bottom: 2vw;
  transition: all 1s ease;
}

.media-item-title-nocaps h3 {
  text-transform: inherit;
}

.media-item-title-nocaps h3 span {
  text-transform: uppercase;
}

.media-item-title_left {
  position: relative;
  text-align: left;
  z-index: 2;
  width: 100%;
  transition: all 1s ease;
}

.media-item img {
  transition: all 1s ease-out;
}

.media-item:hover img {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}

.media-item-image {
  transition: all 1s ease-out;
  box-sizing: border-box;
  overflow: hidden;
}

.media-item-image:after,
.media-item-image:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 80%);
}

.media-item-image:after {
  background: rgba(0, 0, 0, 0);
  transition: all 0.3s ease;
}

/* .media-item:hover .media-item-image:after {
  background: rgba(0, 0, 0, 0.15);
} */

.media-item-action .cia-inner {
  overflow: hidden;
  background: #323137;
  height: calc(100% - 5px);
  width: calc(100% - 5px);
  position: absolute;
  margin: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-item-area {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

@media screen and (max-width: 700px) {
  .media-item {
    width: 100%;
    padding-bottom: 75%;
  }
  .media-item a {
    height: 100%;
    margin-bottom: 10px;
  }
  .media-item a.text-left {
    padding: 5% 5%;
  }
  .media-item:nth-child(odd) a {
    margin-right: 0;
  }
  .media-item:nth-child(even) a {
    margin-left: 0;
  }
  .media-item-action .cia-inner {
    height: 100%;
    width: 100%;
    margin: 5px 0;
  }
}

.fancybox-container {
  max-height: 100vh;
}
html body.compensate-for-scrollbar {
  overflow: auto;
}
body.compensate-for-scrollbar {
  margin-right: 0;
}
a[data-fancybox] img {
  cursor: zoom-in;
}

.fancybox__container {
  --carousel-button-bg: rgb(0 0 0 / 44%);

  --carousel-button-svg-width: 24px;
  --carousel-button-svg-height: 24px;

  --carousel-button-svg-stroke-width: 2.5;
  --carousel-button-svg-filter: none;
}

.fancybox__nav {
  --carousel-button-svg-width: 22px;
  --carousel-button-svg-height: 22px;

  --carousel-button-svg-stroke-width: 3;
}

.fancybox__nav .carousel__button.is-prev {
  left: 30px;
}

.fancybox__nav .carousel__button.is-next {
  right: 30px;
}

.carousel__button.is-close {
  top: 30px;
  right: 30px;
}

.fancybox__slide {
  padding: 0;
}

.fancybox__thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.fancybox__thumbs .carousel__slide {
  padding: 20px 10px;
  overflow: visible;
}

.fancybox__thumb {
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.26);
}

.is-nav-selected .fancybox__thumb {
  transform: scale(1.25);
}

.is-nav-selected .fancybox__thumb::after {
  display: none;
}

.fancybox__content {
  width: 100%;
}
