.dialog-photo img {
  object-fit: contain;
  filter: brightness(1.12) contrast(.92) saturate(1.05);
}

.hat-details {
  grid-template-columns: repeat(3, 1fr);
}

.bienville-card .hat-card-photo,
.bienville-gallery > .bienville-main-photo {
  filter: none;
}

.bienville-card .hat-card-photo {
  object-position: center 42%;
}

.gambler-card .hat-card-photo,
.gambler-gallery > .gambler-main-photo,
.gambler-gallery .photo-thumbnails img {
  filter: brightness(1.06) contrast(.96) saturate(.82) hue-rotate(4deg);
}

.gambler-card .hat-card-photo {
  object-position: center 46%;
}

.product-gallery,
.gambler-gallery {
  align-self: start;
  position: sticky;
  top: 0;
  height: min(760px, calc(100svh - 2rem));
  padding-bottom: 6.75rem;
}

.product-gallery figcaption,
.gambler-gallery figcaption {
  bottom: 7.5rem;
}

.product-gallery > .bienville-main-photo,
.gambler-gallery > .gambler-main-photo {
  height: calc(100% - 6.75rem);
}

.photo-thumbnails {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .35rem;
  padding: .45rem;
  background: rgba(6, 21, 17, .9);
}

.photo-thumbnails button {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  background: #0b201a;
  cursor: pointer;
  overflow: hidden;
}

.photo-thumbnails button.active,
.photo-thumbnails button:focus-visible {
  border-color: var(--gold);
}

.photo-thumbnails img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-section {
  background: var(--cream);
  color: var(--ink);
}

.material-grid article > p:nth-of-type(3) {
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.material-price-button {
  width: 100%;
  margin-top: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.material-price-button:hover,
.material-price-button:focus-visible {
  background: var(--gold);
  color: var(--green);
}

.price-dialog {
  width: min(620px, calc(100% - 2rem));
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 2rem 7rem rgba(0,0,0,.55);
}

.price-dialog::backdrop {
  background: rgba(3,16,13,.86);
  backdrop-filter: blur(5px);
}

.price-dialog-close {
  float: right;
  margin: -1rem -1rem 0 1rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(24,37,31,.28);
  background: transparent;
  color: var(--green);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.price-dialog h2 {
  margin: .75rem 0 1.5rem;
  color: var(--green);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .95;
}

.price-tier-list {
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(24,37,31,.2);
}

.price-tier-list p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(24,37,31,.2);
  color: var(--green);
}

.price-tier-list span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.price-tier-list strong {
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.price-dialog-note {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: .88rem;
}

.pricing-note a {
  color: inherit;
  font-weight: 700;
}

.order-process {
  display: grid;
  grid-template-columns: .8fr 1.6fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin: 3rem 0 0;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(243,236,220,.22);
  background: var(--green);
}

.order-process-heading h3 {
  margin: .7rem 0 0;
  color: var(--cream);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
}

.order-process-heading > p:last-child {
  margin: 1.25rem 0 0;
  color: rgba(243,236,220,.76);
  font-size: 1rem;
  line-height: 1.7;
}

.order-process ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-process li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(243,236,220,.18);
}

.order-process li:first-child { padding-top: 0; }
.order-process li:last-child { padding-bottom: 0; border-bottom: 0; }

.order-process li > span {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
}

.order-process strong {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.order-process li p {
  margin: .35rem 0 0;
  color: rgba(243,236,220,.7);
  font-size: .92rem;
}

.order-heading {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: 3rem;
}

.order-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
  color: var(--gold);
}

.order-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.order-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(24, 37, 31, .18);
}

.pricing-grid article {
  min-height: 300px;
  padding: clamp(1.75rem, 3vw, 3rem);
  border-right: 1px solid rgba(24, 37, 31, .18);
}

.pricing-grid article:last-child {
  border-right: 0;
}

.pricing-grid .pricing-featured {
  background: var(--green);
  color: var(--cream);
}

.pricing-material {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pricing-price {
  margin: 1.25rem 0;
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
}

.pricing-featured .pricing-price {
  color: var(--cream);
}

.pricing-price span {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold);
  font-family: Manrope, sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pricing-grid article > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-featured > p:last-child {
  color: rgba(243, 236, 220, .75);
}

.pricing-note {
  margin: 1rem 0 3rem;
  color: var(--muted);
  font-size: .9rem;
}

.order-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--wine);
  color: var(--cream);
}

.order-terms {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-right: 1px solid rgba(201, 168, 92, .45);
}

.order-terms p {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(243, 236, 220, .18);
}

.order-terms p:last-child {
  border-bottom: 0;
}

.order-terms strong {
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.order-terms span {
  color: rgba(243, 236, 220, .76);
  line-height: 1.6;
}

.order-contact {
  padding: clamp(2.5rem, 5vw, 5rem);
}

.order-contact .eyebrow {
  color: var(--gold-soft);
}

.order-contact h3 {
  margin: .75rem 0 1rem;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.order-contact > p:not(.eyebrow) {
  color: rgba(243, 236, 220, .78);
  line-height: 1.75;
}

.order-contact .button {
  display: inline-block;
  margin-top: 1.25rem;
}

.order-email {
  display: block;
  width: max-content;
  margin-top: 1.25rem;
  color: var(--gold-soft);
  font-size: .85rem;
}

@media(max-width:760px) {
  .hat-details {
    grid-template-columns: 1fr;
  }

  .product-gallery,
  .gambler-gallery {
    position: relative;
    height: 66svh;
    min-height: 66svh;
    padding-bottom: 5.5rem;
  }

  .product-gallery figcaption,
  .gambler-gallery figcaption {
    bottom: 6.25rem;
  }

  .product-gallery > .bienville-main-photo,
  .gambler-gallery > .gambler-main-photo {
    height: calc(100% - 5.5rem);
  }

  .order-heading,
  .order-path,
  .order-process {
    grid-template-columns: 1fr;
  }

  .order-process {
    gap: 2rem;
    padding: 2rem 1.25rem;
  }

  .order-heading .eyebrow {
    margin-bottom: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 37, 31, .18);
  }

  .pricing-grid article:last-child {
    border-bottom: 0;
  }

  .order-terms {
    border-right: 0;
    border-bottom: 1px solid rgba(201, 168, 92, .45);
  }

  .order-terms p {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
}
