.elementor-6706 .elementor-element.elementor-element-beaf241 .e-gallery-item:hover .elementor-gallery-item__overlay, .elementor-6706 .elementor-element.elementor-element-beaf241 .e-gallery-item:focus .elementor-gallery-item__overlay{background-color:rgba(0,0,0,0.5);}.elementor-6706 .elementor-element.elementor-element-beaf241{--image-border-radius:0.75rem;--image-transition-duration:800ms;--overlay-transition-duration:800ms;--content-text-align:center;--content-padding:20px;--content-transition-duration:800ms;--content-transition-delay:800ms;}/* Start custom CSS *//* ===== Kariérní jarmark ===== */
.jarmark { --jarmark-sloupce: 2; }
.jarmark .jarmark__mrizka {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--jarmark-sloupce), minmax(0, 1fr));
  gap: 1rem;                   /* space-lg */
}
@media (min-width: 769px)  { .jarmark { --jarmark-sloupce: 4; } }
@media (min-width: 1026px) { .jarmark { --jarmark-sloupce: 6; } }
@media (min-width: 1400px) { .jarmark.jarmark--8 { --jarmark-sloupce: 8; } }

/* Sbalený stav: mobil 6 karet, tablet 8, desktop 6 (nebo 8 u .jarmark--8) */
.jarmark .firma { display: flex; margin: 0; padding: 0; list-style: none; }
.jarmark:not(.jarmark--vse) .firma:nth-child(n+7) { display: none; }
@media (min-width: 769px) and (max-width: 1025px) {
  .jarmark:not(.jarmark--vse) .firma:nth-child(n+7) { display: flex; }
  .jarmark:not(.jarmark--vse) .firma:nth-child(n+9) { display: none; }
}
@media (min-width: 1400px) {
  .jarmark.jarmark--8:not(.jarmark--vse) .firma:nth-child(n+7) { display: flex; }
  .jarmark.jarmark--8:not(.jarmark--vse) .firma:nth-child(n+9) { display: none; }
}

/* Tlačítka (reset výchozího stylu šablony) */
.jarmark button {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  transition: none;
}

/* Tlačítko Zobrazit všechny firmy */
.jarmark .jarmark__vse-obal { margin-top: 1.5rem; text-align: center; }  /* space-xl */
.jarmark .jarmark__vse {
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;      /* space-sm, space-xl */
  font-size: 1.125rem;
  font-weight: 700;
  color: #90D6C5;              /* color-text-default */
  background: transparent;
  border: 1px solid #3FB498;   /* color-border-default */
  border-radius: 9999px;       /* radius-full */
  cursor: pointer;
}
.jarmark .jarmark__vse:hover,
.jarmark .jarmark__vse:focus {
  color: #FFFFFF;              /* color-text-title */
  background: #084744;         /* color-bg-surface */
  border-color: #3FB498;       /* color-border-default */
}

/* Mini karta */
.jarmark .firma__karta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;                /* space-md */
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;               /* space-lg */
  background: #084744;         /* color-bg-surface */
  border: 1px solid #257160;   /* color-border-subtle */
  border-radius: 0.75rem;      /* radius-lg */
}
.jarmark .firma__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 0.5rem;             /* space-sm */
  background: #FFFFFF;         /* color-bg-light */
  border-radius: 0.5rem;       /* radius-md */
  overflow: hidden;
}
.jarmark .firma__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.jarmark .firma__nazev {
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  color: #FFFFFF;              /* color-text-title */
  overflow-wrap: anywhere;
  hyphens: auto;
}
.jarmark .firma__otevrit {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0.5rem 0;           /* space-sm */
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: left;
  color: #C8D300;              /* color-action-primary */
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.jarmark .firma__otevrit:hover,
.jarmark .firma__otevrit:focus {
  color: #FFFFFF;              /* color-action-primary-hover */
  background: none;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .jarmark .firma__karta { padding: 0.75rem; }   /* space-md */
}

/* Zvětšená karta */
.jarmark .firma-dialog {
  position: fixed;
  box-sizing: border-box;
  width: min(40rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #90D6C5;              /* color-text-default */
  background: #084744;         /* color-bg-surface */
  border: 1px solid #257160;   /* color-border-subtle */
  border-radius: 1rem;         /* radius-xl */
}
.jarmark .firma-dialog[open] { display: flex; flex-direction: column; }
.jarmark .firma-dialog::backdrop { background: rgba(5, 43, 41, 0.85); }  /* color-bg-default */
html:has(.firma-dialog[open]) { overflow: hidden; }

.jarmark .firma-dialog__zavrit {
  position: absolute;
  top: 0.75rem;                /* space-md */
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #FFFFFF;              /* color-text-title */
  background: #073937;         /* color-bg-subtle */
  border: 1px solid #3FB498;   /* color-border-default */
  border-radius: 9999px;       /* radius-full */
  cursor: pointer;
}
.jarmark .firma-dialog__zavrit:hover,
.jarmark .firma-dialog__zavrit:focus { color: #FFFFFF; background: #052B29; border-color: #3FB498; }  /* color-bg-default */

.jarmark .firma-dialog__telo {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4rem 1.5rem 1.5rem;  /* nahoře místo pro zavírací tlačítko, jinak space-xl */
}
.jarmark .firma-dialog__hlava { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }  /* space-lg, space-xl */
.jarmark .firma-dialog__logo {
  flex: 0 0 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 0.5rem;             /* space-sm */
  background: #FFFFFF;         /* color-bg-light */
  border-radius: 0.5rem;       /* radius-md */
  overflow: hidden;
}
.jarmark .firma-dialog__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.jarmark .firma-dialog__nazev { margin: 0; padding: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 700; color: #FFFFFF; overflow-wrap: anywhere; }
.jarmark .firma-dialog__text { font-size: 1.125rem; line-height: 1.6; color: #90D6C5; }
.jarmark .firma-dialog__text p { margin: 0 0 1rem; color: inherit; }
.jarmark .firma-dialog__webradek { margin: 1.5rem 0 0; }
.jarmark .firma-dialog__web {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #084744;              /* color-text-inverted */
  background: #C8D300;         /* color-action-primary */
  border-radius: 9999px;       /* radius-full */
  text-decoration: none;
}
.jarmark .firma-dialog__web:hover,
.jarmark .firma-dialog__web:focus { color: #084744; background: #FFFFFF; text-decoration: none; }  /* color-action-primary-hover */

.jarmark .firma-dialog__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;                /* space-md */
  padding: 0.75rem 1.5rem;
  background: #073937;         /* color-bg-subtle */
  border-top: 1px solid #257160;  /* color-border-subtle */
}
.jarmark .firma-dialog__krok {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #90D6C5;              /* color-text-default */
  background: transparent;
  border: 1px solid #3FB498;   /* color-border-default */
  border-radius: 9999px;       /* radius-full */
  cursor: pointer;
}
.jarmark .firma-dialog__krok:hover,
.jarmark .firma-dialog__krok:focus { color: #FFFFFF; background: #084744; border-color: #3FB498; }
.jarmark .firma-dialog__stav { font-size: 1.125rem; text-align: center; color: #90D6C5; }

@media (max-width: 768px) {
  .jarmark .firma-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .jarmark .firma-dialog__telo { padding: 4rem 1rem 1rem; }
  .jarmark .firma-dialog__hlava { flex-direction: column; align-items: flex-start; }
  .jarmark .firma-dialog__logo { flex-basis: auto; width: 10rem; }
  .jarmark .firma-dialog__nav { padding: 0.75rem 1rem; }
  .jarmark .firma-dialog__krok { padding: 0.5rem 0.75rem; }
}

/* Společné */
.jarmark .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.jarmark button:focus-visible,
.jarmark a:focus-visible { outline: 2px solid #C8D300; outline-offset: 2px; }  /* color-action-primary */
@media (prefers-reduced-motion: no-preference) {
  .jarmark .firma-dialog[open] { animation: firma-dialog-vstup 0.2s ease-out; }
  @keyframes firma-dialog-vstup { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
}/* End custom CSS */