/* ================================================================
   art.css — 3D Image Universe (artworks)
================================================================ */

/* ── Page shell ── */
.art-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.art-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/artworks/actual bg for page.png') center center / cover no-repeat;
  z-index: 0;
}

/* ── Three.js canvas ── */
#artCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Artwork name tooltip ── */
.art-tooltip {
  position: fixed;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #111;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 4;
}
.art-tooltip.visible { opacity: 1; }

/* ── Art list toggle ── */
.art-list-wrap {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.art-list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  color: #111;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease;
}
.art-list-btn:hover,
.art-list-wrap.open .art-list-btn { opacity: 1; }

.art-list-dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  grid-auto-flow: row;
  width: max-content;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.art-list-wrap.open .art-list-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.art-list-dropdown li a {
  display: block;
  padding: 7px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #111;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.art-list-dropdown li a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ── Artworks title ── */
.artworks-title {
  position: absolute;
  bottom: 6vh;
  left: 2.5vw;
  font-family: var(--font-display);
  font-size: 22vw;
  font-weight: 400;
  color: #0D7377;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
}

@media (max-width: 768px) {
  /* 2-column dropdown on mobile */
  .art-list-dropdown {
    grid-template-columns: repeat(2, max-content);
    max-height: 70vh;
    overflow-y: auto;
  }
  .art-list-dropdown li:nth-child(4n+1):not(:first-child) { border-top: none; }

  /* Larger list button tap target */
  .art-list-btn { width: 44px; height: 44px; }
}
