/* 
@media screen and (max-width: 767px) {
    .custom-swiper-container .swiper-slide {
       width: 100% ; 
    }
} */

.swiper-slide h2 {
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: var(--e-global-typography-primary-font-size);
  font-weight: var(--e-global-typography-primary-font-weight);
  line-height: var(--e-global-typography-primary-line-height);
}

.swiper-slide span {
  font-size: var(--e-global-typography-text-font-size);
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-weight: var(--e-global-typography-text-font-weight);
  font-style: var(--e-global-typography-text-font-style);
}

.swipermybutton {
  font-weight: var(--e-global-typography-accent-font-weight);
  text-transform: var(--e-global-typography-accent-text-transform);
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
}

.custom-swiper-container .swiper-slide {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  z-index: -1; /* hogy a tartalom előtt legyen */
  transition: transform 0.3s ease-in-out;
}

.swiper-slide:hover .slide-background {
  transform: scale(1.1);
  filter: grayscale(0);
}

.custom-swiper-container {
  overflow: hidden;
}

.slide-content {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  transition: bottom 0.3s ease-in-out;
  width: 100%;
}

.content-wrapper {
  display: flex;
  margin-bottom: 20px;
  flex-direction: column;
  padding-left: 30px;
  padding-right: 30px;
  text-align: center;
  align-content: center;
  align-items: center;
}

.content-wrapper:after {
  position: absolute;
  content: "";
  height: 380px;
  width: 472px;
  bottom: -120px;
  left: 10px;
  background-color: #fff;
  border-radius: 30px 0 0 0;
  -webkit-transform: rotate(16deg);
  transform: rotate(16deg);
  z-index: -1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 1%);
  transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 767px) {
  .content-wrapper:after {
    height: 400px;
  }
}

.swiper-slide:hover .slide-content .content-wrapper:after {
  bottom: -90px;
}

.content-wrapper:before {
  position: absolute;
  content: "";
  height: 300px;
  width: 472px;
  bottom: -45px;
  left: 22px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 30px 0 0 0;
  transform: rotate(16deg);
  transition: all 0.6s ease-in-out;
  z-index: -1;
}

.swiper-slide:hover .slide-content {
  bottom: 0;
}

.swiper-slide:hover {
  filter: grayscale(0);
}

.slide-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}

.slide-icon {
  width: 45px;
  height: 45px;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* spec button */

.swipermybutton:before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background-color: rgba(0, 0, 0, 0.15);
  position: absolute;
  bottom: 2px;
  right: 2px;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  transform-origin: right bottom;
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0% 100%);
  clip-path: polygon(100% 0, 100% 100%, 0% 100%);
}

.swipermybutton:hover:before {
  transform: translate3d(0, 0, 0) scale(1.55);
}

.swipermybutton {
  margin-top: 20px;
  position: relative;
  z-index: 1;
  background-color: #c62828;
  color: white;
  padding: 10px 38px;
  border-radius: 3px;
}

.swipermybutton:hover {
  color: white;
}

.swipermybutton:after {
  content: "";
  display: block;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;

  pointer-events: none;
  border: 1px solid #d1d2df;
  position: absolute;
  opacity: 0.65;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out,
    -webkit-clip-path 0.2s ease-in-out;
  transition: clip-path 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
  transition: clip-path 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out, -webkit-clip-path 0.2s ease-in-out;
  transform-origin: center;
  -webkit-clip-path: polygon(
    100% 0,
    100% calc(100% - 0px),
    calc(100% - 0px) 100%,
    0 100%,
    0 0
  );
  clip-path: polygon(
    100% 0,
    100% calc(100% - 0px),
    calc(100% - 0px) 100%,
    0 100%,
    0 0
  );
  transform: translate3d(0, 0, 0);
  border-radius: 0;
}

.swipermybutton:hover:after {
  opacity: 0.75;
  clip-path: polygon(
    100% 0,
    100% calc(100% - 25px),
    calc(100% - 55px) 100%,
    0 100%,
    0 0
  );
}

.elementor-shortcode
  .swiper-container:not(.swiper-container-initialized)
  > .swiper-wrapper {
  overflow: unset !important;
}
