.events-grid {
    /*display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
    gap: 25px;
    display: flex;
    flex-wrap: wrap;
}

.event-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    width: 100%;
    display: flex;
    align-items: center;
}

.event-card .event-image {
    position: relative;
    width: 31%;
    height: 100% !important;
}

.event-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    height: 100% !important;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #D11B1E;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.event-content {
    padding: 20px;
    width: 68%;
}

.event-title {
    font-size: 18px;
    margin-bottom: 10px;
}
.content-section + .content-section{margin-top: 30px;}
.event-meta {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    font-size: 14px;
        display: flex;
    gap: 5px 20px;
    flex-wrap: wrap;
}

.event-meta li {
    margin-bottom: 6px;
}

.event-btn {
    display: inline-block;
    background: #D11B1E;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid;
}




/* inside page changes */
.details-page-event-meta {
    display: flex;
    /* align-items: center; */
    gap: 24px; /* spacing between items */
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap; /* FORCE single line */
}

.details-page-event-meta li {
    white-space: nowrap; /* prevent line breaks */
    font-size: 14px;
}

h3.events-section-title {
    background: #f4f4f4;
    padding: 6px 10px;
}



/* Circular speaker image */
.speaker-card img {
    width: 100px;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
}


/* Speaker name */
.speaker-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

/* Speaker designation */
.speaker-designation {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.speaker-designation p {
    margin: 0;
}

/* Featured section container */
/* .featured-speakers {
    margin-top: 40px;
} */

/* Section title */
.featured-speakers .events-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Grid layout (2 × 2 on desktop) */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
}

/* Speaker card (horizontal layout) */
.speaker-card {
    display: flex;
    align-items: center;
    gap: 14px;
}


button.event-submit {
    margin: 25px auto !important;
    padding: 13px 9px !important;
    /* font-size: 18px !important; */
    width: 60% !important;
}

.event-form-html p {
    color: #fff;
}

button.forminator-button.forminator-button-submit.event-submit:hover {
    background: #fff !important;
    color: #D11B1E !important;
    border: 1px solid #D11B1E !important;
}

button.forminator-button.forminator-button-submit.event-submit {
    border: 1px solid #D11B1E !important;
}




/* Related Events Slider CSS */
.related-title{
    background: linear-gradient(to right, #D11B1E, #000000, #D11B1E, #000000, #D11B1E);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: color-change-clip 8s linear infinite;
    font-family: "Poppins", Sans-serif;
    font-size: 32px;
    font-weight: 900;
}

.related-events-slider{
    background-color: #f2f2f2;
}

.related-events-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.08); */
}

.related-events-btn:hover{
    background-color: #FFFFFF;
    color: #D11B1E;
    border: 1px solid #D11B1E;
}



.dialog-type-lightbox {
    background-color: rgb(0 0 0 / 0%) !important;
}

.acf-masonry-gallery {
    column-width: 340px;   /* ⬅️ increase this */
    column-gap: 24px;
}


.acf-masonry-gallery a {
    pointer-events: auto !important;
}

.acf-masonry-gallery img {
    opacity: 1 !important;
    visibility: visible !important;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px !important;
}

/* Video play icon */
.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.video-item .play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* Hover effect (optional but nice) */
.masonry-item a:hover img {
    opacity: 0.9;
}


/* Disable the Swiper lazy preload spinner in Elementor lightbox */
.elementor-lightbox .swiper-lazy-preloader {
    display: none !important;
}

/* Make sure the actual image is visible immediately */
.elementor-lightbox .swiper-zoom-container img {
    opacity: 1 !important;
    visibility: visible !important;
}



.single-events .elementor-lightbox .dialog-lightbox-close-button svg, 
.single-events .elementor-lightbox .elementor-swiper-button svg
/* .single-events .elementor-slideshow__header>svg  */
{
    /* fill: hsl(0deg 0% 0% / 90%) !important; */
     fill: hwb(0 100% 0% / 0.9) !important;
}

.single-events .elementor-slideshow__header>svg 
{
    fill: hwb(0 100% 0% / 0.9) !important;
}




/* Video grid */
.acf-video-gallery {
    /* display: grid;
    grid-template-columns: repeat(3, 1fr); */
    gap: 20px;
        flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}

/* Thumbnail wrapper */
.acf-video-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    width: 32%;
}

.acf-video-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.acf-video-item:hover img {
    transform: scale(1.05);
}

/* Play icon */
.acf-play-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.acf-play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #fff;
}

/* Popup overlay */
.acf-video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 99999;
}

/* Add this */
.acf-video-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Popup inner */
.acf-video-popup-inner {
    position: relative;
    width: 90%;
    max-width: 900px;
}

/* Video */
.acf-video-popup video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
}

/* Close button */
.acf-video-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}



h2.past_events_video{
    background: linear-gradient(to right, #D11B1E, #000000, #D11B1E, #000000, #D11B1E);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: color-change-clip 8s linear infinite;    
    font-family: "Poppins", Sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25em;
}

@media screen and (max-width:1100px) {
    .acf-video-item{width: 48%}
}
@media screen and (max-width:1024px) {
.events {
    margin-top: -15px;
}
.eventdetailbanner.e-con>.e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
}
}


@media screen and (max-width:768px) {
.details-page-event-meta{flex-wrap: wrap;gap: 5px 15px}
.acf-video-item{width: 95%}
}

@media screen and (max-width: 650px) {
.event-card{flex-wrap: wrap;}
.event-image{height: auto !important;width: 100%;}
.event-content{width: 100%}
.event-meta li{width: 45%;}
}

@media screen and (max-width: 480px) {
.event-meta li{width: 100%;}
}

@media screen and (min-width: 1024px) {
    .fancybox__slide {
        padding: 105px 100px;
    }
}