/* LXF-1012: the link itself is the card, including its photograph, text and padding. */
body.type-index #carousel > button.carousel-control {
  border: 0;
  padding: 0;
  cursor: pointer;
}
body.type-index #carousel > button.carousel-control:focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 2px #171717;
}

body.type-index .welcome a.lxf-home-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
body.type-index .welcome a.lxf-home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
}
body.type-index .welcome a.lxf-home-card:focus-visible {
  outline: 2px solid #171717;
  outline-offset: -2px;
}
body.type-index .welcome a.lxf-home-card:focus-visible::after {
  box-shadow: inset 0 0 0 2px #171717, inset 0 0 0 4px #fff;
}
@media (hover: hover) {
  body.type-index .welcome a.lxf-home-card:hover::after {
    box-shadow: inset 0 0 0 2px #171717, inset 0 0 0 3px #fff;
  }
  body.type-index .welcome a.lxf-home-card:hover img {
    transform: none;
  }
}
body.type-index .welcome .lxf-home-card .lxf-card-photo {
  display: block;
  aspect-ratio: 1;
}
body.type-index .welcome .profi_komponenty .lxf-home-card .lxf-card-photo {
  position: absolute;
  inset: 0;
}
body.type-index .welcome .lxf-home-card .clanek_tlac {
  pointer-events: none;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
body.type-index .welcome .homepage-grid-projekty .lxf-home-card .homepage-grid-projekty-text {
  padding: 12px !important;
}
body.type-index .welcome .lxf-home-card .homepage-grid-projekty-text :is(h3, p) {
  transform: none;
}
body.type-index .welcome .lxf-home-card .homepage-grid-projekty-text .clanek_tlac {
  display: inline-flex;
  min-height: 32px;
  margin-top: 8px;
  font-size: 1.3rem;
}
