
.fyl-slider {
    --fyl-ink: #292522;
    --fyl-accent: #7a1833;
    --fyl-border: #d8d7d1;
    width: 100%;
    max-width: 1160px;
    margin: 18px auto 28px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--fyl-ink);
}

.fyl-slider,
.fyl-slider * {
    box-sizing: border-box;
}

.fyl-stage {
    position: relative;
    padding: 0 45px;
}

.fyl-track {
    position: relative;
    overflow: hidden;
    height: 275px;
    background: #fff;
    border: 1px solid #dddcd6;
    box-shadow: 0 0 0 7px rgba(255,255,255,.55);
}

.fyl-image-only-slider .fyl-slide {
    display: none;
    width: 100%;
    height: 275px;
    background: #fff;
    position: relative;
}

.fyl-image-only-slider .fyl-slide.is-active {
    display: block;
    animation: fylFade .35s ease;
}

@keyframes fylFade {
    from { opacity: .35; }
    to { opacity: 1; }
}

/*
 * Every uploaded image gets exactly the same visual area.
 * "cover" fills the complete slider width/height.
 * Change shortcode to image_fit="contain" if you ever want the
 * complete image visible without cropping.
 */
.fyl-image-only-slider .fyl-slide > img,
.fyl-image-only-slider .fyl-slide .fyl-full-image-link,
.fyl-image-only-slider .fyl-slide .fyl-full-image-link img {
    display: block;
    width: 100%;
    height: 275px;
}

.fyl-image-only-slider .fyl-slide > img,
.fyl-image-only-slider .fyl-slide .fyl-full-image-link img {
    object-fit: cover;
    object-position: center center;
}

.fyl-image-only-slider[data-image-fit="contain"] .fyl-slide > img,
.fyl-image-only-slider[data-image-fit="contain"] .fyl-slide .fyl-full-image-link img {
    object-fit: contain;
    background: #fff;
}

.fyl-full-image-link {
    text-decoration: none !important;
}

.fyl-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 40px;
    height: 106px;
    padding: 0;
    border: 1px solid #dddcd6;
    border-radius: 0;
    background: rgba(255,255,255,.97);
    color: #111;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1;
    box-shadow: none;
}

.fyl-arrow:hover {
    color: var(--fyl-accent);
    background: #fff;
}

.fyl-prev { left: 0; }
.fyl-next { right: 0; }

/* Reference-style Featured News thumbnail rail */
.fyl-thumbbar {
    position: relative;
    height: 78px;
    min-height: 78px;
    margin: 7px 0 0;
    padding: 7px 18px 7px 116px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d4d3cc;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(to bottom, #efefeb 0%, #deded8 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.fyl-thumbbar::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: -7px;
    height: 10px;
    background: radial-gradient(circle at 5px -1px, transparent 5px, #fff 5.5px) repeat-x;
    background-size: 10px 10px;
    pointer-events: none;
}

.fyl-thumb-title {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 94px;
    height: 70px;
    color: rgba(255,255,255,.98);
    font-size: 27px;
    line-height: .88;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -1px;
    white-space: normal;
    text-shadow: 0 1px 1px rgba(0,0,0,.22);
}

.fyl-thumb-title span {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    font-size: 74px;
    line-height: .7;
    font-style: normal;
    font-weight: 300;
    letter-spacing: -6px;
}

.fyl-thumbs {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 1px 0;
}

.fyl-thumbs::-webkit-scrollbar {
    display: none;
}

.fyl-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    padding: 3px;
    border: 1px solid #bdbdb7;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255,255,255,.65);
}

.fyl-thumb:hover {
    border-color: #777;
}

.fyl-thumb.is-active {
    border: 3px solid #85857f;
    padding: 1px;
}

.fyl-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fyl-empty {
    padding: 25px;
    border: 1px dashed #aaa;
    background: #fafafa;
}

/* Home layout: slider spans the complete theme content container. */
body.home {
    overflow-x: hidden;
}

body.home .fyl-home-fullwidth-slot {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
    position: relative;
    z-index: 20;
    flex: 0 0 100% !important;
    grid-column: 1 / -1 !important;
}

body.home .fyl-home-fullwidth-slot .fyl-slider {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home .fyl-home-fullwidth-slot .fyl-stage {
    width: 100% !important;
    max-width: none !important;
}

/* Prevent the old theme column from retaining spacing around the moved slider. */
body.home .fyl-slider-original-column .fyl-slider {
    width: 100% !important;
}

@media (max-width: 1200px) {
    body.home .fyl-home-fullwidth-slot {
        width: 100% !important;
    }
}

@media (max-width: 800px) {
    .fyl-stage {
        padding: 0 32px;
    }

    .fyl-track {
        height: 220px;
    }

    .fyl-image-only-slider .fyl-slide,
    .fyl-image-only-slider .fyl-slide > img,
    .fyl-image-only-slider .fyl-slide .fyl-full-image-link,
    .fyl-image-only-slider .fyl-slide .fyl-full-image-link img {
        height: 220px;
    }

    .fyl-thumbbar {
        height: 76px;
        min-height: 76px;
        padding: 6px 10px;
    }

    .fyl-thumb-title {
        display: none;
    }

    .fyl-thumb {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 520px) {
    .fyl-stage {
        padding: 0 26px;
    }

    .fyl-arrow {
        width: 30px;
        height: 82px;
        font-size: 22px;
    }

    .fyl-track {
        height: 190px;
    }

    .fyl-image-only-slider .fyl-slide,
    .fyl-image-only-slider .fyl-slide > img,
    .fyl-image-only-slider .fyl-slide .fyl-full-image-link,
    .fyl-image-only-slider .fyl-slide .fyl-full-image-link img {
        height: 190px;
    }
}
