/* ==========================================================================
   GŁÓWNY KONTENER HISTORII
   ========================================================================== */
.history-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.75rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ==========================================================================
   OLD EMBLA STYLES — zakomentowane
   ========================================================================== */
/*  1. KARUZELA TREŚCI (Hero Content)
.embla-content {
  width: 100%;
}

.embla-content__viewport {
  overflow: hidden;
}

.embla-content__container {
  display: flex;
}

.embla-content__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hero-image-wrapper {
  width: 100%;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px 0 0 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-text-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #111;
  margin: 10px 0;
}

.hero-caption {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #333;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0 15px 15px 0;
  font-family: "Montserrat", sans-serif;
  flex-grow: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

  2. KARUZELA OSI CZASU (Timeline)
.embla-timeline {
  width: 100%;
}

.embla-timeline__viewport {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.embla-timeline__viewport::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  height: 2px;
  background-color: #ccc;
  z-index: 1;
}

.embla-timeline__container {
  display: flex;
  position: relative;
  z-index: 2;
}

.embla-timeline__slide:not(.embla-timeline__slide--empty) {
  flex: 0 0 33.333%;
  min-width: 0;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.3s ease, scale 0.3s ease, color 0.3s ease;
}

.embla-timeline__slide:not(.embla-timeline__slide--empty)::after {
  content: '';
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
}

.embla-timeline__slide--empty {
  pointer-events: none;
  user-select: none;
  flex: 0 0 33.333%;
}

.embla-timeline__slide.embla__is-selected {
  scale: 1.05;
  color: #333;
  font-weight: bold;
}

.embla-timeline__slide.embla__is-selected::after {
  background-color: #fce9da;
  top: 85%;
  border: 2px solid #333;
  transform: translate(-50%, -50%) scale(1.4);
}

.embla-timeline__slide__title {
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
  padding-bottom: 20px;
  font-family: "Montserrat", sans-serif;
  color: #888;
}

.embla-timeline__slide.embla__is-selected .embla-timeline__slide__title {
  color: #000;
}

  3. STYLE RESPONSYWNE (MOBILE)
@media (max-width: 768px) {
  .embla-content__slide {
    display: block;
  }

  .hero-image-wrapper {
    height: 250px;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    margin-bottom: 0;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-text-content {
    margin-top: 0;
  }

  .hero-title {
    font-size: 1.6rem;
    margin: 0;
    padding-top: 15px;
    background: #f9f9f9;
  }

  .hero-caption {
    border-radius: 0 0 15px 15px;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 0;
  }

  .embla-timeline__slide:not(.embla-timeline__slide--empty),
  .embla-timeline__slide--empty {
    flex: 0 0 33.333%;
  }
}
*/

/* ==========================================================================
   NOWY UKŁAD RZĘDOWY (wzorem supcatalog) — karta: obraz 40% + treść, skeleton
   ========================================================================== */
@keyframes history-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  text-decoration: none;
  color: inherit;
  /* border-radius: 1rem; */
  overflow: hidden;
}

.history-row--reverse {
  flex-direction: row-reverse;
}

.history-row__image {
  flex: 1 1 0;
  max-width: 380px;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  border-radius: 1rem;
}

.history-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

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

.history-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.history-skel-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #e8d5c4 25%, #f5e6d8 50%, #e8d5c4 75%);
  background-size: 200% 100%;
  animation: history-shimmer 1.5s ease-in-out infinite;
}

.history-row__content {
  flex: 1 1 0;
  max-width: 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1rem 2rem;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.history-row--reverse .history-row__content {
  padding: 1rem 2rem 1rem 1rem;
}

.history-row__year {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.25rem;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.history-row__text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.history-row__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.history-row__btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #333;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s;
}

.history-row__btn:hover {
  background: #555;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 48rem) {
  .history-row,
  .history-row--reverse {
    flex-direction: column;
    gap: 1rem;
  }

  .history-row__image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
  }

  .history-row__content,
  .history-row--reverse .history-row__content {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }
}
