@font-face {
  font-family: MusicOriginal;
  src: url('/GloridaRegular-pgOKa.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #181818;
  --ink: #eee;
  --muted: #a3a3a3;
  --accent: #ff2e9a;
  --mono: MusicOriginal, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
}

button, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a {
  touch-action: manipulation;
}

button:disabled {
  opacity: .3;
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px;
  z-index: 20;
  background: #eee;
  color: #181818;
}

.skip-link:focus {
  top: 12px;
}

.portfolio-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  padding: 22px 14px 16px;
  border-right: 1px solid #303030;
  background: #1b1b1b;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
}

.wordmark {
  font-size: 21px;
  letter-spacing: -.5px;
}

.wordmark::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--accent);
}

.wordmark>span {
  display: block;
  margin-top: 6px;
  font: 10px Arial, sans-serif;
  color: var(--muted);
}

.tiny, .section-label {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}

.artist-intro p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar .section-label {
  margin: 0 0 6px;
}

.filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 6px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #bcbcbc;
  text-align: left;
  font-size: 11px;
}

.filters button:hover {
  background: #ffffff06;
  color: #fff;
}

.filters button[aria-pressed=true] {
  background: #ff2e9a14;
  border-left-color: var(--accent);
  color: #ff78bc;
}

.filter-count {
  color: #999;
  font-size: 9px;
}

.sidebar-links {
  border-top: 1px solid #303030;
  padding-top: 13px;
}

.sidebar-links>button, .sidebar-links>a {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 11px;
}

.sidebar-links span {
  color: #888;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 12px;
  font-size: 10px;
  color: #bcbcbc;
}

.sidebar-footer>a {
  overflow-wrap: anywhere;
}

.sidebar-footer>div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar a:hover, .sidebar-links button:hover {
  color: var(--accent);
}

.mobile-filter {
  display: none;
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.gallery-header .section-label {
  margin: 0 0 6px;
}

.gallery-header h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: normal;
}

.gallery-status {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.gallery-main {
  padding: 22px 20px 16px;
  min-width: 0;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gallery-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.work {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

.artwork {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #222;
  overflow: hidden;
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
}

.artwork:hover::after {
  border-color: var(--accent);
}

.view-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: #181818;
  background: var(--accent);
  opacity: 0;
}

.artwork:hover .view-mark, .artwork:focus-visible .view-mark {
  opacity: 1;
}

.work figcaption {
  padding-top: 10px;
}

.work h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: normal;
  color: #ddd;
}

.work figcaption>span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #999;
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 20px;
  font-size: 10px;
  color: var(--muted);
}

.title-dot {
  color: var(--accent);
}

.section-label {
  font: 10px var(--mono);
  color: var(--muted);
}

dialog {
  color: var(--ink);
  border: 1px solid #555;
  background:#191919
}

dialog::backdrop {
  background: #000d;
  backdrop-filter:blur(6px)
}

body:has(dialog[open]) {
  overflow:hidden
}

.viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow:hidden
}

.viewer[open] {
  display: grid;
  grid-template-rows:auto minmax(0,1fr) auto
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #333;
  font:10px var(--mono)
}

.viewer-toolbar>div {
  display: flex;
  align-items: center;
  gap:8px
}

.viewer button,.viewer-toolbar a,.about-close {
  border: 1px solid #555;
  background: transparent;
  padding: 9px 12px;
  font:10px var(--mono)
}

.viewer button:hover,.viewer-toolbar a:hover,.about-close:hover {
  background:#333
}

.viewer-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  min-height: 0;
  padding:20px
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transform-origin: center;
  cursor:grab
}

.viewer-stage img:active {
  cursor:grabbing
}

.viewer-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-top:1px solid #333
}

.viewer-caption h2 {
  font-size: 16px;
  font-weight: 400;
  margin:0 0 7px
}

.viewer-caption p {
  font: 10px var(--mono);
  color: #aaa;
  margin:0
}

.viewer-arrows {
  display: flex;
  gap:8px
}

.about {
  width: min(520px,calc(100% - 32px));
  padding:40px
}

.about-close {
  display: block;
  margin:0 0 36px auto
}

.about h2 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -3px;
  font-weight: 500;
  margin:20px 0
}

.about>p:not(.section-label) {
  color: #bbb;
  font-size: 15px;
  line-height:1.6
}

.contact-link {
  display: block;
  border-top: 1px solid #555;
  margin-top: 32px;
  padding-top: 24px;
  font-size: 14px;
  overflow-wrap:anywhere
}

.about-socials {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font:11px var(--mono)
}

.viewer-stage {
  position: relative;
  display: block;
  min-height: 0;
  min-width: 0;
  padding:0
}

.viewer-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 20px;
  object-fit:contain
}

.viewer-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background: #191919;
  color: #ccc;
  font-size:13px
}

.viewer-message p {
  max-width: 340px;
  line-height:1.6
}

.viewer-toolbar {
  position: relative;
  z-index:1
}

.viewer-caption {
  position: relative;
  z-index:1
}

.viewer button:hover, .about-close:hover {
  background: var(--accent);
  color: #161616;
  border-color: var(--accent);
}

@media (max-width: 760px) {

  .portfolio-layout {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 16px 12px;
    border-right: 0;
    border-bottom: 1px solid #303030;
  }

  .artist-intro {
    text-align: right;
  }

  .filters {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 3px;
  }

  .filters .section-label {
    align-self: center;
    flex-shrink: 0;
    font-size: 8px;
    margin: 0 5px 0 0;
  }

  .filters button {
    flex-shrink: 0;
    padding: 9px 7px;
  }

  .sidebar-links {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    border: 0;
    padding: 0;
  }

  .sidebar-links .section-label {
    margin: 0;
  }

  .sidebar-links>button, .sidebar-links>a {
    padding: 5px 0;
    width: auto;
    gap: 10px;
  }

  .sidebar-footer {
    display: none;
  }

  .gallery-main {
    padding: 16px 12px;
  }

  .gallery-header {
    margin-bottom: 16px;
  }

  .gallery-header h1 {
    font-size: 24px;
  }

  .gallery {
    gap: 24px;
  }

  .gallery-row {
    gap: 16px;
  }

  .viewer-toolbar {
    padding: 10px;
    flex-wrap: wrap;
  }

  .viewer-toolbar>div {
    gap: 5px;
  }

  .viewer-toolbar button, .viewer-toolbar a {
    padding: 9px 8px;
  }

  .viewer-stage img {
    padding: 10px;
  }

  .viewer-caption {
    padding: 14px;
  }

  .viewer-caption h2 {
    font-size: 13px;
  }

  .about {
    padding: 24px;
  }

  .about h2 {
    font-size: 38px;
  }
}

@media (max-width: 400px) {

  .gallery-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}
