.glitter {
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 128, 189, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 32%, rgba(80, 230, 242, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 82%, rgba(202, 255, 49, 0.7) 0 2px, transparent 3px),
    #111111;
  background-size: 34px 34px, 48px 48px, 56px 56px, auto;
}

.glitter-gallery {
  display: grid;
  min-height: 100svh;
  gap: 14px;
  padding: clamp(12px, 2.4vw, 22px);
}

.gallery-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
  gap: 12px;
  align-items: end;
}

.gallery-header h1 {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 9vw, 5.8rem);
}

.gallery-header p {
  margin: 0;
  color: #ffffff;
  font: 800 0.78rem/1.5 var(--mono);
  text-transform: uppercase;
}

.gallery-stage {
  position: relative;
  display: grid;
  min-height: min(64svh, 620px);
  overflow: hidden;
  border: 2px solid #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #090909;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.34);
}

.full-art-trigger {
  display: grid;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.featured-art {
  display: block;
  width: 100%;
  height: min(64svh, 620px);
  object-fit: contain;
}

.art-overlay {
  position: absolute;
  bottom: 44px;
  left: 12px;
  max-width: min(480px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid #101010;
  background: rgba(255, 128, 189, 0.88);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.54);
  color: #111111;
  pointer-events: none;
}

.overlay-kicker,
.overlay-title {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.overlay-kicker {
  margin-bottom: 5px;
  font-size: 0.66rem;
  font-weight: 900;
}

.overlay-title {
  font-size: clamp(1rem, 3vw, 1.52rem);
}

.art-overlay p {
  margin: 5px 0 0;
  font: 800 0.68rem/1.35 var(--mono);
  text-transform: uppercase;
}

.viewer-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid #ffffff;
  background: #c0c0c0;
}

.gallery-control {
  display: grid;
  width: 27px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 2px solid #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #c0c0c0;
  color: #111111;
  font-weight: 900;
}

.gallery-control:active {
  border-color: #404040;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.art-counter {
  min-width: 58px;
  color: #111111;
  font: 900 0.7rem/1 var(--mono);
  text-align: center;
}

.thumbnail-rail {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  border: 2px solid #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #c0c0c0;
}

.art-thumbnail {
  flex: 0 0 auto;
  width: 78px;
  height: 72px;
  padding: 3px;
  border: 2px solid #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #c0c0c0;
}

.art-thumbnail.is-selected {
  border-color: #404040;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  background: #ff80bd;
  box-shadow: 0 0 8px #ff80bd;
}

.art-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-art-dialog {
  width: min(94vw, 1280px);
  height: min(92svh, 920px);
  padding: 30px 12px 12px;
  border: 2px solid #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #090909;
}

.full-art-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.close-dialog {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 23px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 2px solid #ffffff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #c0c0c0;
  color: #111111;
  font-weight: 900;
}

@media (max-width: 620px) {
  .gallery-header {
    grid-template-columns: 1fr;
  }

  .gallery-stage,
  .featured-art {
    min-height: 420px;
    height: 54svh;
  }

  .art-overlay {
    right: 12px;
  }
}
