/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.events-marquee {
    position: relative;
    max-width: 1200px;
    margin: 0 auto var(--widget-margin-bottom);
}

.events-marquee .template-header {
    padding: 0 20px;
    margin-bottom: 20px;
}

.events-marquee .template-title {
    font-family: var(--knockout-heavy);
    font-weight: normal;
    font-size: 25px;
    line-height: 1.28;
    letter-spacing: 0.0252em;
    color: var(--navy-dark);
    text-transform: uppercase;
}

.events-marquee .top-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-marquee .top-title::before {
    display: block;
    width: 60px;
    height: 5px;
    flex-shrink: 0;
    background: var(--blue);
    content: '';
}

.events-marquee .template-subtitle {
    display: block;
    font-family: var(--knockout);
    font-weight: normal;
    font-size: 45px;
    line-height: calc(10/9);
    letter-spacing: 0.02em;
    color: var(--blue);
    text-transform: uppercase;
}

.events-marquee .slides {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
}

/*----- inside events marquee container -----*/

.marquee-container .events-marquee {
    margin-bottom: 32px;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.events-marquee .slide,
.events-marquee .img-cont,
.events-marquee .slide-img {
    position: relative;
    z-index: 1;
}

.events-marquee .slide {
    margin: 0 20px 24px;
    color: var(--white);
    overflow: hidden;
}

.events-marquee .img-cont::before {
    position: absolute;
    inset: 37% 0 0 0;
    z-index: 2;
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    content: '';
    pointer-events: none;
}

.events-marquee .slide-img {
    transform: none;
    width: 100%;
    transition: transform var(--transition);
}

.events-marquee .shared-play-button {
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
}

.events-marquee .content-section {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 20px 20px 15px;
    pointer-events: none;
}

.events-marquee .content-section a {
    pointer-events: all;
}

.events-marquee .slide-title {
    margin-bottom: 2px;
    font-family: var(--knockout-heavy);
    font-weight: normal;
    font-size: 18px;
    line-height: calc(13/9);
    letter-spacing: 0.05em;
    color: inherit;
    text-transform: uppercase;
}

.events-marquee .location {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-family: var(--trade-gothic-oblique);
    font-weight: normal;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.events-marquee .location::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    content: '\f3c5';
    font-size: 22px;
    color: var(--blue);
}

.events-marquee .location a {
    font: inherit;
    color: inherit;
    line-height: inherit;
    text-decoration: inherit;
}

.events-marquee .link-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px 20px 14px;
    background: none;
    font-family: var(--knockout-heavy);
    font-weight: normal;
    font-size: 18px;
    line-height: calc(13/9);
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
}

.events-marquee .link-block::before,
.events-marquee .link-block::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    content: '';
    transition: opacity var(--transition);
}

.events-marquee .link-block::before {
    background: linear-gradient(to bottom, var(--blue-dark), #00599d);
    opacity: 1;
}

.events-marquee .link-block + .link-block::before {
    background: linear-gradient(to bottom, #00599d, #086bb1);
}

.events-marquee .link-block + .link-block + .link-block::before {
    background: linear-gradient(to bottom, #086bb1, var(--blue));
}

.events-marquee .link-block::after {
    background: var(--blue-dark);
    opacity: 0;
}

.events-marquee .link-content {
    position: relative;
    z-index: 2;
    transform: none;
    transition: transform var(--transition);
}

.events-marquee .link-arrow,
.events-marquee .link-bg {
    position: absolute;
    display: none;
}

.events-marquee .link-arrow {
    left: 50%;
    bottom: -10px;
    transform: translate(-50%, 100%);
    width: 32px;
    opacity: 0;
    transition: opacity var(--transition);
}

.events-marquee .link-bg {
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (hover: hover) {
    .events-marquee .location a:hover {
        text-decoration: underline;
    }
}

@media (min-width: 40em) {
    .events-marquee .slides {
        grid-template: auto / 65% minmax(0, 1fr);
        gap: 5px 10px;
        padding: 0 20px;
    }

    .events-marquee .slide {
        margin: 0;
        grid-row: span 3;
    }

    .events-marquee .link-block {
        grid-column: 2;
    }
}

@media (min-width: 64em) {
    .events-marquee .template-header {
        margin-bottom: 10px;
    }

    .events-marquee .template-title {
        font-size: 30px;
    }

    .events-marquee .top-title {
        gap: 22px;
    }

    .events-marquee .top-title::before {
        width: 125px;
    }

    .events-marquee .template-subtitle {
        font-size: 75px;
    }

    .events-marquee .slides {
        gap: 5px 40px;
    }

    .events-marquee .content-section {
        padding: 33px 50px;
    }

    .events-marquee .slide-title {
        margin-bottom: 6px;
        font-size: 32px;
        line-height: 1.375;
    }

    .events-marquee .location {
        font-size: 20px;
    }

    .events-marquee .location::before {
        font-size: 24px;
    }

    .events-marquee .link-arrow,
    .events-marquee .link-bg {
        display: block;
    }

    @media (hover: hover) {
        .events-marquee .slide:hover .slide-img {
            transform: scale(1.1);
        }
    
        .events-marquee .link-block:hover::before {
            opacity: 0;
        }
    
        .events-marquee .link-block:hover::after {
            opacity: 0.8;
        }
    
        .events-marquee .link-block:hover .link-content {
            transform: translateY(-15px);
        }
    
        .events-marquee .link-block:hover .link-arrow {
            opacity: 1;
        }
    }

    /*----- inside events marquee container -----*/

    .marquee-container .events-marquee {
        margin-bottom: 24px;
    }
}