@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");

/*** reset ***********/
html,
body,
ul,
ol,
li,
dl,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
a,
img,
label {
  margin: 0;
  padding: 0;
  border: 0;
}

p,
h2,
img,
a {
  padding: 0;
  margin: 0;
}
body {
  background-color: rgba(22, 41, 71, 0.8);
  font-family: "Lato", Helvetica, Arial, sans-serif;
  overflow: hidden !important;
  color: white;
  font-size: 18px;
  line-height: 1.4em;
  margin: 0;
}
@media only screen and (max-width: 300px) {
  body {
    font-size: 12px;
  }
}

.popup-wrapper {
  overflow: hidden;
  max-width: 700px;
  margin: 20px;
  height: 100%;
}

.popup-image-wrapper {
  width: 100%;
  height: calc(100vw / 21 * 9);
  max-height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

@media only screen and (max-width: 700px) {
  .popup-wrapper,
  .popup-contents {
    max-height: calc(100vh - 40px);
    height: 100%;
  }

  .popup-wrapper-full,
  .popup-wrapper-full .popup-contents {
    max-height: none;
  }
}

.popup-title {
  display: block;
  font-size: 1.3em;
  margin: 0.5em 0;
  font-weight: bold;
}

.popup-text-wrapper {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  overflow: auto;
}

.popup-link,
.popup-link:hover,
.popup-link:active,
.popup-link:focus,
.popup-link:visited {
  color: #4995ce;
  text-decoration: underline;
}

/* =GALLERY */
.gallery {
  display: flex;
  max-width: 700px;
  overflow: hidden;
}

.gallery > div {
  display: none;
}

.gallery.slick-initialized {
  display: block;
  width: auto;
}

.gallery.slick-initialized > div {
  display: block;
}

.gallery:hover .slick-arrow {
  opacity: 1;
}

.gallery .zoom {
  position: absolute;
  right: 15px;
  top: 20px;
  transition: transform 0.3s;
  transform: scale(0.9);
}

.gallery .zoom:hover {
  transform: scale(1);
}

.slick-slide {
  height: 300px;
}

.slick-slide img {
  max-height: 100%;
}

.slick-slide .zoom img {
  min-height: 0 !important;
  height: 22px !important;
  width: 22px !important;
}

/* =gallery arrow */
.slick-arrow {
  background: url(../URLimage/prev.png) no-repeat 3px top;
  border: none;
  cursor: pointer;
  height: 21px;
  margin-top: -10px;
  padding: 0;
  position: absolute;
  top: 50%;
  transition: 0.3s;
  width: 18px;
  z-index: 999;
}

.slick-arrow.slick-prev {
  left: 15px;
}

.slick-arrow.slick-prev:hover,
.slick-arrow.slick-next:hover {
  background-position: 0 top;
}

.slick-arrow.slick-next {
  right: 15px;
  transform: rotate(180deg);
}
/* =/gallery arrow */

/* =title animation */
.slide-title {
  font-size: 60px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.slick-active .slide-title {
  animation-name: fadeOut;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  animation-delay: 1.5s;
  box-sizing: border-box;
  line-height: 1.1;
  padding-left: 5px;
  padding-right: 5px;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}
/* = /title animation */

/* =template 3*/
@media (min-width: 560px) {
  :root {
    --h: 500px;
  }

  .template-3 {
    display: flex;
  }

  .template-3 .popup-image-wrapper {
    max-height: none;
    height: 100%;
    width: 300px;
  }

  .template-3 .slick-initialized .slick-slide {
    height: var(--h);
  }

  .template-3 .popup-text-wrapper {
    box-sizing: border-box;
    margin-top: 0;
    height: var(--h);
    padding: 20px 10px 20px 10px;
  }

  .template-3 .nicescroll-box {
    height: 465px;
  }

  .template-3 .popup-title {
    margin-top: 0;
  }

  .template-3 .slide-title {
    bottom: 20px;
    font-size: 24px;
    top: auto;
    transform: none;
  }

  .template-3 .slick-slide img,
  .template-3 .slick-slide iframe {
    height: 100%;
    width: auto;
  }
}
/* =/template 3*/

/* =FULL PAGE (template 4)*/
img.object-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.popup-wrapper-full {
  max-width: 100%;
  margin: 0;
}

.popup-wrapper-full .popup-text-wrapper {
  margin-top: 0;
  position: relative;
}

.popup-wrapper-full .popup-text-wrapper .popup-text-container {
  background-color: rgba(255, 255, 255, 0.9);
  margin-top: 60px;
  padding: 10px 10px 10px 30px;
}

.popup-wrapper-full .popup-text-wrapper_right .toggle-text {
  left: auto;
  right: 10px;
}

.popup-wrapper-full .popup-image-wrapper {
  height: auto;
  max-height: none;
}

.popup-wrapper-full .slick-slide img {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .popup-wrapper-full .slick-slide img {
    max-width: 100%;
    height: auto;
  }
}

.popup-wrapper-full .popup-text-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.popup-wrapper-full .popup-image-wrapper {
  height: 100vh;
  max-height: 100vh;
}

.popup-wrapper-full .slick-slide {
  height: calc(100vh - 215px);
  /*padding-top: 5px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.3s;
}

.popup-wrapper-full .gallery-full {
  height: 100vh;
}
.popup-wrapper-full .gallery-full .slick-slide {
  height: 100vh;
}

@media (min-width: 1024px) {
  height: calc(100vh - 200px);
}

.popup-wrapper-full .gallery {
  max-width: 100%;
}

.text-full {
  background-color: rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;

  padding: 10px 15px;

  font-size: 22px;
  line-height: 1.5;

  overflow: auto;
}

/*button TOGGLE*/
.toggle-text {
  background-color: #1c1c1c;
  color: #fff;
  font-size: 16px;
  border: none;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 34px;
  position: absolute;
  left: 10px;
  top: 0;
  outline: none;
  transition: background-color 0.3s;
  z-index: 99;
}

.toggle-text:hover {
  background-color: #000;
}

.popup-text-wrapper {
  transition: 0.3s;
  min-height: 60px;
}

.popup-text-wrapper.hide {
  background-color: transparent;
  transform: translateY(calc(100% - 60px));
}

.popup-text-container {
  transition: opacity 0.3s;
}

.no-arrow .slick-arrow {
  display: none !important;
}
/* =/FULL PAGE (template 4) */

/* =RESPONSIVE */
@media (max-width: 700px) {
  .gallery,
  .slick-list {
    height: 100% !important;
  }
  .slide-title {
    font-size: 50px;
  }

  .slick-slide iframe {
    height: 100%;
    width: 100%;
  }

  /* =template 4*/
  .popup-wrapper-full .gallery,
  .popup-wrapper-full .slick-list {
    height: auto !important;
  }

  .popup-wrapper-full .slick-slide iframe {
    height: 100vh;
  }
  /* =/template 4*/
}

@media (max-width: 560px) {
  .slide-title {
    font-size: 40px;
  }
}

@media (max-width: 500px) {
  .template-3 {
    display: block;
  }
}

@media (max-width: 450px) {
  .slick-slide {
    height: auto;
  }

  .slide-title {
    font-size: 32px;
  }

  .gallery .zoom {
    top: 10px;
    right: 10px;
  }

  .popup-text {
    text-align: justify;
  }
}

@media (max-width: 380px) {
  .slide-title {
    font-size: 30px;
  }
}
/* =RESPONSIVE */
/* =GALLERY */

/* =scroll block*/
.popup-text-wrapper {
  margin-top: 15px;
  overflow: hidden;
}

.popup-text {
  padding-bottom: 20px;
}

.nicescroll-wrapper {
  padding-right: 20px;
}

.nicescroll-cursors {
  border-radius: 7px !important;
  border: none !important;
  width: 7px !important;
  left: -1px;
}

.nicescroll-rails {
  height: calc(100% - 8px) !important;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  left: calc(100% - 10px) !important;
  width: 9px !important;
}

.nicescroll-box {
  overflow: auto;
  height: 185px;
}
/* =/scroll block */

/* =button luggage */
.luggage {
  border: none;
  cursor: pointer;

  position: absolute;
  right: 10px;
  top: 10px;

  height: 50px;
  width: 50px;
}
/* =/button luggage */
