.cat-galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-top: 60px;
  grid-gap: 30px;
}
.cat-galerie .item a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
}
.cat-galerie .item a {
  position: relative;
}
.cat-galerie .item a .cadre {
  background: var(--third-color);
  outline: none;
  position: relative;
  padding: 16px 50px;
  overflow: hidden;
  color: #fff;
  transition: all 400ms ease-in-out;
  border-radius: 0 0 10px 10px;
}
.cat-galerie.detail a {
  display: block;
}
.cat-galerie.detail a:after {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: url("../images/loupe.svg") 50% 60% no-repeat #00000075;
  opacity: 0;
  content: "";
}
.cat-galerie .item a .cadre:before {
  content: attr(data-hover-label);
  position: absolute;
  left: 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0;
  transition: all .5s ease-in-out;
}
.cat-galerie .item a .cadre div {
  letter-spacing: 1px;
  transition: all .5s ease-in-out;
}
@media (min-width:1201px) {
  .cat-galerie.detail a:hover:after {
    opacity: 1;
  }
  .cat-galerie .item a:hover .cadre {
    background: var(--main-color);
  }
  .cat-galerie .item a:hover .cadre:before {
    opacity: 1;
    transform: translate(0, 0);
  }
  .cat-galerie .item a:hover .cadre div {
    opacity: 0;
  }
}
@media (max-width:1200px) {
  .cat-galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width:1000px) {
  .cat-galerie {
    grid-template-columns: 1fr;
  }
}
/***** galerie *****/
.galerie_details {
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
}
.galerie_details .item {
  display: block;
}
.galerie_details .item:after {
  width: 100%;
  height: 100%;
  background: url("../images/loupe.svg") 50% no-repeat;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  content: "";
}
.galerie_details .item img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 300ms ease-in-out;
  border-radius: 10px; 
}
@media (min-width:1201px) {
  .galerie_details .item:hover:after {
    opacity: 1;
  }
  .galerie_details .item:hover img {
    filter: brightness(0.4);
  }
}
@media (max-width:1400px) {
  .galerie_details {
    padding: 0;
  }
}
@media (max-width:1200px) {}
@media (max-width:1000px) {
  .galerie_details {
    column-gap: 10px;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:600px) {
  .galerie_details {
    grid-template-columns: 1fr;
  }
}
/***** custom fancybox *****/
.fancybox-bg {
  background: #fff;
}
.fancybox-is-open .fancybox-bg {
  opacity: 1;
}
.fancybox-button, .fancybox-infobar__body {
  background: none;
  color: var(--third-color);
  font: 400 14px/60px var(--font-family);
  letter-spacing: 0.8px;
}
.fancybox-infobar {
  display: none;
}
.fancybox-toolbar {
  top: 30px;
  right: 30px;
  opacity: 1 !important;
}
.fancybox-show-nav .fancybox-arrow {
  opacity: 1;
  transition: all 400ms ease-in-out;
}
.fancybox-button--close {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  background: var(--third-color);
  transition: all 400ms ease-in-out;
}
.fancybox-button--close:before {
  width: 25px;
  height: 1px;
  left: calc(50% - 13px);
  top: calc(50% - 1px);
  background: #fff;
}
.fancybox-button--close:after {
  width: 25px;
  height: 1px;
  left: calc(50% - 13px);
  top: calc(50% - 1px);
  background: #fff;
}
.fancybox-arrow {
  width: 60px;
  height: 60px;
  background: url("../images/arrow_next_wihte.svg") 54% 50% no-repeat var(--third-color);
  border-radius: 100%;
  margin-top: -30px;
}
.fancybox-arrow:after {
  display: none;
}
.fancybox-arrow--right {
  right: 30px;
}
.fancybox-arrow--left {
  left: 30px;
}
@media (min-width:1201px) {
  .fancybox-button:hover:not([disabled]) {
    background: var(--main-color);
  }
  .fancybox-arrow:hover:not([disabled]) {
    opacity: 0.5;
  }
}
@media (max-width:1200px) {
  .fancybox-arrow {
    border: none;
  }
}
@media (max-width:600px) {
  .fancybox-button, .fancybox-infobar__body {
    line-height: 40px;
  }
  .fancybox-toolbar {
    top: 0;
    right: 0;
  }
  .fancybox-button--close {
    width: 45px;
    height: 45px;
    border-radius: 0 0 0 5px;
  }
  .fancybox-button--close:before {
    width: 21px;
    left: calc(50% - 11px);
  }
  .fancybox-button--close:after {
    width: 21px;
    left: calc(50% - 11px);
  }
  .fancybox-arrow {
    width: 40px;
    height: 50px;
    margin-top: -25px;
    background-size: 25% auto;
  }
  .fancybox-arrow--right {
    right: 7.5vw;
  }
  .fancybox-arrow--left {
    left: 7.5vw;
  }
}