/* Slider Gallery Section */

.canvas-img {
  position: relative;
}
  .canvas-img canvas {
    width: 100%;
    height: auto;
    display: block;
  }
  .canvas-img img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
  }

#ip-gallery-section {
    position: relative; 
    overflow: hidden; 
    z-index: 1; 
    padding: 65px 80px 0; 
    background: #fff;
}

 .fp-bg.non-fixed-bg canvas {
   filter: grayscale(1); 
   opacity: 0.1; 
   height: 483px;
 }

   .ip-gallery-wrap {
     display: block;
   }

    .fp-list-wrap {
       display: block; 
       /*max-width: 1442px;*/
       margin: 0 auto;
    }

    .ip-gallery-slider {
       position: relative; 
       font-size: 0;
       letter-spacing: 0;  
       margin-left: -14px; 
       margin-right: -14px;

    }

   .ip-gallery-slider .slick-slide {
       padding: 0 14px; 
   }

     .ip-gallery-list {
       display:block; 
       width: 100%; 
       vertical-align: top;
     }

      .ip-gallery-list a {
         width: 100%; 
         display: block; 
         margin: 0 auto;
         position: relative;
      }

       .ip-gallery-list a > .fp-details {
          position: relative; 
          display: block; 
          z-index: 3;  
          padding: 0 20px; 
          width: 100%; 
          top: -50px; 
          min-height: 135px;
       }

        .ip-gallery-list a > .fp-details .fp-d {
           width: 100%; 
           background: #fff; 
           border:4px solid #a41813; 
           padding: 16px 15px; 
           text-align: center; 
           font-size: 16px; 
           font-family: var(--font-family-default);
        }

        .ip-gallery-list a > .fp-details .fp-d:before { 
         position:absolute;
         bottom: 0;
         width: 100%;
         height: 100%;
        /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.65+100 */
        background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */

		}


         .ip-gallery-list a > .fp-details .fp-d span.fp-add {
           font-weight: 400; 
           line-height: 25px; 
           display: block; 
           margin-bottom: 15px;
         }

         .ip-gallery-list a > .fp-details .fp-d .fp-flex {
           display: flex; 
           justify-content: center;
           align-items: center; 
           padding-top: 10px; 
           border-top: 1px dotted #b2b2b2;
         }

          .ip-gallery-list a > .fp-details .fp-d .fp-flex span {
             font-size: 12px;
          }

           .ip-gallery-list a > .fp-details .fp-d .fp-flex span > em {
             font-style: normal; 
             margin: 0 3px;
           }

          .ip-gallery-list a > .fp-details .fp-d .fp-flex span:nth-child(2) {
            margin: 0 18px; 
            padding: 0 18px; 
            border-left:1px dotted #b2b2b2;
            border-right:1px dotted #b2b2b2;
          } 

           .ip-gallery-list a > .fp-details .fp-d-h {
            position: absolute;
            top: 0;
            width: calc(100% - 40px);
            height: calc(100% - 6px);
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            background: #a41813;
            text-align: center;
            margin: 0 auto;  
            opacity: 0;

           }

           .ip-gallery-list a:hover > .fp-details .fp-d-h {
              opacity: 1;
           }

            .ip-gallery-list a > .fp-details .fp-d-h span {
               display: block; 
               font-size: 16px; 
               margin: 15px 0;  
               text-transform: uppercase;

            }

             .ip-gallery-list a > .fp-details .fp-d-h span.fp-price {
               font-size: 30px; 
               letter-spacing: 0.1em; 

             }


/** fp Nav **/

.ip-gallery-nav {
    margin: 0 auto;
    position: absolute;
    z-index: 10;
    font-size: 0;
    right: 0;
    left: 0;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    pointer-events: none;

}

button.ip-gallery-prev {
    position: relative;
    left: 0;
    display: block !important;
    outline: none;
    text-decoration: none;
    color: #fff;
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2em;
    transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    top: 0;
    font-weight: 700;
    border: none;
    background:url(images/arrow-bg-l.png) no-repeat center; 
    width: 51px; 
    height: 135px;
    cursor: pointer;
    text-transform: uppercase; 
    pointer-events: all;
}


button.ip-gallery-next {
    right: 0;
    display: block !important;
    outline: none;
    text-decoration: none;
    color: #fff;
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2em;
    transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    top: 0;
    font-weight: 700;
    border: none;
    background:url(images/arrow-bg-r.png) no-repeat center; 
    width: 51px; 
    height: 135px;
    cursor: pointer;
    text-transform: uppercase; 
    position: relative; 
    pointer-events: all;
}

button.ip-gallery-next,
button.ip-gallery-prev {
    color: #818181;
}

button.ip-gallery-prev .ai-arrow-c-p {
   margin-right: 10px;
}
button.ip-gallery-next .ai-arrow-c-n {
   margin-left: 10px;
}

    
/*Gallery PopUp */

.ip-gallery-popup {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: all 0.6s ease;
  overflow: hidden;
  font-size: 0;
}
.ip-gallery-popup.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.ip-gallery-popup.active .ip-gallery-popup__main {
  transform: scale(1);
  opacity: 1;
}
.ip-gallery-popup__wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: block;
}
.ip-gallery-popup__close {
  position: absolute;
  top: 34px;
  right: 34px;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  border: none;
  padding: 0;
  background-color: transparent;
  transition: var(--default-transition);
  z-index: 5;
}
.ip-gallery-popup__close:hover {
  color: var(--primary);
}
.ip-gallery-popup__main {
  position: relative;
  width: 100%;
  margin: 70px auto;
  transition: all 0.6s ease;
  transform: scale(0.7);
  opacity: 0;
  background: #000;
  z-index: 5;
  overflow: hidden;
  padding: 70px 0 15px;
}
.ip-gallery-popup__slide {
  display: block;
  position: relative;
  margin-bottom: 15px;
}
.ip-gallery-popup__slide-list {
  display: block;
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.ip-gallery-popup__slide-list:not(.slick-initialized)
  .ip-gallery-popup__slide-list-item:nth-child(n + 2) {
  display: none;
}
.ip-gallery-popup__slide-list-item {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  position: relative;
}
.ip-gallery-popup__slide-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}
.ip-gallery-popup__slide-control button {
  display: inline-block;
  vertical-align: middle;
  width: 70px;
  height: 70px;
  border: 1px solid var(--primary);
  background-color: transparent;
  padding: 0;
  pointer-events: auto;
  transition: var(--default-transition);
}
.ip-gallery-popup__slide-control button .ai-icon-arrow {
    background-image: url(../../images/ai-arrow-icon-rd.png);
    display: inline-block;
    vertical-align: middle;
    width: auto;
    height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: var(--default-transition);
    width: 30px;
    height: 28px;
    filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}
.ip-gallery-popup__slide-control button.prev .ai-icon-arrow {
  transform: rotate(180deg);
}
.ip-gallery-popup__slide-control button:hover {
  /*background-color: var(--primary);*/
}
.ip-gallery-popup__slide-control button:hover .ai-icon-arrow {
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
  opacity: .7;
}
.ip-gallery-popup__thumb-slide {
  display: block;
  position: relative;
  margin: 0 -7px;
}
.ip-gallery-popup__thumb-slide:not(.slick-initialized)
  .ip-gallery-popup__thumb-slide-item:nth-child(n + 8)
  ~ div {
  display: none;
}
.ip-gallery-popup__thumb-slide-item {
  display: inline-block;
  vertical-align: middle;
  width: 12.5%;
  position: relative;
  padding: 0 7px;
}
.img-wrapper {
    position: relative;
    display: block;
    overflow: clip;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 1;
}

.ip-gallery-popup.active .ip-gallery-popup__slide-list .img-wrapper img{
  object-fit: contain;
}

@media screen and (max-width: 1366px) {
  .ip-gallery-popup__slide-list {
    max-width: 820px;
  }
  .ip-gallery-popup__slide-control {
    max-width: 1024px;
  }
}

@media screen and (max-width: 1199px) {
  .ip-gallery-popup__slide-list {
    max-width: 770px;
  }
  .ip-gallery-popup__slide-control {
    max-width: 920px;
  }
  .ip-gallery-popup__slide-control button {
    width: 50px;
    height: 50px;
  }
  .ip-gallery-popup__slide-control button .ai-icon-arrow {
    width: 25px;
    height: 20px;
  }
}

@media screen and (max-width: 991px) {
  .ip-gallery-popup__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
  }
  .ip-gallery-popup__close {
    top: 20px;
    right: 15px;
  }
  .ip-gallery-popup__main {
    padding: 60px 10px 10px;
  }
  .ip-gallery-popup__slide {
    margin-bottom: 10px;
  }
  .ip-gallery-popup__slide-control {
    max-width: 100%;
    width: calc(100% - 15px);
  }
  .ip-gallery-popup__thumb-slide {
    margin: 0 -5px;
  }
  .ip-gallery-popup__thumb-slide:not(.slick-initialized)
    .ip-gallery-popup__thumb-slide-item:nth-child(n + 2)
    ~ div {
    display: none;
  }
  .ip-gallery-popup__thumb-slide-item {
    width: 50%;
    padding: 0 5px;
  }
}


/* MEDIA QUERIES ARE AUTOMATICALLY REMOVED FROM THIS FILE, they must be placed in style-media-queries.css */

