/* =========================================================
   Képalapú statikus emlékhely oldal + kliensoldali capture
   Az élő emlékhely kinézetét html2canvas menti képként.
   ========================================================= */

#staticCaptureStage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 600px;
  height: 800px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

#staticCaptureStage .temeto-hatter {
  position: relative !important;
  width: 600px !important;
  height: 800px !important;
  min-height: 800px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#staticCaptureStage .temeto-hatter.edit,
#staticCaptureStage #dropzoneWrap.edit {
  cursor: default !important;
}

#staticCaptureStage #kellekek,
#staticCaptureStage .sirkovek,
#staticCaptureStage .mobile-editor-tab,
#staticCaptureStage .mobile-editor-shade,
#staticCaptureStage .ui-resizable-handle,
#staticCaptureStage input,
#staticCaptureStage textarea,
#staticCaptureStage .drag-handle {
  display: none !important;
}

/* ---------- Statikus HTML oldal ---------- */
body.static-html-page {
  min-height: 100vh;
  margin: 0;
  background: var(--body_bg);
}

body.static-html-page .header .link,
body.static-html-page .header .site-brand,
body.static-html-page .header .coin-box,
body.static-html-page .header .site-menu-toggle {
  pointer-events: none;
  cursor: default;
}

body.static-html-page .header .site-nav .link {
  opacity: .65;
}

body.static-html-page .main.static-memorial-page {
  position: fixed;
  top: var(--static-main-top, 150px);
  left: 0;
  right: 0;
  bottom: var(--static-main-bottom, 50px);
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

body.static-html-page .static-memorial-wrap {
  position: relative;
  width: min(100vw, 600px);
  max-width: 600px;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

body.static-html-page .static-memorial-shot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--static-shot-max-height, calc(100vh - 220px));
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

body.static-html-page .static-memorial-actions {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  z-index: 20;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: calc(100% - 16px);
  max-width: 560px;
  pointer-events: auto;
}

body.static-html-page .static-memorial-actions .static-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  font-family: var(--betutipus-szoveg1);
  font-size: 16px;
  line-height: 1.15;
  color: var(--button_color);
  background: var(--button_bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

body.static-html-page .static-memorial-actions .static-action-btn.secondary {
  background: var(--vilagos);
  color: var(--sotetbarna);
}

@media only screen and (max-width: 640px) {
  body.static-html-page .main.static-memorial-page {
    padding: 0;
  }

  body.static-html-page .static-memorial-actions {
    width: calc(100% - 16px);
    gap: 8px;
  }

  body.static-html-page .static-memorial-actions .static-action-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    font-size: 14px;
  }
}

#staticCaptureStage #emlekhely_editor.static-capture-clone {
  position: relative !important;
  display: block !important;
  width: 600px !important;
  height: 800px !important;
  min-height: 800px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
