/* Screenshot galleries, full-width image cards and accessible image viewer.
   Kept separate from style.css so existing site-wide styling remains untouched. */

/* Let each complete annotated screenshot occupy its entire image area.
   Do not use object-fit:cover here: labels, UI controls and captions are instructional. */
.ss-guide-shot-link {
  display: block;
  padding: 0 !important;
  overflow: hidden;
  background: #f8f5ee;
}
.ss-guide-shot-link img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #f8f5ee;
}
.ss-guide-shot-link:hover img,
.ss-guide-path-preview:hover img {
  filter: brightness(1.015);
}
.ss-guide-shot-link,
.ss-guide-path-preview {
  cursor: zoom-in;
}
.ss-guide-shot figcaption {
  border-top: 1px solid rgba(196,163,90,.25);
}

/* Getting Started overview: full-bleed images + distinct lesson and zoom links. */
.ss-guide-path-card {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  overflow: hidden;
}
.ss-guide-path-preview {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f8f5ee;
  border-bottom: 1px solid rgba(196,163,90,.3);
}
.ss-guide-path-preview img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  background: #f8f5ee;
  border-radius: 0 !important;
}
.ss-guide-path-destination {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 12px 12px 14px;
  color: #183d30;
  text-decoration: none;
}
.ss-guide-path-destination:hover,
.ss-guide-path-destination:focus-visible {text-decoration: underline;text-underline-offset: 4px;}
.ss-guide-path-destination strong {font: 700 1rem/1.4 Georgia,serif;}
.ss-guide-path-destination span {font-size:.85rem;line-height:1.35;}
.ss-guide-path-preview:focus-visible,
.ss-guide-path-destination:focus-visible {
  outline: 3px solid #c4a35a;
  outline-offset: -3px;
}

/* Native browser modal: responsive, keyboard accessible and safe for file://. */
.ss-screenshot-dialog {
  box-sizing: border-box;
  width: min(1240px, calc(100vw - 28px));
  max-width: none;
  max-height: min(95vh, 1100px);
  margin: auto;
  padding: 0;
  border: 1px solid #c4a35a;
  border-radius: 15px;
  overflow: auto;
  background: #f7f2e7;
  color: #183d30;
  box-shadow: 0 22px 80px rgba(0,0,0,.35);
}
.ss-screenshot-dialog::backdrop {
  background: rgba(11,32,25,.82);
  backdrop-filter: blur(3px);
}
.ss-screenshot-dialog-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #183d30;
  color: #fffaf0;
  font: 700 1rem/1.4 Georgia,serif;
}
.ss-screenshot-dialog-title {margin: 0;min-width: 0;overflow-wrap: anywhere;}
.ss-screenshot-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c4a35a;
  border-radius: 9px;
  color: #fffaf0;
  background: #315b43;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.ss-screenshot-close:hover {background:#416e50;}
.ss-screenshot-close:focus-visible {outline:3px solid #e9ce8d;outline-offset:2px;}
.ss-screenshot-dialog-image {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(95vh - 110px);
  margin: 10px auto;
  object-fit: contain;
  background: #f7f2e7;
}
.ss-screenshot-dialog-hint {
  text-align: center;
  margin: 0;
  padding: 3px 12px 10px;
  font: .84rem/1.4 Georgia,serif;
  color: #536053;
}
@media (max-width: 560px) {
  .ss-screenshot-dialog {width:calc(100vw - 12px);max-height:96dvh;border-radius:9px;}
  .ss-screenshot-dialog-image {max-height:calc(96dvh - 108px);}
  .ss-screenshot-dialog-head {padding:8px 11px;font-size:.92rem;}
}

/* F9: 44px keyboard/touch close target in the image viewer. */
@media (max-width: 560px) {
  .ss-screenshot-close { width:44px; height:44px; }
  .ss-screenshot-dialog-title { overflow-wrap:anywhere; }
}
