html:not(.touch) .gallery-image figcaption, .touch .gallery-image figcaption, .mfp-with-zoom .mfp-title {
background: rgb(0 0 0 / 50%);
    color: #ffffff;
    width: 100%;
    height: 100%;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    position: relative;
    display: grid;
    justify-items: center;
    align-items: center;
    /*transform: translateY(101%);*/
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
html:not(.touch) .gallery-image figcaption:before, .touch .gallery-image figcaption:before, .mfp-with-zoom .mfp-title:before, html:not(.touch) .gallery-image figcaption:after, .touch .gallery-image figcaption:after, .mfp-with-zoom .mfp-title:after {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  padding: 1em;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  z-index: -1;
}

html:not(.touch) .gallery-image figcaption.visible, html:not(.touch) .gallery-image:hover figcaption, .touch .gallery-image figcaption, .mfp-with-zoom .visible.mfp-title, .mfp-with-zoom.mfp-ready .mfp-title {
  opacity:1;

}

html:not(.touch) .gallery-image figcaption.visible:after, html:not(.touch) .gallery-image:hover figcaption:after, .touch .gallery-image figcaption:after, .mfp-with-zoom .visible.mfp-title:after, .mfp-with-zoom.mfp-ready .mfp-title:after {

}

html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

body {
  font-family: "Montserrat", sans-serif;
}


.gallery-image {
    position: relative;
    background: white;
    float: left;
    width: 275px;
    height: 275px;
    margin: 5px;
}

.gallery-image:before, .gallery-image:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.gallery-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-height: calc(100% - 40px);
    max-width: calc(100% - 40px);
    width: auto;
    height: auto;
    margin: 0 auto;
}
html:not(.touch) .gallery-image {
  overflow: hidden;
}
.touch .gallery-image figcaption {
  top: auto;
  bottom: 2em;
}

.mfp-with-zoom .mfp-container, .mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.mfp-with-zoom.mfp-bg {
  background-color: rgba(255, 255, 255, 0.95);
}
.mfp-with-zoom.mfp-ready .mfp-container {
  opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
  opacity: 1;
}
.mfp-with-zoom.mfp-removing .mfp-container, .mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}
.mfp-with-zoom img.mfp-img {
  padding: 0;
}
.mfp-with-zoom .mfp-figure:after {
  top: 0;
  bottom: 0;
}
.mfp-with-zoom .mfp-container {
  padding: 0;
}
.mfp-with-zoom .mfp-content {
  overflow: hidden;
}
.mfp-with-zoom .mfp-bottom-bar {
  top: auto;
  bottom: 0;
  margin-top: 0;
}
.mfp-with-zoom .mfp-title {
  top: auto;
  bottom: 0;
  left:5em;
  opacity: 0;
  display:none;
}

.mfp-arrow {
  opacity: 0.5;
  margin-top: 0 !important;
  width: 20%;
  height: 30%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.mfp-arrow:before {
  margin: 0;
  border: none;
  width: 25px;
  height: 25px;
  -webkit-transform: rotate(-45deg) translate(-50%, -100%);
  transform: rotate(-45deg) translate(-50%, -100%);
  top: 50%;
  left: 50%;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
}
.mfp-arrow:active {
  -webkit-transform: translateY(-50%) scale(0.95);
          transform: translateY(-50%) scale(0.95);
}

.mfp-arrow-left {
  left: 0;
}
.mfp-arrow-left:before{

  border-left: 4px solid;
  border-bottom: 4px solid;
  border-color: #333333;
  -webkit-transform: rotate(+45deg);
  transform: rotate(+45deg);
}


.mfp-arrow-left:hover:after {
	border-color: #2f82ff;
  margin-right: 0;
  opacity:1;
}



.mfp-arrow-right {
  right: 25px;
}
.mfp-arrow-right:before  {

  border-right: 4px solid;
  border-bottom: 4px solid;
  border-color: #333333;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}


.mfp-arrow-right:hover:after {
  margin-left: 0;
  opacity:1;
}

button.mfp-close {
  margin-top: 0 !important;
  width: 20%;
  height: 30%;
  font: 0/0 serif;
  text-shadow: none;
  color: transparent;
  opacity:0.5;
}
button.mfp-close:before, button.mfp-close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 60%;
  margin: 0;
  width: 20px;
  height: 20px;
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
  border-top: 4px solid;
  border-left: 4px solid;
  border-color:#333333;
}
button.mfp-close:before {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
		  margin-left: -6px;
    margin-top: 0px;
}
button.mfp-close:after {
  -webkit-transform: rotate(135deg);
          transform: rotate(135deg);
}
button.mfp-close:hover:before {
border-color:#2f82ff;
  opacity:1;
}
button.mfp-close:hover:after {
border-color:#2f82ff;
  opacity:1;
}
button.mfp-close:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}

a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 1200px){
.gallery-image {
    width: 225px;
    height: 225px;
}

.gallery-image img {
    max-height: calc(100% - 32px);
    max-width: calc(100% - 32px);
}

}

@media (max-width: 992px){
.gallery-image {
    width: 170px;
    height: 170px;
}

.gallery-image img {
    max-height: calc(100% - 24px);
    max-width: calc(100% - 24px);
}
}

@media (max-width: 768px){
.gallery-image {
    width: 126px;
    height: 126px;
}


.gallery-image img {
    max-height: calc(100% - 18px);
    max-width: calc(100% - 18px);
}

.gallery{
  width: auto;
  position: relative;
  display: inline-block;
  margin: 0 auto;
}


@media (min-width: 320px){
.gallery-image {
    width: 126px;
    height: 126px;
}


.gallery-image img {
    max-height: calc(100% - 18px);
    max-width: calc(100% - 18px);
}

.gallery{
  width: 272px;
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
}


@media (min-width: 360px){
.gallery-image {
    width: 146px;
    height: 146px;
}


.gallery-image img {
    max-height: calc(100% - 21px);
    max-width: calc(100% - 21px);
}

.gallery{
  width: 312px;
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
}


@media (min-width: 375px){
.gallery-image {
    width: 162px;
    height: 162px;
}


.gallery-image img {
    max-height: calc(100% - 23px);
    max-width: calc(100% - 23px);
}

.gallery{
  width: 344px;
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
}

@media (min-width: 411px){
.gallery-image {
    width: 180px;
    height: 180px;
}


.gallery-image img {
    max-height: calc(100% - 26px);
    max-width: calc(100% - 26px);
}

.gallery{
  width: 380px;
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
}

}