
#gallery-page {
  display:flex;
  padding: 0px 0px;
  flex-direction: column;
  justify-content: flex-end;
  align-content: center;
  align-items: center;
  /* background: url('/image/catalog/design/gallery_fon.svg') bottom right no-repeat; */
}
#gallery-page .gallery_block {
  padding:128px 0px;
}
#gallery-page .rb-gallery-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* column-count: 3; */
  gap: 30px;
  margin-top: 115px;
}
#gallery-page .rb-gallery-item {
  border-radius: 43px;
  overflow: hidden;
  margin: 0px 0 0px;
}
#gallery-page .rb-gallery-item:last-child {
  margin-right:0px;
}
#gallery-page .rb-gallery-inner .rb-gallery-img {
      transition: 0.2s ease-in-out;
      -webkit-transition: 0.2s ease-in-out;
      -moz-transition: 0.2s ease-in-out;
      -ms-transition: 0.2s ease-in-out;
      width: 100%;
      height: auto;
}
#gallery-page .rb-gallery-inner:hover .rb-gallery-img {
      transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    -ms-transition: 0.2s ease-in-out;
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
      filter: brightness(0.5);
    -webkit-filter: brightness(0.5);
    -moz-filter: brightness(0.5);
    -ms-filter: brightness(0.5);
}
#gallery-page .rb-gallery-link:hover:after {
    content: '';
    display: block;
    width: 70px;
    height: 70px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url(/image/catalog/design/zoom.svg) center no-repeat;
    background-size: 100%;
    transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    -ms-transition: 0.2s ease-in-out;
}
#gallery-page .nav-tabs {
  text-align:center;
  display:flex;
  gap: 60px;
  justify-content: center;
  border: 0px;
  margin: 80px 0px 0px;
}
#gallery-page .nav-tabs>li>a {
  background: transparent;
  border: 0px;
  font-size: 21.51px;
  position:relative;
  padding: 0px;
  padding-left: 21px;
  color: var(--text);
}
#gallery-page .nav-tabs>li.active>a {
  color:#ffc701;
}
#gallery-page .nav-tabs>li>a:before {
  content:'';
  width:9px;
  height:9px;
  background:#ffc701;
  border-radius:50%;
  margin-right:12px;
  position:absolute;
  top: 11px;
  left:0px;
}
#gallery-page .tab-pane:not(.active) .rb-gallery-inner .rb-gallery-img {
  display:none;
}
@media (max-width:1919px) {
  .zagol2 {
    font-size: 68.32px;
  }
}
@media (max-width:1599px) {
  #gallery-page .rb-gallery-link:hover:after {
    width:65px;
    height:65px;
  }
  .zagol2 {
        font-size: 58px;
    }
}
@media (max-width:1439px) {
  #gallery-page .rb-gallery-link:hover:after {
    width:60px;
    height:60px;
  }
    .zagol2 {
        font-size: 58px;
    }
}
@media (max-width:1199px) {
  #gallery-page .rb-gallery-link:hover:after {
    width:55px;
    height:55px;
  }
    .zagol2 {
        font-size: 50px;
        background-size: 60px;
    }
}
@media (max-width:991px) {
  #gallery-page .nav-tabs {
    gap:40px;
  }
  #gallery-page .rb-gallery-item {
    border-radius:35px;
  }
  #gallery-page .rb-gallery-link:hover:after {
        width:50px;
        height:50px;
  }
  .zagol2 {
     font-size: 42px;
  }
}
@media (max-width:767px) {
  #gallery-page .nav-tabs>li>a {
    font-size: 19px;
  }
  #gallery-page .nav-tabs {
    gap:20px;
  }
  #gallery-page .rb-gallery-list {
    gap:20px;
  }
  #gallery-page .rb-gallery-item {
    border-radius:30px;
  }
  #gallery-page .rb-gallery-link:hover:after {
    width:40px;
    height:40px;
  }
  .zagol2 {
     font-size: 40px;
  }
}
@media (max-width:575px) {
  #gallery-page .nav-tabs {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
  }
  #gallery-page .nav-tabs>li>a {
    font-size: 19px;
  }
  #gallery-page .nav-tabs {
    gap:15px;
    margin-left: auto;
    margin-top: 40px;
    margin-bottom: 0px;
    float: none;
    /* border: 1px solid red; */
  }
  #gallery-page .gallery_block {
    text-align:center;
  }
  #gallery-page .rb-gallery-list {
    margin-top:40px;
    gap:10px;
  }
  #gallery-page .rb-gallery-item {
    border-radius:20px;
  }
    
    #gallery-page .rb-gallery-link:hover:after {
        width:35px;
        height:35px;
    }
    .zagol2, h2{
    font-size: 37px;
  }
}
@media (max-width:479px) {
 #gallery-page .rb-gallery-item {
    border-radius:15px;
  }
  
    #gallery-page .rb-gallery-link:hover:after {
        width: 32px;
        height: 32px;
    }
    .zagol2 {
        font-size: 34px;
    }
}