
.kg-gallery-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;;
  background-color: rgba(0,0,0,0.9);
  z-index: 9999;
}

.scroll-off { 
  overflow: hidden;
}

.kg-zoomed {
  transform: scale(1.6);
}

.kg-title {
  color: white;
  text-align: center;
  margin: 8px;
}

.kg-gallery {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.kg-gallery a {
  flex: 0 0 auto;
  padding: 2px;
  margin: 0 2px;
}

.kg-gallery-images-list img {
  max-height: 100px;
}

.kg-gallery-thumbnails-bar {
  overflow: hidden;
  position: relative;
}

.kg-gallery-arrow {
  position: absolute;
  width: 20px;
  height: 100%;
  display: block;
  top: 0;
  background: transparent;
  overflow: hidden;
  transition: border-color 0.3s;
}

.kg-gallery-arrow:active,
.kg-gallery-arrow:focus,
.kg-gallery-arrow:hover {
  background: transparent;
}

.kg-gallery-arrow:hover::after {
  border-color: rgba(255,255,255,0.6);
}

.kg-gallery-arrow:after {
  display: block;
  content: '';
  width: 60px;
  height: 60px;
  border: 14px solid rgba(255,255,255,0.3);
}

.kg-gallery-arrow-left {
  left: 6px;
}

.kg-gallery-arrow-right {
  right: 6px;
}

.kg-gallery-arrow-left:after {
  transform: rotate(45deg);
}

.kg-gallery-arrow-right:after {
  transform: rotate(45deg) translate(-40px, 40px);
}

.kg-gallery-images-list {
  padding: 0;
  margin: 0 60px -17px 60px;
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.kg-gallery-main-image {
  max-height: 70vh;
  margin: auto;
  display: block;
  width: auto;
  transition: transform 0.2s;
}

.kg-gallery-close {
  position: absolute;
  right: 20px;
  top: 20px;
	width: 40px;
  height: 40px;
	cursor: pointer;
}

.kg-gallery-close:after, 
.kg-gallery-close:before {
	content: '';
  position: absolute;
	top: 50%;
  width: 100%;
  display: block;
  background-color: #cecece;
  height: 4px;
  transition: background-color .3s;
  border-radius: 4px;
}

.kg-gallery-close:after {
  transform: rotate(-45deg);
}

.kg-gallery-close:before {
  transform: rotate(45deg);
}

.kg-gallery-close:hover::after,
.kg-gallery-close:hover::before {
  background-color: white;
}
