/* Existing WebGL experiments, moved from the interactive portfolio. */
.page-hero {
      padding: 8rem 0 4rem;
      background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
    }
    .gallery-item {
      aspect-ratio: 16/10;
      background: var(--bg-tertiary);
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      border: 1px solid var(--border-color);
      transition: var(--transition);
    }
    .gallery-item:hover {
      border-color: var(--accent-color);
      transform: scale(1.02);
    }
    .gallery-item iframe {
      display: block;
      width: 100%;
      height: 100%;
      border: none;
      pointer-events: none;
      transform: scale(1.01);
      overflow: hidden;
    }
    .gallery-item iframe::-webkit-scrollbar {
      display: none;
    }
    .gallery-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 1rem;
      background: linear-gradient(transparent, rgba(0,0,0,0.9));
      color: white;
    }
    .gallery-overlay h3 {
      font-size: 1rem;
      margin-bottom: 0.25rem;
    }
    .gallery-overlay p {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    .filter-tabs {
      display: flex;
      gap: 1rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }
    .filter-tab {
      padding: 0.5rem 1.5rem;
      border-radius: 25px;
      background: var(--bg-secondary);
      color: var(--text-secondary);
      cursor: pointer;
      transition: var(--transition);
      border: 1px solid var(--border-color);
    }
    .filter-tab:hover,
    .filter-tab.active {
      background: var(--accent-color);
      color: white;
      border-color: var(--accent-color);
    }
    .fullscreen-viewer {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: #000;
      z-index: 2000;
    }
    .fullscreen-viewer[open] {
      display: block;
    }
    .fullscreen-close {
      position: fixed;
      top: 1.5rem;
      right: 1.5rem;
      background: rgba(0,0,0,0.6);
      border: none;
      color: white;
      font-size: 2rem;
      cursor: pointer;
      z-index: 2001;
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s;
    }
    .fullscreen-close:hover {
      background: rgba(0,114,255,0.8);
    }
    .fullscreen-iframe {
      width: 100%;
      height: 100%;
      border: none;
    }
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-top: 3rem;
      flex-wrap: wrap;
    }
    .pagination-btn {
      width: 2.5rem;
      height: 2.5rem;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      color: var(--text-color);
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
    }
    .pagination-btn:hover {
      border-color: var(--accent-color);
      background: var(--accent-color);
      color: white;
    }
    .pagination-btn.active {
      background: var(--accent-color);
      border-color: var(--accent-color);
      color: white;
    }
    .pagination-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .pagination-info {
      margin: 0 1rem;
      color: var(--text-secondary);
      font-size: 0.9rem;
    }
    @media screen and (max-width: 1024px) {
      .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media screen and (max-width: 768px) {
      .gallery-grid { grid-template-columns: 1fr; }
    }

/* Match the studio's rounded surfaces and isolate the live experiment viewer. */
.art-intro { padding-bottom:0; }
.art-intro .case-categories { margin-top:0; }
.gallery-item { font:inherit; color:inherit; width:100%; padding:0; border-radius:22px; }
.filter-tab { font:inherit; border-radius:999px; }
.pagination-btn { border-radius:999px; }
.fullscreen-viewer { max-width:none; max-height:none; margin:0; padding:0; border:0; height:100dvh; }
.fullscreen-close { font-size:1.7rem; }
.fullscreen-close:hover { background:var(--accent-color); }
html.has-custom-cursor .fullscreen-viewer { cursor:auto; }
html.has-custom-cursor .fullscreen-viewer button { cursor:pointer; }
.gallery-item:focus-visible,.filter-tab:focus-visible,.pagination-btn:focus-visible { outline:2px solid var(--accent-color); outline-offset:4px; }
