/*
 * Suomalainen Taide – Mobile Header v1.0.7
 * Mobilfejléc 980 px alatt; taidemaalari-profilképek minden képernyőméreten.
 */

.st-mobile-menu-content {
  display: contents;
}

.st-mobile-menu-toggle,
.st-mobile-search-toggle {
  display: none;
}

/* v1.0.7 – külön taidemaalari- és taidemyyjä-profilképek. */
.st-artist-circle.st-artist-photo,
.st-artist-circle.st-seller-photo {
  overflow: hidden;
  padding: 0;
}

.st-artist-circle.st-artist-photo img,
.st-artist-circle.st-seller-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.st-artist-button.st-no-photo {
  min-height: 66px;
  justify-content: center;
}

.st-artist-button.st-no-photo .st-artist-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
}

@media (max-width: 980px) {
  .st-nav.stmh-ready {
    grid-template-columns: minmax(0, 1fr) 42px 42px !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    width: 100% !important;
    padding: 10px 14px !important;
  }

  .st-nav.stmh-ready > .st-logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .st-nav.stmh-ready > .st-logo > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .st-mobile-menu-toggle,
  .st-mobile-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.94);
    color: var(--gold-light, #e3bf4d);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .st-mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    gap: 5px;
  }

  .st-mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .st-nav.stmh-mobile-open .st-mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .st-nav.stmh-mobile-open .st-mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .st-nav.stmh-mobile-open .st-mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .st-mobile-search-toggle {
    grid-column: 3;
    grid-row: 1;
    font-size: 1.35rem;
    line-height: 1;
  }

  .st-mobile-menu-toggle:hover,
  .st-mobile-menu-toggle:focus-visible,
  .st-mobile-search-toggle:hover,
  .st-mobile-search-toggle:focus-visible {
    outline: 2px solid rgba(227, 191, 77, 0.35);
    outline-offset: 2px;
    background: var(--gold, #c9a227);
    color: #171208;
  }

  .st-nav.stmh-ready > .st-mobile-menu-content {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 86px - env(safe-area-inset-top));
    margin-top: 10px;
    padding: 10px 0 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    -webkit-overflow-scrolling: touch;
  }

  .st-nav.stmh-mobile-open > .st-mobile-menu-content {
    display: grid !important;
    gap: 12px;
  }

  .st-mobile-menu-content .st-navlinks {
    display: flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    scrollbar-width: none !important;
  }

  .st-mobile-menu-content .st-navlinks > li.stmh-empty-menu-item,
  .st-mobile-menu-content .st-navlinks > li[hidden] {
    display: none !important;
  }

  .st-mobile-menu-content .st-navlinks > li {
    flex: 0 0 auto !important;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .st-mobile-menu-content .st-navlinks > li:not(.st-language-menu) > a {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 46px !important;
    padding: 10px 10px !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-left: 3px solid transparent;
  }

  .st-mobile-menu-content .st-navlinks > li:not(.st-language-menu) > a.active {
    border-left-color: var(--gold, #c9a227);
    background: rgba(201, 162, 39, 0.08);
  }

  .st-mobile-menu-content .st-language-menu {
    display: block !important;
    width: 100%;
    margin: 10px 0 0 !important;
  }

  .st-mobile-menu-content .st-language-menu select {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px;
    margin: 0;
    padding: 10px 38px 10px 12px !important;
    font-size: 16px;
  }

  .st-mobile-menu-content .st-nav-actions {
    display: flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
    white-space: normal !important;
  }

  .st-mobile-menu-content .st-auth-link,
  .st-mobile-menu-content .st-admin {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    overflow: visible !important;
    text-align: center;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .st-mobile-menu-content .st-user-name {
    display: block !important;
    width: 100%;
    padding: 4px 8px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .st-mobile-menu-content .st-search-toggle {
    display: none !important;
  }

  .st-header .st-search-panel {
    position: relative;
    z-index: 2;
  }
}

/* Mobilon három taidemaalari-kártya maradhat egy sorban; továbbiak a következő sorba kerülnek. */
@media (max-width: 700px) {
  .st-artist-nav {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: center !important;
  }

  .st-artist-button {
    flex: 0 0 96px !important;
    width: 96px !important;
  }

  .st-artist-button.st-no-photo {
    min-height: 62px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .st-artist-button.st-no-photo .st-artist-name {
    min-height: 40px;
  }
}

@media (max-width: 430px) {
  .st-nav.stmh-ready {
    grid-template-columns: minmax(0, 1fr) 40px 40px !important;
    column-gap: 7px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .st-mobile-menu-toggle,
  .st-mobile-search-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .st-nav.stmh-ready > .st-logo {
    font-size: 0.96rem !important;
  }

  .st-nav.stmh-ready > .st-logo .st-logo-dot {
    width: 17px !important;
    height: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-mobile-menu-toggle span {
    transition: none;
  }
}

/* v1.0.7 – profiilikuvan hallintapainikkeet Taidemaalarit- és Taidemyynti-sivuilla. */
.stmh-artist-card-wrap,
.stmh-seller-card-wrap {
  flex: 0 0 126px;
  width: 126px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.stmh-artist-card-wrap > .st-artist-button,
.stmh-seller-card-wrap > .st-artist-button {
  width: 100%;
  flex: 0 0 auto;
}

.stmh-front-portrait-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.stmh-front-portrait-upload,
.stmh-front-portrait-delete {
  display: block;
  width: 100%;
  margin: 0;
}

.stmh-front-portrait-button,
.stmh-front-portrait-delete-button {
  width: 100%;
  min-height: 30px;
  padding: 6px 7px;
  border-radius: 7px;
  font: inherit;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.stmh-front-portrait-button {
  border: 1px solid rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light, #e3bf4d);
}

.stmh-front-portrait-button:hover,
.stmh-front-portrait-button:focus-visible {
  background: var(--gold, #c9a227);
  color: #171208;
}

.stmh-front-portrait-delete-button {
  border: 1px solid rgba(220, 90, 90, 0.62);
  background: rgba(150, 30, 30, 0.13);
  color: #f0aaaa;
}

.stmh-front-portrait-delete-button:hover,
.stmh-front-portrait-delete-button:focus-visible {
  background: #8e2929;
  color: #fff;
}

.stmh-front-portrait-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 700px) {
  .stmh-artist-card-wrap,
  .stmh-seller-card-wrap {
    flex: 0 0 96px;
    width: 96px;
  }

  .stmh-artist-card-wrap > .st-artist-button,
  .stmh-seller-card-wrap > .st-artist-button {
    width: 100%;
    min-height: 88px;
  }

  .stmh-front-portrait-button,
  .stmh-front-portrait-delete-button {
    min-height: 32px;
    padding: 5px 4px;
    font-size: 0.61rem;
  }
}

/* v1.0.8 – Taidemyynti: részletes feltöltőűrlap és műalkotás-adatablak. */
.stmh-extended-artwork-form .st-market-form-grid select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 38px 11px 13px;
  border: 1px solid var(--border, rgba(212,175,55,.35));
  border-radius: 7px;
  background: var(--bg-alt, #100d09);
  color: var(--text, #f5f1e8);
  font: inherit;
}

.stmh-artwork-form-heading {
  margin-top: 4px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(212,175,55,.28);
  color: var(--gold-light, #e3bf4d);
  font-size: 1.05rem;
  font-weight: 700;
}

.stmh-artwork-image-field input[type="file"] {
  min-height: 48px;
  padding: 8px 10px;
}

.stmh-artwork-image-help {
  margin: -4px 0 6px;
  color: var(--text-muted, #bdb3a4);
  font-size: .78rem;
  line-height: 1.5;
}

.stmh-artwork-summary {
  display: grid;
  gap: 7px;
  margin: 10px 0 2px;
  padding: 12px 14px;
  border: 1px solid rgba(212,175,55,.26);
  border-radius: 9px;
  background: rgba(14,12,9,.78);
}

.stmh-artwork-summary-primary,
.stmh-artwork-summary-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.stmh-artwork-summary-primary span {
  color: var(--text-muted, #bdb3a4);
}

.stmh-artwork-summary-primary strong {
  color: var(--gold-light, #e3bf4d);
  font-size: 1.05rem;
}

.stmh-artwork-summary-secondary {
  justify-content: flex-start;
  color: var(--text-muted, #bdb3a4);
  font-size: .82rem;
}

.stmh-artwork-summary-secondary > span:not(.stmh-artwork-status)::after {
  content: "·";
  margin-left: 14px;
  color: rgba(212,175,55,.55);
}

.stmh-artwork-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(112,190,126,.6);
  border-radius: 999px;
  background: rgba(63,132,77,.16);
  color: #b8f2c2;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.stmh-artwork-status.is-varattu {
  border-color: rgba(225,171,69,.7);
  background: rgba(150,98,22,.18);
  color: #ffd58a;
}

.stmh-artwork-status.is-myyty {
  border-color: rgba(176,79,73,.7);
  background: rgba(132,42,38,.2);
  color: #ffaaa5;
}

.st-media-lightbox.stmh-artwork-details-open {
  grid-template-columns: minmax(0,1fr) minmax(320px,420px);
  grid-template-rows: minmax(0,1fr);
  gap: 18px;
  align-items: stretch;
  justify-items: stretch;
  padding: 70px 24px 24px;
  overflow: hidden;
}

.st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  height: calc(100vh - 94px) !important;
  min-width: 0;
  max-width: none !important;
  max-height: none !important;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 12px;
  background: #000;
  overflow: hidden;
}

.st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  object-fit: contain !important;
}

.st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
  right: 455px;
}

.st-media-lightbox.stmh-artwork-details-open .st-lightbox-toolbar {
  left: calc((100vw - 438px) / 2);
}

.stmh-artwork-detail-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: calc(100vh - 94px);
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 12px;
  background: linear-gradient(180deg,#17130e,#0d0b08);
  color: var(--text, #f5f1e8);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.stmh-artwork-detail-header h2 {
  margin: 0 0 9px;
  color: var(--gold-light, #e3bf4d);
  font-size: clamp(1.35rem,2.1vw,1.9rem);
  line-height: 1.15;
}

.stmh-artwork-detail-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted, #bdb3a4);
}

.stmh-artwork-detail-topline strong {
  flex: 0 0 auto;
  color: var(--gold-light, #e3bf4d);
  font-size: 1.1rem;
}

.stmh-artwork-image-section {
  margin: 20px 0 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(212,175,55,.22);
}

.stmh-artwork-image-section h3,
.stmh-artwork-description h3 {
  margin: 0 0 10px;
  color: var(--gold-light, #e3bf4d);
  font-size: .9rem;
}

.stmh-artwork-image-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.stmh-artwork-image-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #050505;
  cursor: pointer;
  opacity: .72;
}

.stmh-artwork-image-thumb:hover,
.stmh-artwork-image-thumb.is-active {
  border-color: var(--gold, #c9a227);
  opacity: 1;
}

.stmh-artwork-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stmh-artwork-details-toggle {
  display: none;
  width: 100%;
  margin: 18px 0 0;
  padding: 11px 14px;
  border: 1px solid var(--gold, #c9a227);
  border-radius: 7px;
  background: transparent;
  color: var(--gold-light, #e3bf4d);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.stmh-artwork-detail-body {
  margin-top: 18px;
}

.stmh-artwork-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.stmh-artwork-detail-row {
  display: grid;
  grid-template-columns: minmax(110px,.8fr) minmax(0,1.2fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(212,175,55,.15);
}

.stmh-artwork-detail-row dt {
  color: var(--text-muted, #bdb3a4);
  font-size: .78rem;
}

.stmh-artwork-detail-row dd {
  margin: 0;
  color: var(--text, #f5f1e8);
  overflow-wrap: anywhere;
}

.stmh-artwork-description {
  margin-top: 19px;
}

.stmh-artwork-description p {
  margin: 0;
  color: var(--text-muted, #bdb3a4);
  line-height: 1.65;
  white-space: pre-line;
}

.stmh-artwork-contact {
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

@media (max-width: 820px) {
  .stmh-artwork-summary-secondary > span:not(.stmh-artwork-status)::after {
    content: none;
  }

  .st-media-lightbox.stmh-artwork-details-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 64px 10px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
    flex: 0 0 52vh;
    width: 100% !important;
    height: 52vh !important;
    min-height: 300px;
    border-radius: 9px;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-prev {
    left: 4px;
    top: calc(64px + 26vh);
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
    right: 4px;
    top: calc(64px + 26vh);
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-toolbar {
    position: absolute;
    left: 50%;
    top: calc(64px + 52vh - 52px);
    bottom: auto;
  }

  .stmh-artwork-detail-panel {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 17px 15px;
    overflow: visible;
    border-radius: 9px;
  }

  .stmh-artwork-detail-header h2 {
    font-size: 1.35rem;
  }

  .stmh-artwork-details-toggle {
    display: block;
  }

  .stmh-artwork-detail-body {
    display: none;
    margin-top: 14px;
  }

  .stmh-artwork-detail-body.is-open {
    display: block;
  }

  .stmh-artwork-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stmh-artwork-image-thumb {
    flex-basis: 66px;
    width: 66px;
    height: 56px;
  }
}

@media (max-width: 560px) {
  .stmh-artwork-summary-primary,
  .stmh-artwork-summary-secondary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .stmh-artwork-status {
    margin-top: 2px;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
    flex-basis: 48vh;
    height: 48vh !important;
    min-height: 260px;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-prev,
  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
    top: calc(64px + 24vh);
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-toolbar {
    top: calc(64px + 48vh - 50px);
  }
}

/* v1.0.10 — végleges mobil finomhangolás.
 * Kizárólag keskeny képernyőn hat: kompaktabb tipográfia, hírlevélűrlap,
 * teljes mobilmenü és biztosan látható keresőmező.
 */
@media (max-width: 700px) {
  /* A főoldal címe és kísérőszövege ne legyen túlméretezett. */
  .st-home h1 {
    max-width: 100%;
    margin-bottom: 16px !important;
    font-size: clamp(2rem, 9.2vw, 2.35rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .st-home-service,
  .st-eyebrow {
    font-size: 0.62rem !important;
    line-height: 1.55 !important;
    letter-spacing: 0.12em !important;
  }

  .st-home .st-lead,
  .st-lead {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .st-video-short-title {
    font-size: 1.18rem !important;
    line-height: 1.1 !important;
  }

  .st-media-title {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  .st-media-counter {
    font-size: 0.82rem !important;
  }

  /* A mobilmenü minden eleme, köztük Uutiskirje és Yhteystiedot, elférjen. */
  .st-nav.stmh-mobile-open > .st-mobile-menu-content {
    max-height: calc(100dvh - 78px - env(safe-area-inset-top)) !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .st-mobile-menu-content .st-navlinks > li:not(.st-language-menu) > a,
  .st-mobile-menu-content .st-auth-link,
  .st-mobile-menu-content .st-admin {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }

  /* A kereső ne üres sávként, hanem valódi űrlapként jelenjen meg. */
  .st-header .st-search-panel:not([hidden]) {
    display: block !important;
  }

  .st-header .st-search-inner {
    width: 100% !important;
    padding: 12px 14px 14px !important;
  }

  .st-header .st-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .st-header .st-search-form input[type="search"] {
    display: block !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(212, 175, 55, 0.55) !important;
    border-radius: 7px !important;
    background: #17130d !important;
    color: #f6f1e8 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    opacity: 1 !important;
  }

  .st-header .st-search-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 68px !important;
    min-height: 44px !important;
    padding: 9px 13px !important;
    font-size: 0.88rem !important;
  }

  /* Kompakt, jól olvasható mobil hírlevélűrlap. */
  .st-newsletter-signup {
    padding: 28px 0 !important;
  }

  .st-newsletter-signup-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .st-newsletter-signup h2 {
    margin-bottom: 7px !important;
    font-size: clamp(1.45rem, 7.2vw, 1.85rem) !important;
    line-height: 1.16 !important;
  }

  .st-newsletter-signup p {
    margin-bottom: 15px !important;
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  .st-newsletter-form {
    gap: 8px !important;
  }

  .st-newsletter-form label {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  .st-newsletter-form input[type="text"],
  .st-newsletter-form input[type="email"] {
    min-height: 42px !important;
    margin-top: 4px !important;
    padding: 9px 11px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .st-newsletter-submit {
    min-height: 42px !important;
    padding: 9px 14px !important;
    font-size: 0.84rem !important;
  }

  .st-newsletter-consent {
    gap: 7px !important;
    font-size: 0.72rem !important;
    line-height: 1.42 !important;
  }

  .st-newsletter-consent input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin: 1px 0 0 !important;
    flex: 0 0 17px !important;
  }
}

@media (max-width: 430px) {
  .st-nav.stmh-ready > .st-logo {
    font-size: 0.93rem !important;
  }

  .st-home h1 {
    font-size: clamp(1.92rem, 9.5vw, 2.2rem) !important;
  }

  .st-header .st-search-form {
    grid-template-columns: 1fr !important;
  }

  .st-header .st-search-submit {
    width: 100% !important;
  }
}

/* v1.0.11 – mobil lightbox és fekvő videó javítás.
 * Cél: a nagyított képek teljesen férjenek el mobilon,
 * és a YouTube/videó beágyazások fekvő módban se lógjanak ki.
 */
@media (max-width: 820px) {
  .st-media-lightbox.stmh-artwork-details-open {
    padding: calc(env(safe-area-inset-top, 0px) + 58px) 10px calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(56dvh, 460px) !important;
    overflow: hidden;
    background: #000;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(56dvh, 460px) !important;
    margin: 0 auto;
    object-fit: contain !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-prev,
  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
    top: calc(env(safe-area-inset-top, 0px) + 58px + min(28dvh, 230px));
    transform: translateY(-50%);
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-toolbar {
    left: 50%;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    transform: translateX(-50%);
  }

  .st-video-embed,
  .st-video-frame,
  .st-video-wrap,
  .st-video-card,
  .st-video-box,
  .st-market-video,
  .st-responsive-video,
  .wp-block-embed,
  .wp-block-video,
  .wp-block-embed__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
  }

  .st-video-embed iframe,
  .st-video-frame iframe,
  .st-video-wrap iframe,
  .st-video-card iframe,
  .st-video-box iframe,
  .st-market-video iframe,
  .st-responsive-video iframe,
  .wp-block-embed iframe,
  .wp-block-video iframe,
  .wp-block-embed__wrapper iframe,
  iframe[src*="youtube.com"],
  iframe[src*="youtu.be"],
  iframe[src*="youtube-nocookie.com"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .st-video-embed iframe,
  .st-video-frame iframe,
  .st-video-wrap iframe,
  .st-video-card iframe,
  .st-video-box iframe,
  .st-market-video iframe,
  .st-responsive-video iframe,
  .wp-block-embed iframe,
  .wp-block-video iframe,
  .wp-block-embed__wrapper iframe,
  iframe[src*="youtube.com"],
  iframe[src*="youtu.be"],
  iframe[src*="youtube-nocookie.com"] {
    max-height: calc(100dvh - 96px) !important;
  }
}

/* v1.0.12 – teljes mobil fekvő mód javítás.
 * Cél: telefon fekvő módban is egyoszlopos, teljes szélességű elrendezés,
 * a nagyított képek teljes láthatósága és a videóblokkok biztos beférése.
 */
@media (max-width: 980px) and (orientation: landscape) {
  .st-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .st-section {
    padding-top: 20px !important;
    padding-bottom: 34px !important;
  }

  .st-market-form-grid,
  .st-artwork-grid,
  .st-market-video-grid,
  .st-market-showcase-grid,
  .st-market-manage-grid,
  .st-auth-columns,
  .st-seller-profile,
  .st-footer-grid,
  .st-newsletter-form {
    grid-template-columns: 1fr !important;
  }

  .st-market-gallery-meta,
  .st-media-meta,
  .st-video-item-footer,
  .stmh-artwork-detail-topline {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .st-card,
  .st-artwork-card,
  .st-market-video-card,
  .st-market-gallery-panel,
  .stmh-artwork-detail-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .st-video-short-title {
    font-size: 1.18rem !important;
    line-height: 1.15 !important;
  }

  .st-video-thumb {
    flex-basis: 108px !important;
  }

  .st-market-thumb {
    flex-basis: 96px !important;
    height: 70px !important;
  }

  .st-carousel-arrow {
    width: 40px !important;
    height: 52px !important;
  }

  .st-video-nav {
    width: 40px !important;
    height: 56px !important;
    font-size: 1.95rem !important;
  }

  .st-media-top,
  .st-market-featured-wrap .st-media-top {
    margin-bottom: 28px !important;
  }

  .st-media-frame,
  .st-market-main-frame,
  .st-market-video-frame,
  .st-video-embed,
  .st-video-frame,
  .st-video-wrap,
  .st-video-card,
  .st-video-box,
  .st-market-video,
  .st-responsive-video,
  .wp-block-embed,
  .wp-block-video,
  .wp-block-embed__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  .st-media-frame iframe,
  .st-market-main-frame iframe,
  .st-market-video-frame iframe,
  .st-video-embed iframe,
  .st-video-frame iframe,
  .st-video-wrap iframe,
  .st-video-card iframe,
  .st-video-box iframe,
  .st-market-video iframe,
  .st-responsive-video iframe,
  .wp-block-embed iframe,
  .wp-block-video iframe,
  .wp-block-embed__wrapper iframe,
  iframe[src*="youtube.com"],
  iframe[src*="youtu.be"],
  iframe[src*="youtube-nocookie.com"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: calc(100dvh - 112px) !important;
    margin: 0 auto !important;
  }

  .st-media-lightbox.stmh-artwork-details-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 56px) 10px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(46dvh, 300px) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(46dvh, 300px) !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-prev,
  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
    top: calc(env(safe-area-inset-top, 0px) + 56px + min(23dvh, 150px)) !important;
    transform: translateY(-50%) !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-prev {
    left: 4px !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
    right: 4px !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-toolbar {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
    transform: translateX(-50%) !important;
  }

  .stmh-artwork-detail-panel {
    height: auto !important;
    max-height: none !important;
    padding: 15px 13px !important;
    overflow: visible !important;
  }

  .stmh-artwork-details-toggle {
    display: block !important;
  }

  .stmh-artwork-detail-body {
    display: none;
    margin-top: 14px !important;
  }

  .stmh-artwork-detail-body.is-open {
    display: block;
  }

  .stmh-artwork-detail-row {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .stmh-artwork-image-thumb {
    flex-basis: 60px !important;
    width: 60px !important;
    height: 50px !important;
  }
}

/* v1.0.15 – telefon fekvő mód, minden oldal, Etusivu is.
 * Az Etusivu ugyanazt a stabil viewport-alapú 16:9 méretezést kapja, mint
 * a többi videóoldal. Álló mobilnézetet ez a blokk nem módosítja.
 */
body.stmh-phone-landscape {
  overflow-x: hidden;
}

body.stmh-phone-landscape .st-wrap {
  max-width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body.stmh-phone-landscape .st-section {
  padding-top: 18px !important;
  padding-bottom: 30px !important;
}

/* Telefon fekvő módban a Taidemyynti kétoszlopos asztali elrendezése
 * mindig egy oszlopra vált, függetlenül a CSS orientation query-től. */
body.stmh-phone-landscape .st-market-showcase-grid,
body.stmh-phone-landscape .st-market-manage-grid,
body.stmh-phone-landscape .st-market-video-grid,
body.stmh-phone-landscape .st-artwork-grid,
body.stmh-phone-landscape .st-market-form-grid,
body.stmh-phone-landscape .st-auth-columns,
body.stmh-phone-landscape .st-seller-profile,
body.stmh-phone-landscape .st-newsletter-form {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.stmh-phone-landscape .st-market-showcase-grid,
body.stmh-phone-landscape .st-market-manage-grid {
  gap: 16px !important;
}

body.stmh-phone-landscape .st-market-gallery-panel,
body.stmh-phone-landscape .st-market-video-card,
body.stmh-phone-landscape .st-artwork-card,
body.stmh-phone-landscape .st-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Minden nem-etusivu videóblokk: a 16:9 keret teljes magassága férjen a
 * telefon fekvő viewportjába. Így nem csak a felső része látszik. */
body.stmh-phone-landscape .st-video-carousel .st-media-frame,
body.stmh-phone-landscape .st-market-video-gallery .st-media-frame,
body.stmh-phone-landscape .st-market-video-card .st-market-video-frame {
  width: 100% !important;
  max-width: min(100%, var(--stmh-landscape-media-max-width, 720px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: var(--stmh-landscape-media-max-height, 360px) !important;
  aspect-ratio: 16 / 9 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
}

body.stmh-phone-landscape .st-video-carousel .st-media-frame iframe,
body.stmh-phone-landscape .st-market-video-gallery .st-media-frame iframe,
body.stmh-phone-landscape .st-market-video-card .st-market-video-frame iframe,
body.stmh-phone-landscape .st-video-carousel .st-media-frame .st-video-poster,
body.stmh-phone-landscape .st-market-video-gallery .st-media-frame .st-video-poster {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
}

body.stmh-phone-landscape .st-video-carousel .st-media-frame .st-video-poster img,
body.stmh-phone-landscape .st-market-video-gallery .st-media-frame .st-video-poster img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* A Taidemyynti fő képgaléria kerete is férjen be teljesen fekvő módban.
 * A portré és fekvő művek object-fit:contain miatt teljes egészükben látszanak. */
body.stmh-phone-landscape .st-market-image-gallery .st-market-main-frame {
  width: 100% !important;
  max-width: min(100%, var(--stmh-landscape-media-max-width, 720px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: var(--stmh-landscape-media-max-height, 360px) !important;
  aspect-ratio: 16 / 9 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
}

body.stmh-phone-landscape .st-market-image-gallery .st-market-main-image,
body.stmh-phone-landscape .st-market-image-gallery .st-market-main-image img {
  max-width: 100% !important;
  max-height: 100% !important;
}

body.stmh-phone-landscape .st-market-image-gallery .st-market-main-image img {
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
}

body.stmh-phone-landscape .st-media-meta,
body.stmh-phone-landscape .st-market-gallery-meta,
body.stmh-phone-landscape .st-video-item-footer,
body.stmh-phone-landscape .stmh-artwork-detail-topline {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

body.stmh-phone-landscape .st-video-short-title {
  font-size: 1.08rem !important;
  line-height: 1.15 !important;
}

body.stmh-phone-landscape .st-video-thumbnails,
body.stmh-phone-landscape .st-market-thumbnails {
  max-width: min(100%, var(--stmh-landscape-media-max-width, 720px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.stmh-phone-landscape .st-video-thumb {
  flex-basis: 100px !important;
}

body.stmh-phone-landscape .st-market-thumb {
  flex-basis: 92px !important;
  height: 66px !important;
}

/* Kinagyított műalkotás: fekvő telefonon a kép kapja az első teljes viewportot,
 * a részletes adatpanel alá kerül és görgetéssel érhető el. */
body.stmh-phone-landscape .st-media-lightbox.is-image,
body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 58px 10px 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

body.stmh-phone-landscape .st-media-lightbox.is-image .st-media-lightbox-content,
body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: calc(100vw - 20px) !important;
  max-width: calc(100vw - 20px) !important;
  height: var(--stmh-landscape-lightbox-height, 300px) !important;
  min-height: 0 !important;
  max-height: var(--stmh-landscape-lightbox-height, 300px) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  background: #000 !important;
}

body.stmh-phone-landscape .st-media-lightbox.is-image .st-media-lightbox-content img,
body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  object-fit: contain !important;
  transform-origin: center center !important;
}

body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-panel {
  flex: 0 0 auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: calc(100vw - 20px) !important;
  max-width: calc(100vw - 20px) !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 14px !important;
  overflow: visible !important;
}

body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-details-toggle {
  display: block !important;
}

body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-body {
  display: none !important;
}

body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-body.is-open {
  display: block !important;
}

body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-row {
  grid-template-columns: 1fr !important;
  gap: 4px !important;
}

body.stmh-phone-landscape .st-lightbox-prev,
body.stmh-phone-landscape .st-lightbox-next {
  top: 50% !important;
  width: 40px !important;
  height: 56px !important;
}

body.stmh-phone-landscape .st-lightbox-prev {
  left: 4px !important;
}

body.stmh-phone-landscape .st-lightbox-next {
  right: 4px !important;
}

body.stmh-phone-landscape .st-lightbox-toolbar {
  left: 50% !important;
  top: auto !important;
  bottom: 8px !important;
  transform: translateX(-50%) !important;
}

body.stmh-phone-landscape .st-media-lightbox-close {
  top: 6px !important;
  right: 10px !important;
  width: 44px !important;
  height: 44px !important;
  font-size: 1.75rem !important;
}

/* v1.0.17 – videólejátszás közben a karusszel nyilai nem takarhatják
 * a YouTube/Vimeo saját vezérlőit (fullscreen, beállítások, felirat stb.).
 * Asztali, álló mobil és fekvő mobil nézetben egyaránt érvényes.
 * A nyilak a poster nézetben megmaradnak; lejátszáskor eltűnnek,
 * így a beágyazott lejátszó teljes kezelőfelülete szabad marad.
 */
.st-video-carousel.stmh-video-playing .st-video-nav,
.st-market-video-gallery.stmh-video-playing .st-video-nav,
.st-market-video-card.stmh-video-playing .st-video-nav,
.st-media-frame.stmh-video-playing > .st-video-nav,
.st-market-video-frame.stmh-video-playing > .st-video-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* A lejátszó maradjon a navigáció fölött, hogy minden natív kontroll kattintható legyen. */
.st-video-carousel.stmh-video-playing .st-media-frame iframe,
.st-market-video-gallery.stmh-video-playing .st-media-frame iframe,
.st-market-video-card.stmh-video-playing iframe,
.st-media-frame.stmh-video-playing iframe,
.st-market-video-frame.stmh-video-playing iframe {
  z-index: 20 !important;
}

/* v1.0.18 – videónyilak maradjanak középen, a saját nagyító / teljes képernyő
 * gomb pedig a videóablak jobb alsó sarkába kerüljön.
 * Cél: ha a videó megáll vagy visszatér poster nézetbe, a bal/jobb nyilak
 * mindig látszódjanak; a külön nagyító/kinyitó gomb ne fedje a nyilakat.
 */
.st-video-carousel,
.st-market-video-gallery,
.st-market-video-card,
.st-media-frame,
.st-market-video-frame,
.st-market-main-frame {
  position: relative !important;
}

/* A videóváltó nyilak mindig középen maradnak. */
.st-video-carousel .st-video-nav,
.st-market-video-gallery .st-video-nav,
.st-market-video-card .st-video-nav,
.st-media-frame > .st-video-nav,
.st-market-video-frame > .st-video-nav {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 26 !important;
}

/* Tipikus egyedi nagyító / kinagyítás / teljes képernyő gombok egységes pozíciója. */
.st-video-expand,
.st-video-zoom,
.st-video-fullscreen,
.st-market-video-expand,
.st-market-video-zoom,
.st-market-video-fullscreen,
.st-media-expand,
.st-media-zoom,
.st-media-fullscreen,
[data-st-video-expand],
[data-st-video-zoom],
[data-st-video-fullscreen],
[data-st-media-expand],
[data-st-media-zoom],
[data-st-media-fullscreen] {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 27 !important;
}

/* Mobil fekvő nézetben is maradjon a jobb alsó sarokban. */
body.stmh-phone-landscape .st-video-expand,
body.stmh-phone-landscape .st-video-zoom,
body.stmh-phone-landscape .st-video-fullscreen,
body.stmh-phone-landscape .st-market-video-expand,
body.stmh-phone-landscape .st-market-video-zoom,
body.stmh-phone-landscape .st-market-video-fullscreen,
body.stmh-phone-landscape .st-media-expand,
body.stmh-phone-landscape .st-media-zoom,
body.stmh-phone-landscape .st-media-fullscreen,
body.stmh-phone-landscape [data-st-video-expand],
body.stmh-phone-landscape [data-st-video-zoom],
body.stmh-phone-landscape [data-st-video-fullscreen],
body.stmh-phone-landscape [data-st-media-expand],
body.stmh-phone-landscape [data-st-media-zoom],
body.stmh-phone-landscape [data-st-media-fullscreen] {
  right: 8px !important;
  bottom: 8px !important;
}

/* v1.0.19 – Taidemyynti videólejátszás közbeni lapozás.
 * A Taidemyynti videógaléria nem .st-video-nav, hanem .st-carousel-arrow
 * gombokat használ. Ezeket a lejátszó iframe fölé emeljük, középen tartjuk,
 * így szüneteltetett/lejátszott videónál is azonnal lehet előre-hátra lapozni.
 * A YouTube saját teljes képernyő gombja jobb alul szabadon marad.
 */
.st-market-video-gallery .st-carousel-arrow,
.st-market-video-card .st-carousel-arrow,
.st-media-frame > .st-carousel-arrow {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 32 !important;
}

.st-market-video-gallery .st-carousel-prev,
.st-market-video-card .st-carousel-prev,
.st-media-frame > .st-carousel-prev {
  left: 8px !important;
  right: auto !important;
}

.st-market-video-gallery .st-carousel-next,
.st-market-video-card .st-carousel-next,
.st-media-frame > .st-carousel-next {
  right: 8px !important;
  left: auto !important;
}

/* A natív YouTube/Vimeo vezérlők maradjanak az iframe-ben, a galéria nyilai
 * pedig csak a bal/jobb középső sávban legyenek fölöttük. */
.st-market-video-gallery .st-media-frame iframe,
.st-market-video-card .st-market-video-frame iframe {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
}

@media (max-width: 980px) {
  .st-market-video-gallery .st-carousel-arrow,
  .st-market-video-card .st-carousel-arrow,
  .st-media-frame > .st-carousel-arrow {
    width: 40px !important;
    height: 56px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 32 !important;
  }

  .st-market-video-gallery .st-carousel-prev,
  .st-market-video-card .st-carousel-prev,
  .st-media-frame > .st-carousel-prev {
    left: 5px !important;
  }

  .st-market-video-gallery .st-carousel-next,
  .st-market-video-card .st-carousel-next,
  .st-media-frame > .st-carousel-next {
    right: 5px !important;
  }
}

body.stmh-phone-landscape .st-market-video-gallery .st-carousel-arrow,
body.stmh-phone-landscape .st-market-video-card .st-carousel-arrow,
body.stmh-phone-landscape .st-media-frame > .st-carousel-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 32 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* v1.0.20 – a videó nyilai aktív/szüneteltetett iframe fölött is mindig
 * a bal/jobb oldal függőleges közepén maradnak. A jobb alsó YouTube/Vimeo
 * teljesképernyő-vezérlő területét szabadon hagyjuk. */
.st-video-carousel [data-st-video-prev],
.st-video-carousel [data-st-video-next] {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 40 !important;
}

.st-video-carousel [data-st-video-prev] {
  left: 6px !important;
  right: auto !important;
}

.st-video-carousel [data-st-video-next] {
  right: 6px !important;
  left: auto !important;
}

/* Ne kerüljön plugin-vezérlő a videó jobb alsó, natív fullscreen sarkára. */
.st-video-carousel .st-video-expand,
.st-video-carousel .st-video-zoom,
.st-video-carousel .st-video-fullscreen,
.st-video-carousel .st-media-expand,
.st-video-carousel .st-media-zoom,
.st-video-carousel .st-media-fullscreen,
.st-video-carousel [data-st-video-expand],
.st-video-carousel [data-st-video-zoom],
.st-video-carousel [data-st-video-fullscreen],
.st-video-carousel [data-st-media-expand],
.st-video-carousel [data-st-media-zoom],
.st-video-carousel [data-st-media-fullscreen] {
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 41 !important;
}

/* v1.0.21 – diszkrét videólapozó nyilak.
 * A működés nem változik: lejátszás és szünet közben is lehet lapozni.
 * A látható keret/háttér eltűnik, így csak a nyíl jel marad a videó két szélén.
 * A kattintható terület továbbra is elég nagy marad egérhez és érintéshez.
 */
.st-video-carousel [data-st-video-prev],
.st-video-carousel [data-st-video-next],
.st-market-video-gallery .st-carousel-prev,
.st-market-video-gallery .st-carousel-next,
.st-market-video-card .st-carousel-prev,
.st-market-video-card .st-carousel-next,
.st-media-frame > .st-carousel-prev,
.st-media-frame > .st-carousel-next {
  width: 42px !important;
  height: 58px !important;
  min-width: 42px !important;
  min-height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--gold-light, #e3bf4d) !important;
  font-size: 2.15rem !important;
  line-height: 1 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.9) !important;
  -webkit-tap-highlight-color: transparent !important;
}

.st-video-carousel [data-st-video-prev]:hover,
.st-video-carousel [data-st-video-next]:hover,
.st-video-carousel [data-st-video-prev]:focus-visible,
.st-video-carousel [data-st-video-next]:focus-visible,
.st-market-video-gallery .st-carousel-prev:hover,
.st-market-video-gallery .st-carousel-next:hover,
.st-market-video-gallery .st-carousel-prev:focus-visible,
.st-market-video-gallery .st-carousel-next:focus-visible,
.st-market-video-card .st-carousel-prev:hover,
.st-market-video-card .st-carousel-next:hover,
.st-market-video-card .st-carousel-prev:focus-visible,
.st-market-video-card .st-carousel-next:focus-visible {
  background: transparent !important;
  color: #ffe17a !important;
  box-shadow: none !important;
  outline: none !important;
}

@media (max-width: 700px) {
  .st-video-carousel [data-st-video-prev],
  .st-video-carousel [data-st-video-next],
  .st-market-video-gallery .st-carousel-prev,
  .st-market-video-gallery .st-carousel-next,
  .st-market-video-card .st-carousel-prev,
  .st-market-video-card .st-carousel-next,
  .st-media-frame > .st-carousel-prev,
  .st-media-frame > .st-carousel-next {
    width: 36px !important;
    min-width: 36px !important;
    height: 52px !important;
    min-height: 52px !important;
    font-size: 1.9rem !important;
  }
}

body.stmh-phone-landscape .st-video-carousel [data-st-video-prev],
body.stmh-phone-landscape .st-video-carousel [data-st-video-next],
body.stmh-phone-landscape .st-market-video-gallery .st-carousel-prev,
body.stmh-phone-landscape .st-market-video-gallery .st-carousel-next,
body.stmh-phone-landscape .st-market-video-card .st-carousel-prev,
body.stmh-phone-landscape .st-market-video-card .st-carousel-next {
  width: 34px !important;
  min-width: 34px !important;
  height: 48px !important;
  min-height: 48px !important;
  font-size: 1.85rem !important;
}


/* v1.0.22 – fehér videónyilak és fehér nagyító/kinagyító gomb.
 * Cél: a kis videóablakban is tisztán látható, diszkrét vezérlők.
 * A működés nem változik: a nyilak maradnak középen, a zoom gomb jobb alul.
 */
.st-video-carousel [data-st-video-prev],
.st-video-carousel [data-st-video-next],
.st-market-video-gallery .st-carousel-prev,
.st-market-video-gallery .st-carousel-next,
.st-market-video-card .st-carousel-prev,
.st-market-video-card .st-carousel-next,
.st-media-frame > .st-carousel-prev,
.st-media-frame > .st-carousel-next {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.98), 0 0 3px rgba(0,0,0,.95) !important;
}

.st-video-carousel [data-st-video-prev]:hover,
.st-video-carousel [data-st-video-next]:hover,
.st-video-carousel [data-st-video-prev]:focus-visible,
.st-video-carousel [data-st-video-next]:focus-visible,
.st-market-video-gallery .st-carousel-prev:hover,
.st-market-video-gallery .st-carousel-next:hover,
.st-market-video-gallery .st-carousel-prev:focus-visible,
.st-market-video-gallery .st-carousel-next:focus-visible,
.st-market-video-card .st-carousel-prev:hover,
.st-market-video-card .st-carousel-next:hover,
.st-market-video-card .st-carousel-prev:focus-visible,
.st-market-video-card .st-carousel-next:focus-visible,
.st-media-frame > .st-carousel-prev:hover,
.st-media-frame > .st-carousel-next:hover,
.st-media-frame > .st-carousel-prev:focus-visible,
.st-media-frame > .st-carousel-next:focus-visible {
  color: #ffffff !important;
}

.st-video-expand,
.st-video-zoom,
.st-video-fullscreen,
.st-market-video-expand,
.st-market-video-zoom,
.st-market-video-fullscreen,
.st-media-expand,
.st-media-zoom,
.st-media-fullscreen,
[data-st-video-expand],
[data-st-video-zoom],
[data-st-video-fullscreen],
[data-st-media-expand],
[data-st-media-zoom],
[data-st-media-fullscreen] {
  color: #ffffff !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.st-video-expand svg,
.st-video-zoom svg,
.st-video-fullscreen svg,
.st-market-video-expand svg,
.st-market-video-zoom svg,
.st-market-video-fullscreen svg,
.st-media-expand svg,
.st-media-zoom svg,
.st-media-fullscreen svg,
[data-st-video-expand] svg,
[data-st-video-zoom] svg,
[data-st-video-fullscreen] svg,
[data-st-media-expand] svg,
[data-st-media-zoom] svg,
[data-st-media-fullscreen] svg,
.st-video-expand i,
.st-video-zoom i,
.st-video-fullscreen i,
.st-market-video-expand i,
.st-market-video-zoom i,
.st-market-video-fullscreen i,
.st-media-expand i,
.st-media-zoom i,
.st-media-fullscreen i,
[data-st-video-expand] i,
[data-st-video-zoom] i,
[data-st-video-fullscreen] i,
[data-st-media-expand] i,
[data-st-media-zoom] i,
[data-st-media-fullscreen] i {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.st-video-expand:hover,
.st-video-zoom:hover,
.st-video-fullscreen:hover,
.st-market-video-expand:hover,
.st-market-video-zoom:hover,
.st-market-video-fullscreen:hover,
.st-media-expand:hover,
.st-media-zoom:hover,
.st-media-fullscreen:hover,
[data-st-video-expand]:hover,
[data-st-video-zoom]:hover,
[data-st-video-fullscreen]:hover,
[data-st-media-expand]:hover,
[data-st-media-zoom]:hover,
[data-st-media-fullscreen]:hover,
.st-video-expand:focus-visible,
.st-video-zoom:focus-visible,
.st-video-fullscreen:focus-visible,
.st-market-video-expand:focus-visible,
.st-market-video-zoom:focus-visible,
.st-market-video-fullscreen:focus-visible,
.st-media-expand:focus-visible,
.st-media-zoom:focus-visible,
.st-media-fullscreen:focus-visible,
[data-st-video-expand]:focus-visible,
[data-st-video-zoom]:focus-visible,
[data-st-video-fullscreen]:focus-visible,
[data-st-media-expand]:focus-visible,
[data-st-media-zoom]:focus-visible,
[data-st-media-fullscreen]:focus-visible {
  color: #ffffff !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}


/* v1.0.23 – sárga nyilak maradnak, a nagyító fehér marad.
 * Plusz: a képes lightbox/lapozó nyilaknál se legyen keret vagy háttér,
 * csak maga a nyíl látszódjon.
 */
.st-video-carousel [data-st-video-prev],
.st-video-carousel [data-st-video-next],
.st-market-video-gallery .st-carousel-prev,
.st-market-video-gallery .st-carousel-next,
.st-market-video-card .st-carousel-prev,
.st-market-video-card .st-carousel-next,
.st-media-frame > .st-carousel-prev,
.st-media-frame > .st-carousel-next,
.st-lightbox-prev,
.st-lightbox-next {
  color: var(--gold-light, #e3bf4d) !important;
}

.st-video-carousel [data-st-video-prev]:hover,
.st-video-carousel [data-st-video-next]:hover,
.st-video-carousel [data-st-video-prev]:focus-visible,
.st-video-carousel [data-st-video-next]:focus-visible,
.st-market-video-gallery .st-carousel-prev:hover,
.st-market-video-gallery .st-carousel-next:hover,
.st-market-video-gallery .st-carousel-prev:focus-visible,
.st-market-video-gallery .st-carousel-next:focus-visible,
.st-market-video-card .st-carousel-prev:hover,
.st-market-video-card .st-carousel-next:hover,
.st-market-video-card .st-carousel-prev:focus-visible,
.st-market-video-card .st-carousel-next:focus-visible,
.st-media-frame > .st-carousel-prev:hover,
.st-media-frame > .st-carousel-next:hover,
.st-media-frame > .st-carousel-prev:focus-visible,
.st-media-frame > .st-carousel-next:focus-visible,
.st-lightbox-prev:hover,
.st-lightbox-next:hover,
.st-lightbox-prev:focus-visible,
.st-lightbox-next:focus-visible {
  color: #ffe17a !important;
}

.st-lightbox-prev,
.st-lightbox-next {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.9) !important;
}


/* v1.0.24 – GLOBAL VIDEO CONTROL STYLE
 * Nem oldalnévre, hanem a közös videókomponensre vonatkozik, ezért minden
 * jelenlegi és később létrehozott Suomalainen Taide videóoldalon érvényes.
 * Asztali + mobil álló + mobil fekvő: sárga, keret nélküli lapozónyilak;
 * fehér, keret nélküli zoom/kinagyító vezérlő a jobb alsó sarokban.
 */
[data-st-videos] {
  position: relative !important;
}

[data-st-videos] .st-media-frame,
[data-st-videos] .st-market-video-frame,
[data-st-videos] .st-market-main-frame {
  position: relative !important;
}

[data-st-videos] [data-st-video-prev],
[data-st-videos] [data-st-video-next] {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--gold-light, #e3bf4d) !important;
  font-size: 2.05rem !important;
  line-height: 1 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.98), 0 0 3px rgba(0,0,0,.92) !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 50 !important;
  -webkit-tap-highlight-color: transparent !important;
}

[data-st-videos] [data-st-video-prev] {
  left: 6px !important;
  right: auto !important;
}

[data-st-videos] [data-st-video-next] {
  right: 6px !important;
  left: auto !important;
}

[data-st-videos] [data-st-video-prev]:hover,
[data-st-videos] [data-st-video-next]:hover,
[data-st-videos] [data-st-video-prev]:focus-visible,
[data-st-videos] [data-st-video-next]:focus-visible {
  color: #ffe17a !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* A saját, külső videó-zoom/kinagyító vezérlők egységes stílusa.
 * A YouTube iframe BELSEJÉBEN levő natív gombokat a böngésző biztonsági
 * szabályai miatt külső CSS nem tudja áthelyezni; azok saját YouTube-helyükön maradnak.
 */
[data-st-videos] .st-video-expand,
[data-st-videos] .st-video-zoom,
[data-st-videos] .st-video-fullscreen,
[data-st-videos] .st-media-expand,
[data-st-videos] .st-media-zoom,
[data-st-videos] .st-media-fullscreen,
[data-st-videos] [data-st-video-expand],
[data-st-videos] [data-st-video-zoom],
[data-st-videos] [data-st-video-fullscreen],
[data-st-videos] [data-st-media-expand],
[data-st-videos] [data-st-media-zoom],
[data-st-videos] [data-st-media-fullscreen],
[data-st-videos] button[class*="zoom"],
[data-st-videos] button[class*="expand"] {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  color: #ffffff !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 51 !important;
}

[data-st-videos] .st-video-expand svg,
[data-st-videos] .st-video-zoom svg,
[data-st-videos] .st-video-fullscreen svg,
[data-st-videos] .st-media-expand svg,
[data-st-videos] .st-media-zoom svg,
[data-st-videos] .st-media-fullscreen svg,
[data-st-videos] [data-st-video-expand] svg,
[data-st-videos] [data-st-video-zoom] svg,
[data-st-videos] [data-st-video-fullscreen] svg,
[data-st-videos] [data-st-media-expand] svg,
[data-st-videos] [data-st-media-zoom] svg,
[data-st-videos] [data-st-media-fullscreen] svg,
[data-st-videos] button[class*="zoom"] svg,
[data-st-videos] button[class*="expand"] svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

@media (max-width: 700px) {
  [data-st-videos] [data-st-video-prev],
  [data-st-videos] [data-st-video-next] {
    width: 34px !important;
    min-width: 34px !important;
    height: 48px !important;
    min-height: 48px !important;
    font-size: 1.82rem !important;
  }

  [data-st-videos] [data-st-video-prev] { left: 4px !important; }
  [data-st-videos] [data-st-video-next] { right: 4px !important; }

  [data-st-videos] .st-video-expand,
  [data-st-videos] .st-video-zoom,
  [data-st-videos] .st-video-fullscreen,
  [data-st-videos] .st-media-expand,
  [data-st-videos] .st-media-zoom,
  [data-st-videos] .st-media-fullscreen,
  [data-st-videos] [data-st-video-expand],
  [data-st-videos] [data-st-video-zoom],
  [data-st-videos] [data-st-video-fullscreen],
  [data-st-videos] [data-st-media-expand],
  [data-st-videos] [data-st-media-zoom],
  [data-st-videos] [data-st-media-fullscreen],
  [data-st-videos] button[class*="zoom"],
  [data-st-videos] button[class*="expand"] {
    right: 6px !important;
    bottom: 6px !important;
  }
}

body.stmh-phone-landscape [data-st-videos] [data-st-video-prev],
body.stmh-phone-landscape [data-st-videos] [data-st-video-next] {
  width: 32px !important;
  min-width: 32px !important;
  height: 46px !important;
  min-height: 46px !important;
  font-size: 1.75rem !important;
}


/* v1.0.25 – végleges egységes média-vezérlők.
 * Minden jelenlegi és jövőbeni közös Suomalainen Taide videó-/képgalérián:
 * - sárga, keret nélküli nyilak a lehető legközelebb a bal/jobb szélhez;
 * - képgalérián is keret nélküli nyilak;
 * - saját sárga, keret nélküli teljesképernyő/nagyító gomb jobb alul;
 * - asztali + mobil álló + mobil fekvő nézet.
 */

/* VIDEÓ: nyilak egészen közel a szélekhez. */
[data-st-videos] [data-st-video-prev],
[data-st-videos] [data-st-video-next],
.st-video-carousel [data-st-video-prev],
.st-video-carousel [data-st-video-next],
.st-market-video-gallery .st-carousel-prev,
.st-market-video-gallery .st-carousel-next,
.st-market-video-card .st-carousel-prev,
.st-market-video-card .st-carousel-next {
  width: 30px !important;
  min-width: 30px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--gold-light, #e3bf4d) !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.98), 0 0 3px rgba(0,0,0,.95) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 60 !important;
}

[data-st-videos] [data-st-video-prev],
.st-video-carousel [data-st-video-prev],
.st-market-video-gallery .st-carousel-prev,
.st-market-video-card .st-carousel-prev {
  left: 0 !important;
  right: auto !important;
}

[data-st-videos] [data-st-video-next],
.st-video-carousel [data-st-video-next],
.st-market-video-gallery .st-carousel-next,
.st-market-video-card .st-carousel-next {
  right: 0 !important;
  left: auto !important;
}

/* KÉP: az inline galérián és a nagyított lightboxban is csak a sárga nyíl marad. */
[data-st-image-carousel] .st-carousel-arrow,
.st-market-image-gallery .st-carousel-arrow,
.st-lightbox-prev,
.st-lightbox-next,
.st-lightbox-nav {
  width: 30px !important;
  min-width: 30px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--gold-light, #e3bf4d) !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.98), 0 0 3px rgba(0,0,0,.95) !important;
  z-index: 5003 !important;
}

[data-st-image-carousel] .st-carousel-prev,
.st-market-image-gallery .st-carousel-prev,
.st-lightbox-prev {
  left: 0 !important;
  right: auto !important;
}

[data-st-image-carousel] .st-carousel-next,
.st-market-image-gallery .st-carousel-next,
.st-lightbox-next {
  right: 0 !important;
  left: auto !important;
}

/* Saját nagyító / teljes képernyő gomb. A teljes frame-et nagyítja,
 * így a sárga lapozónyilak teljes képernyőn is használhatók maradnak. */
.stmh-video-fullscreen-host {
  position: relative !important;
}

.stmh-video-fullscreen-button {
  position: absolute !important;
  right: 2px !important;
  bottom: 2px !important;
  left: auto !important;
  top: auto !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: var(--gold-light, #e3bf4d) !important;
  font: 700 1.55rem/1 Arial, sans-serif !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.98), 0 0 3px rgba(0,0,0,.95) !important;
  cursor: pointer !important;
  z-index: 65 !important;
  -webkit-tap-highlight-color: transparent !important;
}

.stmh-video-fullscreen-button:hover,
.stmh-video-fullscreen-button:focus-visible {
  color: #ffe17a !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.stmh-video-fullscreen-host:fullscreen,
.stmh-video-fullscreen-host:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}

.stmh-video-fullscreen-host:fullscreen iframe,
.stmh-video-fullscreen-host:fullscreen .st-video-poster,
.stmh-video-fullscreen-host:-webkit-full-screen iframe,
.stmh-video-fullscreen-host:-webkit-full-screen .st-video-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  [data-st-videos] [data-st-video-prev],
  [data-st-videos] [data-st-video-next],
  .st-video-carousel [data-st-video-prev],
  .st-video-carousel [data-st-video-next],
  .st-market-video-gallery .st-carousel-prev,
  .st-market-video-gallery .st-carousel-next,
  .st-market-video-card .st-carousel-prev,
  .st-market-video-card .st-carousel-next,
  [data-st-image-carousel] .st-carousel-arrow,
  .st-market-image-gallery .st-carousel-arrow,
  .st-lightbox-prev,
  .st-lightbox-next {
    width: 26px !important;
    min-width: 26px !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 1.8rem !important;
  }

  .stmh-video-fullscreen-button {
    right: 1px !important;
    bottom: 1px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 1.42rem !important;
  }
}

body.stmh-phone-landscape [data-st-videos] [data-st-video-prev],
body.stmh-phone-landscape [data-st-videos] [data-st-video-next],
body.stmh-phone-landscape [data-st-image-carousel] .st-carousel-arrow,
body.stmh-phone-landscape .st-lightbox-prev,
body.stmh-phone-landscape .st-lightbox-next {
  width: 24px !important;
  min-width: 24px !important;
  height: 38px !important;
  min-height: 38px !important;
  font-size: 1.7rem !important;
}

/* v1.0.28 – Taidemyynti: teostyypin mukaan vaihtuvat tiedot. */
.stmh-extended-artwork-form .stmh-artwork-field[hidden],
.stmh-extended-artwork-form .stmh-artwork-field-hidden {
  display: none !important;
}

.stmh-extended-artwork-form .stmh-artwork-form-heading {
  grid-column: 1 / -1;
}

.stmh-extended-artwork-form .stmh-artwork-field input,
.stmh-extended-artwork-form .stmh-artwork-field select {
  width: 100%;
  max-width: 100%;
}


/* v1.0.29 – Taidemyynti: selkeä, vaiheittainen teoslomake desktopille ja mobiiliin. */
.stmh-extended-artwork-form .stmh-artwork-form-heading {
  margin: 4px 0 0 !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 800 !important;
  color: var(--gold-light, #e3bf4d) !important;
}

.stmh-extended-artwork-form .stmh-artwork-form-intro {
  margin: -4px 0 4px !important;
  padding: 11px 13px !important;
  border-left: 3px solid var(--gold, #c9a227) !important;
  background: rgba(212,175,55,.07) !important;
  color: var(--text-muted, #bdb3a4) !important;
  line-height: 1.55 !important;
}

.stmh-extended-artwork-form .stmh-artwork-section {
  grid-column: 1 / -1 !important;
  margin: 4px 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(212,175,55,.25) !important;
  border-radius: 10px !important;
  background: rgba(10,9,7,.52) !important;
  min-width: 0 !important;
}

.stmh-extended-artwork-form .stmh-artwork-section > h3 {
  margin: 0 0 13px !important;
  color: var(--gold-light, #e3bf4d) !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

.stmh-extended-artwork-form .stmh-artwork-section-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 14px !important;
  align-items: start !important;
  min-width: 0 !important;
}

.stmh-extended-artwork-form .stmh-artwork-section-grid > label,
.stmh-extended-artwork-form .stmh-artwork-section-grid > .stmh-artwork-field,
.stmh-extended-artwork-form .stmh-artwork-section-grid > p {
  min-width: 0 !important;
}

.stmh-extended-artwork-form .stmh-artwork-section-grid .full,
.stmh-extended-artwork-form .stmh-artwork-image-field,
.stmh-extended-artwork-form .stmh-artwork-image-help {
  grid-column: 1 / -1 !important;
}

.stmh-extended-artwork-form .stmh-field-help {
  display: block !important;
  margin-top: 6px !important;
  color: var(--text-muted, #bdb3a4) !important;
  font-size: .74rem !important;
  line-height: 1.45 !important;
}

.stmh-extended-artwork-form .stmh-readonly-field {
  opacity: .9 !important;
  cursor: default !important;
  background: rgba(255,255,255,.035) !important;
}

.stmh-extended-artwork-form input,
.stmh-extended-artwork-form select,
.stmh-extended-artwork-form textarea {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 700px) {
  .stmh-extended-artwork-form .st-market-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stmh-extended-artwork-form .stmh-artwork-section {
    grid-column: auto !important;
    padding: 14px 12px !important;
    border-radius: 9px !important;
  }

  .stmh-extended-artwork-form .stmh-artwork-section-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stmh-extended-artwork-form .stmh-artwork-section-grid .full,
  .stmh-extended-artwork-form .stmh-artwork-image-field,
  .stmh-extended-artwork-form .stmh-artwork-image-help {
    grid-column: auto !important;
  }

  .stmh-extended-artwork-form input,
  .stmh-extended-artwork-form select,
  .stmh-extended-artwork-form textarea {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  .stmh-extended-artwork-form input,
  .stmh-extended-artwork-form select {
    min-height: 46px !important;
  }

  .stmh-extended-artwork-form textarea {
    min-height: 120px !important;
  }
}

body.stmh-phone-landscape .stmh-extended-artwork-form .st-market-form-grid,
body.stmh-phone-landscape .stmh-extended-artwork-form .stmh-artwork-section-grid {
  grid-template-columns: 1fr !important;
}

body.stmh-phone-landscape .stmh-extended-artwork-form .stmh-artwork-section {
  padding: 12px !important;
}

/* v1.0.30 – Taidemyynti műadatlap: like/comment + eladó e-mail megjelenítés. */
.stmh-artwork-interactions {
  display: block;
  width: 100%;
  margin: 18px 0 14px;
  padding: 0 !important;
  background: transparent !important;
}

.stmh-artwork-interactions > .staif-panel {
  width: 100% !important;
  margin: 0 !important;
}

.stmh-artwork-contact-email {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 8px;
  background: rgba(212,175,55,.07);
  color: var(--text, #f5f1e8);
  overflow-wrap: anywhere;
}

.stmh-artwork-contact-email[hidden] {
  display: none !important;
}

.stmh-artwork-contact-email strong {
  color: var(--gold-light, #e3bf4d);
}

.stmh-artwork-contact-email a {
  color: var(--gold-light, #e3bf4d);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .stmh-artwork-interactions {
    margin: 14px 0 12px;
  }
  .stmh-artwork-interactions .staif-toolbar {
    width: 100%;
    gap: 8px;
  }
  .stmh-artwork-interactions .staif-action {
    min-height: 44px;
  }
  .stmh-artwork-contact-email {
    padding: 11px 12px;
    font-size: .95rem;
  }
}

/* v1.0.31 – kompakt like/comment sor a Taidemyynti normál kép- és videókártyáján. */
.st-market-gallery-panel > .stmh-market-inline-interactions {
  width: 100% !important;
  margin: 8px 0 2px !important;
  padding: 0 !important;
  background: transparent !important;
}

.st-market-gallery-panel > .stmh-market-inline-interactions > .staif-panel {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.st-market-gallery-panel > .stmh-market-inline-interactions .staif-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 3px 0 7px !important;
  flex-wrap: wrap !important;
}

.st-market-gallery-panel > .stmh-market-inline-interactions .staif-action {
  min-height: 32px !important;
  padding: 5px 10px !important;
  border-width: 1px !important;
  font-size: .76rem !important;
  line-height: 1.15 !important;
}

.st-market-gallery-panel > .stmh-market-inline-interactions .staif-login-note {
  margin: 0 0 7px !important;
  font-size: .72rem !important;
}

.st-market-gallery-panel > .stmh-market-inline-interactions .staif-comments-section {
  margin: 2px 0 8px !important;
  padding: 0 0 10px !important;
  border-top: 1px solid rgba(212,175,55,.2) !important;
}

@media (max-width: 700px) {
  .st-market-gallery-panel > .stmh-market-inline-interactions {
    margin-top: 6px !important;
  }

  .st-market-gallery-panel > .stmh-market-inline-interactions .staif-toolbar {
    gap: 6px !important;
    padding-bottom: 6px !important;
  }

  .st-market-gallery-panel > .stmh-market-inline-interactions .staif-action {
    flex: 1 1 calc(50% - 3px) !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 6px 8px !important;
    font-size: .74rem !important;
  }
}

/* v1.0.32 – mobilon a normál Taidemyynti-kártya rövid adatdobozát
 * egyetlen világos részletek-gomb váltja fel. Asztali nézet nem változik. */
.stmh-mobile-artwork-details-button {
  display: none;
}

@media (max-width: 820px) {
  .st-market-image-gallery[data-st-image-carousel] .stmh-artwork-summary {
    display: none !important;
  }

  .st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 14px 0 10px !important;
    padding: 12px 16px !important;
    border: 1px solid var(--gold, #c9a227) !important;
    border-radius: 10px !important;
    background: rgba(201,162,39,.08) !important;
    color: var(--gold-light, #e3bf4d) !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button:hover,
  .st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button:focus-visible {
    background: rgba(201,162,39,.16) !important;
    color: #ffe17a !important;
    outline: none !important;
  }
}


/* v1.0.33 – Taidemyynti részletek gomb asztalin és mobilon.
 * A normál műkártyán a rövid technikai összefoglaló helyett minden nézetben
 * a "Näytä teoksen tiedot" gomb jelenik meg. A nagyított lightbox teljes
 * adatpanelje változatlanul megmarad.
 */
.st-market-image-gallery[data-st-image-carousel] .stmh-artwork-summary {
  display: none !important;
}

.st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 14px 0 10px !important;
  padding: 11px 16px !important;
  border: 1px solid var(--gold, #c9a227) !important;
  border-radius: 10px !important;
  background: rgba(201,162,39,.08) !important;
  color: var(--gold-light, #e3bf4d) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: .96rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

.st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button:hover,
.st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button:focus-visible {
  background: rgba(201,162,39,.16) !important;
  color: #ffe17a !important;
  outline: none !important;
}

@media (max-width: 820px) {
  .st-market-image-gallery[data-st-image-carousel] .stmh-mobile-artwork-details-button {
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
  }
}


/* v1.0.34 – a "Näytä teoksen tiedot" gomb mobilon közvetlenül a teljes
 * adatpanelre visz. A panel marad egyoszlopos és görgethető, az összes adat,
 * like/comment és kapcsolatfelvétel elérhető marad. */
@media (max-width: 820px) {
  .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-panel {
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 58px) !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-body.is-open {
    display: block !important;
  }
}

body.stmh-phone-landscape .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-body.is-open {
  display: block !important;
}


/* v1.0.36 – teljes videókép minden képaránynál, globálisan.
 * A korábbi cover kivágta a nem 16:9 YouTube/Vimeo előnézeteket.
 * Most contain jeleníti meg a teljes képet fekete háttéren, ezért álló,
 * négyzetes és 4:3 videóknál sem vágunk le semmit. Minden jelenlegi és
 * később létrejövő közös videóablakra, desktopra és mobilra is érvényes.
 */
.st-video-poster img,
[data-st-videos] .st-video-poster img,
.st-video-carousel .st-video-poster img,
.st-market-video-gallery .st-video-poster img,
.st-market-video-card .st-video-poster img,
.st-media-frame .st-video-poster img,
.st-market-video-frame .st-video-poster img,
.st-market-main-frame .st-video-poster img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
  transform: none !important;
}

/* A kis videó-bélyegképeknél se vágjuk le a nem 16:9 tartalmat. */
.st-video-thumb img,
[data-st-video-thumb] img,
.st-market-video-gallery .st-video-thumb img,
.st-market-video-card .st-video-thumb img,
.st-video-admin-thumb {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* A frame maradhat 16:9-es, de a tartalom teljes egészében látszik,
 * szükség esetén fekete oldalsó/felső sávokkal. */
.st-media-frame,
.st-market-video-frame,
.st-market-main-frame {
  background: #000 !important;
}

/* Fekvő mobil korábbi cover szabályának biztos felülírása. */
body.stmh-phone-landscape .st-video-carousel .st-media-frame .st-video-poster img,
body.stmh-phone-landscape .st-market-video-gallery .st-media-frame .st-video-poster img,
body.stmh-phone-landscape .st-market-video-card .st-video-poster img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

@media (max-width: 820px) {
  .st-video-poster img,
  [data-st-videos] .st-video-poster img,
  .st-video-thumb img,
  [data-st-video-thumb] img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
  }
}

/* v1.0.38 – a video poster mindig a teljes 16:9 videokeretet hasznalja.
 * A YouTube poster JS 16:9 thumbnailt valaszt, ezert contain mellett nincs
 * felesleges oldalso ures sav, mikozben a kep nincs levagva.
 */
.st-video-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.st-video-poster > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

/* v1.0.39 – GLOBÁLIS VIDEÓNYILAK LEJÁTSZÁS ÉS SZÜNET KÖZBEN IS.
 * A régi v1.0.17 szabály .stmh-video-playing állapotban elrejtette a
 * .st-video-nav gombokat. A YouTube/Vimeo iframe szüneteltetéskor is a DOM-ban
 * marad, ezért a nyilak pause után is rejtve maradtak. Ez a végső, nagyobb
 * specifikusságú szabály minden közös videókarusszelen felülírja ezt.
 */
.st-video-carousel.stmh-video-playing [data-st-video-prev],
.st-video-carousel.stmh-video-playing [data-st-video-next],
[data-st-videos].stmh-video-playing [data-st-video-prev],
[data-st-videos].stmh-video-playing [data-st-video-next],
.st-media-frame.stmh-video-playing > [data-st-video-prev],
.st-media-frame.stmh-video-playing > [data-st-video-next],
.st-market-video-frame.stmh-video-playing > [data-st-video-prev],
.st-market-video-frame.stmh-video-playing > [data-st-video-next],
.st-market-video-gallery.stmh-video-playing [data-st-video-prev],
.st-market-video-gallery.stmh-video-playing [data-st-video-next],
.st-market-video-card.stmh-video-playing [data-st-video-prev],
.st-market-video-card.stmh-video-playing [data-st-video-next] {
  display: grid !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 90 !important;
}

/* A normál, poster állapotban is ugyanaz a biztos láthatóság érvényes. */
.st-video-carousel[data-st-videos] [data-st-video-prev],
.st-video-carousel[data-st-videos] [data-st-video-next] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 90 !important;
}

/* Mobil álló és fekvő nézetben is az iframe fölött maradjanak. */
@media (max-width: 700px) {
  .st-video-carousel.stmh-video-playing [data-st-video-prev],
  .st-video-carousel.stmh-video-playing [data-st-video-next],
  [data-st-videos].stmh-video-playing [data-st-video-prev],
  [data-st-videos].stmh-video-playing [data-st-video-next] {
    z-index: 90 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

body.stmh-phone-landscape .st-video-carousel.stmh-video-playing [data-st-video-prev],
body.stmh-phone-landscape .st-video-carousel.stmh-video-playing [data-st-video-next],
body.stmh-phone-landscape [data-st-videos].stmh-video-playing [data-st-video-prev],
body.stmh-phone-landscape [data-st-videos].stmh-video-playing [data-st-video-next] {
  z-index: 90 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* v1.0.40 – Taidemyynti: desktop artwork lightbox always shows the COMPLETE
 * artwork beside the information panel.
 *
 * The previous desktop layout let a tall artwork occupy the complete lightbox
 * height while the zoom toolbar floated over the lower part. In WordPress
 * admin view the fixed admin bar also reduced the truly usable viewport.
 *
 * This final desktop rule:
 * - uses the actual available viewport height,
 * - reserves space for the zoom controls,
 * - keeps the complete image inside the left pane with object-fit: contain,
 * - keeps the right information panel independently scrollable,
 * - does not affect the existing mobile/phone-landscape rules.
 */
@media (min-width: 821px) {
  .st-media-lightbox.stmh-artwork-details-open {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 14px !important;
    padding: 54px 14px 14px !important;
    overflow: hidden !important;
  }

  body.admin-bar .st-media-lightbox.stmh-artwork-details-open {
    top: 32px !important;
  }

  body.admin-bar .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-close {
    top: 40px !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 10px 62px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-media-lightbox-content img {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 0 !important;
    background: #000 !important;
    transform-origin: center center !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .stmh-artwork-detail-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-toolbar {
    left: calc((100vw - 434px) / 2) !important;
    bottom: 18px !important;
  }

  .st-media-lightbox.stmh-artwork-details-open .st-lightbox-next {
    right: 448px !important;
  }
}
