/*
  Aktiv-Webstyle Bilderleiste
  Datei: data/css/imgbox.css
*/

.aw-imgbox-section {
  width: 100%;
  margin: 0 0 18px;

  --aw-imgbox-border: rgba(255, 255, 255, 0.08);
  --aw-imgbox-dark: rgba(15, 23, 42, .98);
  --aw-imgbox-card-bg: #06111f;
}

.aw-imgbox,
.aw-imgbox * {
  box-sizing: border-box;
}

.aw-imgbox {
  position: relative;
  width: 100%;
  height: 172px;
  padding: 14px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--aw-imgbox-border);
  background:
    linear-gradient(180deg, rgba(31, 41, 55, .82), rgba(17, 24, 39, .92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(31, 182, 255, 0.10),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.aw-imgbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, .13), transparent 26rem),
    linear-gradient(90deg, rgba(3, 14, 28, .20), rgba(3, 14, 28, .02));
  pointer-events: none;
  z-index: 0;
}

/* Weicher linker Auslauf */
.aw-imgbox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 145px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, .98) 0%,
    rgba(15, 23, 42, .88) 30%,
    rgba(15, 23, 42, .45) 67%,
    rgba(15, 23, 42, 0) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Weicher rechter Eingang */
.aw-imgbox-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 145px;
  height: 100%;
  background: linear-gradient(
    270deg,
    rgba(15, 23, 42, .98) 0%,
    rgba(15, 23, 42, .88) 30%,
    rgba(15, 23, 42, .45) 67%,
    rgba(15, 23, 42, 0) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.aw-imgbox-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, .25) 4%,
    #000 13%,
    #000 87%,
    rgba(0, 0, 0, .25) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, .25) 4%,
    #000 13%,
    #000 87%,
    rgba(0, 0, 0, .25) 96%,
    transparent 100%
  );
}

.aw-imgbox-track {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.aw-imgbox-item {
  flex: 0 0 178px;
  width: 178px;
  height: 132px;
}

.aw-imgbox-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--aw-imgbox-border);
  background: var(--aw-imgbox-card-bg);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.aw-imgbox-card:hover {
  transform: scale(1.035);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, .58),
    0 0 0 2px rgba(44, 211, 255, .10);
}

.aw-imgbox-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.aw-imgbox-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, .86);
  z-index: 9999;
}

.aw-imgbox-lightbox.is-active {
  display: flex;
}

.aw-imgbox-lightbox img {
  width: min(100%, 1920px);
  max-height: min(1080px, calc(100vh - 82px));
  object-fit: contain;
  border: 1px solid var(--aw-imgbox-border);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .85);
}

.aw-imgbox-lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 30px;
  line-height: 40px;
  cursor: pointer;
  z-index: 10000;
}

.aw-imgbox-lightbox-close:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 980px) {
  .aw-imgbox {
    height: 160px;
    padding: 13px;
    border-radius: 20px;
  }

  .aw-imgbox-item {
    flex-basis: 162px;
    width: 162px;
    height: 120px;
  }

  .aw-imgbox-track {
    gap: 18px;
  }

  .aw-imgbox::after,
  .aw-imgbox-fade-right {
    width: 115px;
  }
}

@media (max-width: 640px) {
  .aw-imgbox-section {
    margin-bottom: 14px;
  }

  .aw-imgbox {
    height: 138px;
    padding: 11px;
    border-radius: 17px;
  }

  .aw-imgbox-viewport {
    border-radius: 13px;

    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, .25) 6%,
      #000 18%,
      #000 82%,
      rgba(0, 0, 0, .25) 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, .25) 6%,
      #000 18%,
      #000 82%,
      rgba(0, 0, 0, .25) 94%,
      transparent 100%
    );
  }

  .aw-imgbox-item {
    flex-basis: 132px;
    width: 132px;
    height: 98px;
  }

  .aw-imgbox-track {
    gap: 14px;
  }

  .aw-imgbox-card {
    border-radius: 11px;
  }

  .aw-imgbox::after,
  .aw-imgbox-fade-right {
    width: 72px;
  }

  .aw-imgbox-lightbox {
    padding: 16px;
  }

  .aw-imgbox-lightbox-close {
    top: 14px;
    right: 14px;
  }
}
