@font-face {
  font-family: "Grotesk";
  src: local("HKGrotesk-RegularLegacy"), local("HKGrotesk Regular Legacy");
  src: url("../fonts/HKGrotesk-RegularLegacy.524e8499a44a.woff2") format("woff2"),
    url("../fonts/HKGrotesk-RegularLegacy.1d83516065ab.woff") format("woff");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Grotesk";
  src: local("HKGrotesk-SemiBoldLegacy"), local("HKGrotesk SemiBold Legacy");
  src: url("../fonts/HKGrotesk-SemiBoldLegacy.93251c1b6399.woff2") format("woff2"),
    url("../fonts/HKGrotesk-SemiBoldLegacy.85b97e9192ff.woff") format("woff");
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "SassyFrass";
  src: local("SassyFrass-Regular"), local("SassyFrassRegular"),
    local("Sassy Frass Regular");
  src: url("../fonts/SassyFrass-Regular.8bed5951fe68.woff2") format("woff2"),
    url("../fonts/SassyFrass-Regular.a2a32382d420.woff") format("woff");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "MostlyBright";
  src: local("MostlyBright-Regular"), local("MostlyBright"),
    local("Mostly Bright");
  src: url("../fonts/Mostly-Bright.40588f17ef54.woff2") format("woff2"),
    url("../fonts/Mostly-Bright.6239a4096bac.woff") format("woff");
  font-style: normal;
  font-weight: 400;
}

/** _______________________ DEFAULT _______________________   */

:root {
  --bg-color: #f3ecd7;
  --main-color: #204d38;
  --main-color-opacity-20: rgba(32, 77, 56, 0.2);
  --transition: 0.15s ease-in-out;
}

body {
  font-family: "Grotesk", Verdana, Geneva, Tahoma, sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-width: 320px;
  width: 100%;
  background-color: var(--bg-color);
  color: var(--main-color);
  font-size: 24px;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1320px;
  width: 100%;
  padding: 0 40px;
  position: relative;
  margin: 0 auto;
}

.header {
  margin-top: 16px;
}

.no-opacity {
  opacity: 0;
}

.no-display {
  display: none;
}

.decorated {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  text-transform: uppercase;
  white-space: nowrap;
}

.decorated__letter {
  font-family: "SassyFrass";
  font-size: 2em;
  font-weight: 400;
}

.decorated__text {
  margin-bottom: 0.45em;
}

.main {
  width: 100%;
}

.main__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 110px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}

.button-read-more {
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 24px;
  color: var(--main-color);
  border-radius: 24px;
  border: 2px solid var(--main-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  -webkit-transition: background-color var(--transition), color var(--transition);
  -o-transition: background-color var(--transition), color var(--transition);
  transition: background-color var(--transition), color var(--transition);
}

.button-read-more_light {
  color: var(--bg-color);
  border-color: var(--bg-color);
}

.button-read-more svg {
  stroke: var(--main-color);
  -webkit-transition: stroke var(--transition);
  -o-transition: stroke var(--transition);
  transition: stroke var(--transition);
}

.button-read-more_light svg {
  stroke: var(--bg-color);
}

.button-read-more:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
}

.button-read-more:hover svg {
  stroke: var(--bg-color);
}

.button-read-more_light:hover {
  background-color: var(--bg-color);
  color: var(--main-color);
}

.button-read-more_light:hover svg {
  stroke: var(--main-color);
}

/** _______________________ NAV _______________________ */

.nav {
  margin: 0 auto;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}

.nav__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.nav__item {
  padding: 0 16px;
  border: 2px solid var(--main-color);
  border-radius: 16px;
  font-size: 24px;
  height: -webkit-min-content;
  height: -moz-min-content;
  height: min-content;
  -webkit-transition: background-color var(--transition), color var(--transition);
  -o-transition: background-color var(--transition), color var(--transition);
  transition: background-color var(--transition), color var(--transition);
}

.nav__item:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
}

.nav__item:nth-child(2),
.nav__item:nth-last-child(2) {
  font-size: 20px;
}

.nav__item:first-child,
.nav__item:last-child {
  font-size: 16px;
}

.nav__item_active {
  background-color: var(--main-color);
  color: var(--bg-color);
}

.nav__item_active:hover {
  opacity: 1;
}

/** _______________________ HERO _______________________ */
.hero {
  min-height: calc(450px + 8em + 40px);

  .gallery__slider {
    display: none;
  }
}

.hero__images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  height: 450px;
  margin-top: -24px;
}
.hero__img {
  height: 420px;
  width: 420px;
  border-radius: 24px;
  -webkit-box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
          box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
  position: absolute;
  overflow: hidden;
  z-index: 0;
}
.hero__img_active {
  z-index: 500;
}
.hero__img::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: black;
  opacity: 0.5;
  -webkit-transition: opacity var(--transition);
  -o-transition: opacity var(--transition);
  transition: opacity var(--transition);
}
.hero__img_active::before {
  opacity: 0;
}

.hero__img img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 450px;
  height: 450px;
}

.hero__img_right {
  right: 0;
}

.hero__img_center {
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 100;
  height: 450px;
  width: 450px;
}

.hero__description {
  position: absolute;
  opacity: 0;
  -webkit-transition: opacity var(--transition);
  -o-transition: opacity var(--transition);
  transition: opacity var(--transition);
  right: 40px;
  left: 40px;
  z-index: 0;
}

.hero__description_active {
  opacity: 1;
  z-index: 100;
}

/** _______________________ ABOUT ME _______________________ */
.about {
  padding-bottom: 72px;
  color: var(--main-color);
}

.about__title {
  font-size: 170px;
}
.about__title > .decorated:nth-child(2) {
  margin-top: -1em;
}

.about_wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 64px;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  margin-top: -250px;
  height: 700px;
}

.about__description p {
  margin-bottom: 18px;
  max-width: 90%;
}

.about__img {
  width: 500px;
  border-radius: 24px;
  -webkit-box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
          box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
  max-height: 700px;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
}

/** _______________________ FOOTER _______________________ */

.footer {
  background-color: var(--main-color);
  color: var(--bg-color);
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}

.footer .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.footer__left-top {
  font-size: 120px;
  margin-bottom: 0;
}

.footer__left-bottom {
  font-size: 120px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  gap: 40px;
  margin-top: -1em;
}

.footer__logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  font-size: 80px;
  border-radius: 24px;
  border: 1px solid var(--bg-color);
  padding: 0px 40px 24px;
  -webkit-transform: translateY(35%);
      -ms-transform: translateY(35%);
          transform: translateY(35%);
}

.footer__logo .decorated__text {
  font-family: "MostlyBright";
}

.footer__logo_mobile {
  display: none;
}

.footer__logo-sign {
  font-size: 20px;
  position: absolute;
  bottom: 24px;
}

.footer__contact-item:not(:last-child) {
  margin-bottom: 16px;
}

.footer__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  text-transform: uppercase;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  border-bottom: 1px solid var(--main-color);
  padding-bottom: 4px;
  -webkit-transition: border-color var(--transition);
  -o-transition: border-color var(--transition);
  transition: border-color var(--transition);
}

.footer__link svg {
  margin-top: -3px;
}

.footer__link-stroke {
  stroke: var(--bg-color);
}

.footer__link-fill {
  fill: var(--bg-color);
}

.footer__link:hover {
  border-color: var(--bg-color);
}

/** _______________________ MODAL _______________________ */

.modal {
  display: none;
}

.modal.opened {
  width: calc(100% - 96px);
  max-width: 1200px;
  height: 100%;
  max-height: calc(100dvh - 96px);
  background-color: var(--main-color);
  position: fixed;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  z-index: 50000;
  display: block;
  border-radius: 24px;
  padding: 32px 32px 72px 32px;
  color: var(--bg-color);
  overflow: hidden;
}

.modal__wrapper {
  overflow-y: auto;
  width: 100%;
  height: 100%;
  padding-right: 16px;
}

.modal__wrapper::-webkit-scrollbar {
  width: 4px;
}
.modal__wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.modal__wrapper::-webkit-scrollbar-thumb {
  background-color: var(--bg-color);
  border-radius: 20px;
}

body.opened {
  overflow: hidden;
}

body.opened::before {
  position: absolute;
  background-color: black;
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  opacity: 0.8;
  height: 100%;
}

.modal__header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.modal__close-btn {
  position: relative;
  content: "";
  width: 32px;
  height: 32px;
  /* top: 32px;
  right: 32px; */
}

.modal__close-btn::before,
.modal__close-btn::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--bg-color);
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
  left: 0;
}

.modal__close-btn::after {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.modal__title {
  /* position: absolute;
  top: 32px;
  left: 32px; */
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
}

.modal__info {
  font-size: 16px;
  line-height: 1.6;
  color: var(--main-color);
}

.modal__info:not(:last-child) {
  margin-bottom: 16px;
}

/* Стили для HTML элементов внутри modal__info (из CKEditor) */
.modal__info p {
  margin-bottom: 16px;
}

.modal__info p:last-child {
  margin-bottom: 0;
}

.modal__info strong,
.modal__info b {
  font-weight: 600;
}

.modal__info em,
.modal__info i {
  font-style: italic;
}

.modal__info u {
  text-decoration: underline;
}

.modal__info h1,
.modal__info h2,
.modal__info h3,
.modal__info h4,
.modal__info h5,
.modal__info h6 {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.modal__info h1 {
  font-size: 32px;
}

.modal__info h2 {
  font-size: 28px;
}

.modal__info h3 {
  font-size: 24px;
}

.modal__info ul,
.modal__info ol {
  margin: 16px 0;
  padding-left: 24px;
}

.modal__info li {
  margin-bottom: 8px;
}

.modal__info a {
  color: var(--main-color);
  text-decoration: underline;
}

.modal__info a:hover {
  opacity: 0.7;
}

.modal__info blockquote {
  margin: 16px 0;
  padding-left: 16px;
  border-left: 3px solid var(--main-color);
  font-style: italic;
}

.modal__info img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}

/* Стили для modal__info внутри модального окна (зеленый фон) */
/* Переопределяем все цвета для видимости на зеленом фоне */
.modal.opened .modal__wrapper .modal__info,
.modal.opened .modal__info {
  color: var(--bg-color) !important;
}

/* Все текстовые элементы внутри modal__info в модальном окне */
.modal.opened .modal__wrapper .modal__info *,
.modal.opened .modal__info * {
  color: var(--bg-color) !important;
}

/* Заголовки */
.modal.opened .modal__wrapper .modal__info h1,
.modal.opened .modal__wrapper .modal__info h2,
.modal.opened .modal__wrapper .modal__info h3,
.modal.opened .modal__wrapper .modal__info h4,
.modal.opened .modal__wrapper .modal__info h5,
.modal.opened .modal__wrapper .modal__info h6,
.modal.opened .modal__info h1,
.modal.opened .modal__info h2,
.modal.opened .modal__info h3,
.modal.opened .modal__info h4,
.modal.opened .modal__info h5,
.modal.opened .modal__info h6 {
  color: var(--bg-color) !important;
}

/* Параграфы, span, div */
.modal.opened .modal__wrapper .modal__info p,
.modal.opened .modal__wrapper .modal__info span,
.modal.opened .modal__wrapper .modal__info div,
.modal.opened .modal__info p,
.modal.opened .modal__info span,
.modal.opened .modal__info div {
  color: var(--bg-color) !important;
}

/* Ссылки */
.modal.opened .modal__wrapper .modal__info a,
.modal.opened .modal__info a {
  color: var(--bg-color) !important;
  border-bottom: 1px solid var(--bg-color);
}

.modal.opened .modal__wrapper .modal__info a:hover,
.modal.opened .modal__info a:hover {
  opacity: 0.7;
}

/* Цитаты */
.modal.opened .modal__wrapper .modal__info blockquote,
.modal.opened .modal__info blockquote {
  border-left-color: var(--bg-color) !important;
  color: var(--bg-color) !important;
}

/* Код */
.modal.opened .modal__wrapper .modal__info code,
.modal.opened .modal__wrapper .modal__info pre,
.modal.opened .modal__info code,
.modal.opened .modal__info pre {
  color: var(--bg-color) !important;
  background-color: rgba(243, 236, 215, 0.2);
}

/* Выделение */
.modal.opened .modal__wrapper .modal__info mark,
.modal.opened .modal__info mark {
  background-color: rgba(243, 236, 215, 0.3);
  color: var(--bg-color) !important;
}

/* Зачеркнутый текст */
.modal.opened .modal__wrapper .modal__info del,
.modal.opened .modal__wrapper .modal__info s,
.modal.opened .modal__info del,
.modal.opened .modal__info s {
  color: var(--bg-color) !important;
}

/* Подчеркнутый текст */
.modal.opened .modal__wrapper .modal__info ins,
.modal.opened .modal__info ins {
  color: var(--bg-color) !important;
}

/* Списки */
.modal.opened .modal__wrapper .modal__info li,
.modal.opened .modal__wrapper .modal__info ul,
.modal.opened .modal__wrapper .modal__info ol,
.modal.opened .modal__info li,
.modal.opened .modal__info ul,
.modal.opened .modal__info ol {
  color: var(--bg-color) !important;
}

.modal__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  gap: 20px;
  padding-top: 16px;
}

.modal__image {
  max-height: 600px;
  width: fit-content;
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 24px;
  -webkit-box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
          box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
  display: none;
}

.modal__links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.modal__link {
  display: block;
  text-transform: uppercase;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  border-bottom: 1px solid var(--main-color);
  padding-bottom: 4px;
  -webkit-transition: border-color var(--transition);
  -o-transition: border-color var(--transition);
  transition: border-color var(--transition);
}

.modal__link:hover {
  border-color: var(--bg-color);
}

.modal__descr {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: 0 auto;
  width: 50%;
}

.modal_long .modal__wrapper {
  width: 50%;
}

/** _______________________ EXHIBITIONS _______________________ */
.exh {
  background-color: var(--main-color);
  color: var(--bg-color);
  min-height: 900px;
}

.exh__title {
  font-size: 140px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.exh__title > .decorated:last-child {
  margin-top: -1em;
}

.exh .container {
  padding-bottom: 40px;
}

.exh-slider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
  height: 800px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  position: relative;
  gap: 20px;
  outline: none;
  padding: 40px;
}

.exh-slider::-webkit-scrollbar {
  height: 8px;
}
.exh-slider::-webkit-scrollbar-track {
  background: transparent;
}
.exh-slider::-webkit-scrollbar-thumb {
  background-color: var(--bg-color);
  border-radius: 20px;
}

.exh-slider__item {
  min-width: 800px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--bg-color);
}

.exh-slider__image {
  height: 500px;
  width: auto;
  margin-bottom: 40px;
  border-radius: 24px;
  -webkit-box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
          box-shadow: 0px 0px 24px 8px rgba(0, 0, 0, 0.35);
}

.exh-slider__title {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bg-color);
}

.exh-slider__btn {
  margin-bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.exh-slider__descr {
  text-align: center;
}

/** _______________________ GALLERY _______________________ */
.gallery-preview .main__title .decorated__letter {
  font-size: 2.5em;
}

.gallery-preview .main__title .decorated__text {
  font-size: 170px;
  margin-bottom: 0.25em;
}

.gallery-preview__quote {
  font-size: 32px;
  margin-top: -1em;
  margin-bottom: 110px;
}

.gallery-preview__buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 60px;
  margin-bottom: 30px;
}

.gallery-preview__button {
  font-size: 32px;
  text-transform: uppercase;
  color: var(--main-color-opacity-20);
  font-weight: 600;
  -webkit-transition: color var(--transition);
  -o-transition: color var(--transition);
  transition: color var(--transition);
}

.gallery-preview__button_active {
  color: var(--main-color);
}

.gallery-preview__button:hover {
  color: var(--main-color);
}

.gallery__unit {
  overflow: hidden;
  padding: 16px 24px;
}

.gallery__unit:not(:last-child) {
  border-bottom: 2px solid var(--main-color-opacity-20);
}

.gallery__unit-content {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 40px;
  margin-bottom: 18px;
  max-height: 500px;
}

.gallery__unit-descr {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: auto;
}

.gallery__unit-left {
  width: 500px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 24px;
  overflow: hidden;
}

.gallery__img {
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  -webkit-transition: opacity var(--transition);
  -o-transition: opacity var(--transition);
  transition: opacity var(--transition);
  border-radius: 24px;
  height: fit-content;
  align-self: center;
  max-height: 500px;
}

.gallery__unit-descr_up {
  margin-bottom: 48px;
}

.gallery__unit-name {
  font-weight: 600;
  font-size: 48px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.gallery__unit-info {
  font-size: 20px;
}

.gallery__unit-buttons {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 40px;
}

.gallery__slider {
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.gallery__slider-arrow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.gallery__slider-divider {
  height: 41px;
  width: 3px;
  background-color: var(--main-color);
  margin: 0 8px;
}

.gallery__slider-divider_light {
  background-color: var(--bg-color);
}


.gallery__unit_max .gallery__unit-name {
  font-size: 48px;
}

.gallery__unit_max .gallery__unit-content {
  width: 100%;
  max-height: 600px;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.gallery__unit_max .gallery__img {
  border-radius: 24px;
  max-height: 100% !important;
}

.gallery__unit_max .gallery__unit-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  -webkit-transition: top var(--transition);
  -o-transition: top var(--transition);
  transition: top var(--transition);
  top: 0;
  bottom: 65%;
  background: -webkit-gradient(linear, left top, left bottom, from(var(--main-color)), to(transparent));
  background: -o-linear-gradient(var(--main-color), transparent 100%);
  background: linear-gradient(var(--main-color), transparent 100%);
  -webkit-transition: bottom var(--transition);
  -o-transition: bottom var(--transition);
  transition: bottom var(--transition);
}

.gallery__unit_max .gallery__unit-descr {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40%;
  color: var(--bg-color);
  z-index: 500;
  height: calc(100% - 48px);
}

.gallery__unit_max .gallery__unit-info,
.gallery__unit_max .gallery__unit-descr_down {
  opacity: 0;
  -webkit-transition: opacity var(--transition);
  -o-transition: opacity var(--transition);
  transition: opacity var(--transition);
}

.gallery__unit-descr_down > *:not(:last-child) {
  margin-bottom: 16px;
}

.gallery__unit_max:hover .gallery__unit-info,
.gallery__unit_max:hover .gallery__unit-descr_down {
  opacity: 1;
}

.gallery__unit_max:hover .gallery__unit-content::after {
  bottom: -100%;
}

.gallery__unit-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.gallery__unit-link {
  display: block;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  -webkit-transition: border-color var(--transition);
  -o-transition: border-color var(--transition);
  transition: border-color var(--transition);
  font-size: 20px;
}

.gallery__unit-link:hover {
  border-color: var(--bg-color);
}

.gallery__unit-link_light:hover {
  border-color: var(--main-color);
}

.gallery-quote {
  background-color: var(--main-color);
  color: var(--bg-color);
  min-height: 50vh;
  font-weight: 600;
  text-transform: uppercase;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  font-size: 90px;
}

.modal__buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
}
