/* 425: keep the complete gift scene, including its stone, in view. */
.panorama166 .p166-gift-photo {
  width:clamp(350px,35vw,560px);
  height:auto;
  aspect-ratio:3 / 2;
  min-height:0;
  align-self:center;
  justify-self:center;
  margin:0;
  transform:none;
  background-position:center;
  background-size:100% 100%;
  border-radius:0;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 7%,#000 93%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0%,#000 12%,#000 88%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 7%,#000 93%,transparent 100%);
  mask-composite:intersect;
}
.panorama166 .p166-gift-photo .p424-gift-print { top:23%; }
@media (min-width:681px) and (max-width:1100px) {
  .panorama166 .p166-gift-photo { width:min(55vw,490px); height:auto; transform:translateX(calc(22vw - 22px)); }
}
@media (max-width:680px) {
  .panorama166 .p166-gift-photo {
    width:min(56vw,245px); height:auto; aspect-ratio:3 / 2;
    justify-self:end; align-self:center; margin:0 -8px 0 0;
    background-position:center; background-size:100% 100%;
  }
  .panorama166 .p166-gift-photo .p424-gift-print { top:24%; }
}
@media (max-width:270px) {
  .panorama166 .p166-gift-photo { width:min(100%,245px); justify-self:center; margin:0; }
}

@media (max-width:680px) {
  .panorama166 .p166-gifts-copy>p:not(.p166-gift-note):not(.p166-terms), .panorama166 .p166-gifts-copy h2 { position:relative; z-index:2; }
  .panorama166 .p166-gift-photo { -webkit-mask-image:linear-gradient(90deg,transparent 0%,transparent 8%,#000 35%,#000 90%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 7%,#000 93%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0%,transparent 8%,#000 35%,#000 90%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 7%,#000 93%,transparent 100%); }
}

/* Landing: compact sharing panel and contact/legal footer. Loaded only on the public landing page. */
html body#workspace-shell294 .panorama166 .p166-sharing {
  box-sizing:border-box; min-width:0; width:100%; max-width:100%;
  padding:clamp(18px,2vw,26px); overflow-wrap:anywhere;
}
html body#workspace-shell294 .panorama166 .p166-sharing > h2 {
  margin:5px 0 8px; font-size:clamp(24px,2.1vw,34px); line-height:1.04;
}
html body#workspace-shell294 .panorama166 .p166-sharing > h2 br { display:none; }
html body#workspace-shell294 .panorama166 .p166-sharing > p {
  margin:0; max-width:48ch; font-size:14px; line-height:1.38;
}
html body#workspace-shell294 .panorama166 .p166-sharing .referral275 {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px;
  box-sizing:border-box; width:100%; min-width:0; max-width:100%;
  margin:12px 0 0 !important; padding:0 !important;
  border:0 !important; background:transparent !important;
}
html body#workspace-shell294 .panorama166 .p166-sharing .referral275 button[data-referral275] {
  flex:0 1 auto; max-width:100%; min-height:44px; padding:9px 18px;
  font-size:14px; line-height:1.2; white-space:normal;
}
html body#workspace-shell294 .panorama166 .p166-sharing .referral275 small {
  flex:1 1 190px; min-width:0; max-width:40ch; margin:0; font-size:11px; line-height:1.35;
}
html body#workspace-shell294 .panorama166 .p166-sharing [data-referral275-status]:empty { display:none; }
html body#workspace-shell294 .panorama166 .p166-sharing [data-referral275-status]:not(:empty),
html body#workspace-shell294 .panorama166 .p166-sharing [data-referral275-fallback]:not([hidden]) {
  flex:1 0 100%; margin:0; min-width:0; font-size:13px; line-height:1.4;
}
html body#workspace-shell294 .panorama166 .p166-contact {
  padding:24px 0 12px; box-sizing:border-box;
}
html body#workspace-shell294 .panorama166 .p414-contact-row {
  min-width:0; gap:12px 20px;
}
html body#workspace-shell294 .panorama166 .p166-contact-links {
  min-width:0; gap:4px 18px;
}
html body#workspace-shell294 .panorama166 .p166-contact-links a {
  min-width:0; min-height:38px; line-height:1.35; font-size:14px; overflow-wrap:anywhere;
}
html body#workspace-shell294 .panorama166 .p166-contact-links svg { flex:none; width:19px; height:19px; }
html body#workspace-shell294 .panorama166 .p414-footer-bottom {
  display:flex; flex-wrap:wrap; align-items:center; gap:2px 16px;
  padding:8px 0 0; margin-top:10px; font-size:12px;
}
html body#workspace-shell294 .panorama166 .p414-footer-bottom small { font-size:12px; }
html body#workspace-shell294 .panorama166 .p414-footer-bottom > a,
html body#workspace-shell294 .panorama166 .p414-footer-bottom summary {
  display:inline-flex; align-items:center; min-height:36px; font-size:12px; line-height:1.35;
}
html body#workspace-shell294 .v6-legal-footer {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:0 16px; box-sizing:border-box; padding:10px max(16px,calc((100% - 1200px)/2)) 14px;
}
html body#workspace-shell294 .v6-legal-footer a,
html body#workspace-shell294 .v6-legal-footer button {
  display:inline-flex; align-items:center; min-height:38px; max-width:100%;
  font-size:12px; line-height:1.3; font-weight:400; text-align:left; overflow-wrap:anywhere;
}
html body#workspace-shell294 .v6-legal-footer > a:first-child {
  flex:0 1 auto; font-weight:500;
}
@media (max-width:680px) {
  html body#workspace-shell294 .panorama166 .p166-sharing { margin-top:12px; padding:16px; }
  html body#workspace-shell294 .panorama166 .p166-sharing > h2 { font-size:25px; }
  html body#workspace-shell294 .panorama166 .p166-sharing > p { font-size:13px; }
  html body#workspace-shell294 .panorama166 .p166-contact { padding:18px 0 10px; }
  html body#workspace-shell294 .panorama166 .p414-contact-row { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; }
  html body#workspace-shell294 .panorama166 .p414-studio-note { margin:0; font-size:13px; line-height:1.3; }
  html body#workspace-shell294 .panorama166 .p414-studio-note br { display:none; }
  html body#workspace-shell294 .panorama166 .p166-contact-links {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:0 10px;
  }
  html body#workspace-shell294 .panorama166 .p166-contact-links a { font-size:13px; min-height:38px; gap:7px; }
  html body#workspace-shell294 .panorama166 .p166-contact-links a:nth-child(2) { grid-column:1 / -1; grid-row:2; }
  html body#workspace-shell294 .panorama166 .p166-contact-links a:nth-child(3) { grid-column:2; grid-row:1; }
  html body#workspace-shell294 .panorama166 .p414-footer-bottom { gap:0 12px; margin-top:5px; padding-top:7px; }
  html body#workspace-shell294 .v6-legal-footer { justify-content:flex-start; gap:0 14px; padding:8px 16px 18px; }
  html body#workspace-shell294 .v6-legal-footer > a:first-child { flex:1 0 100%; min-height:32px; }
}
@media (max-width:350px) {
  html body#workspace-shell294 .panorama166 .p166-contact-links { grid-template-columns:minmax(0,1fr); }
  html body#workspace-shell294 .panorama166 .p166-contact-links a:nth-child(2),
  html body#workspace-shell294 .panorama166 .p166-contact-links a:nth-child(3) { grid-column:auto; grid-row:auto; }
}

/* The legacy shared styles use !important; override only on this landing page. */
html body#workspace-shell294:has(.panorama166) .v6-legal-footer {
  padding:10px max(16px,calc((100% - 1200px)/2)) 14px!important;
  gap:0 16px!important; justify-content:center!important;
}
html body#workspace-shell294:has(.panorama166) .v6-legal-footer :is(a,button) {
  min-height:38px!important; font-size:12px!important; font-weight:400!important; line-height:1.3!important;
}
@media (max-width:680px) {
  html body#workspace-shell294:has(.panorama166) .v6-legal-footer {
    justify-content:flex-start!important; gap:0 14px!important; padding:8px 20px 18px!important;
  }
}

/* Keep the recommendation panel balanced beside the FAQ on tablets. */
html body#workspace-shell294 .panorama166 .p166-sharing { padding:clamp(15px,1.5vw,21px); }
html body#workspace-shell294 .panorama166 .p166-sharing > h2 {
  font-size:clamp(23px,2vw,30px); margin:4px 0 6px; line-height:1.06;
}
html body#workspace-shell294 .panorama166 .p166-sharing > p { line-height:1.32; }
html body#workspace-shell294 .panorama166 .p166-sharing .referral275 { margin-top:9px!important; gap:7px 12px; }
html body#workspace-shell294 .panorama166 .p166-sharing .referral275 small { flex-basis:145px; font-size:12px; line-height:1.3; }
@media (min-width:681px) and (max-width:960px) {
  html body#workspace-shell294 .panorama166 .p414-faq-layout {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px;
  }
}

/* A grid item must not stretch to the height of the FAQ beside it. */
html body#workspace-shell294 .panorama166 .p166-sharing { align-self:start; height:auto; }
html body#workspace-shell294 .panorama166 .p166-sharing [data-referral275-status] { color:inherit!important; }
