.gallery-panel {
  margin-bottom: 24rem;
}

.gallery-content {
  position: relative;
}

.gallery-filter {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32rem;
}

.gallery-filter-items {
  display: flex;
  flex-wrap: wrap;
  max-width: calc(100% - 480rem - 32rem);
  gap: 18rem;
}

.gallery-filter-item {
  flex: none;
}

.gallery-filter-item-param {
  position: relative;
}

.gallery-filter-item-param-value {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  height: 64rem;
  background-color: #110424;
  border-radius: 64rem;
  padding: 0 32rem;
  font-size: 20rem;
  transition-duration: 350ms;
  transition-property: background, box-shadow;
  z-index: 2;
  cursor: pointer;
}

.gallery-filter-item-param-value:hover {
  background-color: #2A0959;
}

.gallery-filter-item-param.has .gallery-filter-item-param-value {
  background-color: #2A0959;
}

.gallery-filter-item-has {
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 12rem;
  background-color: #49F2D6;
  right: 4rem;
  top: 6rem;
  transition-duration: 350ms;
  transition-property: opacity, visibility;
}

.gallery-filter-item-param:not(.has) .gallery-filter-item-has {
  opacity: 0;
  visibility: hidden;
}

.gallery-filter-item-param.open .gallery-filter-item-param-value {
  background-color: #2A0959;
  box-shadow: 0 0 30rem 0 #77D8C040 inset;
}

.gallery-filter-item-param-modal {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8rem;
  width: max-content;
  max-width: 371rem;
  transition-duration: 350ms;
  transition-property: opacity, visibility, transform;
  z-index: 1;
}

.gallery-filter-item-param:not(.open) .gallery-filter-item-param-modal {
  opacity: 0;
  visibility: hidden;
}

.gallery-filter-item-param-val-check {
  position: relative;
  width: 20rem;
  height: 20rem;
  transition-duration: 350ms;
  transition-property: opacity, visibility;
}

.gallery-filter-item-param-content label input:not(:checked)+.gallery-filter-item-param-val .gallery-filter-item-param-val-check {
  opacity: 0;
  visibility: hidden;
}

.gallery-filter-item-param-val-check:after {
  content: '';
  border: 1.5rem solid #fff;
  border-top: none;
  border-left: none;
  width: 7rem;
  height: 13rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
}

.gallery-filter-item-param-content {
  background-color: #110424;
  border-radius: 16rem;
  box-shadow: 0 0 32rem 0 rgb(119 216 192 / 10%);
  overflow: hidden;
  transition-duration: 350ms;
  transition-property: transform;
}

.gallery-filter-item-param:not(.open) .gallery-filter-item-param-content {
  transform: translatey(-8rem);
}

.gallery-filter-item-param-content label {
  display: block;
  cursor: pointer;
}

.gallery-filter-item-param-content label input {
  display: none;
}

.gallery-filter-item-param-val {
  display: flex;
  align-items: center;
  padding: 14rem 20rem;
  transition-duration: 350ms;
  transition-property: background;
  gap: 16rem;
}

.gallery-filter-item-param-content label input:checked+.gallery-filter-item-param-val {
  background-color: #2A0959;
}

.gallery-filter-item-param-content label:first-child .gallery-filter-item-param-val {
  padding-top: 20rem;
}

.gallery-filter-item-param-content label:last-child .gallery-filter-item-param-val {
  padding-bottom: 20rem;
}

.gallery-filter-item-param-val-text {
  font-size: 20rem;
  line-height: 130%;
  width: 100%;
}

.gallery-filter-item-theme-icon {
  width: 20rem;
  margin-right: 8rem;
  flex: none;
}

.gallery-filter-item-arrow {
  width: 14rem;
  margin-left: 12rem;
  transition-duration: 350ms;
  transition-property: transform;
  flex: none;
}

.gallery-filter-item-param.open .gallery-filter-item-arrow {
  transform: rotateX(180deg);
}

.gallery-search {
  padding: 0 24rem;
  position: relative;
  width: 100%;
  max-width: 480rem;
  margin-right: auto;
  /* flex: none; */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: 1rem solid #2A0959;
  border-radius: 5rem;
}

.gallery-search input {
  height: 64rem;
  font-size: 20rem;
  padding-left: 16rem;
  padding-right: 16rem;
  transition-duration: 350ms;
  transition-property: border-color;
}

.gallery-search input:focus {
  border-color: #7417E5;
}

.gallery-search svg {
  /* position: absolute;
      top: 50%;
      left: 20rem;*/
  width: 20rem;
  /* transform: translatey(-50%);  */
  pointer-events: none;
}

.gallery-search-clear {
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
}

.gallery-search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.gallery-filter-reset {
  padding: 20rem 24rem;
  margin: 48rem auto;
  background: #2F065D;
  box-shadow: inset 0px 0px 64px rgba(75, 219, 191, 0.25);
  border-radius: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
  gap: 20rem;
  position: sticky;
  bottom: 16rem;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.gallery-filter-reset.visible {
  opacity: 1;
  visibility: visible;
}

.gallery-filter-reset__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-size: 14rem;
  letter-spacing: 4%;
  text-transform: uppercase;
  width: fit-content;
  padding: 16rem 32rem;
  border-radius: 96rem;
  background: radial-gradient(50% 50% at 50% 50%, #963EC6 0%, #00ADDD 100%);
  box-shadow: 0 0 32rem 0 #77D8C0 inset;
  overflow: hidden;
  gap: 10rem;
  flex: none;
  z-index: 0;
  cursor: pointer;
}

.gallery-filter-reset__button_disabled {
  pointer-events: none;
  opacity: 0.8;
}

.gallery-filter-reset__button:before {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  background: radial-gradient(92.53% 119.79% at 50% 50%, #963EC6 0%, #00ADDD 100%);
  box-shadow: 0 0 32rem 0 #77D8C0 inset;
  transition-duration: 350ms;
  transition-property: opacity;
  z-index: -1;
}

.gallery-filter-reset__button:hover:before {
  opacity: 1;
}

.gallery-filter-reset__button svg {
  width: 16rem;
  flex: none;
}

.gallery-filter-reset__text {
  font-size: 18rem;
  color: #FFFFFF;
}

@media (max-width: 1279px) {
  .gallery-search {
    max-width: 468rem;
  }

  .gallery-search input {
    font-size: 18rem;
  }

  .gallery-filter {
    flex-direction: column;
  }

  .gallery-filter-item-param-value {
    font-size: 18rem;
  }

  .gallery-filter-item-param-checkbox-val {
    font-size: 18rem;
  }

  .gallery-filter-items {
    max-width: 100%;
    gap: 8rem;
  }

  .gallery-filter-item-param-modal {
    left: 0;
    right: auto;
  }

  .gallery-filter-item-param-val-text {
    font-size: 18rem;
  }

  .gallery-filter-item-param-val {
    padding: 12rem 20rem;
  }

  .gallery-filter-item-param-content label:first-child .gallery-filter-item-param-val {
    padding-top: 18rem;
  }

  .gallery-filter-item-param-content label:last-child .gallery-filter-item-param-val {
    padding-bottom: 18rem;
  }
}

@media (max-width: 767px) {
  .gallery-search input {
    font-size: 16rem;
  }

  .gallery-search input {
    height: 56rem;
  }

  .gallery-filter {
    gap: 24rem;
  }

  .gallery-filter-item-param-value {
    height: 44rem;
    font-size: 16rem;
    padding: 0 15rem;
  }

  .gallery-filter-item-param-checkbox-val {
    height: 44rem;
    font-size: 16rem;
    padding: 0 15rem;
    gap: 10rem;
  }

  .gallery-filter-item-param-checkbox-check {
    width: 18rem;
    height: 18rem;
  }

  .gallery-filter-item-param-checkbox-check:after {
    width: 6rem;
    height: 12rem;
  }

  .gallery-filter-item-arrow {
    width: 10rem;
  }

  .gallery-filter-item-theme-icon {
    width: 14rem;
  }

  .gallery-filter-item-param-val-text {
    font-size: 16rem;
  }

  .gallery-filter-item-param-val {
    padding: 16rem;
  }

  .gallery-filter-items {
    gap: 5rem;
  }

  .gallery-filter-item-has {
    width: 10rem;
    height: 10rem;
  }

  .gallery-filter-item-has {
    right: 0rem;
    top: 4rem;
  }

  .gallery-empty {
    font-size: 16rem;
    padding: 24rem 0;
  }

  .gallery-filter-item-param-modal {
    position: fixed;
    max-width: none;
    width: 100%;
    height: 100%;
    inset: 0;
    -webkit-backdrop-filter: blur(10rem);
    backdrop-filter: blur(10rem);
    padding: 42rem 0 0 0;
    text-align: center;
    white-space: nowrap;
    z-index: 110;
    overflow: auto;
    scrollbar-width: none;
    overscroll-behavior: none;
    transition-property: opacity, visibility;
    transition-duration: 350ms;
  }

  .gallery-filter-item-param-modal:before {
    content: '';
    display: inline-block;
    width: 0;
    height: 100%;
    vertical-align: bottom;
    overflow: hidden;
  }

  .gallery-filter-item-param-content {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    text-align: left;
    width: 100%;
    white-space: normal;
    padding-bottom: 15rem;
    border-radius: 24rem 24rem 0 0;
  }

  .gallery-filter-item-param:not(.open) .gallery-filter-item-param-content {
    transform: translatey(100%);
  }

  .gallery-filter-item-param-header {
    display: flex;
  }
}

.gallery__categories {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48rem;
}

.gallery__category {
  width: fit-content;
  padding: 16rem 32rem;
  border-radius: 99px;
  background-color: #2A0959;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: .3s;
  font-size: 20rem;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.gallery__category:hover {
  box-shadow: 0px 0px 64px 0px #77D8C040 inset;
}

.gallery__category_active {
  border-color: #49F2D6;
}

@media (max-width: 767px) {
  .gallery__category {
    font-size: 16rem;
  }
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48rem;
}

.gallery-item {
  padding: 8rem;
  overflow: hidden;
  border-radius: 24rem;
  background-color: #2A0959;
  display: flex;
  flex-direction: column;
}

.gallery-item__img-container {
  position: relative;
  aspect-ratio: 416/277;
  border-radius: 16rem;
  overflow: hidden;
}

.gallery-item__img-container::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(40, 0, 82, 0.7) 100%);
}

.gallery-item__img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16rem;
}

.gallery-item__counter {
  position: absolute;
  z-index: 2;
  bottom: 12rem;
  left: 12rem;
  font-size: 14rem;
  color: #fff;
  text-transform: uppercase;
}

.gallery-item__info {
  padding: 20rem 16rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-item__category {
  margin-bottom: 8rem;
  font-size: 14rem;
  color: #49F2D6;
  text-transform: uppercase;
}

.gallery-item__direction {
  font-size: 14rem;
  color: #FFFFFF80;
  text-transform: uppercase;
  margin-bottom: 16rem;
  display: block;
  /*padding: 0 12px;
  margin-top: -10px;*/
}

.gallery-item__date {
  margin-top: auto;
  font-size: 14rem;
  color: #FFFFFF80;
  text-transform: uppercase;
}

.gallery-item__title {
  margin-bottom: 8rem;
  font-size: 25rem;
  color: #FFFFFF;
}

@media (max-width: 1279px) {
  .gallery-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16rem;
  }

  /*.gallery-item__direction{
    padding: 0 16px;
  }*/
}

@media (max-width: 767px) {
  .gallery-list {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}