/* Studio Mara Form 2 — scoped styles; no external fonts or libraries. */
.smf {
  --smf-bg: #e7e7e7;
  --smf-ink: #080808;
  --smf-line: #808080;
  --smf-field-bg: transparent;
  --smf-field-ink: #080808;
  --smf-placeholder: #676767;
  --smf-overlay: rgba(0,0,0,.55);
  --smf-error: #a31a1a;
  --smf-popup-width: 860px;
  --smf-panel-radius: 0px;
  --smf-button-radius: 0px;
  --smf-trigger-bg: transparent;
  --smf-trigger-ink: #080808;
  --smf-trigger-hover-bg: #080808;
  --smf-trigger-hover-ink: #fff;
  --smf-submit-bg: #080808;
  --smf-submit-ink: #fff;
  --smf-submit-hover-bg: #303030;
  --smf-submit-hover-ink: #fff;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  background: transparent !important;
  color: var(--smf-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.smf *, .smf *::before, .smf *::after { box-sizing: border-box; }
.smf [hidden] { display: none !important; }
.smf .smf-trigger-wrap { text-align: left; }
.smf .smf-trigger, .smf .smf-submit {
  appearance: none;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: 100%;
  min-height: 54px;
  padding: 17px 22px;
  margin: 0;
  border: 1px solid var(--smf-trigger-ink) !important;
  border-radius: var(--smf-button-radius) !important;
  background: var(--smf-trigger-bg) !important;
  color: var(--smf-trigger-ink) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-decoration: none !important;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.smf .smf-submit { border-color: var(--smf-submit-bg) !important; background: var(--smf-submit-bg) !important; color: var(--smf-submit-ink) !important; }
.smf .smf-arrow { display: block; width: 22px; height: 22px; flex: 0 0 22px; transition: transform 140ms ease-out; }
.smf .smf-submit:disabled { opacity: .55; cursor: wait; }
.smf .smf-submit:disabled .smf-arrow { transform: none; }
.smf :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--smf-ink); outline-offset: 4px; }
.smf .smf-dialog {
  position: fixed;
  inset: 0;
  width: min(var(--smf-popup-width), calc(100% - 32px));
  min-width: 0;
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--smf-panel-radius);
  background: var(--smf-bg);
  color: var(--smf-ink);
  box-shadow: none;
  font: inherit;
  text-align: left;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--smf-line) var(--smf-bg);
}
.smf .smf-dialog:not([open]) { display: none !important; }
.smf .smf-dialog[open]:not(.smf-static-preview) { animation: smf-enter 240ms cubic-bezier(.2,0,0,1); }
.smf .smf-dialog::backdrop { background: var(--smf-overlay); animation: smf-backdrop-in 200ms ease-out; }
.smf .smf-dialog.is-closing { animation: smf-exit 160ms ease-in; }
.smf .smf-dialog.is-closing::backdrop { animation: smf-backdrop-out 160ms ease-in; }
.smf .smf-surface {
  padding: 36px 40px;
  min-width: 0;
  border: 1px solid var(--smf-ink);
  border-radius: inherit;
  background: var(--smf-bg);
  color: var(--smf-ink);
}
.smf .smf-topline { position: sticky; top: 0; z-index: 3; background: var(--smf-bg); display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.smf .smf-eyebrow { font-size: 10px; line-height: 1.4; letter-spacing: .12em; }
.smf .smf-close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 -10px 0 0;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--smf-ink) !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 140ms ease-out;
}
.smf .smf-close:hover { border-color: var(--smf-line) !important; }
.smf .smf-close svg { display: block; }
.smf .smf-head { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: end; gap: 30px; margin: 24px 0 32px; }
.smf .smf-title { margin: 0; padding: 0; color: var(--smf-ink); font-family: inherit; font-size: clamp(36px,5vw,56px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; text-transform: none; overflow-wrap: anywhere; }
/* The static heading is a programmatic focus target, not a tab stop. */
.smf .smf-title:focus { outline: none; }
.smf .smf-intro { margin: 0; padding: 0; color: inherit; font-size: 14px; line-height: 1.5; }
.smf .smf-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; row-gap: 22px; margin: 0; padding: 0; border: 0; }
.smf .smf-legend { grid-column: 1 / -1; margin: 0 0 -8px; padding: 0; font-size: 11px; color: var(--smf-placeholder); }
.smf .smf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.smf .smf-field--100 { grid-column: 1 / -1; }
.smf .smf-label { display: block; margin: 0; padding: 0; color: var(--smf-ink); font-size: 12px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.smf .smf-control {
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0 11px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--smf-line) !important;
  border-radius: 0 !important;
  background: var(--smf-field-bg) !important;
  color: var(--smf-field-ink) !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 18px;
  line-height: 1.5;
  text-transform: none;
  transition: border-color 140ms ease-out;
}
.smf .smf-control::placeholder { color: var(--smf-placeholder); opacity: 1; }
.smf .smf-control:focus { border-bottom-color: var(--smf-ink) !important; }
.smf .smf-control:focus:not(:focus-visible) { outline: none; }
.smf textarea.smf-control { min-height: 100px; resize: vertical; }
.smf select.smf-control { appearance: auto; padding-right: 4px !important; cursor: pointer; color-scheme: light; }
.smf select.smf-control:has(option:checked[value=""]) { color: var(--smf-placeholder) !important; }
.smf select.smf-control option { color: #080808; background: #e7e7e7; }
.smf .smf-control[aria-invalid="true"] { border-bottom-color: var(--smf-error) !important; }
.smf .smf-field-error { display: block; color: var(--smf-error); font-size: 12px; line-height: 1.4; }
.smf .smf-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; padding: 10px 0; cursor: pointer; }
.smf .smf-checkbox { appearance: auto !important; flex: 0 0 18px; width: 18px !important; height: 18px !important; margin: 1px 0 0 !important; accent-color: var(--smf-ink); cursor: pointer; }
.smf .smf-check .smf-label { font-size: 14px; }
.smf .smf-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 6px; }
.smf .smf-privacy { flex: 1 1 50%; margin: 0; padding: 0; color: var(--smf-placeholder); font-size: 11px; line-height: 1.6; }
.smf .smf-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.smf .smf-privacy a:hover { color: var(--smf-ink); }
.smf .smf-status { grid-column: 1 / -1; margin: 0; padding: 12px 0 0; font-size: 13px; color: var(--smf-ink); overflow-wrap: anywhere; }
.smf .smf-status:empty { display: none; }
.smf .smf-status.is-error { color: var(--smf-error); }
.smf .smf-hp { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.smf .smf-success { padding: 26px 0 8px; outline: none; }
.smf .smf-success-icon { display: block; margin: 0 0 20px; }
.smf .smf-success h3 { margin: 0 0 12px; color: inherit; font: inherit; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.smf .smf-success-message { margin: 0 0 28px; max-width: 52ch; font-size: 16px; white-space: pre-line; }
.smf .smf-again { appearance: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 8px 0; margin: 0; border: 0 !important; border-bottom: 1px solid var(--smf-ink) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--smf-ink) !important; font: inherit; font-size: 14px; cursor: pointer; }
.smf .smf-inline-panel { margin: 0; padding: 0; border: 0; border-radius: var(--smf-panel-radius); }
.smf.smf--preview .smf-dialog { position: relative; inset: auto; width: 100%; max-height: none; margin: 20px 0 0; animation: none; }
.smf.smf--preview .smf-close { cursor: default; }
@keyframes smf-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes smf-exit { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(8px); } }
@keyframes smf-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes smf-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 767px) {
  .smf .smf-head { grid-template-columns: minmax(0,1fr); gap: 16px; margin: 22px 0 28px; }
  .smf .smf-title { font-size: 38px; }
  .smf .smf-surface { padding: 22px 22px 26px; }
}
@media (max-width: 520px) {
  .smf .smf-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .smf .smf-form { grid-template-columns: minmax(0,1fr); row-gap: 18px; }
  .smf .smf-field { grid-column: 1 / -1; }
  .smf .smf-bottom { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 2px; }
  .smf .smf-submit { width: 100%; }
  .smf .smf-control { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .smf .smf-dialog, .smf .smf-dialog::backdrop, .smf .smf-arrow { animation: none !important; transition: none !important; transform: none !important; }
  .smf .smf-trigger, .smf .smf-submit, .smf .smf-control, .smf .smf-close { transition: none !important; }
}

/* RGB pouze na rámečku; vnitřek tlačítka zůstává beze změny. */
.smf .smf-trigger, .smf .smf-submit { position: relative; }
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .smf .smf-trigger:is(:hover, :focus-visible),
  .smf .smf-submit:is(:hover, :focus-visible):not(:disabled) { border-color: transparent !important; }
  .smf .smf-trigger:is(:hover, :focus-visible)::before,
  .smf .smf-submit:is(:hover, :focus-visible):not(:disabled)::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff, #ffadad);
    background-size: 100% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: smf-rgb-vertical 2s linear infinite;
  }
}
@keyframes smf-rgb-vertical {
  0% { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}
@media (prefers-reduced-motion: reduce) {
  .smf .smf-trigger::before, .smf .smf-submit::before { animation: none !important; }
}

/* Barva textu při najetí z ovládání Elementoru; RGB zůstává na rámečku. */
.smf .smf-trigger:is(:hover, :focus-visible) {
  color: var(--smf-trigger-hover-ink) !important;
}
.smf .smf-submit:is(:hover, :focus-visible):not(:disabled) {
  color: var(--smf-submit-hover-ink) !important;
}

/* Nastavitelná šipka s vlastním RGB přechodem. */
.smf .smf-arrow {
  width: var(--smf-arrow-size, 16px);
  height: var(--smf-arrow-size, 16px);
  flex: 0 0 var(--smf-arrow-size, 16px);
  background: currentColor;
  -webkit-mask: var(--smf-arrow-mask) center / contain no-repeat;
  mask: var(--smf-arrow-mask) center / contain no-repeat;
}
.smf .smf-trigger:is(:hover, :focus-visible) .smf-arrow-rgb,
.smf .smf-submit:is(:hover, :focus-visible):not(:disabled) .smf-arrow-rgb {
  background: linear-gradient(180deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff, #ffadad);
  background-size: 100% 200%;
  animation: smf-rgb-vertical 2s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .smf .smf-arrow-rgb { animation: none !important; }
}

/* 2.5.5 — pouze hover rámeček + šipka odesílacího tlačítka.
   Výplň je vždy původní barva, bez RGB. Neovlivňuje otevírací tlačítko. */
.smf {
  --smf-submit-rgb-c1: #ffadad;
  --smf-submit-rgb-c2: #ffd6a5;
  --smf-submit-rgb-c3: #fdffb6;
  --smf-submit-rgb-c4: #caffbf;
  --smf-submit-rgb-c5: #9bf6ff;
  --smf-submit-rgb-c6: #a0c4ff;
  --smf-submit-rgb-c7: #bdb2ff;
  --smf-submit-rgb-c8: #ffc6ff;
  --smf-submit-rgb-angle: 90deg;
  --smf-submit-rgb-speed: 3s;
  --smf-submit-rgb-border: 1px;
  --smf-submit-rgb-fill: linear-gradient(var(--smf-submit-rgb-angle),
    var(--smf-submit-rgb-c1) 0%, var(--smf-submit-rgb-c2) 13%,
    var(--smf-submit-rgb-c3) 26%, var(--smf-submit-rgb-c4) 39%,
    var(--smf-submit-rgb-c5) 52%, var(--smf-submit-rgb-c6) 65%,
    var(--smf-submit-rgb-c7) 78%, var(--smf-submit-rgb-c8) 90%,
    var(--smf-submit-rgb-c1) 100%);
}
.smf .smf-submit {
  isolation: isolate;
  background: var(--smf-submit-bg) !important;
  background-image: none !important;
  border: 1px solid var(--smf-submit-bg) !important;
}
.smf .smf-submit > * { position: relative; z-index: 1; }
/* Výchozí stav: bez barevného rámečku. */
.smf .smf-submit::before { opacity: 0; }
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .smf .smf-submit::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: var(--smf-submit-rgb-border);
    pointer-events: none;
    background-image: var(--smf-submit-rgb-fill);
    background-size: 250% 250%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: none;
    transition: opacity .23s ease;
  }
  .smf .smf-submit:is(:hover,:focus-visible):not(:disabled)::before {
    opacity: 1;
    background-image: var(--smf-submit-rgb-fill);
    background-size: 250% 250%;
    animation: smf-submit-rgb-flow var(--smf-submit-rgb-speed) linear infinite;
  }
}
.smf .smf-submit:is(:hover,:focus-visible):not(:disabled) {
  background: var(--smf-submit-bg) !important;
  background-image: none !important;
  color: var(--smf-submit-hover-ink) !important;
}
/* Šipka používá stejný gradient a stejný pohyb jako rámeček. */
.smf .smf-submit:is(:hover,:focus-visible):not(:disabled) .smf-arrow {
  background-image: var(--smf-submit-rgb-fill);
  background-size: 250% 250%;
  animation: smf-submit-rgb-flow var(--smf-submit-rgb-speed) linear infinite;
}
@keyframes smf-submit-rgb-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .smf .smf-submit::before,
  .smf .smf-submit:is(:hover,:focus-visible):not(:disabled) .smf-arrow {
    animation: none !important;
    transition: none !important;
  }
}

/* O mně: scrollbar je uvnitř rámečku, ne vedle něj. */
.smf.smf--about .smf-dialog {
  overflow: hidden;
  border: 1px solid var(--smf-ink);
  background: var(--smf-bg);
}
.smf.smf--about .smf-surface {
  max-height: calc(100vh - 50px);
  max-height: calc(100dvh - 50px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--smf-line) var(--smf-bg);
  border: 0;
  border-radius: inherit;
}
.smf.smf--about .smf-surface::-webkit-scrollbar { width: 10px; }
.smf.smf--about .smf-surface::-webkit-scrollbar-track { background: var(--smf-bg); }
.smf.smf--about .smf-surface::-webkit-scrollbar-thumb {
  background: var(--smf-line);
  border: 3px solid var(--smf-bg);
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Studio Mara – O mně. Uses the same trigger and dialog as the contact form.
   -------------------------------------------------------------------------- */
.smf.smf--about .smf-head { margin-bottom: 30px; }
.smf .smf-about-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--smf-about-photo-share, 44%)) minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--smf-line);
}
.smf .smf-about-grid.smf-about--right { grid-template-columns: minmax(0, 1fr) minmax(0, var(--smf-about-photo-share, 44%)); }
.smf .smf-about--right .smf-about-media { order: 2; }
.smf .smf-about--right .smf-about-copy { order: 1; }
.smf .smf-about--no-photo { grid-template-columns: minmax(0, 1fr); }
.smf .smf-about-media { min-width: 0; width: 100%; padding: 0; margin: 0; }
.smf .smf-about-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.smf .smf-about-ratio--square .smf-about-photo { aspect-ratio: 1 / 1; }
.smf .smf-about-ratio--wide .smf-about-photo { aspect-ratio: 4 / 3; }
.smf .smf-about-ratio--natural .smf-about-photo { aspect-ratio: auto; }
.smf .smf-about-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 230px; padding: 32px 20px;
  border: 1px dashed var(--smf-line);
  color: var(--smf-placeholder);
  font-size: 13px; text-align: center;
}
.smf .smf-about-caption { margin-top: 9px; color: var(--smf-placeholder); font-size: 11px; line-height: 1.45; }
.smf .smf-about-copy { min-width: 0; }
.smf .smf-about-subtitle {
  margin: 0 0 18px;
  padding: 0;
  color: var(--smf-ink);
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.17;
  letter-spacing: -.03em;
}
.smf .smf-about-body { color: var(--smf-ink); font-size: 15px; line-height: 1.68; overflow-wrap: anywhere; }
.smf .smf-about-body > :first-child { margin-top: 0; }
.smf .smf-about-body > :last-child { margin-bottom: 0; }
.smf .smf-about-body p { margin: 0 0 1em; font: inherit; color: inherit; }
.smf .smf-about-body ul, .smf .smf-about-body ol { margin: .5em 0 1em; padding-left: 1.2em; }
.smf .smf-about-body li { margin-bottom: .4em; }
.smf .smf-about-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.smf .smf-about-small {
  margin: 27px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--smf-line);
  color: var(--smf-ink);
  font-size: 10px;
  letter-spacing: .055em;
  line-height: 1.65;
}
.smf .smf-about-link {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  color: var(--smf-ink);
  font-size: 13px;
  text-decoration: none !important;
  transition: opacity .16s ease;
}
.smf .smf-about-link:hover { color: var(--smf-ink); opacity: .65; }
@media (max-width: 767px) {
  .smf .smf-about-grid, .smf .smf-about-grid.smf-about--right {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    padding-top: 20px;
  }
  .smf .smf-about--right .smf-about-media, .smf .smf-about--right .smf-about-copy { order: initial; }
  .smf .smf-about-photo { max-height: 370px; }
}
@media (prefers-reduced-motion: reduce) {
  .smf .smf-about-link { transition: none; }
}

/* --------------------------------------------------------------------------
   Rozbalovací BIO / delší text – samostatné tlačítko s RGB hoverem
   -------------------------------------------------------------------------- */
.smf .smf-portfolio-accordion {
  margin-top: 28px;
  border-top-width: 0;
  border-top-style: none;
  border-top-color: var(--smf-line);
}
.smf .smf-portfolio-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom-width: 0;
  border-bottom-style: none;
  border-bottom-color: var(--smf-line);
}
.smf .smf-portfolio-item + .smf-portfolio-item { margin-top: 10px; }

.smf .smf-portfolio-summary,
.smf .smf-portfolio-summary:hover,
.smf .smf-portfolio-summary:focus,
.smf .smf-portfolio-summary:active {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 13px 16px;
  margin: 0;
  border: 1px solid var(--smf-portfolio-ink, var(--smf-ink)) !important;
  border-radius: var(--smf-portfolio-radius, 0px) !important;
  background: var(--smf-portfolio-bg, transparent) !important;
  color: var(--smf-portfolio-ink, var(--smf-ink)) !important;
  box-shadow: none !important;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .055em;
  text-decoration: none !important;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.smf .smf-portfolio-uppercase .smf-portfolio-summary { text-transform: uppercase; }
.smf .smf-portfolio-summary::-webkit-details-marker { display: none; }
.smf .smf-portfolio-summary::marker { display: none; content: ''; }
.smf .smf-portfolio-summary:focus-visible {
  outline: 2px solid var(--smf-portfolio-ink, var(--smf-ink));
  outline-offset: 4px;
}
.smf .smf-portfolio-summary:is(:hover, :focus-visible) {
  background: var(--smf-portfolio-hover-bg, transparent) !important;
  color: var(--smf-portfolio-hover-ink, var(--smf-ink)) !important;
}

/* RGB rámeček – stejný princip jako Studio Mára Anchor Button. */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .smf .smf-portfolio-rgb-border .smf-portfolio-summary:is(:hover, :focus-visible) {
    border-color: transparent !important;
  }
  .smf .smf-portfolio-rgb-border .smf-portfolio-summary:is(:hover, :focus-visible)::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff, #ffadad);
    background-size: 100% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: smf-rgb-vertical 2s linear infinite;
  }
}

.smf .smf-portfolio-title { min-width: 0; }
.smf .smf-portfolio-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 1em;
  color: var(--smf-portfolio-icon, currentColor);
  line-height: 1;
  font-weight: 400;
}
.smf .smf-portfolio-icon-open { display: none; }
.smf .smf-portfolio-item[open] .smf-portfolio-icon-closed { display: none; }
.smf .smf-portfolio-item[open] .smf-portfolio-icon-open { display: inline; }
.smf .smf-portfolio-icon-left .smf-portfolio-icon { order: -1; }
.smf .smf-portfolio-icon-beside .smf-portfolio-summary { justify-content: flex-start; }
.smf .smf-portfolio-icon-edge .smf-portfolio-summary { justify-content: space-between; }
.smf .smf-portfolio-no-icon .smf-portfolio-summary { justify-content: flex-start; }

.smf .smf-portfolio-rgb-icon .smf-portfolio-summary:is(:hover, :focus-visible) .smf-portfolio-icon {
  background: linear-gradient(180deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff, #ffc6ff, #ffadad);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: smf-rgb-vertical 2s linear infinite;
}

.smf .smf-portfolio-panel { padding: 15px 0 20px; }
.smf .smf-portfolio-text {
  max-width: 62ch;
  color: var(--smf-ink);
  font-size: 14px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.smf .smf-portfolio-text > :first-child { margin-top: 0; }
.smf .smf-portfolio-text > :last-child { margin-bottom: 0; }
.smf .smf-portfolio-text p { margin: 0 0 1em; font: inherit; color: inherit; }
.smf .smf-portfolio-text ul,
.smf .smf-portfolio-text ol { margin: .5em 0 1em; padding-left: 1.2em; }
.smf .smf-portfolio-text li { margin-bottom: .4em; }
.smf .smf-portfolio-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .smf .smf-portfolio-accordion { margin-top: 24px; }
  .smf .smf-portfolio-panel { padding-bottom: 18px; }
  .smf .smf-portfolio-text { font-size: 14px; line-height: 1.68; }
}
@media (prefers-reduced-motion: reduce) {
  .smf .smf-portfolio-summary,
  .smf .smf-portfolio-summary::before,
  .smf .smf-portfolio-icon { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   Studio Mára O mně 2.5 – RGB křížek + dynamická výška popupu
   ========================================================================== */

/* Křížek: normálně zůstává původní, při hoveru ho nahradí dvě RGB čárky. */
.smf.smf--about .smf-close {
  position: relative;
  overflow: visible;
}

.smf.smf--about .smf-close::before,
.smf.smf--about .smf-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.25px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  background: linear-gradient(
    90deg,
    #ffadad,
    #ffd6a5,
    #fdffb6,
    #caffbf,
    #9bf6ff,
    #a0c4ff,
    #bdb2ff,
    #ffc6ff,
    #ffadad
  );
  background-size: 300% 100%;
  transition: opacity 160ms ease;
}

.smf.smf--about .smf-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.smf.smf--about .smf-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.smf.smf--about .smf-close:is(:hover, :focus-visible)::before,
.smf.smf--about .smf-close:is(:hover, :focus-visible)::after {
  opacity: 1;
  animation: smf-close-rgb-flow 2s linear infinite;
}

/* Původní SVG X při hoveru zmizí, aby se pod RGB nemíchala šedá/bílá čára. */
.smf.smf--about .smf-close svg {
  transition: opacity 140ms ease;
}

.smf.smf--about .smf-close:is(:hover, :focus-visible) svg {
  opacity: 0;
}

/* Nechceme při hoveru kolem X další obyčejný rámeček. */
.smf.smf--about .smf-close:hover {
  border-color: transparent !important;
}

@keyframes smf-close-rgb-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/*
 * Popup O mně se přepočítává podle otevřeného akordeonu.
 * Dokud se vejde do viewportu, roste celý vnější rámeček.
 * Až při překročení dostupné výšky začne scrollovat obsah uvnitř.
 */
.smf.smf--about .smf-dialog {
  box-sizing: border-box;
  /* DŮLEŽITÉ: při position:fixed + inset:0 by height:auto vyplnilo viewport. */
  height: fit-content;
  overflow: hidden;
  transition: height 280ms cubic-bezier(.22,.61,.36,1);
}

.smf.smf--about .smf-surface {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
}

/* V editor preview se rám také přizpůsobuje obsahu. */
.smf.smf--about.smf--preview .smf-dialog {
  height: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .smf.smf--about .smf-close::before,
  .smf.smf--about .smf-close::after,
  .smf.smf--about .smf-dialog {
    animation: none !important;
    transition: none !important;
  }
}


/* 2.5.1 – popup je v zavřeném stavu vysoký pouze podle obsahu. */
.smf.smf--about.smf--popup .smf-dialog {
  height: fit-content;
  min-height: 0;
}

/* Inline/editor preview se chová přirozeně v toku stránky. */
.smf.smf--about.smf--preview .smf-dialog {
  height: auto !important;
}


/* Studio Mara – sjednocení RGB zavíracího křížku FORMULÁŘE podle verze O mně 2.5.2. */
/* Křížek: normálně zůstává původní, při hoveru ho nahradí dvě RGB čárky. */
.smf:not(.smf--about) .smf-close {
  position: relative;
  overflow: visible;
}

.smf:not(.smf--about) .smf-close::before,
.smf:not(.smf--about) .smf-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.25px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  background: linear-gradient(
    90deg,
    #ffadad,
    #ffd6a5,
    #fdffb6,
    #caffbf,
    #9bf6ff,
    #a0c4ff,
    #bdb2ff,
    #ffc6ff,
    #ffadad
  );
  background-size: 300% 100%;
  transition: opacity 160ms ease;
}

.smf:not(.smf--about) .smf-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.smf:not(.smf--about) .smf-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.smf:not(.smf--about) .smf-close:is(:hover, :focus-visible)::before,
.smf:not(.smf--about) .smf-close:is(:hover, :focus-visible)::after {
  opacity: 1;
  animation: smf-close-rgb-flow 2s linear infinite;
}

/* Původní SVG X při hoveru zmizí, aby se pod RGB nemíchala šedá/bílá čára. */
.smf:not(.smf--about) .smf-close svg {
  transition: opacity 140ms ease;
}

.smf:not(.smf--about) .smf-close:is(:hover, :focus-visible) svg {
  opacity: 0;
}

/* Nechceme při hoveru kolem X další obyčejný rámeček. */
.smf:not(.smf--about) .smf-close:hover {
  border-color: transparent !important;
}




/* ============================================================================
   Studio Mára 2.5.4 – jedno vnitřní posouvání pro oba popupy.
   Scrollbar je uvnitř vnějšího rámečku. Žádné absolutní přesouvání dialogu,
   žádné posouvání za oknem na mobilech. Respektuje nastavení barev a paddingu
   přímo z Elementoru a nezasahuje do inline režimu / náhledu.
   ============================================================================ */
.smf.smf--popup:not(.smf--preview) .smf-dialog {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box;
  width: min(var(--smf-popup-width), calc(100% - 32px));
  height: fit-content !important;
  max-height: calc(100vh - 48px) !important;
  max-height: calc(100dvh - 48px) !important;
  margin: auto !important;
  padding: 0 !important;
  border: 1px solid var(--smf-ink) !important;
  border-radius: var(--smf-panel-radius) !important;
  overflow: hidden !important;
  background: transparent !important;
  overscroll-behavior: contain;
}
.smf.smf--popup:not(.smf--preview) .smf-surface {
  box-sizing: border-box;
  height: auto !important;
  max-height: calc(100vh - 50px) !important;
  max-height: calc(100dvh - 50px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: inherit;
  background: var(--smf-bg);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: var(--smf-line) var(--smf-bg);
  scrollbar-gutter: auto !important;
}
.smf.smf--popup:not(.smf--preview) .smf-surface::-webkit-scrollbar { width: 8px; }
.smf.smf--popup:not(.smf--preview) .smf-surface::-webkit-scrollbar-track { background: var(--smf-bg); }
.smf.smf--popup:not(.smf--preview) .smf-surface::-webkit-scrollbar-thumb {
  background: var(--smf-line);
  border: 2px solid var(--smf-bg);
  border-radius: 999px;
}
/* Průhledný horní řádek: žádný bílý/šedý pruh při scrollu formuláře. */
.smf.smf--popup:not(.smf--preview) .smf-topline {
  background: transparent !important;
  background-image: none !important;
}
@media (max-width: 767px) {
  .smf.smf--popup:not(.smf--preview) .smf-dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
  }
  .smf.smf--popup:not(.smf--preview) .smf-surface {
    max-height: calc(100vh - 26px) !important;
    max-height: calc(100dvh - 26px) !important;
  }
}

/* ==== STUDIO MÁRA 2.5.6 — RGB scroll uvnitř okna (Formulář a O mně) ====
   Nativní posuvník: šedé táhlo; při hoveru RGB; horní i dolní konec oválný.
   Ovládací prvky jsou dostupné přímo v Elementoru Free.
   macOS/iOS může nativní scrollbar systémově skrývat; Firefox používá
   konzistentní barevný fallback (gradient thumb v něm nejde nativně použít). */
.smf {
  --smf-scroll-neutral: #999999;
  --smf-scroll-c1: #ffadad;
  --smf-scroll-c2: #ffd6a5;
  --smf-scroll-c3: #fdffb6;
  --smf-scroll-c4: #caffbf;
  --smf-scroll-c5: #9bf6ff;
  --smf-scroll-c6: #a0c4ff;
  --smf-scroll-c7: #bdb2ff;
  --smf-scroll-c8: #ffc6ff;
  --smf-scroll-speed: 3.5s;
  --smf-scroll-width: 12px;
  --smf-scroll-inset: 3px;
}

.smf.smf--popup .smf-dialog .smf-surface {
  /* Chromium/Edge: standardní vlastnosti nesmí potlačit -webkit stylování. */
  scrollbar-color: auto;
  scrollbar-width: auto;
}
.smf.smf--popup .smf-dialog .smf-surface::-webkit-scrollbar {
  width: var(--smf-scroll-width);
  height: var(--smf-scroll-width);
}
.smf.smf--popup .smf-dialog .smf-surface::-webkit-scrollbar-track {
  background: var(--smf-bg);
  border-radius: 9999px;
}
.smf.smf--popup .smf-dialog .smf-surface::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  border: var(--smf-scroll-inset) solid transparent;
  background: var(--smf-scroll-neutral) padding-box;
  min-height: 28px;
}
@media (hover: hover) and (pointer: fine) {
  .smf.smf--popup .smf-dialog .smf-surface:hover::-webkit-scrollbar-thumb,
  .smf.smf--popup .smf-dialog .smf-surface::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
       var(--smf-scroll-c1) 0%,var(--smf-scroll-c2) 12.5%,
       var(--smf-scroll-c3) 25%,var(--smf-scroll-c4) 37.5%,
       var(--smf-scroll-c5) 50%,var(--smf-scroll-c6) 62.5%,
       var(--smf-scroll-c7) 75%,var(--smf-scroll-c8) 87.5%,
       var(--smf-scroll-c1) 100%) padding-box;
    background-size: 100% 220%;
    animation: smf-scroll-rgb-flow var(--smf-scroll-speed) linear infinite alternate;
  }
}
@keyframes smf-scroll-rgb-flow {
  from { background-position: 50% 0%; }
  to { background-position: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .smf.smf--popup .smf-dialog .smf-surface::-webkit-scrollbar-thumb { animation: none !important; }
}
@supports (-moz-appearance: none) {
  .smf.smf--popup .smf-dialog .smf-surface {
    scrollbar-width: thin;
    scrollbar-color: var(--smf-scroll-neutral) var(--smf-bg);
  }
  .smf.smf--popup .smf-dialog .smf-surface:hover {
    scrollbar-color: var(--smf-scroll-c6) var(--smf-bg);
  }
}


/* ========================================================================
   Studio Mára 2.5.7 — pevná fotografie a správné zaoblení dialogu „O mně“
   Text má vlastní posuvník; fotografie, hlavička a obvodový rámeček stojí.
   Délka textu v BIO může být libovolná. Změny se netýkají formuláře.
   ======================================================================== */
.smf.smf--about.smf--popup:not(.smf--preview) .smf-dialog {
  border-radius: var(--smf-panel-radius) !important;
  overflow: hidden !important;
  background: var(--smf-bg) !important;
  /* Obsah ani pruh scrollbaru nesmí překrýt horní oblouk rámečku. */
  isolation: isolate;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-surface {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto !important;
  max-height: calc(100dvh - 50px) !important;
  overflow: hidden !important;
  border-radius: max(0px, calc(var(--smf-panel-radius) - 1px)) !important;
  background: var(--smf-bg) !important;
  scrollbar-width: none;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-surface::-webkit-scrollbar {
  display: none;
  width: 0;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-topline,
.smf.smf--about.smf--popup:not(.smf--preview) .smf-head {
  flex: 0 0 auto;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-grid {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  /* Zůstanou stejné dva sloupce a jejich uživatelská šířka. */
  align-items: stretch;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-media {
  align-self: start;
  min-height: 0;
  /* Není ve scrollovacím prvku; zůstává stabilně vidět. */
  position: relative;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-photo {
  max-height: min(53dvh, 620px);
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy {
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: auto;
  /* 2.5.8: mezery symetricky kolem textového sloupce; scroll zůstává uvnitř. */
  margin-inline: var(--smf-scroll-edge-space, 10px);
  margin-block: var(--smf-scroll-vertical-space, 8px);
  padding-inline: var(--smf-scroll-text-space, 16px);
  scrollbar-width: auto;
  scrollbar-color: var(--smf-scroll-neutral) transparent;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy::-webkit-scrollbar {
  display: initial;
  width: var(--smf-scroll-width);
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy::-webkit-scrollbar-thumb {
  border: var(--smf-scroll-inset) solid transparent;
  border-radius: 999px;
  min-height: 28px;
  background: var(--smf-scroll-neutral) padding-box;
}
@media (hover: hover) and (pointer: fine) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy:hover::-webkit-scrollbar-thumb,
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
      var(--smf-scroll-c1) 0%, var(--smf-scroll-c2) 12.5%,
      var(--smf-scroll-c3) 25%, var(--smf-scroll-c4) 37.5%,
      var(--smf-scroll-c5) 50%, var(--smf-scroll-c6) 62.5%,
      var(--smf-scroll-c7) 75%, var(--smf-scroll-c8) 87.5%,
      var(--smf-scroll-c1) 100%) padding-box;
    background-size: 100% 220%;
    animation: smf-scroll-rgb-flow var(--smf-scroll-speed) linear infinite alternate;
  }
}
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-surface {
    max-height: calc(100dvh - 26px) !important;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about--right .smf-about-media,
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about--right .smf-about-copy {
    order: initial;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-media {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    align-items: flex-start;
    max-height: min(28dvh, 215px);
    overflow: hidden;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-photo {
    width: auto;
    max-width: 100%;
    max-height: min(21dvh, 175px);
    aspect-ratio: auto;
    object-fit: contain;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy {
    max-height: 100%;
  }
}
@supports (-moz-appearance: none) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy {
    scrollbar-width: thin;
    scrollbar-color: var(--smf-scroll-neutral) transparent;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy:hover {
    scrollbar-color: var(--smf-scroll-c6) transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy::-webkit-scrollbar-thumb {
    animation: none !important;
  }
}

/* 2.5.8: Na mobilu drží fotografie a její popisek střed sloupce;
   vlastní text zůstává vlevo pro pohodlné čtení. */
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-media {
    align-items: center;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-caption {
    max-width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   STUDIO MÁRA 2.5.9 – rukopisný podpis v okně O mně.
   Původní podpis v hero/počítadle 15+ zůstává zcela nezávislý.
   ========================================================================== */
.smf.smf--about .smf-about-signature-wrap {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  min-width: 0;
}
.smf.smf--about .smf-about-signature {
  --smf-signature-color: #080808;
  --smf-signature-rgb-one: #91b8f4;
  --smf-signature-rgb-two: #c599e7;
  --smf-signature-rgb-three: #ef9fbc;
  --smf-signature-rgb-four: #80d1c6;
  --smf-signature-speed: 9s;
  display: block;
  flex: 0 1 auto;
  width: 320px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 471 / 128;
  margin-top: 28px;
  transform: rotate(-3deg);
  transform-origin: 50% 50%;
  background: var(--smf-signature-color);
  -webkit-mask-image: var(--smf-signature-mask);
  mask-image: var(--smf-signature-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}
.smf.smf--about .smf-signature-mode-hover:hover .smf-about-signature,
.smf.smf--about .smf-signature-mode-always .smf-about-signature {
  background: linear-gradient(100deg,
    var(--smf-signature-rgb-one) 0%,
    var(--smf-signature-rgb-two) 25%,
    var(--smf-signature-rgb-three) 52%,
    var(--smf-signature-rgb-four) 78%,
    var(--smf-signature-rgb-one) 100%);
  background-size: 270% 100%;
  animation: smf-about-signature-rgb var(--smf-signature-speed) linear infinite alternate;
}
@keyframes smf-about-signature-rgb {
  from { background-position: 0 50%; }
  to { background-position: 100% 50%; }
}
.smf.smf--about.smf-about-hide-heading .smf-head .smf-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 767px) {
  .smf.smf--about .smf-about-signature { width: 235px; }
}
@media (prefers-reduced-motion: reduce) {
  .smf.smf--about .smf-about-signature { animation: none !important; }
}


/* Studio Mára 2.6.0 – mobilní portrét O mně.
   Jen tento widget; desktop, formulář, BIO, podpis a další popupy beze změn. */
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-media {
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    align-items: stretch;
    flex: 0 0 auto;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: min(var(--smf-mobile-photo-height, 220px), 36dvh);
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--smf-mobile-photo-radius, 20px);
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-caption {
    max-width: 100%;
    text-align: left;
  }
}

/* Studio Mára 2.6.1 — mobilní portrét reaguje na scroll BIO.
   Zůstává v horní části popupu, pod nadpisem a dělicí linkou. */
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-media {
    align-items: flex-start;
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-photo {
    transition: width 300ms ease, height 300ms ease, border-radius 300ms ease;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-photo {
    width: min(100%, calc(var(--smf-mobile-photo-compact-height, 88px) * 0.8));
    height: var(--smf-mobile-photo-compact-height, 88px);
    max-height: min(24dvh, 180px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-caption {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .smf.smf--about .smf-about-photo { transition: none !important; }
}

/* Studio Mára 2.6.2 — pouze mobilní popup O mně. */
@media (max-width: 767px) {
  /* Menší odstup úvodního bloku od dělicí linky. */
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-head {
    margin-bottom: 10px;
  }
  /* Menší mezera pod linkou, před fotografií. */
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-grid {
    padding-top: 12px;
  }
  /* Zmenšenou fotku zarovnat na stejnou levou hranu jako posuvný text. */
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-photo,
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-caption {
    margin-inline-start: calc(var(--smf-scroll-edge-space, 10px) + var(--smf-scroll-text-space, 16px));
  }
}


/* Studio Mára 2.6.3 — mobilní O mně: fotografie po scrollu zmizí.
   Původní velká fotografie se vrací až při návratu na začátek textu.
   Nevztahuje se na desktop, inline obsah ani kontaktní formulář. */
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-grid {
    grid-template-rows: 0 minmax(0, 1fr);
    row-gap: 0;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-media {
    max-height: 0;
    min-height: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    margin: 0;
    padding: 0;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-photo,
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-caption {
    display: none;
  }
}

/* Studio Mára 2.6.5 — jemné mizeni/objevování portrétu na mobilu.
   Přepisuje staré okamžité display:none; žádná změna desktopu. */
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-grid {
    transition: row-gap 600ms cubic-bezier(.22, 1, .36, 1);
  }
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-media {
    max-height: min(44dvh, 420px);
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition:
      max-height 650ms cubic-bezier(.22, 1, .36, 1),
      opacity 550ms ease,
      visibility 0s linear 0s;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-grid {
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 0;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-media {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 650ms cubic-bezier(.22, 1, .36, 1),
      opacity 550ms ease,
      visibility 0s linear 650ms;
  }
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-photo,
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-caption {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-media,
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-grid {
    transition: none !important;
  }
}

/* Studio Mára 2.6.6 – mobilní zarovnání textu a scrollbaru k fotografii.
   Fotografie, text a pravá hrana scrollbaru sdílejí shodný obsahový sloupec.
   Nedotýká se desktopu ani kontaktního formuláře. */
@media (max-width: 767px) {
  .smf.smf--about.smf--popup:not(.smf--preview) .smf-about-copy {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    /* Žádné odsazení vlevo, aby text začínal přesně pod fotografií.
       Vpravo malá bezpečná mezera jen pro čitelnost vedle scrollbaru. */
    padding-inline-start: 0;
    padding-inline-end: 10px;
  }
  /* Zrušit historický offset u skryté/zmenšené fotografie.
     Neovlivní standardní zobrazení ani plynulé mizení. */
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-photo,
  .smf.smf--about.smf--popup:not(.smf--preview).smf-photo-is-compact .smf-about-caption {
    margin-inline-start: 0;
  }
}

/* 2.6.7: kontaktní formulář – zřetelnější prostor mezi titulkem a podtitulkem
   pouze na mobilu; widget O mně a desktop jsou nedotčeny. */
@media (max-width: 767px) {
  .smf:not(.smf--about) .smf-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .smf:not(.smf--about) .smf-head .smf-title {
    display: block;
    line-height: 1.16;
    margin: 0;
  }
  .smf:not(.smf--about) .smf-head .smf-intro {
    display: block;
    margin: var(--smf-contact-intro-gap, 28px) 0 0;
    padding: 0;
    line-height: 1.55;
  }
}
