@import url("./styles.css");

html,
body.gallery-page {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--white);
  overflow: hidden;
  font-family: var(--mono);
}
.gallery-page {
  min-height: 100vh;
}

.gallery-top-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fluor) 30%, transparent);
  background: #000000c7;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.gallery-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.gallery-header-title {
  margin: 0;
  font-family: var(--term);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fluor);
}
.gallery-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-width: 0;
}
@media (max-width: 900px) {
  .gallery-header-nav .btn-twitter-handle {
    display: none;
  }
  .gallery-header-nav .btn-twitter {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
  }
}
.gallery-header-nav a {
  color: var(--white);
}
.gallery-header-nav a:hover {
  color: var(--fluor);
}

#gallery-container {
  position: fixed;
  inset: 0;
  perspective: 2200px;
  overflow: hidden;
  cursor: grab;
  background: radial-gradient(ellipse at 50% 45%, #041208 0%, #000 70%);
}
#gallery-container.is-dragging {
  cursor: grabbing;
}
.gallery-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.hash-element {
  position: absolute;
  left: 0;
  top: 0;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  border: 1px solid color-mix(in srgb, var(--fluor) 28%, transparent);
  background: #000000eb;
  box-shadow: 0 0 16px color-mix(in srgb, var(--fluor) 12%, transparent);
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-select: none;
}
.hash-element:hover {
  border-color: var(--fluor);
  box-shadow: 0 0 22px color-mix(in srgb, var(--fluor) 45%, transparent);
}
.hash-element-active {
  border-color: var(--fluor);
  box-shadow:
    0 0 28px color-mix(in srgb, var(--fluor) 55%, transparent),
    0 0 48px color-mix(in srgb, var(--fluor) 22%, transparent);
}
.hash-element-number {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--fluor) 80%, white);
}
.hash-element-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.35rem 0.85rem 1.1rem;
}
.hash-element-art svg {
  width: 72px;
  height: 72px;
}
.hash-element-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  margin: 0;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffffb8;
}

.gallery-intro {
  position: fixed;
  top: 8.25rem;
  left: 1.5rem;
  z-index: 10;
  max-width: 22rem;
  pointer-events: none;
}
.gallery-intro-label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fluor);
}
.gallery-intro-title {
  margin: 0 0 0.75rem;
  font-family: var(--term);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--white);
}
.gallery-intro-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #ffffffd1;
}
.gallery-intro-note {
  margin: 0.75rem 0 0;
  font-size: 0.65rem;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fluor);
}

.gallery-showcase {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: min(12.5rem, 30vw);
  pointer-events: none;
}
.gallery-showcase-label {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fluor) 85%, white);
}
.gallery-showcase-frame {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--fluor) 45%, transparent);
  background: #000000e0;
  box-shadow:
    0 0 24px color-mix(in srgb, var(--fluor) 28%, transparent),
    0 0 48px color-mix(in srgb, var(--fluor) 12%, transparent);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.gallery-showcase-frame.is-jumping {
  transform: translateY(-8px) scale(1.04);
}
.gallery-showcase-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-showcase-shape {
  opacity: 0;
  animation: gallery-shape-pop 0.42s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
@keyframes gallery-shape-pop {
  0% {
    opacity: 0;
    transform: scale(0.15);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.gallery-showcase-details {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.gallery-showcase-detail dt {
  margin: 0;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff80;
}
.gallery-showcase-detail dd {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--white);
  word-break: break-all;
}
.gallery-showcase-detail dd.is-fluor {
  color: var(--fluor);
}

#gallery-menu {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: min(100% - 2rem, 40rem);
  transform: translate(-50%);
}
#gallery-menu button {
  border: 1px solid color-mix(in srgb, var(--fluor) 55%, transparent);
  background: #000000b8;
  color: var(--fluor);
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
#gallery-menu button:hover {
  background: color-mix(in srgb, var(--fluor) 18%, black);
  box-shadow: 0 0 18px color-mix(in srgb, var(--fluor) 35%, transparent);
}
#gallery-menu button.is-active {
  color: var(--void);
  background: var(--fluor);
  box-shadow: 0 0 20px color-mix(in srgb, var(--fluor) 45%, transparent);
}

@media (max-width: 768px) {
  .gallery-intro {
    display: none;
  }
  .gallery-showcase {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 5.75rem;
    width: min(13rem, 90vw);
    transform: translate(-50%);
  }
  .gallery-header-title {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-showcase-frame.is-jumping {
    transform: none;
  }
  .gallery-showcase-shape {
    animation: none;
    opacity: 1;
  }
}
