/* =========================================================
   LIBBY QUOTE SLIDER
   ========================================================= */

.libby-quote-slider {
    position: relative;
    width: 100%;

    min-height: 135px;

    --libby-dot-color: #aaa;
    --libby-dot-active-color: #fff;
}


.libby-quote-slider__slides {
    position: relative;
    min-height: 135px;
}


.libby-quote-slider__slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transform: scale(0.98);

    transition:
        opacity var(--libby-quote-transition, 500ms) ease-in-out,
        transform var(--libby-quote-transition, 500ms) ease-in-out;

    pointer-events: none;
}


.libby-quote-slider__slide.is-active {
    position: relative;

    opacity: 1;
    visibility: visible;

    transform: scale(1);

    pointer-events: auto;
}


/* =========================================================
   QUOTE
   ========================================================= */

.libby-quote-slider__quote {
    position: relative;

    padding: 0;

    text-align: left;

    overflow: visible;

    isolation: isolate;
}


.libby-quote-slider__quote-text {
    position: relative;
    z-index: 1;

    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.45;

    font-style: italic;
    text-align: left;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    color: #272727;
}


/* =========================================================
   DECORATIVE OPENING QUOTATION MARK
   ========================================================= */

.libby-quote-slider__quote::before {
    content: "“";

    position: absolute;

    z-index: -1;

    left: -0.25em;
    top: -0.15em;

    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;

    font-size: clamp(4.8rem, 6.5vw, 7rem);
    line-height: 0.75;

    margin-top: 0.08em;

    color: #b8b8b8;

    pointer-events: none;
}


/* =========================================================
   SOURCE / TITLE
   ========================================================= */

.libby-quote-slider__source * {
    margin: 0;

    position: relative;

    font-family: 'Inter', sans-serif;
    font-weight: 600;

    font-size: clamp(0.75rem, 1vw, 1rem);
    line-height: 1.45;

    text-align: right;

    color: #797979;
}


.libby-quote-slider__source a {
    text-decoration-line: none;

    padding-bottom: 3px;

    border-bottom: #797979 dotted 1px;
}


.libby-quote-slider__source a:hover {
    border-bottom: #797979 solid 1px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.libby-quote-slider__pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: clamp(4px, 0.4vw, 6px);

    margin-top: 0;
}


.libby-quote-slider__dot {
    display: block;

    width: clamp(5px, 0.5vw, 7px);
    height: clamp(5px, 0.5vw, 7px);

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: var(--libby-dot-color);

    cursor: pointer;
}


.libby-quote-slider__dot.is-active {
    background: var(--libby-dot-active-color);
}


.libby-quote-slider__dot:hover {
    background: #ddd;
}


/* =========================================================
   RESPONSIVE SLIDER
   ========================================================= */


/*
 * SMALL LAPTOP / TABLET
 */

@media (max-width: 1100px) {

    .libby-quote-slider {
        min-height: 115px;
    }

    .libby-quote-slider__slides {
        min-height: 115px;
    }

    .libby-quote-slider__quote-text {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }

    .libby-quote-slider__source * {
        font-size: 0.9rem;
    }
}


/*
 * TABLET
 */

@media (max-width: 850px) {

    .libby-quote-slider {
        min-height: 100px;
    }

    .libby-quote-slider__slides {
        min-height: 100px;
    }

    .libby-quote-slider__quote-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .libby-quote-slider__source * {
        font-size: 0.8rem;
    }
}


/*
 * SMALL TABLET / LARGE PHONE
 */

@media (max-width: 700px) {

    .libby-quote-slider {
        min-height: 85px;
    }

    .libby-quote-slider__slides {
        min-height: 85px;
    }

    .libby-quote-slider__quote-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .libby-quote-slider__source * {
        font-size: 0.75rem;
    }
}


/*
 * PHONE
 */

@media (max-width: 600px) {

    .libby-quote-slider {
        display: none;
    }
}