/* 
 * Jeunes Theme - Extends _variables.css
 * Only theme-specific overrides here
 */

/* Jeunes theme danger color override */
.bg-danger { background-color: #7C9BC0 !important; }
.text-danger { color: #7C9BC0 !important; }
.btn-danger {
    background-color: #7C9BC0 !important;
    border-color: #7C9BC0 !important;
}

/* actus cards */


.card-img-top-overlay .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
/*     background: rgba(120,120,120,.4); */
}
.card-img-top-overlay .card-badge.top-right {
    top: 1rem;
    right: 1rem;
}
.card-img-top-overlay .card-badge.top-left {
    top: 1rem;
    left: 1rem;
}
/* for images to be same height */
.img-same-height {
  object-fit:cover;
  height:250px;
}
.card-img-top-overlay .card-badge {
    position: absolute;
    font-size: .8125rem;
    line-height: 1.5rem;
    font-weight: 600;
    box-shadow: 0 0.8rem 1.2rem #343a4014;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 0.25rem;
    z-index: 1000;
}
.card-img, .card-img-top {
    border-top-left-radius: calc(0.1875rem + 0px);
    border-top-right-radius: calc(0.1875rem + 0px);
}
.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}
.card {
    margin-bottom: 1.5rem;
    position: relative;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.line-clamp-6 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

/* Article page - responsive images */
article.card .card-img-top {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Images inside article content (from Trix editor) */
article.card .card-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 0.5rem;
}

/* Desktop/Laptop - limit content image width */
@media (min-width: 768px) {
    article.card .card-body img {
        max-width: 80%;
    }
}

/* Mobile - full width images */
@media (max-width: 767px) {
    article.card .card-img-top {
        max-height: 250px;
    }
    article.card .card-body img {
        max-width: 100%;
    }
}

/* Actus listing - equal height cards */
.card-excerpt {
    min-height: 4.5em;
}

.col-lg-4.d-flex .card {
    width: 100%;
}