/* Gallery */
.gal-cont {

  width: 70%;
  margin: 0 auto;
}

.gallery {

  width: 100%;
  margin: 0 auto;
  margin-bottom: 0em !important;
}

.gallery-title {
  /*top: 4.5em;*/
  left: 50%;
  transform: translateX(-50%);
}

.gallery {  
  display: flex;
  flex-wrap: wrap;
}

.gallery .image {
  position: relative;
  padding: 7px;
  width: calc(100% / 3);
  height: 100%;
}

.gallery .image:hover .bg-cont {
  opacity: 1 !important;
}

.gallery .image:hover span {
  filter: brightness(50%);
}

.gallery .image .bg-cont {
  opacity: 0 !important;
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-in;
}

.gallery .image .bg-cont a {
  color: #fff !important;
}

.gallery .image span {
  display: flex;
  width: 100%;
  height: 30vh;
  min-height: 200px;
  object-fit: cover;
  overflow: hidden;
  transition: all 0.15s ease-in;
}

.gallery .image img {
  width: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.gallery .image:hover img {
  transform: scale(1.1);
}

.preview-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 700px;
  width: 100%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background-color: rgb(39, 39, 39);
  border-radius: 3px;
  padding: 0 5px 5px 5px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  color: #fff;
}

.preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}

.preview-box .details {
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 10px;
  justify-content: space-between;
}

.preview-box .details .title {
  display: flex;
  font-size: 18px;
  font-weight: 400;
}

.details .title p {
  margin: 0 5px;
}

.details .title p.current-img {
  font-weight: 500;
}

.details .icon {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.preview-box .image-box {
  display: flex;
  width: 100%;
  position: relative;
}

.image-box .slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  height: 50px;
  width: 60px;
  line-height: 50px;
  text-align: center;
  border-radius: 3px;
}

.slide.prev {
  left: 0px;
}

.slide.next {
  right: 0px;
}

.image-box img {
  width: 100%;
  border-radius: 0 0 3px 3px;
}

.shadow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background-color: rgba(51, 50, 50, 0.65);
  z-index: 999;
}

.sh_bg {
  display: none;
  background-color: rgba(51, 50, 50, 0.65);
  z-index: 999;
}

@media(max-width: 1000px) {
  .gallery .image {
    width: calc(100% / 2);
  }
}

@media(max-width: 600px) {
  .gallery .image {
    width: 100%;
    padding: 4px;
  }
}




.profile {

  width: 75%;
  margin: 0 auto;
  margin-bottom: 0em !important;
}

.profile-title {
  /*top: 4.5em;*/
  left: 50%;
  transform: translateX(-50%);
}

.profile {
  padding-top: 10em !important;
  display: flex;
  flex-wrap: wrap;
}

.profile .image {
  position: relative;
  padding: 7px;
  width: calc(100% / 3);
  height: 100%;
}

.profile .image:hover .bg-cont {
  opacity: 1 !important;
}

.profile .image:hover span {
  filter: brightness(100%);
}

.profile .image .bg-cont {
  opacity: 0 !important;
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-in;
}

.profile .image .bg-cont a {
  color: #fff !important;
}

.profile .image span {
  display: flex;
  width: 100%;
  height: 30vh;
  min-height: 200px;
  object-fit: cover;
  overflow: hidden;
  transition: all 0.15s ease-in;
}

.profile .image img {
  width: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.profile .image:hover img {
  transform: scale(1.1);
}

@media(max-width: 1000px) {
  .profile .image {
    width: calc(100% / 2);
  }
}

@media(max-width: 600px) {
  .profile .image {
    width: 100%;
    padding: 4px;
  }
}