.af-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  height: 320px;
}
.af-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.af-card-panel {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 22px;
  background-image: linear-gradient(0deg, rgba(32,31,29,0.92) 0%, rgba(32,31,29,0) 100%);
}

/* pozycja tekstu w panelu */
.af-card-pos-bottom { align-items: flex-end; }
.af-card-pos-center { align-items: center; }
.af-card-pos-top    { align-items: flex-start; }

/* tryb: pokaż po najechaniu */
.af-card-hover .af-card-panel {
  transform: translateY(100%);
  transition: transform 0.45s ease;
}
.af-card-hover:hover .af-card-panel {
  transform: translateY(0);
}

/* tryb: zawsze widoczny — bez animacji */
.af-card-always .af-card-panel {
  transform: none;
}

.af-card-text h3 {
  font-family: 'Capriola', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 6px 0;
  color: #fff;
}
.af-card-text p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
  color: rgba(255,255,255,0.85);
}


/* Na urzadzeniach dotykowych/mobile pokaz opis od razu, bez potrzeby najechania */
@media (max-width: 767px), (hover: none) {
  .af-card-hover .af-card-panel {
    transform: none;
  }
}
