.project-wrapper a {
    display: block;
    margin: 0;
    overflow: hidden;
    padding: 0!important;
}
.project-wrapper a.fancybox {
    cursor: pointer;
    margin: 0;
    overflow: hidden;
    padding: 0!important;
    display: block;
    height: 240px; width: 240px;
    position: relative;
}
figcaption.mask {
    background-color: rgba(54, 55, 50, 0.75);
    color: #fff;
    padding: 25px;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    margin: 0;
    -webkit-transition: all 0.4s;
       -moz-transition: all 0.4s;
        -ms-transition: all 0.4s;
         -o-transition: all 0.4s;
            transition: all 0.4s;
}
figcaption.mask h3 {
    margin: 0 auto;
    margin-top: 40%;
    color: #fff;
}
figcaption.mask h4 {
    color: white; font-weight: 300; font-size: 1em;
    }
figcaption.mask p, .fancybox-title h4, .fancybox-title h3.tile {
    display: none;
}
.fancybox-caption p {
    display: block;}
a.fancybox:hover figcaption.mask {
    opacity: 1;
    top: 0;}
a.fancybox img {
    width: 240px; height: 240px;
    scale: 1.0;
    overflow: hidden;
    transition: all .8s;}
a.fancybox:hover img {
        scale: 1.25;
        overflow: hidden!important;
}
/* @media{
    a.fancybox img {    */
/*      lg | md | xs    */
/*      width: containerwidth /3 | /4 | /6;  */
/*      height: same as width   }}*/
@media all and (min-width: 768px) {
  a.fancybox img {
  }
  a.fancybox.hidden img {
    display: none;
  }
  .fancybox-thumbs {
    top: auto;
    width: auto;
    bottom: 0;
    left: 0;
    right : 0;
    height: 60px;
    padding: 6px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4);
  }
.fancybox-show-thumbs .fancybox-inner {
   right: 0;
   left: 0;
    /*bottom: 0;*/
    width: 98%;
    margin: 0 auto;
    padding: 40px; border: 1px solid green;
}
  .fancybox-thumbs a {
    background-image: none!important;
    background-color: white;
    opacity: 0.6;
    height: 20px;
    width: 20px;
    border-radius: 10px;
    margin: 0 12px;
    border: none!important;
  }
  *[fancybox-thumbs]:before {
    border: none!important;
  }
  .fancybox-thumbs a:hover,
  .fancybox-thumbs a:active,
  a.fancybox-thumbs-active {
    opacity: 1;
  }
  a.fancybox-thumbs-active {
  background-color: fuchsia;
}
.fancybox-thumbs__list {
  margin: 0 auto;
  border: 1px solid blue;
}
.blurify { backdrop-filter: blur(7px); }
.fancybox-caption span.year {
    font-size: 13px;
    line-height: 19px;
    color: var(--ph_midtext);
    font-weight: 500;
    display: block;
    margin: 2px 0;
}
.fancybox-caption {
  background: rgba(0,0,0,0.6); font-size: 1em;
  height: auto;
  bottom: 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 99996;
  pointer-events: none;
  text-align: left;
  color: white;
  overflow: hidden;
  padding: 30px 40px;
  border: 1px solid rgba(200,200,200,0.2);
}
.fancybox-caption.caption--image {
   width: 100%;
   bottom: 0;
   transform: translateY(100%);
   overflow: hidden;
}
.fancybox-caption h3 {font-size: 1.2em; margin: 4px 0;}
.fancybox-caption p {font-size: 1em; line-height: 1.1em; width: 90%; letter-spacing: 0.4px; color: var(--ph_litetext);}
.fancybox-inner > .fancybox-caption {
    display: none;
}
.fancybox-infobar {
    position: absolute;
}
.ph-fancybox-base {
  border: 1px solid red;
/*  max-width: 96%;
  max-height: 93%;
  top: 2%;*/
/*  left: 50%!important;
  transform: translateX(-50%)!important;
  margin: 0 auto;*/
}
/*.ph-fancybox-slide {
  padding: 0;
  margin: 0 auto;
  border: 1px solid yellow;
}*/
/*.ph-fancybox-slide .fancybox-content { 
    background-color: green;
}*/
.fancybox-container {padding: 50px; border: 1px solid red;}
.fancybox-wrap {
    width: 92%!important;
/*    background-color: #000;*/
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
     }
.fancybox-content {
    border: 1px solid rgba(200,200,200,0.2);
    background: #000!important;
    padding: 40px!important; margin: 0 auto;
} 
.fancybox-image {background: #000; max-width: 96%; height: auto; }

