

body.artpage {
  background: var(--body-bg);
}

.bg.site-surface {
  min-height: 100vh;
  padding-bottom: 3rem;
}

.artworkorganizer {
  width: min(95%, 1300px);
  margin: 0 auto;
  padding: 1.75rem var(--content-band-gutter) 0;
  position: relative;
  z-index: 1;
}

.grid-sizer {
  width: 5%;
}

a.artwork {
  color: inherit;
  text-decoration: none;
  display: block;
}

.artwork {
  width: min(var(--art-width, 350px), 100%);
  max-width: none;
  margin: 0 0 24px 0;
  padding: 0;
  position: relative;
  float: left;
  overflow: hidden;
  border-radius: 0;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.what {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--content-band-gutter) 0;
}

.what h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 0.96;
  max-width: 8ch;
}

.what a {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0;
  text-decoration: none;
  color: var(--link);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  transition: color 150ms ease, opacity 150ms ease;
}

.what a:hover {
  color: var(--link-hover);
  opacity: 0.95;
}

.artworkimage {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: auto;
}

.artwork:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--art-hover-shadow);
  filter: none;
}

.overlay {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--art-overlay-bg);
  backdrop-filter: blur(2px);
  overflow: hidden;
  opacity: 0;
  transition: opacity 220ms ease, background 220ms ease;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 128%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--art-overlay-glow);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 260ms ease, opacity 220ms ease;
}

.overlay::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid var(--art-overlay-ring);
  opacity: 0;
  transform: scale(0.92);
  transition: transform 220ms ease, opacity 220ms ease;
}

.artwork:hover .overlay {
  opacity: 1;
}

.artwork:hover .overlay::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: hoverRipple 860ms ease-out both;
}

.artwork:hover .overlay::after {
  opacity: 1;
  transform: scale(1);
}

.text {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  margin: 0;
  max-width: min(15rem, 72%);
  color: var(--art-text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
  display: block;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  text-shadow: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.artwork:hover .text {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media screen and (max-width: 776px) {
  .what {
    width: 90%;
    padding: 3rem 0 0;
  }

  .what h1 {
    font-size: 2.6rem;
  }

  .what a {
    font-size: 1rem;
  }

  .artworkorganizer {
    width: 90%;
    max-width: 90%;
    padding: 1.5rem 0 0;
  }

  .artwork {
    width: min(var(--art-width, 350px), calc(100vw - 10%));
    float: none;
    margin-bottom: 20px;
  }
}

@keyframes hoverRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.05);
  }
}
