main {
  width: 100%;
  padding: 0 3% 80px;
}

.utility {
  min-height: 64px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
}

.utility a:hover {
  opacity: 0.65;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.5vw, 48px);
  width: 90%;
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
}

.content > div:first-child {
  min-width: 0;
}

article {
  min-width: 0;
  padding-top: 4px;
}

/* Painting and thumbnail gallery */
.content article .meta strong {
  color: #000;
  font-weight: 700;
}

.edition-note .edition-materials {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.edition-note .edition-materials:empty {
  display: none;
}

.edition-note .dimensions {
  margin: 4px 0 0;
  font-size: 14px;
}

.dimensions {
  font-style: italic;
}

.content article .description {
  font-style: italic;
}


.art-gallery {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.art-gallery .art {
  width: 100%;
}

.art-gallery #main-art-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.art-lightbox {
  position: fixed;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #fff;
}

.art-lightbox::backdrop {
  background: rgb(0 0 0 / 48%);
}

.art-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 140ms ease;
}

.art-lightbox.has-caption {
  flex-direction: column;
  gap: 12px;
}

.art-lightbox.has-caption .art-lightbox-image {
  max-height: calc(100% - 42px);
  flex-shrink: 1;
  min-height: 0;
}

.art-lightbox-caption {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.art-lightbox-close {
  position: absolute;
  display: grid;
  place-items: center;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  appearance: none;
  cursor: pointer;
}

.art-thumbnails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 28px auto 0;
}

.art-lightbox-nav {
  display: grid;
  place-items: center;
  padding: 0;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 56px;
  border: 0;
  border-radius: 6px;
  background: rgb(0 0 0 / 55%);
  color: white;
  font-size: 36px;
  cursor: pointer;
}

.art-lightbox-nav[hidden] {
  display: none;
}

.art-lightbox-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-lightbox-previous { left: 16px; }
.art-lightbox-next { right: 16px; }

.art-lightbox-counter {
  font-size: 11px;
  line-height: 1.2;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 20px;
  background: rgb(0 0 0 / 55%);
  color: white;
  pointer-events: none;
}

.art-thumbnail {
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 1 80px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #e5e5e5;
  color: #555;
  font: inherit;
  cursor: pointer;
}

.art-thumbnail:hover {
  background: #dcdcdc;
}

.art-thumbnail img {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-thumbnail:disabled {
  cursor: default;
  opacity: 0.5;
}

.art-thumbnail.active,
.option.active {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Artwork details */

.title-separator {
  margin-top: 0;
}

.art-title {
  margin: 0 0 22px;
  font-size: clamp(20px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.meta {
  margin-bottom: 26px;
  font-size: 18px;
  line-height: 1.55;
  color: #777;
}

.dimensions {
  display: inline-block;
  margin-top: 0;
  font-style: italic;
}

.meta .dimensions {
  font-size: 13px;
  line-height: 1.2;
  display: block;
  margin-top: 0;
}

.medium-description {
  display: inline-block;
  position: relative;
  top: -3px;
  font-size: 15px;
  line-height: 1.3;
}

.description {
  font-size: 16px;
  line-height: 1.55;
  color: #777;
}

.description p {
  margin: 0 0 22px;
}

.description p:last-child {
  margin-bottom: 0;
}

hr {
  height: 0;
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #d6d3ce;
}

/* Product options */

.product-options {
  width: 100%;
}

.option-title {
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.option-grid-customer {
  grid-template-columns: 1fr;
}

.option {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid #d6d3ce;
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.option[hidden] {
  display: none;
}

.option.active {
  background: #e4e4e4;
  border-color: #777;
}

.option:hover {
  border-color: #777;
}

.option:disabled {
  cursor: not-allowed;
  color: #777;
  background: #f6f5f3;
}

.inventory-status {
  color: #666;
  font-size: 12px !important;
}

.option .inventory-status.is-sold,
.option:disabled .inventory-status.is-sold {
  color: #8b2822;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.option strong,
.option span {
  display: block;
  line-height: 1.25;
}

.option strong {
  font-size: 17px;
}

.option span {
  font-size: 13px;
}

.edition-note {
  width: 100%;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid #d6d3ce;
  border-bottom: 1px solid #d6d3ce;
  font-size: 19px;
  line-height: 1.5;
}

.edition-note strong {
  font-weight: 700;
}

.edition-note em {
  font-style: italic;
}

/* Add to cart */

.add-to-cart-button {
  display: block;
  width: 100%;
  min-height: 82px;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 21px;
  cursor: pointer;
}

.add-to-cart-button[hidden] {
  display: none;
}

.add-to-cart-button:hover {
  border-color: #222;
  background: #222;
  color: #fff;
}

.utility .painting-edit-button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #171717;
  text-decoration: none;
  color: #171717;
  background: #fff;
}

.utility .painting-edit-button:hover,
.utility .painting-edit-button:focus-visible {
  color: #fff;
  background: #171717;
}

.foundation-art-title {
  font-size: clamp(20px, 2vw, 32px);
}
