/*
 * iSpot: Post Type Slider Advanced
 *
 * Adapted from ispot-post-type-slider-style.css. Scoped to
 * .post-type-slider-advanced so the two blocks can appear on the same page
 * without their slick markup or arrow positioning colliding. The maven-card
 * rules are not carried over; this block has no maven variant.
 */

.post-type-slider-advanced {
    margin-bottom: 30px;
}

.post-type-slider-advanced .slider-item {
    padding: 0 15px;
    box-sizing: border-box;
}

.post-type-slider-advanced .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 1rem;
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
}

.post-type-slider-advanced .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: calc(1rem - 1px);
    border-top-right-radius: calc(1rem - 1px);
}

.post-type-slider-advanced .card:hover,
.post-type-slider-advanced .card:focus-visible {
    box-shadow: 0 7px 14px rgb(0 0 0 / 12.5%), 0 5px 5px rgb(0 0 0 / 11%);
    transform: translateY(-.2rem);
}

.post-type-slider-advanced .card-body {
    padding: 1.25rem;
}

.post-type-slider-advanced .card-text {
    margin-bottom: 0.5rem;
}

.post-type-slider-advanced .card-title {
    font-size: 18px;
    margin-bottom: 0;
}

.post-type-slider-advanced .card-text small {
    display: block;
    margin-bottom: 0.5rem;
}

/*
 * The date/author line. The original block used Bootstrap's .text-muted, which
 * survives PurgeCSS today only because www-classic templates happen to use it.
 * Declaring the colour here keeps this block independent of that build.
 */
.post-type-slider-advanced .post-meta {
    color: #6c757d;
}

.post-type-slider-advanced .card-link {
    color: inherit;
    text-decoration: none;
}

.post-type-slider-advanced .card-link:hover {
    text-decoration: none;
}

/* Static layout — post_count of 1 to 3, no slick involved. */
.post-type-slider-advanced--static {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.post-type-slider-advanced--static .slider-item {
    display: flex;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.post-type-slider-advanced--static .card-link {
    display: flex;
    width: 100%;
}

/* Cards in a static row stretch to the tallest card on that row. */
.post-type-slider-advanced--static .card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .post-type-slider-advanced--static .slider-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1280px) {
    .post-type-slider-advanced--static .slider-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.post-type-slider-advanced .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.post-type-slider-advanced .slick-arrow:hover {
    opacity: 0.7;
}

.post-type-slider-advanced .slick-prev {
    left: -40px;
}

.post-type-slider-advanced .slick-next {
    right: -30px;
}

.post-type-slider-advanced .slick-prev:before,
.post-type-slider-advanced .slick-next:before {
    content: '';
}

.post-type-slider-advanced .chevron-right,
.post-type-slider-advanced .chevron-left {
    height: 52px;
    width: 52px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right-facing chevron */
.post-type-slider-advanced .chevron-right:before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border-style: solid;
    border-width: 0 1px 1px 0;
    border-color: #888;
    transform: rotate(-45deg);
}

/* Left-facing chevron */
.post-type-slider-advanced .chevron-left:before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border-style: solid;
    border-width: 1px 0 0 1px;
    border-color: #888;
    transform: rotate(-45deg);
}

@media (max-width: 700px) {
    .post-type-slider-advanced .chevron-right,
    .post-type-slider-advanced .chevron-left {
        height: 22px;
        width: 22px;
    }

    .post-type-slider-advanced .chevron-right:before,
    .post-type-slider-advanced .chevron-left:before {
        width: 24px;
        height: 24px;
    }

    .post-type-slider-advanced .slick-prev {
        left: -8px;
    }

    .post-type-slider-advanced .slick-next {
        right: -10px;
    }
}

@media (min-width: 701px) and (max-width: 767px) {
    .post-type-slider-advanced .chevron-right,
    .post-type-slider-advanced .chevron-left {
        height: 52px;
        width: 52px;
    }

    .post-type-slider-advanced .chevron-right:before,
    .post-type-slider-advanced .chevron-left:before {
        width: 48px;
        height: 48px;
    }

    .post-type-slider-advanced .slick-prev {
        left: -10px;
    }

    .post-type-slider-advanced .slick-next {
        right: -10px;
    }
}

@media (min-width: 768px) and (max-width: 868px) {
    .post-type-slider-advanced .chevron-right,
    .post-type-slider-advanced .chevron-left {
        height: 22px;
        width: 22px;
    }

    .post-type-slider-advanced .chevron-right:before,
    .post-type-slider-advanced .chevron-left:before {
        width: 24px;
        height: 24px;
    }

    .post-type-slider-advanced .slick-prev {
        left: -8px;
    }

    .post-type-slider-advanced .slick-next {
        right: -10px;
    }
}

@media (min-width: 1024px) and (max-width: 1100px) {
    .post-type-slider-advanced .chevron-right,
    .post-type-slider-advanced .chevron-left {
        height: 22px;
        width: 22px;
    }

    .post-type-slider-advanced .chevron-right:before,
    .post-type-slider-advanced .chevron-left:before {
        width: 24px;
        height: 24px;
    }

    .post-type-slider-advanced .slick-prev {
        left: -8px;
    }

    .post-type-slider-advanced .slick-next {
        right: -10px;
    }
}

@media (min-width: 1280px) and (max-width: 1380px) {
    .post-type-slider-advanced .chevron-right,
    .post-type-slider-advanced .chevron-left {
        height: 22px;
        width: 22px;
    }

    .post-type-slider-advanced .chevron-right:before,
    .post-type-slider-advanced .chevron-left:before {
        width: 24px;
        height: 24px;
    }

    .post-type-slider-advanced .slick-prev {
        left: -8px;
    }

    .post-type-slider-advanced .slick-next {
        right: -10px;
    }
}

.post-type-slider-advanced .slick-disabled {
    display: none !important;
}
