.anime-shots {
  position: relative;
  margin-block: 28px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  color: #f7f3fb;
  background:
    radial-gradient(34rem 18rem at 0 0, rgba(123, 47, 247, .22), transparent 72%),
    radial-gradient(26rem 18rem at 100% 0, rgba(234, 0, 61, .14), transparent 74%),
    linear-gradient(145deg, #20192d 0%, #15111f 58%, #110e19 100%);
  border: 1px solid rgba(220, 198, 255, .14);
  border-radius: clamp(20px, 3vw, 28px);
  box-shadow: 0 22px 65px rgba(3, 2, 8, .34);
  isolation: isolate;
}

/* More specific than Violet's shared .page__scr.section spacing. */
.page__scr.anime-shots.section {
  margin-block: 28px;
  padding: clamp(18px, 3vw, 30px);
}

.anime-shots::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .035), transparent 38%);
}

.anime-shots__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.anime-shots__heading {
  min-width: 0;
}

.anime-shots__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #ff8cab;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.anime-shots__heading h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.anime-shots__controls {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.anime-shots.is-ready .anime-shots__controls {
  display: flex;
}

.anime-shots__count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 62px;
  min-height: 42px;
  padding: 0 12px;
  color: #a9a0b4;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 650;
  line-height: 40px;
}

.anime-shots__count b {
  color: #fff;
  font-size: 15px;
}

.anime-shots__count i {
  margin-inline: 4px;
  color: #71697d;
  font-style: normal;
}

.anime-shots__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.anime-shots__arrow span {
  margin-top: -2px;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.anime-shots__arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #7b2ff7, #ea003d);
  border-color: transparent;
  transform: translateY(-1px);
}

.anime-shots__arrow:focus-visible,
.anime-shots__thumb:focus-visible,
.anime-shots__dot:focus-visible,
.anime-shots-lightbox button:focus-visible {
  outline: 3px solid rgba(255, 140, 171, .52);
  outline-offset: 3px;
}

.anime-shots__arrow:disabled {
  color: #5e5867;
  cursor: default;
  opacity: .48;
}

.anime-shots__viewport {
  min-width: 0;
}

.anime-shots .xfieldimagegallery,
.anime-shots .skrins {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-columns: min(760px, 72%) !important;
  grid-auto-flow: column !important;
  gap: 16px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 1px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  list-style: none !important;
  -webkit-overflow-scrolling: touch;
}

.anime-shots .xfieldimagegallery::-webkit-scrollbar,
.anime-shots .skrins::-webkit-scrollbar {
  display: none;
}

.anime-shots .xfieldimagegallery > li,
.anime-shots .skrins > li {
  position: relative;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  background: #09070e;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .22);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.anime-shots .xfieldimagegallery > li::after,
.anime-shots .skrins > li::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  content: "+";
  color: #fff;
  background: rgba(10, 7, 16, .74);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  font-size: 20px;
  font-weight: 350;
  line-height: 1;
  pointer-events: none;
  transition: background .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}

.anime-shots .xfieldimagegallery > li:hover::after,
.anime-shots .skrins > li:hover::after {
  background: #ea003d;
  transform: scale(1.06);
}

.anime-shots__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #09070e;
  border: 0;
  cursor: zoom-in;
}

.anime-shots__thumb img,
.anime-shots .xfieldimagegallery > li > img,
.anime-shots .skrins > li > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #09070e;
  transform: scale(1.002);
  transition: filter .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.anime-shots__thumb:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.anime-shots__dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 16px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anime-shots.is-ready .anime-shots__dots {
  display: flex;
}

.anime-shots__dots::-webkit-scrollbar {
  display: none;
}

.anime-shots__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  padding: 0;
  background: #5f5869;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width .25s cubic-bezier(.2, .8, .2, 1), background .2s ease, transform .2s ease;
}

.anime-shots__dot:hover {
  background: #a891c0;
  transform: scale(1.2);
}

.anime-shots__dot.is-active {
  width: 25px;
  background: linear-gradient(90deg, #7b2ff7, #ff0f54);
}

.anime-shots.is-single .anime-shots__controls,
.anime-shots.is-single .anime-shots__dots {
  display: none;
}

.anime-shots.is-single .xfieldimagegallery,
.anime-shots.is-single .skrins {
  grid-auto-columns: 100% !important;
}

body.anime-shots-lock {
  overflow: hidden;
}

.anime-shots-lightbox {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: #fff;
  background: transparent;
  border: 0;
}

.anime-shots-lightbox::backdrop {
  background: rgba(3, 2, 8, .9);
  backdrop-filter: blur(12px);
}

.anime-shots-lightbox.is-fallback {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 100%;
  max-height: none;
  padding: 14px;
  background: rgba(3, 2, 8, .93);
}

.anime-shots-lightbox__panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b0811;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: clamp(18px, 3vw, 26px);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .6);
}

.anime-shots-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(66vw, 720px);
  max-height: calc(100dvh - 116px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(123, 47, 247, .17), transparent 46%),
    #060409;
  touch-action: pan-y;
}

.anime-shots-lightbox__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 116px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.anime-shots-lightbox__close,
.anime-shots-lightbox__arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(13, 9, 20, .76);
  border: 1px solid rgba(255, 255, 255, .17);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .18s ease, transform .2s ease;
}

.anime-shots-lightbox__close:hover,
.anime-shots-lightbox__arrow:hover {
  background: #ea003d;
  transform: scale(1.04);
}

.anime-shots-lightbox__close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 24px;
}

.anime-shots-lightbox__arrow {
  top: 50%;
  width: 48px;
  height: 58px;
  border-radius: 15px;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  transform: translateY(-50%);
}

.anime-shots-lightbox__arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.anime-shots-lightbox__prev {
  left: 14px;
}

.anime-shots-lightbox__next {
  right: 14px;
}

.anime-shots-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 12px 18px;
  color: #b9b1c3;
  background: linear-gradient(90deg, rgba(123, 47, 247, .09), rgba(234, 0, 61, .055));
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  line-height: 1.45;
}

.anime-shots-lightbox__footer span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-shots-lightbox__position {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 820px) {
  .anime-shots .xfieldimagegallery,
  .anime-shots .skrins {
    grid-auto-columns: 86% !important;
    gap: 12px;
  }

  .anime-shots__header {
    align-items: center;
  }

  .anime-shots__count {
    display: none;
  }
}

@media (max-width: 560px) {
  .page__scr.anime-shots.section {
    margin-block: 22px;
    padding: 16px;
    border-radius: 20px;
  }

  .anime-shots__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .anime-shots__heading {
    grid-column: 1 / -1;
  }

  .anime-shots__controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: 100%;
  }

  .anime-shots__count {
    display: inline-flex;
    margin-right: auto;
  }

  .anime-shots__eyebrow {
    font-size: 9px;
  }

  .anime-shots__heading h2 {
    font-size: 20px;
    line-height: 1.22;
  }

  .anime-shots__arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .anime-shots .xfieldimagegallery,
  .anime-shots .skrins {
    grid-auto-columns: 92% !important;
    gap: 10px;
  }

  .anime-shots .xfieldimagegallery > li,
  .anime-shots .skrins > li {
    border-radius: 15px;
  }

  .anime-shots .xfieldimagegallery > li::after,
  .anime-shots .skrins > li::after {
    right: 9px;
    bottom: 9px;
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .anime-shots__dots {
    justify-content: flex-start;
    margin-top: 13px;
    padding-inline: 2px;
  }

  .anime-shots-lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .anime-shots-lightbox__stage {
    min-height: 56vw;
    max-height: calc(100dvh - 92px);
  }

  .anime-shots-lightbox__image {
    max-height: calc(100dvh - 92px);
  }

  .anime-shots-lightbox__close {
    top: 9px;
    right: 9px;
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .anime-shots-lightbox__arrow {
    width: 40px;
    height: 50px;
    font-size: 29px;
  }

  .anime-shots-lightbox__prev {
    left: 8px;
  }

  .anime-shots-lightbox__next {
    right: 8px;
  }

  .anime-shots-lightbox__footer {
    min-height: 58px;
    padding: 10px 13px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anime-shots *,
  .anime-shots-lightbox * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
