/* 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: 60px;
  background: var(--primary);
  margin-top: 30px;
}

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

.ip-gallery-list-wrap {}

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

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

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

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

/** fp Nav **/
.ip-gallery-nav {
  position: absolute;
  z-index: 10;
  font-size: 0;
  right: 0;
  left: 0;
  top: 50%;
  padding: 0 15px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.ip-gallery-arrow {
  outline: none;
  margin: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  border: none;
  background: none;
  pointer-events: all;
  color: #fff;
  font-size: 30px;
}

.ip-gallery-arrow:hover {
  opacity: 0.75;
}

/*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;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  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;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.ip-gallery-popup__close:hover {
  color: #fff;
  opacity: 0.75;
}

.ip-gallery-popup__main {
  position: relative;
  width: 95%;
  margin: 70px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  transform: scale(0.7);
  opacity: 0;
  background: var(--primary);
  z-index: 5;
  overflow: hidden;
  padding: 70px 15px 15px;
}

.ip-gallery-popup__slide {
  display: block;
  position: relative;
  margin-bottom: 30px;
}

.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: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: #fff;
  width: 70px;
  aspect-ratio: 1/1;
  border: 1px solid #fff;
  background-color: transparent;
  padding: 0;
  pointer-events: auto;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.ip-gallery-popup__slide-control button.prev .ai-icon-arrow {
  transform: rotate(180deg);
}

.ip-gallery-popup__slide-control button:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--primary);
}

.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;
  }

}

@media screen and (max-width: 991px) {
  #ip-gallery-section {
    padding: 40px;
  }

  .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 15px 15px;
  }

  .ip-gallery-arrow {
    font-size: 25px;
  }

  .ip-gallery-nav {
    padding: 0 7px;
  }

  .ip-gallery-popup__slide-list {
    max-width: calc(100% - 130px);
  }

  .ip-gallery-popup__slide-control {
    max-width: 100%;
  }

  .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 screen and (max-width: 767px) {
  .ip-gallery-popup__slide-list {
    max-width: 100%;
  }

  .ip-gallery-popup__slide-control {
    padding: 0 10px;
  }

  .ip-gallery-popup__slide-control button {
    background-color: var(--primary);
    width: 35px;
    font-size: 25px;
  }
}

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