.attic-showreel {
  --attic-progress: #000;
  position: relative;
  width: 100%;
  min-height: 240px;
  overflow: hidden;
  background: transparent;
  color: #fff;
  isolation: isolate;
}

.attic-showreel--stacked_cards {
  overflow: visible;
}

.attic-showreel *,
.attic-showreel *::before,
.attic-showreel *::after {
  box-sizing: border-box;
}

.attic-showreel__stage {
  position: absolute;
  inset: 0;
  display: grid;
  background: transparent;
}

.attic-showreel--horizontal .attic-showreel__stage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attic-showreel--scrolling .attic-showreel__stage,
.attic-showreel--double_scrolling .attic-showreel__stage,
.attic-showreel--stacked_cards .attic-showreel__stage {
  display: block;
  background: transparent;
  overflow: visible;
}

.attic-showreel--scrolling,
.attic-showreel--double_scrolling,
.attic-showreel--stacked_cards {
  background: transparent;
}

.attic-showreel__lane,
.attic-showreel__slot {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.attic-showreel__slot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms linear;
}

.attic-showreel__slot.is-active {
  opacity: 1;
}

.attic-showreel__slot iframe,
.attic-showreel__slot video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(1.01);
  transform-origin: center;
}

.attic-showreel--fit-cover .attic-showreel__slot video {
  object-fit: cover;
}

.attic-showreel--fit-contain .attic-showreel__slot video {
  object-fit: contain;
}

.attic-showreel--fit-cover .attic-showreel__slot iframe {
  width: max(100%, calc(var(--attic-lane-height, 100vh) * 16 / 9));
  height: max(100%, calc(var(--attic-lane-width, 100vw) * 9 / 16));
}

.attic-showreel--vertical.attic-showreel--fit-cover .attic-showreel__slot iframe {
  width: max(100%, calc(var(--attic-lane-height, 100vh) * 9 / 16));
  height: max(100%, calc(var(--attic-lane-width, 100vw) * 16 / 9));
}

.attic-showreel--fit-contain .attic-showreel__slot iframe {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.attic-showreel__lane-progress,
.attic-showreel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.attic-showreel__lane-progress span,
.attic-showreel__progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--attic-progress);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.attic-showreel--horizontal > .attic-showreel__progress {
  display: none;
}

.attic-showreel--scrolling > .attic-showreel__progress,
.attic-showreel--double_scrolling > .attic-showreel__progress,
.attic-showreel--stacked_cards > .attic-showreel__progress {
  display: none;
}

.attic-showreel__scroll-row {
  height: var(--attic-scroll-card-height);
}

.attic-showreel__scroll-row + .attic-showreel__scroll-row {
  margin-top: var(--attic-scroll-row-gap, 18px);
}

.attic-showreel__scroll-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: attic-showreel-scroll var(--attic-scroll-duration, 35s) linear infinite;
  animation-direction: var(--attic-scroll-direction, normal);
  will-change: transform;
}

.attic-showreel__scroll-group {
  display: flex;
  align-items: center;
  gap: var(--attic-scroll-gap, 18px);
  padding-right: var(--attic-scroll-gap, 18px);
}

.attic-showreel__scroll-item {
  position: relative;
  flex: 0 0 var(--attic-scroll-card-width);
  width: var(--attic-scroll-card-width);
  height: var(--attic-scroll-card-height);
  overflow: hidden;
  background: transparent;
  border-radius: var(--attic-scroll-radius, 16px);
  transform: translateZ(0);
}

.attic-showreel--scrolling .attic-showreel__slot,
.attic-showreel--double_scrolling .attic-showreel__slot {
  opacity: 1;
  border-radius: inherit;
}

.attic-showreel--scrolling.attic-showreel--fit-cover .attic-showreel__slot iframe,
.attic-showreel--double_scrolling.attic-showreel--fit-cover .attic-showreel__slot iframe {
  width: max(100%, calc(var(--attic-scroll-card-height) * 9 / 16));
  height: max(100%, calc(var(--attic-scroll-card-width) * 16 / 9));
}

.attic-showreel--scrolling .attic-showreel__logos,
.attic-showreel--double_scrolling .attic-showreel__logos {
  display: none;
}

.attic-showreel__stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.attic-showreel__stack-card {
  --attic-stack-frame: clamp(5px, 1.2vw, 9px);
  --attic-stack-radius: clamp(20px, 3vw, 30px);
  position: absolute;
  width: var(--attic-stack-card-width, min(34vw, 430px));
  height: var(--attic-stack-card-height, calc(var(--attic-stack-card-width, min(34vw, 430px)) * 16 / 9));
  aspect-ratio: 9 / 16;
  border: var(--attic-stack-frame) solid #f7f1e6;
  border-radius: var(--attic-stack-radius);
  background: #f7f1e6;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
  transition: transform 460ms ease, opacity 460ms ease;
}

.attic-showreel__stack-card::after {
  content: "";
  position: absolute;
  inset: calc(var(--attic-stack-frame) * -1);
  z-index: 6;
  border: var(--attic-stack-frame) solid #f7f1e6;
  border-radius: inherit;
  pointer-events: none;
}

.attic-showreel__stack-card--center {
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1);
}

.attic-showreel__stack-card--left {
  z-index: 1;
  opacity: 0.76;
  transform: translate3d(-62%, 10%, -80px) rotate(-8deg) scale(0.72);
}

.attic-showreel__stack-card--right {
  z-index: 1;
  opacity: 0.76;
  transform: translate3d(62%, 10%, -80px) rotate(8deg) scale(0.72);
}

.attic-showreel__stack-card--out-left {
  z-index: 0;
  opacity: 0;
  transform: translate3d(-96%, 16%, -160px) rotate(-12deg) scale(0.62);
}

.attic-showreel__stack-card--in-right {
  z-index: 0;
  opacity: 0;
  transform: translate3d(96%, 16%, -160px) rotate(12deg) scale(0.62);
}

.attic-showreel__stack-card .attic-showreel__slot {
  inset: -1px;
  overflow: hidden;
  opacity: 1;
  border-radius: calc(var(--attic-stack-radius) - var(--attic-stack-frame));
  background: #f7f1e6;
  clip-path: inset(0 round calc(var(--attic-stack-radius) - var(--attic-stack-frame)));
}

.attic-showreel__stack-card .attic-showreel__slot iframe,
.attic-showreel__stack-card .attic-showreel__slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.16);
}

.attic-showreel__stack-chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.attic-showreel__stack-story-bars {
  position: absolute;
  top: 4%;
  left: 6%;
  right: 6%;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 4px;
}

.attic-showreel__stack-story-bars i {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.attic-showreel__stack-story-bars i:first-child::before {
  content: "";
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.attic-showreel__stack-reel-rail {
  position: absolute;
  right: 5%;
  bottom: 13%;
  display: grid;
  gap: clamp(9px, 2.2vw, 14px);
  justify-items: center;
}

.attic-showreel__stack-reel-rail i {
  position: relative;
  display: block;
  width: clamp(13px, 3.2vw, 18px);
  height: clamp(13px, 3.2vw, 18px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.attic-showreel__stack-reel-rail i:nth-child(2) {
  border-radius: 5px;
  transform: rotate(45deg);
}

.attic-showreel__stack-reel-rail i:nth-child(3) {
  width: clamp(4px, 1vw, 6px);
  border-width: 0 2px 0 0;
  border-radius: 0;
}

.attic-showreel__stack-reel-rail i:nth-child(4) {
  width: clamp(16px, 3.8vw, 22px);
  height: clamp(16px, 3.8vw, 22px);
  border-radius: 6px;
}

.attic-showreel__stack-caption {
  position: absolute;
  left: 7%;
  right: 24%;
  bottom: 7%;
  display: grid;
  gap: 7px;
}

.attic-showreel__stack-caption i {
  display: block;
  height: 7px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.attic-showreel__stack-caption i:nth-child(2) {
  width: 58%;
  opacity: 0.72;
}

@keyframes attic-showreel-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.attic-showreel__logos {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.attic-showreel__toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, opacity 160ms ease;
}

.attic-showreel__toggle:hover {
  background: rgba(0, 0, 0, 0.82);
}

.attic-showreel__toggle-play {
  display: inline-block;
  width: 9px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.attic-showreel__toggle-paused {
  display: none;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.attic-showreel.is-paused .attic-showreel__toggle-play {
  display: none;
}

.attic-showreel.is-paused .attic-showreel__toggle-paused {
  display: inline-block;
}

.attic-showreel.is-paused .attic-showreel__scroll-track {
  animation-play-state: paused;
}

.attic-showreel__logo {
  position: absolute;
  top: 50%;
  width: min(40vw, 220px);
  max-height: 22%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.attic-showreel--vertical .attic-showreel__logo:nth-child(1) {
  left: 50%;
  top: 46%;
  width: min(48vw, 280px);
}

.attic-showreel--vertical .attic-showreel__logo:nth-child(2) {
  left: 50%;
  top: 54%;
}

.attic-showreel--horizontal .attic-showreel__logo:nth-child(1) {
  left: 33.333%;
  width: min(18vw, 260px);
  max-height: 24%;
}

.attic-showreel--horizontal .attic-showreel__logo:nth-child(2) {
  left: 66.666%;
  width: min(13vw, 180px);
  max-height: 18%;
}

.attic-showreel__message {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  place-items: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  background: transparent;
}

.attic-showreel__message strong,
.attic-showreel__message span {
  display: block;
}

.attic-showreel__message strong {
  font-size: clamp(26px, 5vw, 56px);
  line-height: 1;
}

.attic-showreel__message span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.attic-showreel.is-empty .attic-showreel__message,
.attic-showreel.has-error .attic-showreel__message {
  display: grid;
}

@media (max-width: 767px) {
  .attic-showreel__stack-card {
    border-width: 7px;
    border-radius: 24px;
  }

  .attic-showreel__stack-card--left {
    transform: translate3d(-54%, 10%, -80px) rotate(-8deg) scale(0.66);
  }

  .attic-showreel__stack-card--right {
    transform: translate3d(54%, 10%, -80px) rotate(8deg) scale(0.66);
  }

  .attic-showreel__stack-card--out-left {
    transform: translate3d(-48%, 16%, -160px) rotate(-12deg) scale(0.72);
  }

  .attic-showreel__stack-card--in-right {
    transform: translate3d(48%, 16%, -160px) rotate(12deg) scale(0.72);
  }

  .attic-showreel__stack-chrome {
    font-size: 12px;
  }

  .attic-showreel--horizontal .attic-showreel__logo:nth-child(1) {
    width: min(28vw, 150px);
  }

  .attic-showreel--horizontal .attic-showreel__logo:nth-child(2) {
    width: min(22vw, 130px);
  }
}
