.david-creations-page {
  --creations-carbon: #11110f;
  --creations-ink: #1a1916;
  --creations-ivory: #f3efe6;
  --creations-paper: #faf8f2;
  --creations-gold: #b3935c;
  background: var(--creations-ivory);
  color: var(--creations-ink);
}

.creations-shell {
  width: min(100% - 40px, 1380px);
  margin-inline: auto;
}

.creations-hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--creations-carbon);
  color: #fff;
}

.creations-hero__image,
.creations-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.creations-hero__image { object-fit: cover; object-position: center; }
.creations-hero__shade { background: linear-gradient(90deg, rgba(10, 10, 8, .9) 0%, rgba(10, 10, 8, .48) 52%, rgba(10, 10, 8, .16) 100%), linear-gradient(0deg, rgba(10, 10, 8, .7), transparent 55%); }

.creations-hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(130px, 20vh, 210px) clamp(70px, 11vh, 110px);
}

.creations-eyebrow {
  margin: 0 0 22px;
  color: var(--creations-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.creations-hero h1,
.creations-intro h2,
.creations-gallery__heading h2,
.creations-closing h2 {
  margin: 0;
  font-family: var(--wp--preset--font-family--display, Georgia, serif);
  font-weight: 400;
  line-height: .96;
}

.creations-hero h1 { max-width: 800px; font-size: clamp(56px, 8.5vw, 118px); letter-spacing: -.045em; }
.creations-hero h1 em { color: #d8bea0; font-weight: 400; }
.creations-hero__lead { max-width: 590px; margin: 34px 0; color: rgba(255,255,255,.8); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.creations-scroll { display: inline-flex; gap: 14px; align-items: center; color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 7px; text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.creations-intro { padding: clamp(80px, 10vw, 150px) 0; background: var(--creations-paper); }
.creations-intro__grid { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.creations-intro h2 { max-width: 750px; font-size: clamp(42px, 5vw, 76px); letter-spacing: -.035em; }
.creations-intro__grid > div > p { max-width: 720px; margin: 30px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.8; color: #59564e; }

.creations-gallery-section { padding: clamp(80px, 10vw, 150px) 0; background: var(--creations-carbon); color: #fff; }
.creations-gallery__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; }
.creations-gallery__heading h2 { font-size: clamp(48px, 6vw, 86px); }
.creations-gallery__heading > p { margin: 0 0 7px; color: rgba(255,255,255,.5); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.creations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 25px); }

.creation-card { min-width: 0; }
.creation-card:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.creation-card__button { display: block; width: 100%; padding: 0; border: 0; background: #26251f; color: inherit; cursor: zoom-in; overflow: hidden; }
.creation-card__button img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.creation-card__button:hover img,
.creation-card__button:focus-visible img { transform: scale(1.035); filter: brightness(1.06); }
.creation-card__caption { padding: 15px 1px 8px; }
.creation-card__caption h3 { margin: 0; color: rgba(255,255,255,.86); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: .035em; }

.creations-closing { padding: clamp(100px, 13vw, 190px) 0; background: var(--creations-ivory); text-align: center; }
.creations-closing__inner { display: flex; flex-direction: column; align-items: center; }
.creations-closing h2 { max-width: 900px; font-size: clamp(46px, 6.5vw, 90px); letter-spacing: -.04em; }
.creations-closing__inner > p:not(.creations-eyebrow) { margin: 30px 0; color: #5a574f; font-size: 18px; }
.creations-cta { display: inline-flex; padding: 17px 28px; border: 1px solid var(--creations-ink); color: var(--creations-ink); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: background .2s, color .2s; }
.creations-cta:hover { background: var(--creations-ink); color: #fff; }

.creations-lightbox { position: fixed; z-index: 10000; inset: 0; display: grid; grid-template-columns: minmax(44px, 1fr) minmax(0, 1000px) minmax(44px, 1fr); align-items: center; padding: 40px; background: rgba(7,7,6,.96); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.creations-lightbox.is-open { opacity: 1; visibility: visible; }
.creations-lightbox figure { margin: 0; max-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; }
.creations-lightbox img { max-width: 100%; max-height: min(68vh, 760px); object-fit: contain; }
.creations-lightbox figcaption { width: min(100%, 760px); padding-top: 18px; text-align: center; }
.creations-lightbox figcaption strong { display: block; color: #fff; font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: clamp(22px, 2.5vw, 34px); font-weight: 400; line-height: 1.15; }
.creations-lightbox figcaption span { display: block; margin: 11px auto 0; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.65; }
.creations-lightbox button { border: 0; background: transparent; color: #fff; cursor: pointer; }
.creations-lightbox__close { position: absolute; top: 20px; right: 24px; z-index: 2; font-size: 38px; line-height: 1; }
.creations-lightbox__nav { font-size: 30px; padding: 30px 12px; }
.creations-lightbox__nav--prev { justify-self: start; }
.creations-lightbox__nav--next { justify-self: end; }
body.creations-lightbox-open { overflow: hidden; }

@media (max-width: 1024px) {
  .creations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creation-card:nth-child(7n + 1) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 720px) {
  .creations-shell { width: min(100% - 28px, 1380px); }
  .creations-hero { min-height: 760px; }
  .creations-hero__shade { background: linear-gradient(0deg, rgba(10,10,8,.92), rgba(10,10,8,.18) 78%); }
  .creations-hero__content { padding-bottom: 64px; }
  .creations-intro__grid { grid-template-columns: 1fr; gap: 18px; }
  .creations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .creation-card__caption { padding-top: 10px; }
  .creation-card__caption h3 { font-size: 12px; }
  .creations-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 20px 4px; }
  .creations-lightbox img { max-height: 54vh; }
  .creations-lightbox figcaption { padding-inline: 8px; }
  .creations-lightbox figcaption span { font-size: 13px; line-height: 1.55; }
}

@media (max-width: 420px) {
  .creations-hero h1 { font-size: 52px; }
  .creations-gallery__heading { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .creation-card__button img, .creations-lightbox { transition: none; }
}
