.sub__top__bg {
  background-image: url("/resources/imgs/gallery/bg_top.jpg");
}

.wrap__tab {
  z-index: 9;
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  background-color: rgba(254, 209, 54, 0.9);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.tab__list {
  display: flex;
  justify-content: space-between;
}

.tab__item {
  width: 100%;
}

.tab__anchor {
  display: block;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 18px;
  color: #666;
}

.tab__anchor.active,
.tab__anchor:hover {
  color: #333;
  font-weight: bold;
}

.gallery__list {
  -moz-column-count: 3;
  -moz-column-gap: 3%;
  -moz-column-width: calc( 33% - 10px );
  -webkit-column-count: 3;
  -webkit-column-gap: 3%;
  -webkit-column-width: calc( 33% - 10px );
  column-count: 3;
  -webkit-column-gap: 10px;
     -moz-column-gap: 10px;
          column-gap: 10px;
  column-width: calc( 33% - 10px );
}

.gallery__item {
  position: relative;
  margin-bottom: 10px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.gallery__item:hover::after {
  opacity: 0;
}

.gallery__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal__scale {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding-bottom: 10%;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.4s;
}

.modal__scale.show {
  visibility: visible;
  opacity: 1;
}

.modal__scale .wrap__modal__img {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translate(-50%, 0);
  max-width: 800px;
  padding: 20px;
  background-color: #000;
}

.modal__scale .wrap__modal__img > img {
  max-height: 100%;
}

