.photoalbum__container {
  position: relative;
}
.photoalbum__flex-container {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 30px;
}
.photoalbum__flex-container h1 {
  margin-bottom: 0;
}
.photoalbum__controls {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
}
.photoalbum__body,
.photoalbum__map {
  position: relative;
}
.photoalbum__map {
  border-radius: var(--border-r);
  display: none;
  overflow: hidden;
}
.photoalbum__body.display-map .photoalbum__cards {
  display: none;
}
.photoalbum__body.display-map + .photoalbum__map {
  display: block;
}
.card-preview__list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;
  gap: 20px;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-columns: repeat(4, 1fr);
}
.photoalbum__cards .card-preview__item {
  max-width: none;
}
.photoalbum__button-more {
  margin: 30px auto 0;
  max-width: 350px;
}
.map__side-block {
  border-radius: 0 0 20px 0;
  height: calc(100% - 86px);
  left: 0;
  padding: 30px;
  top: 43px;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-transition: all 0.7s;
  -o-transition: all 0.7s;
  transition: all 0.7s;
  width: 495px;
  z-index: 1;
}
.map__side-block,
.map__side-button--toggle {
  background-color: var(--bg-block);
  position: absolute;
}
.map__side-button--toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  right: -60px;
  top: 0;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  border-radius: 0 50px 50px 0;
  height: 70px;
  justify-content: center;
  -webkit-transition: background 0.7s;
  -o-transition: background 0.7s;
  transition: background 0.7s;
  width: 70px;
}
.map__side-button--toggle svg {
  background-color: var(--primary-light);
  border-radius: 50%;
  height: 30px;
  padding: 5px;
  width: 30px;
}
.side-block__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
}
.side-block__content {
  margin-bottom: 25px;
  padding-right: 10px;
  overflow: hidden;
}
#events-list {
  position: relative;
}
.instruction {
  counter-reset: custom-counter;
}
.instruction__item {
  color: var(--color-text);
  counter-increment: custom-counter;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font: var(--font-s);
  gap: 10px;
}
.instruction__item:not(:last-child) {
  margin-bottom: 15px;
}
.instruction__item:before {
  background-color: var(--gray-600);
  color: var(--white);
  content: counter(custom-counter) ' ';
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 14px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  border-radius: 50%;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.side-block__body .button {
  margin-top: auto;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: fit-content;
  height: auto;
  padding: 14px 25px 15px;
}
.map__side-block.active {
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}
.map__side-block.active .map__side-button--toggle svg {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}
#photomap {
  background-color: #582c4b;
  height: calc(100vh - 168px);
  width: 100%;
}
#photomap .mapboxgl-popup {
  position: absolute;
  top: -25px;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  will-change: transform;
  width: 100% !important;
  max-width: 337px !important;
}
#photomap .mapboxgl-popup-content {
  width: 100%;
}
#photomap .mapboxgl-popup-content .popup-text {
  background-color: var(--white);
  border-radius: var(--border-r-12);
  overflow: hidden;
  width: 100%;
}
#photomap .mapboxgl-popup-content .popup-text h3 {
  color: var(--white);
  background-color: var(--primary-pink);
  padding: 30px 25px 20px;
  font: var(--font-xl);
  font-weight: 700;
}
#photomap .mapboxgl-popup-content .popup-text p {
  color: var(--primary-dark);
  font: var(--font-s);
  padding: 20px 25px;
}
#photomap .mapboxgl-popup-content .mapboxgl-popup-close-button {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 30px;
  line-height: 0;
  width: 20px;
  cursor: pointer;
  height: 20px;
}
.events-item {
  border-radius: var(--border-r-12);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  padding: 5px;
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}
.events-item:not(:last-of-type) {
  margin-bottom: 15px;
}
@media (hover: hover) {
  .events-item:hover {
    background-color: var(--primary-light);
  }
  .dark-theme .events-item:hover {
    background-color: var(--primary-dark);
  }
}
.events-item__image {
  border-radius: var(--border-r-12);
  height: 90px;
  max-width: 150px;
  overflow: hidden;
  width: 100%;
}
.events-item__image img {
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}
.events-item__image img,
.events-item__info-title {
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}
.events-item__info-title {
  font: var(--font-xl);
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gray-800);
}
.dark-theme .events-item__info-title {
  color: var(--white);
}

@media (hover: hover) {
  .events-item__image:hover img {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
  }
  .events-item__info-title:hover {
    color: var(--primary-pink);
  }
}
.events-item__info-date {
  color: var(--gray-700);
  font: var(--font-xl);
  display: block;
  margin-bottom: 10px;
}
.events-item__info-link {
  font-size: 20px;
  line-height: 26px;
  font-weight: bold;
  color: var(--primary-pink);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23F82179' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.063 12.347a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Cpath stroke='%23F82179' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E");
  background-position: left top 50%;
  background-repeat: no-repeat;
  background-size: 24px;
  padding-left: 28px;
}
@media screen and (max-width: 1399px) {
  .card-preview__list {
    -ms-grid-columns: (1fr) [3];
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 1199px) {
  .photoalbum__flex-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}
@media screen and (max-width: 991px) {
  .card-preview__list {
    -ms-grid-columns: (1fr) [2];
    grid-template-columns: repeat(2, 1fr);
  }
  #photomap {
    height: calc(100vh - 110px);
  }
}
@media screen and (max-width: 575px) {
  .photoalbum__flex-container {
    margin-bottom: 15px;
  }
  .photoalbum__controls {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }
  .card-preview__list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .map__side-block {
    border-radius: 0;
    height: 100%;
    top: 0;
    width: 100%;
  }
  .map__side-button--toggle {
    border-radius: 0 0 20px 0;
    right: -70px;
  }
  .map__side-block.active .map__side-button--toggle {
    right: 0;
  }
  .side-block__body .section__title {
    padding-right: 40px;
  }
  #photomap .mapboxgl-popup {
    max-width: 255px !important;
  }
}
@media screen and (max-height: 767px) {
  .map__side-block {
    border-radius: 0;
    height: 100%;
    top: 0;
    width: 100%;
  }
  .map__side-button--toggle {
    border-radius: 0 0 20px 0;
    right: -70px;
  }
  .map__side-block.active .map__side-button--toggle {
    right: 0;
  }
  .side-block__body .perfect-scroll {
    padding-right: 8px;
  }
  .side-block__body .section__title {
    padding-right: 40px;
  }
  .events-item__info-date {
    font: var(--font-m);
  }
}
