.px-teaser-hover {
  width: var(--baseWidth);
  max-width: var(--maxWidth);
  margin: 0 auto;
}
.px-teaser-hover-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
@media all and (max-width: 768px) {
  .px-teaser-hover-inner {
    display: block;
  }
}
.px-teaser-hover-inner .item {
  flex: 1;
  max-width: 310px;
  min-width: 310px;
  height: 400px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
@media all and (max-width: 1024px) {
  .px-teaser-hover-inner .item {
    max-width: 100%;
  }
}
@media all and (max-width: 768px) {
  .px-teaser-hover-inner .item {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 350px;
  }
}
.px-teaser-hover-inner .item > a {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}
.px-teaser-hover-inner .item .visible_section {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.px-teaser-hover-inner .item .visible_section .visibletext {
  position: relative;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.8);
  padding: 25px 50px 25px 25px;
  color: var(--fontColor);
}
.px-teaser-hover-inner .item .visible_section .visibletext *,
.px-teaser-hover-inner .item .visible_section .visibletext p,
.px-teaser-hover-inner .item .visible_section .visibletext h4,
.px-teaser-hover-inner .item .visible_section .visibletext h5,
.px-teaser-hover-inner .item .visible_section .visibletext h6,
.px-teaser-hover-inner .item .visible_section .visibletext li,
.px-teaser-hover-inner .item .visible_section .visibletext a {
  color: var(--fontColor);
  margin-top: 0;
}
.px-teaser-hover-inner .item .visible_section .visibletext:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  transition: var(--baseTransition);
  transform: rotate(-50deg);
}
.px-teaser-hover-inner .item .visible_section .image_section {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}
.px-teaser-hover-inner .item .visible_section .image_section img {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--baseTransition);
}
.px-teaser-hover-inner .item .hiddentext {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: translateY(100%);
  overflow: auto;
  padding: 25px;
  background: #fff;
  z-index: 3;
  transition: var(--baseTransition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.px-teaser-hover-inner .item .hiddentext > img {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 15px;
  object-fit: contain;
}
.px-teaser-hover-inner .item .hiddentext *,
.px-teaser-hover-inner .item .hiddentext p,
.px-teaser-hover-inner .item .hiddentext h4,
.px-teaser-hover-inner .item .hiddentext h5,
.px-teaser-hover-inner .item .hiddentext h6,
.px-teaser-hover-inner .item .hiddentext li,
.px-teaser-hover-inner .item .hiddentext a {
  color: var(--fontColor);
}
@media all and (max-width: 768px) {
  .px-teaser-hover-inner .item .hiddentext {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
  }
}
.px-teaser-hover-inner .item:hover .hiddentext, .px-teaser-hover-inner .item:focus .hiddentext {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.px-teaser-hover-inner .item:hover .visible_section .visibletext:after, .px-teaser-hover-inner .item:focus .visible_section .visibletext:after {
  transform: rotate(0deg);
}
.px-teaser-hover-inner .item:hover .visible_section .image_section > img, .px-teaser-hover-inner .item:focus .visible_section .image_section > img {
  transform: scale(1.1);
}
@media all and (max-width: 768px) {
  .px-teaser-hover-inner .item.with_hidden_text {
    height: auto;
    min-height: 0;
  }
  .px-teaser-hover-inner .item.with_hidden_text .visible_section {
    min-height: 250px;
  }
  .px-teaser-hover-inner .item.with_hidden_text .visible_section .visibletext:after {
    content: none;
    display: none;
  }
}

.wp-block-columns .px-teaser-hover,
.px-frame-layout .px-teaser-hover,
.accordion-content .px-teaser-hover,
.tab_wrapper .px-teaser-hover {
  width: 100%;
}