/* Stable hit areas; only the visual surface moves in perspective. */
.imgs-parent.at-motion {
  position: relative;
}
.at-motion > .accordion-slot {
  flex: 0 0 auto;
  position: relative;
  width: 8rem;
  height: 19rem;
  transform-style: preserve-3d;
  cursor: pointer;
}
.at-motion > .accordion-slot.is-open {
  width: 25vw;
  margin: 0 0.45vw;
}
.imgs-parent.at-motion .img {
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
  filter: none !important;
  transform: translateZ(var(--card-depth, 0rem)) rotateY(var(--card-turn, 0deg)) !important;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  will-change: auto;
  pointer-events: none;
  isolation: isolate;
}
.at-motion.is-in-view .img {
  will-change: transform;
}
.imgs-parent.at-motion .img::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background-image: inherit;
  background-position: inherit;
  background-size: inherit;
  border-radius: inherit;
  filter: grayscale(1);
  opacity: var(--card-gray, 0);
  transition: opacity 360ms ease;
  pointer-events: none;
  z-index: 0;
}
.imgs-parent.at-motion .img::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: #000;
  border-radius: inherit;
  opacity: var(--card-shade, 0.3);
  transition: opacity 360ms ease;
  pointer-events: none;
  z-index: 1;
}
.imgs-parent.at-motion .img .content {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.imgs-parent.at-motion .img .content,
.imgs-parent.at-motion .img .btn {
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    opacity 180ms ease,
    visibility 180ms ease !important;
  pointer-events: none;
}
.imgs-parent.at-motion .accordion-slot[data-active="true"] .content,
.imgs-parent.at-motion .accordion-slot[data-active="true"] .btn {
  opacity: 1 !important;
  visibility: visible !important;
}
.imgs-parent.at-motion .accordion-slot[data-active="true"] .btn {
  pointer-events: auto;
}
.accordion-slot:focus-visible {
  outline: 2px solid #f2bc58;
  outline-offset: 5px;
  border-radius: 8px;
}
.ekit-smooth-panel {
  transition: none !important;
}
@media (max-width: 820px) {
  .at-motion > .accordion-slot {
    width: 4rem;
  }
  .at-motion > .accordion-slot.is-open {
    width: 20vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .imgs-parent.at-motion .img,
  .imgs-parent.at-motion .img::before,
  .imgs-parent.at-motion .img::after,
  .imgs-parent.at-motion .img .content,
  .imgs-parent.at-motion .img .btn {
    transition: none !important;
    will-change: auto !important;
  }
}
