@font-face {
  font-family: Martian Grotesk;
  font-stretch: 75% 200%;
  font-style: normal;
  font-weight: 100 1000;
  src: url("https://cdn.vla.so/martian-grotesk.woff2") format("woff2");
}

:root {
  --font: "Martian Grotesk", sans-serif;

  --line-height: 1.5;
  --font-weight: 350;
  --font-size: 16px;

  --accent-RGB: 180, 150, 110;
  --hover-RGB: 214, 254, 81;
  --background-RGB: 0, 0, 0;
  --text-RGB: 255, 255, 255;
}

html, body {
  color: rgba(var(--text-RGB), 1);
  background-color: rgba(var(--background-RGB), 1);
  font-family: var(--font);
  line-height: var(--line-height);
  font-weight: var(--font-weight);
  font-size: var(--font-size);
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column; 
  min-height: 100vh;
}

main {
  flex: 1 0 auto; 
}

a {
  color: rgba(var(--accent-RGB), 1);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-RGB), .3);
}

a:hover, a.hover  {
  color: rgba(var(--hover-RGB), 1);
  border-bottom: 1px solid rgba(var(--hover-RGB), .3);
}

a img {
  border-bottom: none;
}

main, header, footer {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

header {
  padding: 20px 20px 10px 20px;
}

footer {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 4px;
  flex-shrink: 0;
  padding: 20px;
}

footer p {
  margin: 0;
}

#title {
  display: block;
  width: 100%;
  text-transform: uppercase;
  font-weight: 1000;
  font-stretch: 200%;
  color: rgba(var(--accent-RGB), 1);
}

  #title a, #title a:hover {
    border-bottom: none;
  }

  #title a:hover {
    color: rgba(var(--hover-RGB), 1);
  }

.grid_sizer {
  visibility: hidden;
  height: 0;
}

.gallery {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.gallery.is_ready {
  opacity: 1;
}

.gallery__item {
  box-sizing: border-box;
  padding: 20px;

}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery__item.hidden {
  display: none;
}


.my-fancybox .fancybox-button {
  background-color: transparent;
  border-bottom: none;
}

.my-fancybox .fancybox-button:hover {
  background-color: transparent;
  border-bottom: none;
}

#filter {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  row-gap: 4px;
  margin-bottom: 6px;
  width: 80%;
}

  .filter__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    margin: 10px 0 32px 0
  }

  .filter__button, #filter__reset, #filter__more, #switch__new {
    padding: 4px 8px;
    background: none;
    color: rgba(var(--text-RGB), 1);
    border: none;
    cursor: pointer;
    border-radius: 20px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 300;
  }

  #no-new-items {
    display: block;
    font-size: 14px;
    font-weight: 300;
    padding: 4px 8px;
    margin-top: 24px;
    color: rgba(var(--text-RGB), .5);
  }

  #switch__new {
    position: relative;
    margin-right: 10px;
  }

  #switch__new::after {
    content: "";
    position: absolute;
    right: -6px;
    width: 1px;
    height: 20px;
    background-color: rgba(var(--text-RGB), .2);
  }

  #switch__new input {
    display:none;
  }

  #switch__new i {
    position: relative;
    display: inline-block;
    margin-right: 8px;
    width: 34px;
    height: 18px;
    background-color: rgba(var(--text-RGB), 1);
    border-radius: 20px;
    vertical-align: text-bottom;
    transition: all .2s ease-out;
  }

  #switch__new i::before {
    content: "";
    position: absolute;
    left: 0;
    width: 30px;
    height: 14px;
    background-color: rgba(var(--text-RGB), 1);
    border-radius: 8px;
    transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
    transition: all .2s ease-out;
  }

  #switch__new i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: rgba(var(--background-RGB), 1);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(var(--background-RGB), .2);
    transform: translate3d(2px, 2px, 0);
    transition: all .2s linear;
  }

  #switch__new:active i::after {
    width: 18px;
    transform: translate3d(2px, 2px, 0);
    transition: none
  }

  #switch__new:active input:checked+i::after {
    transform: translate3d(14px, 2px, 0)
  }

  #switch__new input:checked+i::before {
    transform: translate3d(16px, 2px, 0) scale3d(0, 0, 0);
  }

  #switch__new input:checked+i::after {
      transform: translate3d(18px, 2px, 0);
  }

  #switch__new input:checked+i {
    background-color: rgba(var(--hover-RGB), 1);
  }

  #filter__reset, #filter__more {
    color: rgba(var(--accent-RGB), 1);
  }

  .filter__button:hover, #filter__reset:hover, #filter__more:hover {
    background: rgba(var(--text-RGB), .2);
    color: rgba(var(--text-RGB), 1);
  }

  .filter__button.active {
    background-color: rgba(var(--hover-RGB), 1);
    color: rgba(var(--background-RGB), 1);
  }

  .filter__group {
    display: flex;
    align-items: center;
  }

  .filter__button {
    display: none;
  }

  .filter__button:nth-child(-n+16) {
    display: inline-block;
  }

  .blur-up {
    filter: blur(5px);
    transition: filter 0.3s;
}

.blur-up.lazyloaded {
    filter: blur(0);
}

/* Адаптив */

@media (max-width: 1024px) {
  #filter {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .filter__wrapper {
    margin: 10px -10px 32px -10px;
  }
  .gallery {
    padding: 0 10px 0 10px;
  }
  .gallery__item {
    padding: 10px;
  }
}