.armorial-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 18rem));
}

.coat-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12rem;
  min-height: 12rem;
  padding: .6rem;
  overflow: hidden;
}

.coat-card-image img {
  position: static;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.coat-card {
  box-sizing: border-box;
  position: relative;
  height: 32rem;
  overflow: hidden;
  padding-bottom: 2.35rem !important;
}

.coat-card.is-expanded { height: auto; overflow: visible; }

.coat-card-more {
  position: absolute;
  z-index: 2;
  right: .85rem;
  bottom: .65rem;
  left: .85rem;
  padding: .38rem;
  border: 1px solid #cfc39a;
  border-radius: .3rem;
  background: #fffdf8;
  color: var(--olive-dark);
  font: 800 .75rem/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
}

.coat-card:not(.is-expanded)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3.2rem;
  background: linear-gradient(transparent, #fffdf8 38%);
}

.coat-source p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.armorial-ad-band {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 6rem;
  border-block: 1px solid #d8cfb3;
  background: #f7f3e8;
}

.armorial-ad-band:empty::before {
  content: "REKLAMA";
  color: #8a846e;
  font: 700 .68rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: .12em;
}

.armorial-ad-band .gp-ad-slot {
  width: 100%;
  margin: 0;
}

.coat-expandable-text.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.coat-expand-toggle {
  margin-top: .25rem;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: var(--olive-dark);
  font: 800 .75rem/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
}

.coat-expand-toggle:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .coat-card-image {
    height: 11rem;
    min-height: 11rem;
  }
}
