.u-gallery {
 
  width: 100%;
}

.u-gallery__image {
  cursor: zoom-in;
}
.u-gallery__image img {
  max-width: 100%;
  width: 100%;
  display: block;
}

.u-gallery__hidden {
  display: none;
}

.u-gallery__images {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  line-height: 0px;
  margin-top: -63px;
  position:relative;
  z-index:1;
}

.u-gallery__tmb {
  height: 129px;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFF;
  cursor: zoom-in;
}
.u-gallery__tmb_last {
  cursor: pointer;
  position: relative;
}
.u-gallery__tmb_last:after {
  content: "";
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  background-color: rgba(161, 205, 63, 0.9);
}

.u-gallery__tmb-text {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  line-height: 14px;
  text-decoration-line: underline;
  text-transform: uppercase;
  font-feature-settings: "pnum" on, "lnum" on;
}

.fancybox-container .fancybox-inner .fancybox-content img {
  max-width: 100%;
}




.upside-modal-gallery {
	position: fixed;
	top: 0px;
	left:0px;
	right:0px;
	bottom:0px;
	overflow: hidden;
}
.upside-modal-gallery__grid {
	display: grid;
	grid-template-columns: repeat(99999,  100vw);
	grid-auto-columns: 100vw;
	margin-left: 0px;
	transition: margin 0.3s;
}
.upside-modal-gallery .image {
	width: 100%;
	height: 100vh;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
.upside-modal-gallery__close {
	position: fixed;
	top: 30px;
	right: 30px;
	cursor: pointer;
	z-index: 2;
}
.upside-modal-gallery__left {
	margin-top: 10vh;
	width: 50vw;
	height: 80vh;
	position: fixed;
	z-index: 1;
	cursor:  url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M62.5 25L37.5 50L62.5 75' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") 50 50, auto;
}
.upside-modal-gallery__right {
	margin-top: 10vh;
	left: 50vw;
	width: 50vw;
	height: 80vh;
	position: fixed;
	z-index: 1;
	cursor:  url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M37.5 75L62.5 50L37.5 25' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") 50 50, auto;
}




@media (max-width: 768px) {
  .u-gallery__images {
    grid-template-columns: repeat(3, 1fr);
  }

  .u-gallery__tmb:nth-child(3) {
    display: none;
  }
  
  
  .upside-modal-gallery {
	  overflow-y: scroll;
	  background-color: #FFF;
  }
  
  .upside-modal-gallery__close {
	top: 20px;
	left: 20px;
	right: initial;
  }
  
  .upside-modal-gallery__grid {
	 display: block;
  }
  
  .upside-modal-gallery__left {
	  display: none;
  }
  
  .upside-modal-gallery__right {
	  display: none;
  }
  
  .upside-modal-gallery .image {
	 height: 450px; 
	 margin-bottom: 20px;
  }
  
  
}
@media (max-width: 450px) {
  .u-gallery__tmb {
    height: 90px;
  }
}

/*# sourceMappingURL=upside-custom-gallery.css.map */
