.widget-events.template-1{
    position: relative;
    overflow: hidden;
    font-size: var(--font-size, clamp(16px, 1.6vw, 20px));
    padding: 6.5em 0;
}
.widget-events.template-1 .widget-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2em;
}
.widget-events.template-1 .widget-header .widget-title{
    color: #282828;
    font-size: 2.5em;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}
.widget-events.template-1 .widget-link{
    display: inline-flex;
    align-items: center;
    gap: .4em;
    color: #282828;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;

    transition: color .2s ease-out;
}
.widget-events.template-1 .widget-link:focus{
    color: var(--main-color);
}
.widget-events.template-1 .widget-link svg path{
    transition: fill .2s ease-out;
}
.widget-events.template-1 .widget-link:hover svg path,
.widget-events.template-1 .widget-link:focus svg path{
    fill: var(--main-color);
}
.widget-events.template-1 .widget-header + *{
    margin-top: 3.2em;
}
.widget-events.template-1 .widget-content{}
.widget-events.template-1 .widget-content .widget-items{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}
.widget-events.template-1 .widget-content .widget-item{
    position: relative;
    overflow: hidden;
    border-radius: 1.5em;
    text-decoration: none;
    aspect-ratio: 42 / 32;
    background-color: #F6F6F6;

    transition: background-color .2s ease-out;
}
.widget-events.template-1 .widget-content .widget-item[data-type='item']{
    max-width: calc(25% - 1.125em);
    flex: 0 0 calc(25% - 1.125em);
    aspect-ratio: 16 / 25.4;
}
.widget-events.template-1 .widget-content .widget-item[data-type='item']::before{
    content: '';
    position: absolute;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    width: var(--ripple-d, 0);
    height: var(--ripple-d, 0);
    background-color: #FFAA00;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .45s ease-out;
    z-index: 0;
    pointer-events: none;
}
.widget-events.template-1 .widget-content .widget-item[data-type='item']:hover::before{
    transform: translate(-50%, -50%) scale(1);
}
.widget-events.template-1 .widget-content .widget-item[data-type='video']{
    max-width: calc(50% - .75em);
    flex: 0 0 calc(50% - .75em);
}
.widget-events.template-1 .widget-content .widget-item-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 2em 1.75em;
}
.widget-events.template-1 .widget-content .widget-item-video{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.widget-events.template-1 .widget-content .widget-item-video:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity .2s ease-out;
}
.widget-events.template-1 .widget-content .widget-item-video.is-started:before {
    opacity: 0;
}
.widget-events.template-1 .widget-content .widget-item-video video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
.widget-events.template-1 .widget-content .widget-item-video:not(.is-hovered) video::-webkit-media-controls-enclosure,
.widget-events.template-1 .widget-content .widget-item-video:not(.is-hovered) video::-webkit-media-controls-panel,
.widget-events.template-1 .widget-content .widget-item-video:not(.is-hovered) video::-webkit-media-controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.widget-events.template-1 .widget-content .widget-item-video.is-hovered video::-webkit-media-controls-enclosure,
.widget-events.template-1 .widget-content .widget-item-video.is-hovered video::-webkit-media-controls-panel,
.widget-events.template-1 .widget-content .widget-item-video.is-hovered video::-webkit-media-controls {
    opacity: 1;
    pointer-events: auto;
    transition: opacity .2s ease;
}
.widget-events.template-1 .widget-content .widget-item-video-poster{
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility .2s ease;
}
.widget-events.template-1 .widget-content .widget-item-video.is-started:not(.is-ended) .widget-item-video-poster{
    opacity: 0;
    visibility: hidden;
}
.widget-events.template-1 .widget-content .widget-item-video-play{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease-out, visibility .2s ease-out;
}
.widget-events.template-1 .widget-content .widget-item-video-play svg{
    width: 20%;
    height: auto;

    transition: transform .2s ease-out;
}
.widget-events.template-1 .widget-content .widget-item-video:hover .widget-item-video-play svg,
.widget-events.template-1 .widget-content .widget-item-video:focus .widget-item-video-play svg{
    transform: scale(.9);
}
.widget-events.template-1 .widget-content .widget-item-video.is-started:not(.is-ended) .widget-item-video-play{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.widget-events.template-1 .widget-content .widget-item-supertitle{
    color: #FA0;
    font-size: .8em;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
  text-wrap: balance;

    transition: color .2s ease-out;
}
.widget-events.template-1 .widget-content .widget-item:hover .widget-item-supertitle{
    color: #282828;
}
.widget-events.template-1 .widget-content .widget-item-supertitle + .widget-item-title{
    margin-top: .58em;
}
.widget-events.template-1 .widget-content .widget-item-title{
    color: #282828;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;

    transition: color .2s ease-out;
}
.widget-events.template-1 .widget-content .widget-item:hover .widget-item-title{
    color: #FFF;
}
.widget-events.template-1 .widget-content .widget-item-picture{
    position: absolute;
    z-index: 1;
    display: flex;
    pointer-events: none;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
}
.widget-events.template-1 .widget-content .widget-item-picture picture{
    width: 100%;
}
.widget-events.template-1 .widget-content .widget-item-picture img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.widget-events.template-1 .widget-content + *{
    margin-top: 2.5em;
}
.widget-events.template-1 .widget-footer{
    display: none;
}

@media all and (max-width: 1500px) {
    .widget-events.template-1 .widget-content .widget-item-title{
        font-size: 1em;
    }
}
@media all and (max-width: 1000px) {
    .widget-events.template-1 .widget-header .widget-title{
        font-size: 2em;
    }
    .widget-events.template-1 .widget-content .widget-item[data-type='video']{
        max-width: 100%;
        flex: 0 0 100%;
        aspect-ratio: 16 / 9;
    }
    .widget-events.template-1 .widget-content .widget-item[data-type='item']{
        max-width: calc(33.3333% - 1em);
        flex: 0 0 calc(33.3333% - 1em);
        aspect-ratio: 16 / 26;
    }
}
@media all and (max-width: 720px) {
    .widget-events.template-1 .widget-content .widget-item[data-type='item']{
        max-width: calc(50% - .75em);
        flex: 0 0 calc(50% - .75em);
        aspect-ratio: 16 / 24;
    }
}
@media all and (max-width: 600px) {
    .widget-events.template-1{
        padding: 5em 0;
    }
    .widget-events.template-1 .widget-header + *{
        margin-top: 3.2em;
    }
    .widget-events.template-1 .widget-content .widget-item[data-type='item']{
        max-width: 100%;
        flex: 0 0 100%;
        aspect-ratio: 16 / 9;
    }
    .widget-events.template-1 .widget-content .widget-item[data-type='video']{
        aspect-ratio: 16 / 12;
    }
    .widget-events.template-1 .widget-content .widget-item-supertitle{
        font-size: .75em;
    }
    .widget-events.template-1 .widget-content .widget-item-title{
        font-size: 1.125em;
    }
    .widget-events.template-1 .widget-content .widget-items{
        gap: 1.25em;
    }
    .widget-events.template-1 .widget-content .widget-item{
        border-radius: 13px;
    }
    .widget-events.template-1 .widget-content .widget-item-wrapper{
        padding: 1.5em;
    }

    .widget-events.template-1 .widget-link:not(.mobile){
        display: none;
    }
    .widget-events.template-1 .widget-link{
        font-size: 14px;
        gap: .7em;
    }
    .widget-events.template-1 .widget-footer{
        display: block;
    }
}

