/* One artwork per page, and the explorer. Uses the home page's colours and type (home.css). */
.art-page { max-width: var(--stage); margin: 0 auto; padding: calc(48px + 2rem) 1.25rem 3rem; }
.art-crumbs { font-family: var(--sign); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 0 0 1.4rem; }
.art-crumbs a { color: var(--soft); text-decoration: none; }
.art-crumbs a:hover { color: var(--accent); }
.art-crumbs span { margin: 0 .5rem; opacity: .6; }
.art-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.art-open { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; position: relative; }
.art-open img { width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: contain; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.art-open::after { content: "Explore"; position: absolute; right: .8rem; bottom: .8rem; font-family: var(--sign); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; background: rgba(11,13,20,.75); color: var(--ink); padding: .45rem .7rem; border-radius: 2px; opacity: 0; transition: opacity .3s; }
.art-open:hover::after, .art-open:focus-visible::after { opacity: 1; }
.art-info h1 { font-size: clamp(2rem, 4vw, 3.2rem); overflow-wrap: break-word; }
.art-info .actions { margin-top: 1.4rem; }
.art-info button.btn { border: 0; cursor: pointer; }
.art-note { font-family: var(--sign); font-size: .78rem; letter-spacing: .06em; color: var(--soft); margin: 1rem 0 0; min-height: 1.2em; }
.art-pager { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 0; }
.art-pager a { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); font-family: var(--sign); font-size: .8rem; letter-spacing: .08em; max-width: 48%; }
.art-pager a[rel="next"] { flex-direction: row-reverse; text-align: right; margin-left: auto; }
.art-pager img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; flex: none; filter: saturate(.85); transition: filter .3s; }
.art-pager a:hover img { filter: none; }
.art-pager small { display: block; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: .66rem; margin-bottom: .2rem; }
.art-series { margin: 3.5rem 0 0; }
.art-series h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.art-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: .4rem; }
.art-strip a { flex: none; width: 96px; height: 96px; display: block; border-radius: 2px; overflow: hidden; }
.art-strip a[aria-current] { box-shadow: inset 0 0 0 3px var(--accent); }
.art-strip img { width: 100%; height: 100%; object-fit: cover; }
.art-strip a[aria-current] img { opacity: .55; }
@media (max-width: 760px) { .art-main { grid-template-columns: 1fr; } .art-open img { max-height: 70vh; } }

/* the explorer */
.xp { position: fixed; inset: 0; z-index: 250; background: #06070b; color: #efe9df; }
.xp[hidden] { display: none; }
html.xp-open { overflow: hidden; }
.xp-stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.xp-stage.grabbing { cursor: grabbing; }
.xp-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; image-rendering: auto; }
.xp-bar { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; display: flex; align-items: center; gap: .2rem; padding: .3rem .4rem .3rem 1rem; background: rgba(15, 18, 27, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 4px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), inset 0 2px 0 #ffb86b; font-family: "Barlow Semi Condensed", Bahnschrift, "Arial Narrow", sans-serif; max-width: calc(100vw - 1rem); }
.xp-name { margin: 0 .8rem 0 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.xp-level { min-width: 3.4rem; text-align: center; font-size: .8rem; letter-spacing: .06em; color: #a9a59c; }
.xp-btn { border: 0; background: none; color: #efe9df; width: 40px; height: 40px; font-size: 1.25rem; line-height: 1; border-radius: 3px; cursor: pointer; }
.xp-btn:hover { background: rgba(255,255,255,.1); color: #ffb86b; }
.xp-close { font-size: 1.7rem; }
.xp-map { position: absolute; right: 1.2rem; top: 1.2rem; width: 150px; max-height: 40vh; border-radius: 3px; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,.9); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: crosshair; touch-action: none; }
.xp-map.on { opacity: 1; pointer-events: auto; }
.xp-map img { position: absolute; left: 0; top: 0; display: block; max-width: none; transform-origin: 0 0; opacity: .75; }
.art-open.turned { margin: 0 auto; overflow: hidden; background: #06070b; }
.art-open.turned img { box-shadow: none; }
.art-strip a, .art-pager a > img, .gallery-tile { overflow: hidden; }
.art-pager a > img { transition: transform .4s; }
.art-strip img, a.gallery-tile img { transition: transform .4s; }
.art-info .actions .turn-reset { font-family: var(--sign); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; color: var(--soft); cursor: pointer; padding: .85rem .4rem; }
.art-info .actions .turn-reset:hover { color: var(--accent); }
.art-info .actions .turn-reset[hidden] { display: none; }
.xp-view { position: absolute; box-shadow: 0 0 0 2px #ffb86b, 0 0 0 999px rgba(6,7,11,.45); }
.xp-hint { position: absolute; left: 50%; top: 1.2rem; translate: -50% 0; margin: 0; font-family: "Barlow Semi Condensed", Bahnschrift, "Arial Narrow", sans-serif; font-size: .78rem; letter-spacing: .08em; color: #a9a59c; background: rgba(15,18,27,.7); padding: .4rem .8rem; border-radius: 3px; pointer-events: none; animation: xp-hint 5s forwards; }
@keyframes xp-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 600px) { .xp-name { display: none; } .xp-bar { bottom: .6rem; padding-left: .4rem; } .xp-map { width: 96px; right: .6rem; top: .6rem; } .xp-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .xp-hint { animation: none; opacity: 0; } }

/* the gallery page: Art first, then the Projects heading over the series */
.gallery-group-title { font-family: var(--sign, "Barlow Semi Condensed", sans-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: .04em; margin: 4rem 0 0; padding-top: 2rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
