.ids__inline-gallery {
  display: grid;
  gap: 0.2em;
  position: relative;
  touch-action: pan-y;

  & > img,
  & > video {
    display: block;
    grid-area: 1/1;
    width: 100%;
    aspect-ratio: var(--img-aspect-ratio, 1/1);
    object-fit: cover;
    object-position: center;
    pointer-events: none;
  }

  & > img {
    visibility: hidden;
    transition: filter 500ms ease;
  }

  & > img:first-child {
    visibility: visible;
  }

  & > a::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
  }

  &:hover {
    &:has(a) > img {
      filter: brightness(105%);
      transition: filter 0s;
    }
  }

  .ids__inline-gallery__pos {
    text-align: center;
    font-variant-numeric: tabular-nums;

    &::before {
      content: attr(data-index) "/" attr(data-count);
    }
  }

  .ids__inline-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 0.6em;

    .ids__inline-gallery__dot {
      width: 0.3em;
      aspect-ratio: 1/1;
      border-radius: 50%;
      background-color: rgba(var(--ids__text-RGB), 0.2);
    }

    .ids__inline-gallery__dot-active {
      background-color: rgba(var(--ids__text-RGB), 1);
      order: var(--index) !important;
      
    }
  }

  .ids__inline-gallery__dashes {
    display: flex;
    justify-content: center;
    gap: 0.4em;

    .ids__inline-gallery__dash {
      width: 0.5em;
      height: 0.1em;
      border-radius: 0.05em;
      background-color: rgba(var(--ids__text-RGB), 0.5);
      transition: width 100ms ease, background-color 100ms ease;
    }

    .ids__inline-gallery__dash-active {
      width: 1.5em;
      background-color: rgba(var(--ids__text-RGB), 1);
    }
  }
}

.ids__inline-gallery--small {
  max-width: 70%;
  margin: 0 auto;
}

@font-face {
  font-family: "Shotby VF";
  src: url("../fonts/shotby-vf.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

.ids-home {
  --ids__text-RGB: 86, 86, 86;
  --ids__link-RGB: 86, 86, 86;
  --ids__hover-RGB: 0, 113, 169;
  --ids__background-RGB: 246, 246, 246;
  --shotby-page: #F6F6F6;
  --shotby-page-dark: #1A1A1A;
  --shotby-ink: #565656;
  --shotby-blue: #0071A9;
  --shotby-line: #565656;
  background: var(--shotby-page);
  color: var(--shotby-ink);
  font-family: "Shotby VF", "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.16;
  letter-spacing: 0;
}

.ids-home .shotby-home {
  display: block;
  min-height: 100vh;
  background: var(--shotby-page);
}

.ids-home .shotby-shell {
  width: min(1160px, calc(100vw - clamp(96px, 15.9vw, 260px)));
  margin: 0 auto;
  transform: translateX(-3.4vw);
  padding-top: 70px;
  padding-bottom: 216px;
}

.ids-home .shotby-topbar {
  display: flex;
  align-items: flex-start;
  margin-bottom: 58px;
  color: var(--shotby-ink);
  font-size: 16px;
  font-weight: 700;
}

.ids-home .shotby-lang a,
.ids-home .shotby-work-list a {
  color: var(--shotby-ink);
  text-decoration: none;
}

.ids-home .shotby-home a {
  text-decoration: none;
}

.ids-home .shotby-lang a:hover,
.ids-home .shotby-lang a:focus-visible,
.ids-home .shotby-work-list a:hover,
.ids-home .shotby-work-list a:focus-visible {
  color: var(--shotby-blue);
}

.ids-home .shotby-lang {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 0;
}

.ids-home .shotby-lang .is-active {
  color: var(--shotby-blue);
}

.ids-home .shotby-theme-toggle {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--shotby-ink);
  cursor: pointer;
}

.ids-home .shotby-theme-toggle img {
  width: 13px;
  height: 13px;
  display: block;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ids-home .shotby-theme-toggle::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: url("../new/night-hover.svg") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ids-home .shotby-theme-toggle:hover,
.ids-home .shotby-theme-toggle:focus-visible {
  color: var(--shotby-blue);
}

.ids-home .shotby-theme-toggle:focus-visible,
.ids-home .shotby-socials a:focus-visible {
  outline: 1px solid var(--shotby-blue);
  outline-offset: 4px;
}

.ids-home .shotby-theme-toggle:hover img,
.ids-home .shotby-theme-toggle:focus-visible img,
.shotby-theme-dark .ids-home .shotby-theme-toggle img {
  opacity: 0;
}

.ids-home .shotby-theme-toggle:hover::after,
.ids-home .shotby-theme-toggle:focus-visible::after,
.shotby-theme-dark .ids-home .shotby-theme-toggle::after {
  opacity: 1;
}

.ids-home .shotby-hero {
  width: 960px;
  display: grid;
  grid-template-columns: 545px 365px;
  gap: 50px;
  padding-bottom: 0;
  border-bottom: 0;
}

.ids-home .shotby-portrait {
  width: 545px;
  height: 514px;
  overflow: hidden;
  background: transparent;
}

.ids-home .shotby-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 41%;
  filter: grayscale(1) contrast(1.02) brightness(1.04);
}

.ids-home .shotby-about {
  min-height: 514px;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  color: var(--shotby-ink);
  font-weight: 700;
}

.ids-home .shotby-about h1,
.ids-home .shotby-about p,
.ids-home .shotby-contact p,
.ids-home .shotby-footer p {
  margin: 0;
}

.ids-home .shotby-about h1 {
  margin-bottom: 31px;
  font-size: 24px;
  line-height: 1.08;
}

.ids-home .shotby-about > p {
  font-size: 22px;
  line-height: 1.24;
}

.ids-home .shotby-contact p {
  margin-bottom: 25px;
  font-size: 20px;
}

.ids-home .shotby-contact {
  margin-top: auto;
}

.ids-home .shotby-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ids-home .shotby-socials a {
  width: 76px;
  height: 76px;
  position: relative;
  display: block;
  cursor: pointer;
}

.ids-home .shotby-socials a::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ids-home .shotby-socials img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ids-home .shotby-socials a:nth-child(1)::after {
  background-image: url("../new/Frame-2-hover.svg");
}

.ids-home .shotby-socials a:nth-child(2)::after {
  background-image: url("../new/Frame-hover.svg");
}

.ids-home .shotby-socials a:nth-child(3)::after {
  background-image: url("../new/Vector-hover.svg");
}

.ids-home .shotby-socials a:nth-child(4)::after {
  background-image: url("../new/Frame-1-hover.svg");
}

.ids-home .shotby-socials a:hover img,
.ids-home .shotby-socials a:focus-visible img {
  opacity: 0;
}

.ids-home .shotby-socials a:hover::after,
.ids-home .shotby-socials a:focus-visible::after {
  opacity: 1;
}

.ids-home .shotby-rule {
  width: min(1172px, 100%);
  height: 2px;
  margin: 56px 0 104px;
  background: repeating-linear-gradient(
    90deg,
    var(--shotby-line) 0 34px,
    transparent 34px 97px
  );
}

.ids-home .shotby-work-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 29px;
  width: min(980px, 100%);
  min-height: 330px;
  position: relative;
  color: var(--shotby-ink);
}

.ids-home .shotby-work-list .shotby-work-link {
  display: block;
  width: min(460px, 100%);
  max-width: 100%;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.ids-home .shotby-work-name {
  display: inline;
  transition: color 0.18s ease;
}

.ids-home .shotby-work-preview {
  display: block;
  width: 390px;
  position: absolute;
  top: 0;
  left: min(530px, calc(100% - 390px));
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(8px);
  transition:
    opacity 0.24s ease,
    transform 0.32s ease;
}

.ids-home .shotby-work-preview img {
  width: 118px;
  height: 118px;
  display: block;
  margin-bottom: 26px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}

.ids-home .shotby-work-details {
  display: block;
  max-width: 390px;
  color: var(--shotby-ink);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 700;
  text-transform: none;
}

.ids-home .shotby-work-link:hover .shotby-work-name,
.ids-home .shotby-work-link:focus-visible .shotby-work-name {
  color: var(--shotby-blue);
}

.ids-home .shotby-work-link:hover .shotby-work-preview,
.ids-home .shotby-work-link:focus-visible .shotby-work-preview {
  opacity: 1;
  transform: translateY(0);
}

.ids-home .shotby-footer {
  margin-top: 100px;
  color: var(--shotby-ink);
  font-size: 21px;
  line-height: 1.25;
}

.shotby-theme-dark .ids-home,
.shotby-theme-dark .ids-home .shotby-home {
  background: var(--shotby-page-dark);
}

.shotby-theme-dark .ids-home .shotby-theme-toggle {
  color: var(--shotby-blue);
}

@media (width < 1180px) {
  .ids-home .shotby-shell {
    width: calc(100% - clamp(64px, 15vw, 160px));
    margin-left: clamp(32px, 7vw, 82px);
    transform: none;
  }

  .ids-home .shotby-hero {
    width: 100%;
    grid-template-columns: minmax(300px, 545px) minmax(280px, 365px);
  }

  .ids-home .shotby-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 545 / 514;
  }
}

@media (width < 760px) {
  .ids-home .shotby-shell {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 48px;
    padding-bottom: 96px;
  }

  .ids-home .shotby-topbar {
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-bottom: 46px;
  }

  .ids-home .shotby-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ids-home .shotby-about {
    min-height: 360px;
  }

  .ids-home .shotby-about h1 {
    font-size: 21px;
  }

  .ids-home .shotby-about > p {
    font-size: 18px;
  }

  .ids-home .shotby-contact p {
    font-size: 17px;
  }

  .ids-home .shotby-socials {
    gap: 12px;
  }

  .ids-home .shotby-socials a {
    width: 58px;
    height: 58px;
  }

  .ids-home .shotby-rule {
    margin: 44px 0 74px;
  }

  .ids-home .shotby-work-list {
    gap: 24px;
    min-height: 0;
  }

  .ids-home .shotby-work-list .shotby-work-link {
    max-width: 100%;
    font-size: 19px;
  }

  .ids-home .shotby-work-preview {
    width: min(360px, 100%);
    max-height: 0;
    position: static;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    transform: none;
    transition:
      max-height 0.36s ease,
      margin-top 0.36s ease,
      opacity 0.24s ease;
  }

  .ids-home .shotby-work-link:hover .shotby-work-preview,
  .ids-home .shotby-work-link:focus-visible .shotby-work-preview {
    max-height: 380px;
    margin-top: 14px;
  }

  .ids-home .shotby-work-preview img {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
  }

  .ids-home .shotby-work-details {
    font-size: 15px;
  }

  .ids-home .shotby-footer {
    margin-top: 80px;
    font-size: 17px;
  }
}
