#terrace-photo-trigger {
  position:absolute;z-index:3;right:max(18px,env(safe-area-inset-right));top:max(88px,calc(env(safe-area-inset-top) + 76px));
  display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 15px;
  border:1px solid #e1d8c4;border-radius:24px;background:#faf7ec;color:#28372c;
  box-shadow:0 3px 14px #13231838;cursor:pointer;font:650 .88rem/1.2 system-ui,sans-serif;touch-action:manipulation;
}
#terrace-photo-trigger::before {
  content:"";width:18px;height:13px;border:1.7px solid currentColor;border-radius:4px;
  background:radial-gradient(circle at 50% 50%,transparent 2.5px,currentColor 3px,currentColor 4px,transparent 4.5px);
}
#terrace-photo-preview {
  box-sizing:border-box;width:min(544px,calc(100vw - 26px));max-height:calc(100dvh - 32px);overflow:auto;
  padding:16px;border:1px solid #ded8c6;border-radius:18px;background:#f9f6ed;color:#29382e;
  box-shadow:0 14px 60px #18251e55;touch-action:pan-y;
}
#terrace-photo-preview::backdrop {background:#152119b8}
.terrace-photo-heading,.terrace-photo-actions {display:flex;align-items:center;justify-content:space-between;gap:10px}
.terrace-photo-heading h2 {margin:0;font:700 1.2rem/1.3 system-ui,sans-serif;letter-spacing:-.04em}
#terrace-photo-preview button,#terrace-photo-preview a {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;
  border:1px solid #c7cbbd;border-radius:25px;background:#f9f6ed;color:#2c382f;
  font:650 .9rem/1.2 system-ui,sans-serif;text-decoration:none;cursor:pointer;
}
.terrace-photo-heading button {margin-left:auto}
#terrace-photo-preview img {
  display:block;width:auto;height:auto;max-width:100%;max-height:min(65dvh,600px);object-fit:contain;
  margin:12px auto;border:1px solid #ded8c9;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default;
}
#terrace-photo-preview p {margin:24px 0 18px;color:#4d5b50}
.terrace-photo-actions {justify-content:flex-end}
#terrace-photo-preview a {background:#304936;color:#fffaf0;border-color:#304936}
@media(max-width:600px){
  #terrace-photo-trigger{right:max(12px,env(safe-area-inset-right));top:max(120px,calc(env(safe-area-inset-top) + 110px))}
}
