* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
}

body {
  background: #f7f7f0;
  color: #111;
  line-height: 1.35;
  margin: 0;
  padding: 18px;
}

a {
  color: #00e;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid #777;
  max-width: 1100px;
  padding: 10px 0 12px;
}

.site-header {
  margin: 0 auto 24px;
}

.site-header h1 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 0 0 8px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

main,
.site-footer {
  margin: 0 auto;
  max-width: 1100px;
}

h2,
h3 {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
}

.home {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 320px minmax(0, 1fr);
  margin-bottom: 32px;
}

.profile {
  margin: 0;
}

.profile figcaption,
.note,
.meta,
.video-links {
  color: #444;
  font-size: 0.85rem;
}

.work-entry {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  padding: 20px 0;
}

.thumbnail-grid {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.image-trigger {
  background: #fff;
  border: 1px solid #222;
  cursor: pointer;
  min-height: 96px;
  padding: 3px;
}

.image-trigger:focus {
  outline: 2px solid #00e;
  outline-offset: 2px;
}

.image-trigger img {
  image-rendering: auto;
  width: 100%;
}

.work-copy h3 {
  font-size: 1.05rem;
}

.description {
  max-width: 62ch;
}

.work-links {
  margin: 0 0 12px;
}

.purchase-row {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.purchase-button {
  background: #e22;
  border: 1px solid #111;
  color: #fff;
  display: inline-block;
  font-weight: bold;
  padding: 3px 9px;
  text-decoration: none;
}

.purchase-price {
  font-weight: bold;
}

.purchase-button--disabled {
  opacity: 0.65;
}

.sold-label {
  border: 1px solid #111;
  display: inline-block;
  font-weight: bold;
  padding: 3px 9px;
}

.more-work-link {
  text-align: center;
}

.gallery-data {
  display: none;
}

.plain-button {
  background: #eee;
  border: 1px solid #111;
  border-radius: 0;
  color: #111;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: 2px 7px;
  text-decoration: none;
}

.plain-button[hidden] {
  display: none;
}

.lightbox {
  background: #f7f7f0;
  border: 2px solid #111;
  bottom: 16px;
  left: 16px;
  overflow: auto;
  padding: 10px;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 10;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

.lightbox img,
.lightbox video {
  cursor: pointer;
  margin: 0 auto;
  max-height: 76vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox img[hidden],
.lightbox video[hidden] {
  display: none;
}

.lightbox video {
  cursor: default;
}

.lightbox figcaption {
  margin-top: 8px;
  text-align: center;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .home,
  .work-entry {
    grid-template-columns: 1fr;
  }

  .profile {
    max-width: 320px;
  }
}
