/*
SQKZ Version 3
Author: Riley Hoff
*/

:root {
  --primary-color: #000000;
  --secondary-color: rgba(0, 0, 0, 0.5);
  --secondary-color-light: #d8d8d8;
  --primary-light-color: #ff00401e;
  --text-color: #000;
  --bg-color: rgb(249, 246, 240);
  --bg-color-secondary: rgba(249, 246, 240, 0.6);
  --body-font:  "helvetica-neue-lt-pro", sans-serif;
  --header-font: 'EB Garamond', serif;
}

a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

a:not(a.btn):after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

a:not(a.btn):hover::after,
a:not(a.btn):focus-visible::after {
  transform: scaleX(1);
}

html, body {
   width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  text-rendering: optimizelegibility;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 0;
  border: none;
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
  }
}

.btn {
  background-color: transparent;
  border: 1px solid var(--secondary-color-light);
  color: var(--secondary-color);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  transition: border linear .2s;
  font-weight: 500;
    font-family: var(--body-font);
}
.btn:hover, #available-only.btn:hover, .btn[aria-pressed="true"], #available-only.btn[aria-pressed="true"] {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn.btn-impact {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 var(--primary-color);
  transition: box-shadow .2s linear,  background-color .2s linear;
}
.btn.btn-impact:hover {
  box-shadow: 0 0 6px var(--primary-color);
}
.btn.btn-impact:active {
  box-shadow: inset 0 0 2px var(--primary-color);
  background-color: #0000009b;
}

.grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 12px;
  margin: 24px;
  width: calc(100% - 48px); 
}

header {  
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--bg-color);
  transition: transform 220ms ease;
  padding-bottom: 12px;
}
header.is-scrolled {
  padding-top: 12px;
}

header.is-hidden {
  transform: translateY(-100%);
}

header .logo {
  grid-column: 1;
  grid-row: 1;
  height:30px;
  width: auto;
  margin-top: -2px;
  cursor: pointer;
}
header .breadcrumbs {
  text-transform: uppercase;
line-height: 24px;
  grid-row: 2;
  grid-column: 3/7;
}

header .gallery-return-link {
  display: none;
}

body.about-contact-active header .breadcrumbs {
  display: none;
}

body.about-contact-active header .gallery-return-link {
  display: block;
  grid-row: 2;
  grid-column: 3/7;
  line-height: 24px;
  text-transform: uppercase;
}

header.is-scrolled .gallery-return-link {
  grid-row: 1;
}

header .controls {
  grid-row: 2;
  grid-column: 9/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  align-self: start;
  gap: 8px 4px;
}

header.is-scrolled .breadcrumbs, header.is-scrolled  .controls {
  grid-row: 1;
}

#available-only {
  grid-column: 1/2;
  grid-row: 1;
  min-height: 24px;
  padding: 6px;
  border: 1px solid #d8d8d8;
  background: transparent;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

#available-only:focus-visible,
.art-view-button:focus-visible,
#grid-size-slider:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.availability-indicator {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d8d8d8;
}

#available-only[aria-pressed="true"] .availability-indicator {
  background: #169b3b;
  box-shadow: 0px 0px 4px #169b3cb1;
}

.art-detail-toggle {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.art-view-button {
  width: clamp(16px, 2vw, 18px);
  aspect-ratio: 4/5;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  opacity: 1;
  cursor: pointer;
}

.main-image-icon,
.detail-image-icon {
  width: 100%;
  aspect-ratio: 4/5;
}

.main-image-icon {
  background: var(--secondary-color-light);
}

#main-image-view[aria-pressed="true"] span,
#detail-image-view[aria-pressed="true"] .detail-image-icon span {
  background: var(--primary-color);
}

.detail-image-icon {
  border: 2px solid var(--secondary-color-light);
  display: grid;
  place-items: center;
}

.detail-image-icon span {
  width: 70%;
  height: 70%;
  background: var(--secondary-color-light);
}

#detail-image-view[aria-pressed="true"] .detail-image-icon {
  border-color: var(--primary-color);
}

.art-grid-size {
  grid-column: 3/-1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
}

.grid-icon {
  width: 18px;
  height: 18px;
  display: grid;
  gap: 2px;
}

.grid-icon-large {
  grid-template-columns: repeat(2, 1fr);
}

.grid-icon-small {
  width: 18px;
  height: 18px;
  grid-template-columns: repeat(3, 1fr);
  justify-self: end;
}

.grid-icon span {
  background: #d8d8d8;
}

#grid-size-slider {
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#grid-size-slider::-webkit-slider-runnable-track {
  height: 1px;
  background: #d8d8d8;
}

#grid-size-slider::-moz-range-track {
  height: 1px;
  background: #d8d8d8;
}

#grid-size-slider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: none;
  border-radius: 50%;
  background: #171820;
  appearance: none;
  -webkit-appearance: none;
}

#grid-size-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: #171820;
}

nav {
  position: sticky;
  top: calc(var(--sticky-header-height, 126px) + 24px);
  grid-column: 1 / 3;
  width: 100%;
  padding: 0;
  z-index: 1000;
  height: calc(100vh - var(--sticky-header-height, 126px) - 48px);
  transition: top 220ms ease, height 220ms ease;
}

body.header-hidden nav {
  top: 24px;
  height: calc(100vh - 128px);
}

nav ul,
nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav > ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  height: 100%;   
}

nav .pages > li:not(.pages > li:last-of-type) {
  margin-bottom: 12px;
}

nav .subpages {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  text-align: right;
  transition: max-height 300ms ease, opacity 200ms ease, transform 200ms ease,
    visibility 0s linear 300ms;
}
nav .active .subpages {
  margin-top: 12px;
  max-height: 20rem;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
nav .subpages li,
nav .category li {
  color: var(--secondary-color);
  margin: 0 0 12px;
}

nav .category .active,
nav .subpages .active {
  color: var(--primary-color);
}

.about-contact-links {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10001;
}

.about-contact-links .active::after {
  transform: scaleX(1);
}

.watermark-emoji {
  opacity: 0.5;
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 24px;
  height: auto;
  z-index: 0;
}

.version {
   opacity: 0.5;
  position: fixed;
  bottom: 12px;
  left: 12px;
  color: var(--text-color);
}
.version p {
  margin: 0;
  padding: 0;
}

#artworks {
  grid-column: 3/-1;
  display: grid;
  grid-template-columns: subgrid;
  align-content: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: auto;
  row-gap: 48px;
}

.artworks-empty-state {
  grid-column: 1/-1;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.artworks-empty-state[hidden] {
  display: none;
}

.artworks-empty-state p {
  margin: 0;
}

#reset-artwork-filters {
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

#reset-artwork-filters:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.artwork {
  grid-column: span var(--artwork-span, 3);
  min-width: 0;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.artwork:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

#fullscreen[hidden], #about[hidden], #contact[hidden], #inquiry-panel[hidden], #sent_msg[hidden] {
  display: none;
}

body.fullscreen-active {
  overflow: hidden;
}

body.fullscreen-active nav {
  position: fixed;
  top: 24px;
  left: 24px;
  width: calc(14.2857vw - 17px);
  height: calc(100vh - 48px);
  z-index: 2001;
  background: transparent;
}

.fullscreen-nav-controls {
  display: none;
}

body.fullscreen-active .fullscreen-nav-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 66px;
}

.fullscreen-logo {
  width: auto;
  height: 30px;
  object-fit: contain;
}

#fullscreen-back, #about-back, #contact-back  {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 64px 0 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

#fullscreen-back:focus-visible, #about-back:focus-visible, #contact-back:focus-visible,
.fullscreen-thumbnail:focus-visible,
.fullscreen-inquire:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

body.fullscreen-active nav > ul {
  height: calc(100% - 90px);
}

#fullscreen,
#about,
#contact {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: 0  24px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  background: var(--bg-color);
  animation: fullscreen-rise 750ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

#contact {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.contact-content {
  grid-column: 5 / 14;
  min-width: 0;
  padding: 128px 0 48px;
}

#contact.has-inquiry .contact-content {
  grid-column: 4 / 11;
}

#contact .contact-content .header {
  margin: 0 0 24px;
}

#contact_form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

#contact_name,
#contact_email {
  grid-column: span 1;
}

#contact_phone,
#contact_message,
.contact-actions {
  grid-column: 1 / -1;
}

.contact-field {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  min-width: 0;
}

.contact-field label {
  position: absolute;
  top: 32px;
  left: 12px;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  text-transform: uppercase;
  color: var(--secondary-color);
  pointer-events: none;
  transition: top 180ms ease, left 180ms ease, color 180ms ease;
}

.contact-field input:focus + label,
.contact-field input:not(:placeholder-shown) + label,
.contact-field input:-webkit-autofill + label,
.contact-field textarea:focus + label,
.contact-field textarea:not(:placeholder-shown) + label {
  top: 0;
  left: 0;
}

.contact-field input:focus + label,
.contact-field textarea:focus + label {
  color: var(--primary-color);
}

.required::after {
  content: " *";
}

#contact_form input:not([type="submit"]):not([type="hidden"]),
#contact_form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--secondary-color-light);
  border-radius: 0;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  transition: border-color .2s linear;
}

#contact_form input:not([type="submit"]):not([type="hidden"])::placeholder,
#contact_form textarea::placeholder {
  color: transparent;
}

#contact_form input:not([type="submit"]):not([type="hidden"]):hover,
#contact_form textarea:hover {
  border-color: var(--secondary-color);
}

#contact_form input:not([type="submit"]):not([type="hidden"]):focus,
#contact_form textarea:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
}

#contact_form input:not([type="submit"]):not([type="hidden"]):not(:placeholder-shown):valid,
#contact_form textarea:not(:placeholder-shown):valid {
  border-bottom-color: #169b3b;
  border-width: 2px;
}

#contact_form input:not([type="submit"]):not([type="hidden"]):not(:placeholder-shown):invalid,
#contact_form textarea:not(:placeholder-shown):invalid,
#contact_form input:not([type="submit"]):not([type="hidden"]):user-invalid,
#contact_form textarea:user-invalid {
  border-bottom-color: #d80036;
  border-width: 2px;
}

#contact_form input:not([type="submit"]):not([type="hidden"]):focus-visible,
#contact_form textarea:focus-visible,
#contact_submit:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

#contact_form input:not([type="submit"]):not([type="hidden"]):not(:placeholder-shown):valid:focus-visible,
#contact_form textarea:not(:placeholder-shown):valid:focus-visible,
#contact_form:valid #contact_submit:focus-visible {
  outline-color: #169b3b;
}

#contact_form input:not([type="submit"]):not([type="hidden"]):not(:placeholder-shown):invalid:focus-visible,
#contact_form textarea:not(:placeholder-shown):invalid:focus-visible,
#contact_form input:not([type="submit"]):not([type="hidden"]):user-invalid:focus-visible,
#contact_form textarea:user-invalid:focus-visible,
#contact_form:invalid #contact_submit:focus-visible {
  outline-color: #d80036;
}

#contact_form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

#contact_submit {
  padding: 8px 24px;
  min-height: 32px;
  font-family: var(--body-font);
  cursor: pointer;
  transition: background-color .2s linear, border-color .2s linear, color .2s linear;
}

#contact_form:valid #contact_submit:hover {
  background-color: #169b3b;
  border-color: #169b3b;
  color: var(--bg-color);
  box-shadow: 0 0 6px #169b3c8b;
}

#contact_form:invalid #contact_submit:hover {
  background-color: #d80036;
  border-color: #d80036;
  color: var(--bg-color);
  box-shadow: 0 0 6px #d800368b;
}

#inquiry-panel {
  grid-column: 12 / 15;
  min-width: 0;
  padding: 48px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#inquiry-panel .inquiry-label {
  font-size: 10px;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

#inquiry-panel .title {
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  line-height: 1.2;
  color: var(--text-color);
}

#inquiry-panel .inquiry-details {
  font-size: 10px;
  color: var(--secondary-color);
  margin-top: 6px;
}

#art_sample img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

#sent_msg {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 3000;
  margin: 0;
  padding: 10px 18px;
  background: var(--primary-color);
  color: var(--bg-color);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  transform: translate(-50%, -12px);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

#sent_msg.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#about img {
  width: 150px;
  height: auto;
  margin: 12px 0 12px 12px;
  transition: filter .2s linear, opacity .2s linear;
  cursor: pointer;
}
#about img.overlap {
  filter: blur(6px) ;
  opacity: .4;
}

#about .profile-pic:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

#about .profile-pic.rebound {
  animation: bio-image-rebound 560ms ease-in-out both;
}

@keyframes bio-image-rebound {
  0%, 86%, 100% {
    translate: 0 0;
  }
  42% {
    translate: var(--bio-rebound-x, 0px) var(--bio-rebound-y, 0px);
  }
  68% {
    translate: var(--bio-rebound-return-x, 0px) var(--bio-rebound-return-y, 0px);
  }
}

#about {
  overflow-y: auto;
}

#about .bio { 
  grid-column: 4/15;
  grid-row: 1;
  height: 100vh;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: 0;
  grid-template-rows: 1fr 1fr 1fr;
}
#about .bio p {
  grid-row: 2;
  grid-column: 3/10;
  line-height: 1.35;
  font-size: clamp(24px, 2.5vw, 36px);
  text-transform: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}
#about .bio h2 {
  grid-column: 3/10;
  grid-row: 1;
  line-height: 10px;
  font-size: 10px;
  margin: 128px 0 24px ;
  font-weight: 500;
}

#about .btn {
  grid-row: 3;
  grid-column: 3;
  padding: 6px 12px;
  margin-top: 64px;
  height: fit-content;
  width: fit-content;
  background-color: var(--bg-color-secondary);
} 

@keyframes fullscreen-rise {
  from {
    transform: translate3d(0, 100vh, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

#fullscreen.fullscreen-closing,
#about.fullscreen-closing,
#contact.fullscreen-closing {
  animation: fullscreen-fall 750ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

@keyframes fullscreen-fall {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 100vh, 0);
  }
}

.fullscreen-back-column {
  grid-column: 3/4;
  grid-row: 1;
  position: sticky;
  top: 24px;
  align-self: start;
  white-space: nowrap;
}

#about .fullscreen-back-column {
  z-index: 1;
}

.fullscreen-thumbnails {
  padding-top: 24px;
  grid-column: 4/5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 100%;
  overflow-y: auto;
}

.fullscreen-thumbnail {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.62;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.fullscreen-thumbnail[aria-current="true"],
.fullscreen-thumbnail:hover {
  opacity: 1;
}

.fullscreen-thumbnail-image {
  display: block;
  width: 100%;
  object-fit: cover;
}

.fullscreen-gallery {
  grid-column: 6/13;
  height: calc(100% - 48px);
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

.fullscreen-image {
  margin: 0;
  scroll-margin-top: 24px;
}

.fullscreen-art-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
  object-fit: contain;
}

.fullscreen-information {
  grid-column: 13/-1;
  max-width: 180px;
  position: sticky;
  top: 50%;
  align-self: center;
  color: var(--secondary-color);
}

.fullscreen-title {
  font-size: 20px;
  text-transform: none;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-color);
}

.fullscreen-information p {
  margin: 0;
}

.fullscreen-information p.fullscreen-status {
  margin: 24px 0 12px;
}

.fullscreen-status::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: #169b3b;
  content: "";
  vertical-align: middle;
}

.fullscreen-status.sold::after {
  background: red;
}

.fullscreen-status.hold::after {
  background: rgb(231, 160, 18);
}

.fullscreen-status.nfs::after {
  display: none;
}

.fullscreen-inquire {
  display: block;
  padding: 6px 12px;
  background: #d8d8d8;
  color: var(--text-color);
  text-align: center;
}

#artworks .artwork[hidden] {
  display: none;
}

.artwork img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.artwork[data-status="sold"]::after,
.artwork[data-status="hold"]::after {
  display: block;
  content: "";
  height: 6px;
  width: 6px;
  position: relative;
  bottom: -6px;
  left: calc(100% - 6px);
  border-radius: 100%;
  background-color: red;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 400ms ease, transform 400ms ease;
}
.artwork[data-status="hold"]::after {
  background-color: rgb(231, 160, 18);
}
.artwork[data-status="available"]::after {
  background-color: green;
}

.artwork[data-status="sold"].is-loaded::after,
.artwork[data-status="hold"].is-loaded::after,
.artwork[data-status="nfs"].is-loaded::after,
.artwork[data-status="available"].is-loaded::after {
  opacity: 1;
  transform: scale(1);
}

.artwork img.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.artwork img.is-view-switch {
  transform: none;
  transition: opacity 400ms ease;
}

@keyframes artwork-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes artwork-status-enter {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.artwork.is-filter-entering.is-loaded img {
  animation: artwork-enter 650ms ease both;
}

.artwork.is-filter-entering.is-loaded::after {
  animation: artwork-status-enter 650ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  a::after {
    transition: none;
  }

  header,
  nav {
    transition: none;
  }

  #fullscreen,
  #about,
  #contact {
    animation: none;
  }

  #about .profile-pic.rebound {
    animation: none;
  }

  nav .subpages {
    transition: none;
  }

  .fullscreen-thumbnail,
  .contact-field label {
    transition: none;
  }

  .artwork img {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .artwork.is-filter-entering.is-loaded img,
  .artwork.is-filter-entering.is-loaded::after {
    animation: none;
  }

  .artwork[data-status="sold"]::after,
  .artwork[data-status="hold"]::after,
  .artwork[data-status="available"]::after {
    transition: none;
  }
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 12px;
  }

  header {
    grid-row: 1;
  }

  header .logo {
    grid-column: 1;
    grid-row: 1;
  }

  header .breadcrumbs {
    grid-column: 3/7;
    grid-row: 1;
  }

  header .controls {
    grid-column: 9/-1;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #available-only {
    grid-column: 1/2;
    min-height: 24px;
    padding: 6px;
    white-space: nowrap;
  }

  .art-detail-toggle {
    grid-column: 2;
  }

  .art-grid-size {
    grid-column: 3/-1;
  }

  nav {
    grid-column: 1/3;
    top: calc(var(--sticky-header-height, 66px) + 24px);
  }

  nav .subpages {
    text-align: right;
  }

  #artworks {
    grid-column: 3/-1;
  }

  .artwork {
    grid-column: span var(--artwork-span, 3);
  }

  .version {
    display: none;
  }

  #contact_name,
  #contact_email {
    grid-column: 1 / -1;
  }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {

  html, body {
    overflow-x: hidden;
  }

  body {
    padding-top: 0;
  }

  body::after {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    height: 146px;
    background: var(--bg-color);
    box-shadow: 0 -6px 8px var(--bg-color);
    content: "";
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear;
  }

  a::after {
    display: none;
    content: none;
  }

  body.header-hidden::after {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s, 180ms;
  }

  .grid {
    display: block;
    width: auto;
    margin: 149px 12px 0;
  }

  header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: block;
    height: 84px;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    transition: height 180ms ease, background-color 180ms ease;
  }

  header.is-scrolled,
  body.fullscreen-active header {
    height: 48px;
    padding-top: 0;
  }

  header.is-hidden {
    transform: none;
    background: transparent;
  }

  body.fullscreen-active header,
  body.fullscreen-active header.is-hidden {
    background: var(--bg-color);
  }

  header .logo {
    position: absolute;
    left: 12px;
    top: 24px;
    height: 24px;
    transition: top 180ms ease, opacity 180ms ease, visibility 0s linear;
  }

  header.is-scrolled .logo,
  body.fullscreen-active header .logo {
    top: 12px;
  }

  header.is-hidden .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 180ms;
  }

  header .breadcrumbs {
    line-height: 1;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 88px;
    text-align: left;
    background: var(--bg-color );
    width: fit-content;
    transition: top 180ms ease, opacity 180ms ease, visibility 0s linear;
  }

  header.is-scrolled .breadcrumbs,
  body.fullscreen-active header .breadcrumbs {
    top: 12px;
    left: 48px;
    right: 12px;
    width: auto;
    padding: 0;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.fullscreen-active header .logo,
  body.fullscreen-active header .breadcrumbs {
    cursor: pointer;
  }

  body.about-contact-active header .breadcrumbs {
    display: none;
  }

  body.about-contact-active header .gallery-return-link {
    position: absolute;
    top: 12px;
    left: 48px;
    right: 12px;
    display: block;
    line-height: 24px;
    text-decoration: none;
    text-transform: uppercase;
  }

  header.is-hidden .breadcrumbs {
    top: 0;
    left: 12px;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  header .controls {
    position: fixed;
    left: 17px;
    right: 12px;
    bottom: 16px;
    z-index: 1200;
    background: var(--bg-color);
    grid-row: auto;
    grid-column: auto;
    grid-template-columns: 88px 82px minmax(0, 1fr);
    grid-template-rows: 32px;
    align-items: center;
    gap: 24px;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear;
  }

  body.header-hidden header .controls {
    transform: translateY(calc(100% + 16px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 0s, 180ms;
  }

  #available-only {
    grid-column: 1;
    grid-row: 1;
    min-height: 30px;
    padding: 4px 6px;
    gap: 6px;
    white-space: nowrap;
  }

  .art-detail-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    gap: 38px;
    padding-left: 7px;
    box-sizing: border-box;
  }

  .art-view-button {
    width: 16px;
  }

  .art-grid-size {
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: 16px minmax(0, 1fr) 16px;
    gap: 6px;
  }

  .grid-icon,
  .grid-icon-small {
    width: 16px;
    height: 16px;
    gap: 2px;
  }

  nav {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    bottom: 62px;
    z-index: 1100;
    height: 72px;
    margin: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: transform 220ms ease, opacity 180ms ease, visibility 0s linear;
  }

  nav::before {
    position: absolute;
    top: 24px;
    left: -12px;
    right: -12px;
    border-top: 1px solid var(--border-color);
    content: "";
    pointer-events: none;
  }

  nav::after {
    position: absolute;
    top: 40px;
    right: -12px;
    z-index: 1;
    width: 32px;
    height: 24px;
    background: linear-gradient(to right, transparent, var(--bg-color));
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  } 

  nav.has-subpage-scroll-hint::after {
    opacity: 1;
  }

  body.header-hidden nav {
    top: auto;
    height: 72px;
    transform: translateY(calc(100% + 62px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 0s, 180ms;
  }

  nav > ul {
    display: block;
    height: auto;
  }

  nav > ul > li:first-child {
    width: 100%;
  }

  .about-contact-links {
    position: fixed;
    top: 24px;
    right: 12px;
    bottom: auto;
    left: auto;
    z-index: 1200;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    transition: top 180ms ease, opacity 180ms ease, visibility 0s linear;
  }

  .about-contact-links .active {
    border-bottom: 1px solid var(--primary-color);
  }

  header.is-scrolled ~ .about-contact-links {
    top: 12px;
    height: 24px;
  }

  body.fullscreen-active .about-contact-links {
    top: 12px;
    height: 24px;
  }

  body.header-hidden .about-contact-links {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 180ms;
  }

  body.fullscreen-active .about-contact-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav .category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  nav .category > li {
    margin: 0;
    text-align: center;
  }
  nav .category > li a {
    padding: 10px 8px;
  }

  nav .category a::after {
    bottom: 8px;
  }

  nav .pages > li:not(.pages > li:last-of-type) {
    margin-bottom: 0;
  }

  nav .category .subpages {
    display: none;
  }

  nav .category > .active .subpages {
    position: absolute;
    left: -12px;
    right: -12px;
    top: 24px;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    opacity: 1;
    transform: none;
    visibility: visible;
    text-align: left;
    white-space: nowrap;
    scrollbar-width: none;
    padding-right: 12px;
    padding-left: 12px;
  }

  nav .category > .active .subpages::-webkit-scrollbar {
    display: none;
  }

  nav .subpages li {
    padding: 0;
    margin: 0;
    text-align: left;
    flex: 0 0 auto;
  }

  #artworks {
    display: grid;
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 6px;
    width: 100%;
    padding-bottom: 128px;
  }

  .version {
    display: none;
  }

  body.fullscreen-active nav {
    display: none;
  }

  body.fullscreen-active nav > ul {
    display: none;
  }

  #fullscreen,
  #about,
  #contact {
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 12px max(16px, env(safe-area-inset-bottom, 0px));
  }

  #fullscreen,
  #about,
  #contact {
    --mobile-overlay-top: calc(var(--sticky-header-height, 84px) + 20px);
    top: var(--mobile-overlay-top);
  }

  header.is-scrolled ~ #fullscreen,
  header.is-scrolled ~ #about,
  header.is-scrolled ~ #contact {
    --mobile-overlay-top: var(--sticky-header-height, 48px);
  }

  body.fullscreen-active #fullscreen,
  body.fullscreen-active #about,
  body.fullscreen-active #contact {
    --mobile-overlay-top: 48px;
  }

  #fullscreen,
  #about,
  #contact {
    transition: translate 180ms ease-out;
  }

  #fullscreen.mobile-overlay-dragging,
  #about.mobile-overlay-dragging,
  #contact.mobile-overlay-dragging {
    transition: none;
  }

  #fullscreen .fullscreen-back-column,
  #about .fullscreen-back-column,
  #contact .fullscreen-back-column {
    display: none;
  }

  #about {
    --about-mobile-top: max(12px, env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding: var(--about-mobile-top) 12px max(16px, env(safe-area-inset-bottom, 0px));
  }

  #about .fullscreen-back-column {
    position: sticky;
    top: var(--about-mobile-top);
    z-index: 2;
    background: var(--bg-color);
  }

  #about .bio {
    order: 1;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    grid-column: auto;
    grid-row: auto;
    align-items: stretch;
    width: 100%;
    height: auto;
    min-height: calc(100vh - var(--mobile-overlay-top) - 72px);
    padding-bottom: 30vh;
    gap: 0;
    isolation: isolate;
  }

  #about .bio .profile-pic {
    position: sticky;
    top: calc(var(--about-mobile-top) + 32px);
    z-index: -1;
    order: -1;
    display: block;
    align-self: center;
    width: min(60vw, 220px);
    height: auto;
    margin: 0 0 24px;
    float: none;
    transform: none;
    will-change: auto;
  }

  #about .bio h2 {
    order: 0;
    margin: 48px 0 24px;
    line-height: 1;
  }

  #about .bio p {
    order: 1;
    width: 100%;
    font-size: clamp(20px, 5.2vw, 24px);
  }

  #about .bio .btn {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    margin-top: 48px;
  }

  .fullscreen-back-column {
    order: 0;
    position: static;
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
  }

  #fullscreen-back,
  #about-back,
  #contact-back {
    padding: 8px 0;
  }

  .fullscreen-inquire { 
    padding: 12px;
  }

  .contact-content,
  #inquiry-panel {
    width: 100%;
    padding: 0 0 16px;
  }

  #contact_form {
    grid-template-columns: 1fr;
  }

  #contact_name,
  #contact_email {
    grid-column: 1 / -1;
  }

  #inquiry-panel {
    order: 1;
    padding-bottom: 12px;
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-content {
    order: 2;
  }

  #art_sample img {
    max-height: 45vh;
    width: 200px;
    max-width: 50vw;
  }

  .fullscreen-gallery {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 260px;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding: 0;
    scroll-snap-type: x mandatory;
    padding: 0;
  }

  .fullscreen-image {
    display: grid;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    place-items: center;
    scroll-margin: 0;
    scroll-snap-align: start;
  }

  .fullscreen-art-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
  }

  .fullscreen-thumbnails {
    order: 2;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    height: 64px;
    flex: 0 0 64px;
    padding-top: 0;
  }

  .fullscreen-thumbnail {
    flex: 0 0 auto;
    width: fit-content;
    height: 64px;
  }

  .fullscreen-thumbnail-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .fullscreen-information {
    order: 3;
    grid-column: auto;
    max-width: none;
    position: static;
    width: 100%;
    align-self: stretch;
    display: grid;
    grid-template-columns: auto;
    gap: 4px 12px;
  }

  .fullscreen-title,
  .fullscreen-status {
    grid-column: 1/-1;
  }

  .fullscreen-status {
    margin-top: 8px !important;
  }
}