﻿.swiper-container {
  overflow: hidden;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .swiper-container {
    min-height: 320px;
  }

  .ahmg-swiper-container {
    min-height: 460px;
  }
}

.swiper-container-wrapper {
  display: flex;
  flex-flow: column nowrap;
  height: 360px;
  width: 100%;
}

@media (min-width: 480px) {
  .swiper-container-wrapper {
    flex-flow: row nowrap;
  }
}

.swiper-button-next,
.swiper-button-prev {
  /* transform: rotate(270deg); */
  transform: rotate(90deg);
  color: #6E8A9E;
  background: #F9F9F9;
  border: 1px solid #D6DEE4;
}


.swiper-slide {
  height: 340px;
  width: 493px;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  /* Center slide text vertically */
  display: flex;
  flex-flow: column nowrap;
  justify-content: top;
  align-items: top;
  /* Slide content */
}

.swiper-slide .description,
.swiper-slide .title {
  display: block;
  opacity: 0;
  transition: 0.5s ease 0.5s;
}

.swiper-slide-active .description,
.swiper-slide-active .title {
  opacity: 1;
}

.swiper-slide-active .title {
  margin-bottom: 0.5rem;
  font-size: 24px;
  color: #000;
  transition: opacity 0.5s ease 0.5s;
}

.swiper-slide-active .description {
  font-size: 16px;
  color: #777;
  transition: opacity 0.5s ease 0.75s;
}

.gallery-top {
  position: relative;
  width: 100%;
  height: 380px;
}

@media (min-width: 480px) {
  .gallery-top {
    width: 100%;

    margin-right: 10px;
  }
}

.swiper-wrapper {
  height: 425px !important;
}

.gallery-thumbs {
  width: 100%;
  height: 60px;
  padding-top: 10px;
}

@media (min-width: 480px) {
  .gallery-thumbs {
    width: 60px;
    margin-top: 8px;
    padding: 0;
  }

  .ahmg-gallery-thumbs {
    width: 135px;
    margin-top: 8px;
    padding: 0;
  }
}

.gallery-thumbs .swiper-wrapper {
  flex-direction: row;
}

@media (min-width: 480px) {
  .gallery-thumbs .swiper-wrapper {
    margin-top: 27px;
    flex-direction: column;
  }

}

.gallery-thumbs .swiper-slide {
  width: 25%;
  flex-flow: row nowrap;
  height: 100%;
  opacity: 0.75;
  cursor: pointer;
}

@media (min-width: 480px) {
  .gallery-thumbs .swiper-slide {
    flex-flow: column nowrap;
    width: 100%;
  }
}

.gallery-thumbs .swiper-slide-thumb-active {
  border: 3px solid #E74F54;
  opacity: 1;
}

.gallery-thumbs .swiper-slide {
  height: 48px !important;
  margin-top: 5px !important;
}

/* .swiper-button-next,
.swiper-button-prev {
  top: 29px !important;
} */

.swiper-button-prev {
  top: inherit !important;
  /* bottom: 185px !important; */
  right: 45px;
  left: inherit;
}

.h-hmg-slider-border {
  border-radius: 64px 0px 0px 0px;
}

.h-hmg-gryborder {
  background: #EDEEF1;
  border: #EDEEF1 solid 16px;
  border-radius: 70px 0px 0px 0px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-weight: 800;
  font-size: 24px !important;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: 45px;
  top: 345px;
}

.h-hmg-redboxslider {
  top: -60px !important;
  right: -60px !important;
}

.h-hmgblackbox {
  bottom: 80px !important;
  left: -76px !important;
  border-radius: 41px 20px;
  background: none !important;
  border: none;
  display: inline-table;
  position: relative;
}

.h-hmgblackbox-1 {
  bottom: -88px;
  left: -60px !important;
  border-radius: 41px 20px;
  background: none !important;
  border: none;
  display: inline-table;
  position: absolute;
}

.h-hmg-slimframe {
  border: #F4F5F8 8px solid;
  padding: 0;
  border-radius: 80px 0px 0px 0px;

}

@media (max-width: 640px) {
  .gallery-thumbs .swiper-slide {
    margin-top: 0px !important;
    margin: 1px;
    width: 47px !important;
    height: 39px !important;
  }

  .gallery-thumbs .swiper-wrapper {
    justify-content: center;
  }

  .swiper-button-next,
  .swiper-button-prev {
    transform: rotate(0);
  }

  .swiper-button-prev {
    top: 249px !important;
    bottom: inherit !important;
    right: inherit;
    left: inherit;
  }



  .ahmg-swiper-container-wrapper {
    display: flex;
    flex-flow: column nowrap;
    height: auto !important;
    width: 100%;
  }

  .swiper-button-next,
  .swiper-rtl .swiper-button-prev {
    top: inherit !important;
    bottom: 187px !important;
    right: 24px !important;
  }



  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 12px !important;
    font-weight: bold;
  }

  .swiper-slide {
    height: 208px;
    margin-left: -1px;
  }

  .h-hmg-gryborder {
    height: 275px;
    background: #EDEEF1;
    border: #EDEEF1 solid 7px;
    border-radius: 41px 0px 0px 0px;
  }

  .gallery-thumbs {
    padding-top: 0px;
    height: 66px !important;
  }

  .h-hmg-slider-border { 
    /* border-radius: 32px 0px 0px 0px; */
    border-radius: 50px 0px 0px 0px;
  }

  .h-hmg-slimframe {
    border: #F4F5F8 4px solid;
    padding: 0;
    border-radius: 55px 0px 0px 0px;
  }

  .gallery-top {

    height: 320px;
  }

  .ahmg-gallery-img {
    min-height: 100 !important;
    width: 100% !important;
  }


}



/* ============================ Amer Younis ====================== */
.ahmg-gallery .gallery-thumbs .swiper-wrapper {
  margin-top: 36px;
  flex-direction: column;
  height: 407px !important;
  display: block;
  overflow: hidden;
}

.ahmg-swiper-button-next,
.ahmg-swiper-button-prev {
  height: 136px;
  padding: 20px;
}

.ahmg-swiper-button-prev {
  /* bottom: -54px!important;
  right: 74px; */
  right: 66px;
  bottom: -47px !important;

}

.ahmg-swiper-button-next:after,
.ahmg-swiper-button-prev:after {
  font-weight: 800;
  font-size: 16px !important;
}

.ahmg-swiper-button-next {
  /* right: 74px;
    top: -31px!important; */
  right: 66px;
  top: -24px !important;
}

.ahmg-swiper-wrapper {
  height: 500px !important;
}

.ahmg-swiper-slide {
  height: 100%;
  /* width: 493px; */
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  /* Center slide text vertically */
  display: flex;
  flex-flow: column nowrap;
  justify-content: top;
  align-items: top;
  /* Slide content */
}

.ahmg-swiper-container-wrapper {
  display: flex;
  flex-flow: column nowrap;
  height: 500px !important;
  width: 100%;
}

.ahmg-gallery-top {
  position: relative;
  width: 100%;
  height: 100% !important;
}

.ahmg-gallery-img {
  width: 100%;
  height: 100%;
}

.gallery-thumbs .ahmg-swiper-slide {
  height: 102px !important;
  margin-top: 5px !important;
}

.ahmg-slide-bg {
  background: rgba(0, 0, 0, .5);
  height: 67px;
  z-index: 1000;
  position: absolute;
  bottom: 1px;
  width: 100vw;
}

@media (max-width: 640px) {

  .swiper-button-next,
  .swiper-rtl .swiper-button-prev {
    position: absolute;
    top: inherit !important;
    bottom: 0px !important;
    right: 24px !important;
  }
}