/* A salon wall: varied sizes, natural image ratios and narrow spacing. */
.artworks-gallery{position:relative;display:block;margin:12px 0 clamp(80px,10vw,150px)}
.artworks-gallery .artwork-card{position:absolute;margin:0;min-width:0}
.artworks-gallery .artwork-card img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.artworks-gallery .caption{display:none}
@media(prefers-reduced-motion:no-preference){.artwork-card img{transition:filter .2s}.artwork-card:hover img{filter:brightness(1.06)}}
@media(max-width:600px){.artworks-gallery{margin-top:0}}
/* Give the larger works the full available page width. */
#arbeiten.shell,.photo-gallery.shell{max-width:2100px;padding-left:clamp(18px,2.5vw,48px);padding-right:clamp(18px,2.5vw,48px)}
.photo-grid.salon-ready{position:relative;columns:auto;display:block}
.photo-grid.salon-ready .photo-tile{position:absolute;margin:0;break-inside:auto}
.photo-grid .photo-tile img{width:100%;height:auto;max-height:none;object-fit:contain;transform:none}
.photo-grid .photo-tile .image-wrap{height:auto;max-height:none;aspect-ratio:auto}
.artwork-enlarge{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:zoom-in}
.artwork-enlarge:focus-visible{outline:2px solid var(--acid,#d7ff63);outline-offset:4px}
.artwork-lightbox{border:0;padding:clamp(18px,3vw,38px);max-width:min(94vw,1500px);max-height:95svh;background:#171918;color:var(--paper,#fff);box-shadow:0 20px 70px #0009}
.artwork-lightbox::backdrop{background:rgba(0,0,0,.88)}
.artwork-lightbox img{display:block;max-width:100%;max-height:calc(88svh - 95px);width:auto;height:auto;object-fit:contain;margin:auto}
.artwork-lightbox-close{display:block;margin:16px 0 0 auto;border:1px solid var(--line,#777);background:transparent;color:inherit;width:40px;height:40px;border-radius:50%;cursor:pointer;font-size:26px;line-height:1}
.artwork-lightbox-close:hover,.artwork-lightbox-close:focus-visible{border-color:var(--acid,#d7ff63);color:var(--acid,#d7ff63)}

.hero-art {
  isolation: isolate;
}

.hero-art::after {
  z-index: 3;
}

.hero-slide.is-leaving {
  z-index: 1;
  opacity: 1;
}

.hero-slide.is-active {
  z-index: 2;
}

@media (min-width: 651px) and ((max-width: 1250px) or (max-aspect-ratio: 8/5)) {
  .hero-slide:first-child img {
    object-fit: cover;
    object-position: 82% center;
  }
}

@media (min-width: 651px) and (prefers-reduced-motion: no-preference) and ((max-width: 1250px) or (max-aspect-ratio: 8/5)) {
  .hero-slide:first-child:is(.is-active, .is-leaving) img {
    animation: hero-pan 8s linear both;
  }
}

.atm-image {
  position: relative;
  display: block;
}

.artwork-lightbox .atm-image {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.hero-slide.hero-slide-atm {
  container-type: size;
  display: grid;
  place-items: center;
}

.hero-slide-atm:not(.is-active) {
  pointer-events: none;
}

.hero-slide-atm .atm-image {
  width: min(100%, 79.365cqh);
  aspect-ratio: 1000 / 1260;
  scale: 1.188;
}

.hero-slide.hero-slide-atm:nth-child(n+2) img {
  object-fit: contain;

}

@media (min-width: 851px) {
  .hero-slide-atm .atm-image {
    justify-self: end;
    margin-right: clamp(24px, 7vw, 130px);
    scale: 1.254;
  }
}

.artwork-card:hover .atm-image img {
  filter: none;
}

.atm-leds-on {
  display: none;
}

.atm-image .atm-leds-on {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .atm-image .atm-leds-on {
    animation: atm-blink 2.6s step-end infinite;
  }

  .hero-slide-atm:not(.is-active):not(.is-leaving) .atm-leds-on {
    animation-play-state: paused;
  }

  @keyframes atm-blink {
    0%, 100% { opacity: 1; }
    55% { opacity: 0; }
  }

  .hero-slide.hero-slide-atm.is-active .atm-image,
  .hero-slide.hero-slide-atm.is-leaving .atm-image {
    animation: atm-pan 12s linear both;
  }

  @keyframes atm-pan {
    from { translate: -.6% 2.4%; }
    to { translate: .6% -2.4%; }
  }
}
