/* Project links and a native anchor below the gallery controls. */
#works-gallery .works-case-links{
  position:absolute;
  z-index:10;
  top:88px;
  left:36px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  max-width:min(420px,calc(100% - 72px));
  pointer-events:auto;
}

#works-gallery .works-case-links .seo-case-jump{position:static}

#works-gallery .gallery-control{
  display:grid;
  grid-template-columns:44px minmax(0,auto) 44px;
  gap:12px 8px;
}

#works-gallery .works-cases-arrow{
  grid-column:1 / -1;
  grid-row:2;
  justify-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid #ffffff25;
  border-radius:50%;
  background:#121212;
  color:#a6a7a0;
  text-decoration:none;
}

.works-cases-arrow svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media(hover:hover) and (pointer:fine){
  #works-gallery .works-cases-arrow:hover{color:#d8ff45;border-color:#d8ff4580;background:#202020}
}

#works-gallery .works-cases-arrow:focus-visible{color:#d8ff45;outline:2px solid #d8ff45;outline-offset:4px}
#project-descriptions,#anya-case-title,#vsespleteno-case-title,#bani-case-title{scroll-margin-top:24px}

@media(max-width:767px){
  #works-gallery{min-height:560px}
  #works-gallery .works-case-links{top:138px;left:20px;max-width:calc(100% - 40px)}
  #works-gallery .gallery-control{gap:12px 7px}
  #works-gallery .caption-text{min-width:0;flex:1}
  #works-gallery .caption-text small{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #works-gallery .caption-count{flex:none;white-space:nowrap}
  /* Preserve the old gaps as the additional 44px action takes another row. */
  #works-gallery .scene-footer{bottom:calc(env(safe-area-inset-bottom) + 144px)}
  #works-gallery .scene-stage{
    top:calc(env(safe-area-inset-top) + 276px);
    bottom:calc(env(safe-area-inset-bottom) + 172px);
  }
}
