/* Photographs of individual stones lead the work section; complete settings follow. */
.impressions-heading { margin-bottom:26px; }
.impressions-heading h2 { max-width:15ch; }
.impression-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 22px; }
.impression-card { min-width:0; }
.impression-shot {
  --frame-ratio:.8;
  display:block; position:relative; overflow:hidden; aspect-ratio:var(--frame-ratio);
  background:#edeae2; color:var(--ink); isolation:isolate;
}
.impression-card.landscape { grid-column:auto; }
.impression-shot img {
  position:absolute; left:50%; top:50%; width:100%; height:100%; max-width:none;
  object-fit:contain; object-position:center; margin:0; padding:0;
  transform:translate(-50%,-50%) rotate(var(--photo-turn,0deg)) scale(var(--photo-scale,1));
}
.impression-shot.quarter-turn img { width:calc(100% / var(--frame-ratio)); height:calc(100% * var(--frame-ratio)); object-position:center; }
.impression-shot::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 0 1px rgb(82 74 53 / 12%),inset 0 0 12px 3px rgb(251 250 246 / 22%);
}
.impression-shot > span {
  position:absolute; right:10px; bottom:10px; z-index:1;
  padding:5px 11px; background:rgb(251 250 246 / 94%); font-size:.8rem; border-radius:2px;
}
.impression-card figcaption { padding-top:12px; }
.impression-card h3 { font:400 clamp(1.25rem,2vw,1.7rem)/1.2 var(--serif); margin:0 0 6px; letter-spacing:-.025em; }
.impression-card figcaption p { margin:0; line-height:1.5; max-width:42ch; }
.impressions-more { margin-top:32px; border-color:#c8cabb; }
.impressions-more > summary { padding:18px 0; font:400 clamp(1.25rem,2.1vw,1.65rem)/1.3 var(--serif); }
.impressions-more > .impression-grid { padding-block:16px 30px; }
.impressions-context { margin-top:32px; max-width:62ch; color:var(--muted); }
.complete-settings { margin-top:clamp(44px,7vw,90px); padding-top:30px; border-top:1px solid #c8cabb; }
.complete-settings > h3 { font-size:clamp(1.8rem,3vw,2.65rem); }
.complete-settings > p { max-width:65ch; margin:12px 0 26px; color:var(--muted); }
#lightbox { width:min(1180px,95vw); padding:14px 20px 22px; max-height:95dvh; }
.gallery-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:24px; align-items:center; }
.gallery-details { min-width:0; }
.gallery-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.gallery-position { font-size:.9rem; color:var(--muted); }
.gallery-stage { width:100%; display:grid; place-items:center; position:relative; height:min(78dvh,850px); overflow:hidden; background:#ece9e1; touch-action:none; cursor:crosshair; }
.gallery-stage:focus-visible { outline:2px solid #4285f4; outline-offset:3px; }
.gallery-lens { position:absolute; z-index:2; width:190px; height:190px; pointer-events:none; border:1px solid rgb(255 255 255 / 85%); box-shadow:0 4px 24px rgb(24 43 33 / 25%),0 0 0 1px rgb(24 43 33 / 25%); background:#ece9e1; }
.gallery-lens[hidden] { display:none; }
.gallery-zoom { border:1px solid #aabaae; background:transparent; color:var(--green); min-height:44px; padding:8px 14px; margin-block:12px 0; }
.gallery-zoom[aria-pressed="true"] { background:#eaf1e9; }
.gallery-hint { font-size:.85rem; line-height:1.5; color:var(--muted); margin:8px 0 20px; }
#lightbox .gallery-stage img { position:absolute; max-width:none; max-height:none; padding:0; margin:0; object-fit:contain; outline:0; mask:none; }
.gallery-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:10px 0 16px; }
.gallery-controls button { background:transparent; border:1px solid #bfc8bb; color:var(--green); min-height:44px; padding:8px 16px; }
.gallery-details .gallery-controls { flex-wrap:wrap; }
.gallery-details .gallery-controls button { flex:1; white-space:nowrap; }
#lightbox h2 { font-size:clamp(1.5rem,3vw,2.1rem); margin-bottom:8px; }
#lightbox .gallery-caption { font-size:1rem; max-width:65ch; }
@media (prefers-reduced-motion:no-preference) {
  .impression-shot img { transition:filter .25s ease; }
  .impression-shot:hover img { filter:brightness(1.035); }
}
@media (max-width:850px) {
  .impression-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 18px; }
  .gallery-layout { grid-template-columns:1fr; gap:18px; }
  .gallery-stage { height:auto; aspect-ratio:var(--gallery-ratio,1); max-height:62dvh; }
}
@media (max-width:540px) {
  .impression-grid { gap:24px 14px; }
  .impression-card h3 { font-size:1.15rem; }
  .impression-card figcaption p { font-size:.9rem; }
  .impression-shot > span { padding:4px 7px; right:5px; bottom:5px; font-size:.72rem; }
  #lightbox { padding:12px; }
  .gallery-stage { max-height:56dvh; }
}
