/* Stone geometry and engravings stay independent of the photographic texture. */
.site-shell{
  --roof-face-height:clamp(70px,7vw,94px);
  --cornice-height:24px;
  --roof-height:calc(var(--roof-face-height) + var(--cornice-height));
  --wordmark-width:26.8vw;
  --wordmark-center:calc(var(--roof-face-height) / 2);
  --pillar-width:180px;
  --capital-height:92px;
  --shaft-width:60px;
  background:linear-gradient(#03132125,#03132125),url('/assets/deal-blue-marble-v1.jpg') center top / 1100px auto repeat;
}
.site-shell:before,.site-shell:after{display:none;content:none}
.stone-pillar{position:fixed;z-index:2;top:calc(var(--roof-height) - 2px);bottom:0;width:var(--pillar-width);pointer-events:none}
.stone-pillar-left{left:calc(var(--pillar-width) / -2)}
.stone-pillar-right{right:calc(var(--pillar-width) / -2)}
.pillar-capital{position:absolute;inset:0 0 auto;height:var(--capital-height);background:url('/assets/carrara-column-v7.png') center -2px / var(--pillar-width) auto no-repeat;z-index:2}
.pillar-shaft{position:absolute;top:calc(var(--capital-height) - 3px);bottom:-8px;left:calc(50% - var(--shaft-width) / 2);width:var(--shaft-width);border-radius:0;background:url('/assets/carrara-column-v7.png') center 45% / var(--pillar-width) 180% no-repeat;box-shadow:3px 0 8px #0005}
.pillar-shaft:after{display:none;content:none}
.masthead{
  height:var(--roof-height);
  flex:0 0 var(--roof-height);
  min-height:0;
  padding:0;
  overflow:hidden;
  background:#d7dcdd;
  border:0;
  box-shadow:0 5px 8px -5px #0009;
  backdrop-filter:none;
}
.masthead:before{content:"";display:block;position:absolute;inset:0;z-index:0;width:auto;height:auto;border:0;box-shadow:none;background:linear-gradient(180deg,#f8faf62b,#a9b5ba26),url('/assets/marble.webp') center 40% / 760px auto repeat;filter:grayscale(1) brightness(1.03);pointer-events:none}
.masthead:after{
  content:"";
  display:block;
  position:absolute;
  z-index:1;
  inset:auto 0 0;
  width:100%;
  height:var(--cornice-height);
  margin:0;
  border-top:1px solid #ad986d;
  border-bottom:1px solid #727f87;
  opacity:1;
  pointer-events:none;
  background:linear-gradient(180deg,#fffff6 0%,#e2e6e2 9%,#9aa4a8 15%,#b3bdc0 24%,#f5f7f2 38%,#b4bfc3 53%,#8b989e 58%,#e9ede7 66%,#c4cdd0 82%,#87969e 100%);
  box-shadow:inset 0 1px 0 #fffdf0,0 5px 7px #0006;
}
.masthead-inner,.guest-preview .masthead-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--wordmark-width) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  align-items:center;
  align-content:normal;
  width:100%;
  height:var(--roof-face-height);
  min-height:0;
  max-width:none;
  margin:0;
  padding:0 clamp(18px,2.7vw,44px);
  gap:0 14px;
}
.brand,.guest-preview .brand{
  grid-column:2;
  grid-row:1;
  align-self:center;
  justify-self:center;
  width:var(--wordmark-width);
  max-width:100%;
  height:100%;
  margin:0;
  padding:0;
  background:none;
  filter:none;
}
.brand:after{display:none;content:none}
.brand-art{display:block;position:static;width:100%;height:100%;background:url('/assets/liquibrix-engraved-stone-v7.svg') center / contain no-repeat;filter:none;mix-blend-mode:normal;opacity:1;mask:none;-webkit-mask:none}
.brand-art:before{display:none;content:none}
.header-feed-controls{
  grid-column:1;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:7px;
  min-width:0;
}
.header-utilities{
  grid-column:3;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:0;
}
.header-feed-controls .feed-status,.guest-preview .header-feed-controls .feed-status{
  display:flex;
  align-items:center;
  flex:none;
  height:43px;
  min-width:0;
  gap:7px;
  padding:0 11px 0 4px;
  border:1px solid #a3acae;
  border-radius:30px;
  background:linear-gradient(135deg,#61737d1a,#f8faf51c);
  box-shadow:inset 2px 2px 4px #35475352,inset -1px -1px 1px #fffff5,0 1px 0 #fbfdf5;
  backdrop-filter:none;
}
.header-feed-controls .feed-status-type{font:700 10px/1 Cinzel,Georgia,serif;letter-spacing:0;color:#26323b;gap:7px}
.header-feed-controls .feed-status-count,.header-feed-controls .feed-status-edit{font:600 8px/1 Cinzel,Georgia,serif;letter-spacing:0;color:#3d3528}
.header-feed-controls .feed-status-count{display:none;padding-left:7px}
.header-feed-controls .feed-status-edit{display:block;padding:7px 0}
.header-feed-controls .feed-status-medallion{width:33px;height:33px}
.masthead .feed-shortcuts,.guest-preview .masthead .feed-shortcuts{display:flex;flex:none;order:0;width:auto;gap:6px;padding:0;margin:0}
.header-feed-controls .feed-shortcut,.guest-preview .header-feed-controls .feed-shortcut{min-width:34px;padding:0;flex:none}
.header-feed-controls .shortcut-medallion,.guest-preview .header-feed-controls .shortcut-medallion{width:34px;height:34px}
.header-utilities .gallery-rail,.guest-preview .header-utilities .gallery-rail{position:static;inset:auto;display:flex;flex:none;flex-direction:row;align-items:center;justify-content:flex-end;order:0;width:auto;gap:7px;margin:0;padding:0;pointer-events:auto}
.header-utilities .gallery-rail button{width:34px;height:34px;padding:0;font:400 24px/1 Georgia,serif}
.masthead .shortcut-medallion,.masthead .feed-status-medallion,.masthead .gallery-rail button,.masthead .top-actions .icon-button,.masthead .account-pill{
  display:grid;
  place-items:center;
  border:1px solid #a8b0b0;
  border-radius:50%;
  background:linear-gradient(140deg,#64798526,#f5f8f225);
  box-shadow:inset 2px 2px 3px #273a486b,inset -1px -1px 1px #fffff6,0 1px 0 #f5f8f0;
  color:#7e622c;
  text-shadow:0 1px 0 #ffffed;
}
.masthead .shortcut-medallion svg,.masthead .feed-status .feed-status-icon,.masthead .gallery-rail svg,.masthead .top-actions .icon-button svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:#89682e;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 1px 0 #ffffe6);
}
.masthead .gallery-rail svg{width:17px;height:17px}
.masthead button:focus-visible,.brand:focus-visible{outline:2px solid #235172;outline-offset:4px}
.masthead .top-actions{display:flex;align-items:center;gap:6px;margin:0}
.guest-preview .masthead .top-actions{display:none}
.masthead .top-actions .icon-button,.masthead .account-pill{width:30px;height:30px;padding:0}
.masthead .avatar{background:none;color:#69562e}
.masthead .feed-shortcut:hover .shortcut-medallion,.masthead .gallery-rail button:hover{background:#64798525;box-shadow:inset 2px 2px 4px #273a4880,inset -1px -1px 1px #fffff6}

@media(min-width:1360px){
  .header-feed-controls .feed-status-count{display:block}
  .header-feed-controls .feed-status-type{font-size:11px}
  .header-feed-controls .feed-status-count,.header-feed-controls .feed-status-edit{font-size:9px}
}
@media(max-width:960px){
  .masthead-inner,.guest-preview .masthead-inner{padding-left:18px;padding-right:18px;column-gap:10px}
  .header-feed-controls{gap:5px}
  .header-feed-controls .feed-status,.guest-preview .header-feed-controls .feed-status{height:36px;gap:5px;padding:0 8px 0 3px}
  .header-feed-controls .feed-status-type{font-size:9px;gap:5px}
  .header-feed-controls .feed-status-edit{font-size:7px}
  .header-feed-controls .feed-status-medallion{width:28px;height:28px}
  .masthead .feed-shortcuts,.guest-preview .masthead .feed-shortcuts{gap:5px}
  .header-feed-controls .shortcut-medallion,.guest-preview .header-feed-controls .shortcut-medallion{width:29px;height:29px}
  .header-feed-controls .feed-shortcut,.guest-preview .header-feed-controls .feed-shortcut{min-width:29px}
  .header-utilities .gallery-rail,.guest-preview .header-utilities .gallery-rail{gap:6px}
  .header-utilities .gallery-rail button{width:30px;height:30px}
  .masthead .shortcut-medallion svg,.masthead .feed-status .feed-status-icon{width:18px;height:18px}
  .masthead .top-actions .icon-button{display:none}
  .masthead .account-pill{width:27px;height:27px}
}
/* Wider photographs leave real stone between rows and at each page edge. */
#main-content{padding-left:clamp(64px,5vw,84px);padding-right:clamp(64px,5vw,84px)}
.site-shell{--gallery-gap:38px;--gallery-inset:44px}
.gallery-page{column-gap:38px;row-gap:56px}
.preview-card,.preview-card:first-child{max-width:none;width:100%;height:auto;max-height:100%;aspect-ratio:1.78}
@media(min-width:701px) and (max-width:960px){
  .site-shell{--gallery-inset:32px;--gallery-gap:30px}
  .gallery-page{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,minmax(0,1fr));
    column-gap:30px;
    row-gap:34px;
  }
  .preview-card,.preview-card:first-child{aspect-ratio:2}
}
@media(max-width:760px){
  .site-shell{--roof-face-height:clamp(34px,8vw,61px)}
  .masthead-inner,.guest-preview .masthead-inner{padding-left:14px;padding-right:14px;column-gap:8px}
  .header-feed-controls .feed-status-edit{font-size:0;width:14px}
  .header-feed-controls .feed-status-edit:after{content:"\22ef";font:700 16px/1 Georgia,serif}
}
@media(max-width:640px){
  .site-shell{--cornice-height:21px}
  .masthead-inner,.guest-preview .masthead-inner{padding-left:12px;padding-right:12px;column-gap:6px}
  .header-feed-controls{gap:4px}
  .header-feed-controls .feed-status,.guest-preview .header-feed-controls .feed-status{height:32px;padding:0 3px;gap:0;border:0;background:none;box-shadow:none}
  .header-feed-controls #header-asset,.header-feed-controls .feed-status-edit{display:none}
  .header-feed-controls .feed-status-medallion{width:28px;height:28px}
  .masthead .feed-shortcuts,.guest-preview .masthead .feed-shortcuts{gap:4px}
  .header-feed-controls .shortcut-medallion,.guest-preview .header-feed-controls .shortcut-medallion{width:25px;height:25px}
  .header-feed-controls .feed-shortcut,.guest-preview .header-feed-controls .feed-shortcut{min-width:25px}
  .header-utilities .gallery-rail,.guest-preview .header-utilities .gallery-rail{gap:4px}
  .header-utilities .gallery-rail button{width:25px;height:25px;font-size:20px}
  .masthead .gallery-rail svg{width:14px;height:14px}
  .masthead .top-actions{display:none}
}

.monument-scrollbar{right:0;width:calc(var(--shaft-width) / 2);max-width:none;min-width:0;top:calc(var(--roof-height) + var(--capital-height) + 18px);bottom:28px;gap:0}
#pillar-scroll-track{width:14px;border:0;border-radius:12px;background:linear-gradient(90deg,#5c6c75,#c4cbc9 40%,#8d9a9d);box-shadow:inset 3px 2px 4px #293d4cbb,inset -1px -1px 1px #fffff1,-1px -1px 0 #79878c,1px 1px 0 #eef1e8}
#pillar-scroll-thumb{left:2px;width:10px;border:1px solid #bba46d;border-radius:10px;background:linear-gradient(90deg,#a5aaa1,#f4f3df 45%,#b7bcae);box-shadow:inset 1px 1px 1px #ffffee,inset -1px -1px 1px #879388;outline-color:#8d7139}
#pillar-scroll-thumb:hover,#pillar-scroll-thumb:focus-visible{background:linear-gradient(90deg,#b9bda9,#fffce0 45%,#c5c7af)}
#pillar-scroll-position{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){
  #main-content{padding-left:46px;padding-right:46px}
  .site-shell{--pillar-width:140px;--capital-height:72px;--shaft-width:47px;--gallery-inset:30px}
  .gallery-page{column-gap:24px;row-gap:34px}
  .preview-card,.preview-card:first-child{aspect-ratio:1.78}
}
@media(max-width:360px){
  .header-feed-controls{gap:3px}
  .header-feed-controls .feed-status,.guest-preview .header-feed-controls .feed-status{height:26px;padding:0 2px}
  .header-feed-controls .feed-status-medallion{width:22px;height:22px}
  .masthead .feed-shortcuts,.guest-preview .masthead .feed-shortcuts{gap:3px}
  .header-feed-controls .feed-shortcut,.guest-preview .header-feed-controls .feed-shortcut{min-width:20px}
  .header-feed-controls .shortcut-medallion,.guest-preview .header-feed-controls .shortcut-medallion{width:20px;height:20px}
  .masthead .shortcut-medallion svg,.masthead .feed-status .feed-status-icon{width:14px;height:14px}
  .header-utilities .gallery-rail,.guest-preview .header-utilities .gallery-rail{gap:3px}
  .header-utilities .gallery-rail button{width:21px;height:21px;font-size:17px}
}

/* Four-deal study: two generous rows with the same stone margins. */
@media(min-width:701px){
  body[data-preview-page-size="4"] .gallery-page{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));column-gap:38px;row-gap:56px;padding:44px 0}
  body[data-preview-page-size="4"] .preview-card,body[data-preview-page-size="4"] .preview-card:first-child{height:100%;max-height:none;aspect-ratio:auto}
}
