/* Breed pages (breedGroup / breedDetail) - additions on top of the designer's main.css.
   Kept in a separate file so main.css can be replaced by the designer without losing these. */

/* Carousel previous / next buttons */
.carousel-wrapper .custom-prev,
.carousel-wrapper .custom-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(21, 1, 63, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #15013f;
  box-shadow: 0 4px 14px rgba(21, 1, 63, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-wrapper .custom-prev svg,
.carousel-wrapper .custom-next svg {
  width: 22px;
  height: 22px;
  display: block;
}

.carousel-wrapper .custom-prev:hover,
.carousel-wrapper .custom-next:hover {
  background: #ae1478;
  border-color: #fff;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(174, 20, 120, 0.45);
}

.carousel-wrapper .custom-prev:active,
.carousel-wrapper .custom-next:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-wrapper .custom-prev:focus,
.carousel-wrapper .custom-next:focus {
  outline: none;
}

.carousel-wrapper .custom-prev:focus-visible,
.carousel-wrapper .custom-next:focus-visible {
  outline: 3px solid #f2c409;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .carousel-wrapper .custom-prev,
  .carousel-wrapper .custom-next {
    width: 40px;
    height: 40px;
  }

  .carousel-wrapper .custom-prev svg,
  .carousel-wrapper .custom-next svg {
    width: 18px;
    height: 18px;
  }
}

/* Breadcrumb: keep it above any neighbouring section so the links are always clickable,
   and make the links look like links. */
.breadcrumb {
  position: relative;
  z-index: 10;
}

.breadcrumb__item a {
  position: relative;
  z-index: 1;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(24, 0, 77, 0.35);
  text-underline-offset: 3px;
}

.breadcrumb__item a:hover,
.breadcrumb__item a:focus-visible {
  color: #c0007f;
  text-decoration-color: currentColor;
}

/* The breadcrumb wrapper sits above the scroll-animated sections around it. */
.breed-breadcrumb {
  position: relative;
  z-index: 10;
}

/* Group page: several breed cards per view. Each card shrinks to its slide, and every card
   in the row is the same height with its button pinned to the bottom. */
.carousel-section .gallery-slider-detail .owl-stage,
.carousel-section .gallery-slider-detail .owl-item {
  display: flex;
}

.carousel-section .gallery-slider-detail .item {
  width: 100%;
  align-items: stretch;
}

.carousel-section .gallery-slider-detail .dog-group-card {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.carousel-section .gallery-slider-detail .dog-group-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.carousel-section .gallery-slider-detail .dog-group-card__button {
  margin-top: auto;
}

/* Long breed names wrap instead of running off the edge; room is reserved for three lines
   so the rows beneath line up across cards. */
.carousel-section .gallery-slider-detail .dog-group-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.3em;
  min-height: 3.6em;
  font-size: 22px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
