/* ------------------------------------
    33. Rs Gallery
---------------------------------------*/
.rs-gallery .gallery-item {
    position: relative;
  }
  .rs-gallery .gallery-item .gallery-desc {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 25px;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  .rs-gallery .gallery-item .gallery-desc h3 {
    margin-bottom: 12px;
    font-size: 24px;
    transition: all 0.3s ease 0s;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    opacity: 0;
  }
  .rs-gallery .gallery-item .gallery-desc h3 a {
    color: #ffffff;
  }
  .rs-gallery .gallery-item .gallery-desc p {
    color: #e1e1e1;
    margin-bottom: 30px;
    transition: all 0.3s ease 0s;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    opacity: 0;
  }
  .rs-gallery .gallery-item .gallery-desc .image-popup {
    display: inline-block;
    width: 50px;
    line-height: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    background-color: #ff3115;
    color: #ffffff;
    font-size: 18px;
    -webkit-transform: translateY(35px);
    transform: translateY(35px);
    transition: all 0.3s ease 0s;
    opacity: 0;
  }
  .rs-gallery .gallery-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.8);
    opacity: 0;
    transition: all 0.3s ease 0s;
  }
  .rs-gallery .gallery-item:hover:before {
    opacity: 1;
  }
  .rs-gallery .gallery-item:hover h3,
  .rs-gallery .gallery-item:hover p,
  .rs-gallery .gallery-item:hover .image-popup {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    opacity: 1;
  }
  .rs-gallery .row {
    margin-bottom: 30px;
  }
  .rs-gallery-section .single-gallery {
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .rs-gallery-section .single-gallery:after {
    content: "";
    width: 80%;
    height: 80%;
    background: #92278f;
    position: absolute;
    top: 10%;
    left: 10%;
    display: block;
    overflow: hidden;
    opacity: 0.8;
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    -webkit-transition: 0.4s;
    -ms-transition: 0.4s;
  }
  .rs-gallery-section .single-gallery .popup-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .rs-gallery-section .single-gallery .popup-icon a {
    font-size: 20px;
    display: inline-block;
    margin: 0 8px;
    color: #fff;
  }
  .rs-gallery-section .single-gallery:hover:after {
    opacity: 0.8;
    visibility: visible;
    transform: scale(1);
  }
  
  
  
  
  .rs-gallery-section .single-gallery:hover .popup-icon {
    opacity: 1;
    visibility: visible;
  }
  