/* Keep the complete portrait photographs visible, including the hem and hood. */
.shop-page .product-image-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #121315;
}

.gallery-arrow {
  display: none;
}

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .shop-page .product-image-stage {
    width: 86%;
    margin-inline: auto;
  }

  .gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 0.6);
    background: rgb(18 19 21 / 0.8);
    color: white;
    font-size: 26px;
    cursor: pointer;
  }

  .gallery-arrow--previous { left: 12px; }
  .gallery-arrow--next { right: 12px; }
  .gallery-arrow:hover { background: #121315; }
  .gallery-arrow:focus-visible { outline: 2px solid white; outline-offset: 3px; }
}

.shop-page .product-thumbnails {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-page .product-thumbnails button,
.shop-page .product-thumbnails button:last-child {
  aspect-ratio: 2 / 3;
  grid-column: auto;
}

.shop-page .product-thumbnails button:first-child {
  display: block;
}

.shop-page .product-thumbnails img {
  object-fit: contain;
}

.shop-page .photo-story-figure img {
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.size-guide-figure { margin: 24px 0; }
.size-guide-figure img { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.size-guide-figure figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; opacity: 0.7; }

.shop-page [hidden] { display: none !important; }
.shop-cart { margin-top: 20px; padding: 20px; border: 1px solid rgba(255,255,255,.25); }
.shop-cart h3 { margin: 0 0 16px; font-size: 18px; }
.cart-add, .cart-status-retry, .shop-cart-row button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; padding: 9px 12px; cursor: pointer; }
.cart-add { width: 100%; margin-bottom: 12px; }
.cart-add:disabled { opacity: .45; cursor: default; }
.shop-cart-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 13px; }
.shop-cart-row select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  min-width: 68px;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  padding: 10px 30px 10px 12px;
  border: 1px solid currentColor;
  color: inherit;
  background-color: #151515;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.shop-cart-row select:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.shop-cart-row button { font-size: 11px; padding: 8px; }
.cart-totals { margin: 20px 0; font-size: 14px; }
.cart-totals > div { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0; }
.cart-totals dd { margin: 0; }
.cart-total { font-weight: 700; padding-top: 12px; border-top: 1px solid currentColor; }
.cart-note, .cart-status { font-size: 12px; line-height: 1.7; }
.cart-status { border-left: 2px solid currentColor; padding: 12px; margin-top: 16px; }
.shop-cart .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 400px) {
  .shop-cart { padding: 14px; }
  .shop-cart-row { gap: 8px; grid-template-columns: minmax(0,1fr) auto auto; }
  .shop-cart-row button { grid-column: 1 / -1; justify-self: start; }
}
