.animated_gallery_wrapper .ag_img_wrap {
  position: relative;
}
.animated_gallery_wrapper .ag_overflow {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
  transform: translateY(40px);
  z-index: 2;
}
.animated_gallery_wrapper .ag_overflow.focus {
  opacity: 1;
  transform: translateY(0);
}
.animated_gallery_wrapper .ag_box {
  position: relative;
  flex: 0 0 100%;
  box-sizing: border-box;
  display: block !important;
  overflow: hidden;
}

.animated_gallery_wrapper .tiled .ag_box {
  flex: unset;
}
.animated_gallery_wrapper .tiled .ag_overflow {
  gap: 10px;
}

.animated_gallery_wrapper .ag_box img {
  width: 100%;
  display: block;
}
@media (orientation: landscape) {
  .animated_gallery_wrapper .ag_box_img.portrait {
    display: none !important;
  }
}
@media (orientation: portrait) {
  .animated_gallery_wrapper .ag_box_img.landscape {
    display: none !important;
  }
}
.animated_gallery_wrapper .navbtn {
  font-family: "flexe-icons";
  position: absolute;
  z-index: 30;
  width: 50px;
  height: 50px;
  background: #fff;
  line-height: 50px !important;
  text-align: center;
  border-radius: 100%;
  opacity: 0;
  font-size: 20px;
  color: #000;
  top: 47%;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.animated_gallery_wrapper:hover .navbtn {
  opacity: 0.6;
}
.animated_gallery_wrapper .slide_pre {
  left: 20px;
}
.animated_gallery_wrapper .slide_next {
  right: 20px;
}

.sliding_text {
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: clamp(20px, 4vw, 56px);
  text-align: center;
  z-index: 10;
}

.animated_gallery_config {
  display: none;
}



.ag_img_wrap.effect .ag_box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}
.ag_img_wrap.effect .ag_box:first-child {
  position: relative;
  display: block;
  z-index: 2;
}

.ag_slideshow_bullets {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 20;
}
.tiled .ag_slideshow_bullets {
  display: none;
}
.ag_slideshow_bullets span {
  background: #ffffff52;
  height: 12px;
  width: 12px;
  border-radius: 100%;
  display: block;
  cursor: pointer;
  -webkit-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
}
.ag_slideshow_bullets .selected {
  background: #ffffffc2;
}
.ag_slideshow_bullets img {
  opacity: 0.6;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.ag_slideshow_bullets .selected img {
  opacity: 1;
}





.ag_box_text_designer p.bold {
  font-weight: bold;
}
.ag_box_text_designer p.underline {
  text-decoration: underline;
}
.ag_box_text_designer p.italic {
  font-style: italic;
}
.ag_box_text_designer p.uppercase {
  text-transform: uppercase;
}
.ag_box_text_designer p.alignl {
  text-align: left;
}
.ag_box_text_designer p.alignc {
  text-align: center;
}
.ag_box_text_designer p.alignr {
  text-align: right;
}

.designer_scale .slide_box_img {
  position: relative;
  height: auto !important;
  max-width: unset;
}
.designer_scale {
  position: relative;
  transform-origin: top left;
}
.ag_box_text_designer {
  position: absolute;
  box-sizing: border-box;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.animated_gallery_wrapper .ag_box_text_designer {
  text-align: left;
}
.ag_box_text_designer.theme2 {
  text-align: center;
}
.ag_box_text_designer.theme3 {
  text-align: right;
}
.ag_box_text_designer.theme4 {
  top: auto;
  bottom: 0;
}
.ag_box_text_designer.theme5 {
  text-align: center;
  top: auto;
  bottom: 0;
}
.ag_box_text_designer.theme6 {
  text-align: right;
  top: auto;
  bottom: 0;
}
.ag_box_text_designer.theme7 {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.ag_box_text_designer.theme8 {
  text-align: center;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.ag_box_text_designer.theme9 {
  text-align: right;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);;
}

.ag_box_text_designer p {
  font-size: 64px;
  line-height: 64px;
  margin: 0;
  padding: 0;
}
.ag_box_text_designer p span.btn {
  display: inline-block;
  padding: 17px 30px;
}
.ws_images, .ws_thumbs span {
  border: 1px solid #e2e2e2;
}
.ws_thumbs {
  margin-top: 20px;
}



.animated_gallery_wrapper.item_info .ag_box_img {
  width: auto;
  max-width: 100%;
}
.animated_gallery_wrapper.item_info .ag_slideshow_bullets {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  height: auto;
  z-index: 1;
}
.animated_gallery_wrapper.item_info .ag_slideshow_bullets span {
  background: none;
  height: auto;
  width: auto;
  border-radius: unset;
}



.animated_gallery_wrapper .sliding_text .inner {
  opacity: 1;
  transform: scale(100%);
}
.animated_gallery_wrapper .sliding_text .inner.puff {
  opacity: 0;
  transform: scale(2500%);
  transition: transform 2s, opacity 0.45s;
}
.animated_gallery_wrapper .sliding_text .inner {
  opacity: 1;
}
.animated_gallery_wrapper .sliding_text .inner.fade {
  opacity: 0;
  transition: transform 2s, opacity 1.5s;
}