.gallery{
  display: flex;
  overflow: hidden;
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  margin-bottom: 86px;
  img{
    width: 100%;
    position: absolute;
  }
  .splide__list{
    height: 60px;
  }
  .splide__slide {
    opacity: 0.6;
    transition: .3s;
    overflow: hidden;
  }

  .splide__slide.is-active {
    opacity: 1;
  }
}
@keyframes galleryButtonAnimation {
  0%{
    transform: scale(1,1);
  }
  50%{
    transform: scale(1.3,1.3);
  }
  100%{
    transform: scale(1.2,1.2);
  }
}
.gallery-wrapper{
  position: relative;
  transition: 0.2s;
  margin-left: auto;
  margin-right: auto;
  min-height:340px;
  width:90%;
  padding-bottom: 18px;
  .fullscreenButton{
    position:absolute;
    top:20px;
    right: 20px;
    display: block;
    width: 28px;
    height: 28px;
    background-image: url("/img/fullscreen.svg");
    background-size: contain;
    transition: 0.2s;
	filter: brightness(24%);
	opacity: 45%;
    &:hover{
      transform: scale(1.2,1.2);
      animation: galleryButtonAnimation 0.3s ease-in-out;
    }
  }
  &.fullscreen{
    .gallery{
      height: 150px;
    }
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    z-index: 9999999999;
    background: #000000d4;
    display: flex;
    flex-direction: column;
    justify-items: center;
    .gallery-view{
      width: 100%;
      height: calc(100% - 150px);
      display: flex;
      justify-content: center;
      flex-grow: 1;
      .splide__slide{
        padding-bottom: 0;
        height: 100%;
        img{
          position: relative;
          width: auto !important;
          height: auto !important;
        }
      }
    }
    .fullscreenButton{
      background-image: url("/img/close.svg");
      filter: invert(1);
      opacity: 1;
    }
  }
}
.splide{
  &.gallery-view{
    margin-bottom: 8px;
    .splide__slide{
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      display: flex;
      justify-content: center;
      .image-capture{
        display: block;
        position: absolute;
        width: 100%;
        text-align: center;
        bottom: 0;
        background: #00000078;
        color: white;
        z-index: 1;
        padding: 5px 20px;
        font: 14px/16px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
      }
      img{
        position: absolute;
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        margin: auto;
        top: 0;
        bottom: 0;
      }
    }
  }
}

.fotorama__arr{
    z-index:9999;
    position:absolute;
}
.phfc{
	width:100%;
	text-align:center;
	height: 100%;
}

.phfc span{
    text-align:left;
    font-size:130%;
    line-height:normal;
    margin:auto 5px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: fit-content;
}
.phfc iframe{
    aspect-ratio:16/9;
    height:auto;
    margin:auto;
    width:94%;
    display:block;
    padding:18px;
}
.phfce{
	width:100%;
	text-align:center;
	text-shadow: 2px 2px #000;
	display:flex;
	height:100%;
	background-color: #0000007d;
	color:#fff;
}
.phfce span{
    text-align:left;
    font-size:200%;
    line-height:normal;
    margin:auto 20px;
}
.fotorama--fullscreen .phfce span{
    font-size:400%;
    margin: auto 100px;
 }
.fotorama--fullscreen .phfc span{
    font-size:400%;
    margin: auto 100px;
     color: #b7b7b7;
     display: block;
     text-align:left;
     line-height:normal;
 }
.fotorama--fullscreen .phfc iframe{
    width:100%;
}
@media only screen and (min-width: 1300px) {
    .phfc span{
	font-size:130%;
    }
}
@media only screen and (max-width: 1300px) {
    .phfc span{
	font-size:110%;
    }
}


@media only screen and (max-width: 1200px) {
    .phfc span{
	font-size:85%;
    }
    .phfc h2{
	font-size:100%;
	font-weight: bold;
    }
}

@media only screen and (max-width: 994px) {
    .phfc span,h2{
	font-size:70%;
    }
    .phfc h2{
	font-weight: bold;
    }
}
@media only screen and (max-width: 534px) {
    .phfc span,h2{
	font-size:68%;
    }
    .phfc h2{
	font-weight: bold;
    }
}
@media only screen and (max-width: 386px) {
    .phfc span,h2{
	font-size:58%;
    }
    .phfc h2{
	font-weight: bold;
    }
}
@media only screen and (max-width: 310px) {
    .phfc span,h2{
	font-size:40%;
    }
    .phfc h2{
	font-weight: bold;
    }
}