/* Only the two pages that open with a full-screen photograph use this header. */
body.photo-header { --campaign-toolbar: 0px; }
/* WordPress outputs admin-bar in the opening body tag, before the toolbar
   itself is rendered at the footer. Reserve its space on the first paint. */
body.photo-header.admin-bar {
  --campaign-toolbar: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 782px) {
  body.photo-header.admin-bar { --campaign-toolbar: var(--wp-admin--admin-bar--height, 46px); }
}
body.photo-header .vlj-shell-header {
  position: fixed;
  inset-inline: 0;
  top: var(--campaign-toolbar, 0px);
  background-color: #fff !important;
  --cover-fade: 480ms cubic-bezier(.32,.04,.25,1);
  transition: background-color var(--cover-fade), transform .38s cubic-bezier(.22,.75,.2,1);
}
.photo-header .vlj-shell-header #shade {
  position: absolute;
  inset: 100% 0 auto;
  height: 100dvh;
}
/* Campaign pages own the scroll direction; the shop keeps the default shell. */
body.photo-header .vlj-shell-header[data-campaign-nav] {
  transform: translateY(0);
  pointer-events: auto;
}
body.photo-header .vlj-shell-header[data-campaign-nav="hidden"] {
  transform: translateY(calc(-100% - var(--campaign-toolbar, 0px) - 1px));
  pointer-events: none;
}
@media (min-width:951px) {
  .photo-header .vlj-shell-header.is-past-cover .masthead { display: none; }
}
@media (max-width:950px) {
  .photo-header .vlj-shell-header.is-past-cover #header .masthead {
    min-height: 56px;
    padding-block: 4px;
  }
  .photo-header .vlj-shell-header.is-past-cover #header .logo { max-width: 148px; }
}
.photo-header .vlj-shell-header #header {
  background: transparent;
  transition: border-color var(--cover-fade);
}
.photo-header .vlj-shell-header .logo img {
  transition: filter var(--cover-fade);
}
.photo-header .vlj-shell-header :is(.left-tools,.right-tools,.nav-button,.masthead .icon) {
  transition: color var(--cover-fade);
}
.photo-header .vlj-shell-header:not(.is-past-cover):where(:not(:has(:focus-visible)):not(:has(.mega.open, .search-open, dialog[open]))) {
  background-color: transparent !important;
}
.photo-header .vlj-shell-header:not(.is-past-cover):not(:has(:focus-visible)):not(:has(.mega.open, .search-open, dialog[open])) #header {
  background: transparent;
  border-color: transparent;
}
.photo-header .vlj-shell-header:not(.is-past-cover):not(:has(:focus-visible)):not(:has(.mega.open, .search-open, dialog[open])) :is(.left-tools,.right-tools,.nav-button,.masthead .icon) {
  color: #fff;
}
.photo-header .vlj-shell-header:not(.is-past-cover):not(:has(:focus-visible)):not(:has(.mega.open, .search-open, dialog[open])) .logo img {
  filter: brightness(0) invert(1);
}
@media (hover:hover) and (pointer:fine) {
  .photo-header .vlj-shell-header.pointer-over:not(.is-past-cover) { background-color: #fff !important; }
  .photo-header .vlj-shell-header.pointer-over:not(.is-past-cover) :is(.left-tools,.right-tools,.nav-button,.masthead .icon) { color: #203e35 !important; }
  .photo-header .vlj-shell-header.pointer-over:not(.is-past-cover) .logo img { filter: none !important; }
}
.photo-header.review-natural.white-home .art-hero { height: calc(100dvh - var(--campaign-toolbar, 0px)); }
.photo-header .cyanotype-cover {
  min-height: calc(100dvh - var(--campaign-toolbar, 0px));
  padding-top: calc(var(--cover-header-height, 145px) - var(--campaign-toolbar, 0px) + 20px);
}
.photo-header .art-hero::before {
  content: ""; position: absolute; z-index: 1; inset: 0 0 auto;
  height: calc(var(--cover-header-height, 145px) + 50px);
  background: linear-gradient(to bottom, rgb(12 24 20 / 65%), rgb(12 24 20 / 39%) 63%, transparent);
  pointer-events: none;
}
.photo-header .art-home .product-caption h3 { text-transform: uppercase; }
/* The four stones span y=322..884 in the 2560 × 1160 master, centered at (1280,603). */
.photo-header.review-natural.white-home .hero-media img { transform: translate(-50%, -51.983%); }
@media (min-width: 951px) and (max-height: 690px), (min-width: 951px) and (min-aspect-ratio: 5/2) {
  .photo-header .vlj-shell-header .masthead { min-height: 70px; padding-block: 8px 0; }
  .photo-header .vlj-shell-header .logo { width: min(26vw, 260px); }
  .photo-header .vlj-shell-header .nav-button { padding-block: 12px; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .photo-header .art-hero .hero-bottom { bottom: 9px; }
  .photo-header .art-hero .hero-bottom p { line-height: 1.2; margin-bottom: 0; }
  .photo-header .art-hero .hero-soon { margin-top: 4px; }
}
@media (min-width: 951px) and (max-height: 560px) {
  .photo-header .vlj-shell-header .masthead { min-height: 52px; padding-block: 3px; }
  .photo-header .vlj-shell-header .logo { width: 210px; }
}
@media (max-height: 375px) and (orientation: landscape) {
  .photo-header.review-natural.white-home .art-hero { min-height: 375px; }
}
@media (min-width: 951px) and (max-height: 460px) {
  .photo-header.review-natural.white-home .art-hero { min-height: 460px; }
}
/* Fill the sides of a panoramic window with the same photograph while
   sizing the jewelry against the available height. */
@media (min-width: 951px) and (min-aspect-ratio: 5/2) {
  .photo-header.review-natural.white-home .hero-media img {
    width: 236.2cqh;
    clip-path: inset(0 25%);
  }
  /* Continue the outer quarters at the same vertical scale as the center. */
  .photo-header .hero-media::before, .photo-header .hero-media::after {
    content: "";
    position: absolute;
    top: calc(50% - 55.637cqh);
    height: 107.028cqh;
    background: url("images/bridal-final-full.webp") no-repeat;
    background-size: 400% 100%;
  }
  .photo-header .hero-media::before {
    left: 0;
    width: calc(50cqw - 59.05cqh + .5px);
    background-position: left top;
  }
  .photo-header .hero-media::after {
    right: 0;
    width: calc(50cqw - 59.05cqh + .5px);
    background-position: right top;
  }
}
@media (pointer:coarse), (max-width:650px) {
  .photo-header .product-rail {
    overflow-x: auto; overflow-y: hidden;
    touch-action: pan-x pinch-zoom;
    overscroll-behavior: contain;
  }
  .photo-header .product-card .product-image { overflow: clip; }
}
@media (max-width:650px) {
  .photo-header.review-natural.white-home .art-hero {
    height: calc(100lvh - var(--campaign-toolbar, 0px));
  }
  .photo-header.review-natural.white-home .hero-bottom {
    bottom: max(20px, calc(100lvh - 100dvh + env(safe-area-inset-bottom, 0px) + 10px));
  }
  body.review-natural.photo-header .vlj-shell-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
}
@media (max-width:650px) and (max-aspect-ratio:2/3) {
  .photo-header.review-natural.white-home .hero-media img {
    inset: 0; width: 100%; height: 100%; object-fit: cover;
    object-position: center; transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-header .vlj-shell-header,
  .photo-header .vlj-shell-header #header,
  .photo-header .vlj-shell-header :is(.logo img,.left-tools,.right-tools,.nav-button,.masthead .icon) { transition: none; }
}
