/* stylelint-disable max-line-length */
:root {
  --breakpoint-xxl: 1920px;
  --breakpoint-sxl: 1600px;
  --breakpoint-xl: 1440px;
  --breakpoint-lg: 1280px;
  --breakpoint-md: 1024px;
  --breakpoint-md-s: 992px;
  --breakpoint-sm: 768px;
  --breakpoint-xs: 512px;
  --breakpoint-xxs: 390px;
  --breakpoint-xxxs: 375px;
}

.gallery {
  overflow: hidden;
  position: relative;
}
.gallery__block {
  max-width: 620px;
  margin: 0 auto;
  padding: 25px 15px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
@media (min-width: 768px) {
  .gallery__block {
    max-width: 1230px;
  }
}
@media (min-width: 1024px) {
  .gallery__block {
    padding: 50px 15px;
  }
}
@media (min-width: 1280px) {
  .gallery__block {
    justify-content: flex-start;
  }
}
.gallery__block::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  max-width: 620px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sk-color-white);
}
@media (min-width: 1024px) {
  .gallery__block::before {
    max-width: 790px;
  }
}
.gallery__item {
  width: 100%;
  height: auto;
  aspect-ratio: 1.425/1;
  overflow: hidden;
  position: relative;
}
.gallery__item::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--sk-color-blue);
  opacity: 0;
  transition: 0.4s;
  transition-timing-function: ease-in-out;
}
@media (min-width: 768px) {
  .gallery__item {
    width: 285px;
    height: 200px;
    aspect-ratio: initial;
  }
}
@media (min-width: 1024px) {
  .gallery__item:hover::before {
    opacity: 0.75;
    cursor: pointer;
  }
  .gallery__item:hover button {
    opacity: 1;
  }
}
.gallery__item.active {
  transform: none !important;
}
.gallery .modal-open {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  width: 50px;
  height: 50px;
  background-color: var(--sk-color-salmon);
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  transition-timing-function: ease-in-out;
}
.gallery .modal-open span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gallery .modal-open span::before, .gallery .modal-open span::after {
  position: absolute;
  content: " ";
  height: 25px;
  width: 3px;
  background-color: var(--sk-color-white);
  border-radius: 10px;
  transition: background-color 0.4s ease;
}
.gallery .modal-open span::after {
  transform: rotate(-90deg);
}
.gallery__modal {
  width: 100%;
  height: 100%;
}
.gallery__modal .modal__container {
  width: 100%;
  height: 100%;
}
.gallery__modal .modal__wrapper {
  width: 100%;
  height: 100%;
}
.gallery__modal .modal__content {
  width: 100%;
  height: 100%;
}
.gallery__modal .modal__close {
  display: none;
}
.gallery__modal img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.gallery__modal.modal .modal__close {
  display: block;
}
.gallery__modal.modal .modal__wrapper {
  max-width: 1000px;
  max-height: 800px;
  width: 90%;
  height: 80vh;
}
