.entry-hero__panels { position: relative; }
.entry-hero__controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.entry-hero__controls button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--draft-ink, #151a10);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.entry-hero__controls button:hover { background: var(--draft-olive, #4b5320); color: #fff; }
.entry-hero__controls button[hidden] { display: none; }
.entry-hero__controls button:focus-visible { outline: 3px solid #8e963d; outline-offset: 2px; }
.entry-hero__tabs button { position: relative; overflow: hidden; }
.entry-hero__tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: #8e963d;
}
.entry-hero.is-ticking .entry-hero__tabs button[aria-pressed="true"]::after {
  animation: entry-progress var(--entry-interval, 7000ms) linear forwards;
}
@keyframes entry-progress { from { width: 0; } to { width: 100%; } }
@media (max-width: 649px) {
  .entry-hero__controls { top: 10px; right: 10px; }
  .entry-hero__controls button { width: 40px; height: 40px; font-size: 18px; }
  .entry-hero__tabs button::after { top: 0; bottom: auto; width: 4px; height: 0; }
  .entry-hero.is-ticking .entry-hero__tabs button[aria-pressed="true"]::after { animation-name: entry-progress-v; }
  @keyframes entry-progress-v { from { height: 0; } to { height: 100%; } }
}
@media (prefers-reduced-motion: reduce) {
  .entry-hero.is-ticking .entry-hero__tabs button[aria-pressed="true"]::after { animation: none; }
}

/* Stała wysokość slidera: wszystkie slajdy leżą w tej samej komórce siatki,
   więc sekcja ma wysokość najwyższego slajdu i nie skacze przy przewijaniu. */
.entry-hero .entry-hero__panels { display: grid; }
.entry-hero .entry-hero__panels > .entry-hero__panel { grid-area: 1 / 1; }
.entry-hero .entry-hero__panels > .entry-hero__panel[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.entry-hero .entry-hero__controls { grid-area: 1 / 1; }

/* Zdjęcia: jeden rozmiar dla każdego slajdu (wypełnia całą prawą połowę, przycięte do ramki). */
.entry-hero .entry-hero__media,
.entry-hero .entry-hero__media--portrait { display: block; position: relative; min-height: 0; height: 100%; padding: 0; background: #e4e7d7; }
.entry-hero .entry-hero__media img,
.entry-hero .entry-hero__media--portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.entry-hero .entry-hero__media--portrait img { object-position: center 18%; }
.entry-hero .entry-hero__media--portrait .entry-hero__caption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 20px; background: rgba(255,255,255,.94); border-top: 0; font-size: 13px; font-weight: 400; }
@media (max-width: 899px) {
  .entry-hero .entry-hero__media,
  .entry-hero .entry-hero__media--portrait { height: 340px; }
}
@media (max-width: 649px) {
  .entry-hero .entry-hero__media,
  .entry-hero .entry-hero__media--portrait { height: 260px; }
  .entry-hero .entry-hero__media--portrait .entry-hero__caption { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
}
/* Telefon: strzałki slidera leżą nad tekstem — nadtytuł nie wchodzi pod nie. */
@media (max-width: 899px) {
  .entry-hero .entry-hero__copy > .section-eyebrow { padding-right: 104px; }
}

/* Tekst slajdów od góry — slajd z dłuższym albo krótszym tekstem nie przesuwa nagłówka przy przełączaniu. */
.entry-hero .entry-hero__copy { justify-content: flex-start; }
