.fdc-event-media-public {
    --fdc-gallery-navy: #0f172a;
    --fdc-gallery-blue: #0284c7;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    margin: 32px auto 48px;
    max-width: 1400px;
    overflow: hidden;
    padding: 26px;
    width: calc(100% - 64px);
}

.fdc-event-media-public *,
.fdc-event-media-public *::before,
.fdc-event-media-public *::after {
    box-sizing: border-box;
}

.fdc-event-media-header {
    align-items: center;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--fdc-gallery-navy) !important;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    min-height: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.fdc-event-media-eyebrow {
    color: #0284c7 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: 0.14em;
    margin: 0 0 4px !important;
    text-transform: uppercase;
}

.fdc-event-media-header h2 {
    align-items: center;
    color: var(--fdc-gallery-navy) !important;
    display: flex;
    font-size: 22px !important;
    font-weight: 850 !important;
    gap: 9px;
    line-height: 1.2 !important;
    margin: 0 0 4px !important;
}

.fdc-event-media-header h2 .dashicons {
    align-items: center;
    background: #e0f2fe;
    border-radius: 8px;
    color: #0284c7;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.fdc-event-media-header p:not(.fdc-event-media-eyebrow) {
    color: #64748b !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.fdc-event-media-count {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 11px;
}

.fdc-event-media-filters {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.fdc-event-media-filters button {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #64748b !important;
    cursor: pointer;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    margin: 0 0 -1px !important;
    min-height: 42px;
    padding: 8px 13px !important;
}

.fdc-event-media-filters button span {
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 10px;
    margin-left: 4px;
    padding: 2px 6px;
}

.fdc-event-media-filters button.is-active {
    border-bottom-color: var(--fdc-gallery-blue) !important;
    color: var(--fdc-gallery-blue) !important;
}

.fdc-event-media-day-filters {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    padding: 9px 11px;
}

.fdc-event-media-day-filter-label {
    color: #475569;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.08em;
    padding-left: 3px;
    text-transform: uppercase;
}

.fdc-event-media-day-filters > div {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding: 1px;
    scrollbar-width: thin;
}

.fdc-event-media-day-filters button {
    align-items: center;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #475569 !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px !important;
    font-weight: 750 !important;
    gap: 5px;
    margin: 0 !important;
    min-height: 32px;
    padding: 6px 10px !important;
}

.fdc-event-media-day-filters button span {
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    display: inline-flex;
    font-size: 9px;
    justify-content: center;
    min-width: 19px;
    padding: 2px 5px;
}

.fdc-event-media-day-filters button:hover,
.fdc-event-media-day-filters button:focus-visible {
    border-color: #38bdf8 !important;
    color: #0369a1 !important;
}

.fdc-event-media-day-filters button.is-active {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #fff !important;
}

.fdc-event-media-day-filters button.is-active span {
    background: rgba(255, 255, 255, 0.2);
}

.fdc-event-media-grid {
    display: grid;
    gap: 12px;
    grid-auto-flow: dense;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-media-grid {
    grid-template-columns: minmax(0, 720px);
    max-width: 720px;
}

.fdc-event-media-public[data-visible-count="2"] .fdc-event-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
}

.fdc-event-media-public[data-visible-count="3"] .fdc-event-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
}

.fdc-event-media-card {
    background: #f8fafc;
    border: 0;
    border-radius: 11px;
    display: block;
    margin: 0 !important;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.fdc-event-media-card.is-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-media-card.is-featured,
.fdc-event-media-public[data-visible-count="2"] .fdc-event-media-card.is-featured,
.fdc-event-media-public[data-visible-count="3"] .fdc-event-media-card.is-featured {
    grid-column: auto;
    grid-row: auto;
}

.fdc-event-media-card.is-filtered,
.fdc-event-media-grid:not([data-media-expanded="true"]) .fdc-event-media-card.is-overflow {
    display: none;
}

.fdc-event-media-open {
    background: #0f172a !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer;
    display: block;
    margin: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    width: 100%;
}

.fdc-event-photo-card .fdc-event-media-open,
.fdc-event-video-preview {
    aspect-ratio: 4 / 3;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-photo-card .fdc-event-media-open,
.fdc-event-media-public[data-visible-count="1"] .fdc-event-video-preview {
    aspect-ratio: 16 / 9;
}

.fdc-event-media-card.is-featured .fdc-event-media-open,
.fdc-event-media-card.is-featured .fdc-event-video-preview {
    min-height: 360px;
}

.fdc-event-photo-card.is-featured .fdc-event-media-open {
    height: 100%;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-media-card.is-featured .fdc-event-media-open,
.fdc-event-media-public[data-visible-count="1"] .fdc-event-media-card.is-featured .fdc-event-video-preview,
.fdc-event-media-public[data-visible-count="2"] .fdc-event-media-card.is-featured .fdc-event-media-open,
.fdc-event-media-public[data-visible-count="2"] .fdc-event-media-card.is-featured .fdc-event-video-preview,
.fdc-event-media-public[data-visible-count="3"] .fdc-event-media-card.is-featured .fdc-event-media-open,
.fdc-event-media-public[data-visible-count="3"] .fdc-event-media-card.is-featured .fdc-event-video-preview {
    height: auto;
    min-height: 0;
}

.fdc-event-media-image,
.fdc-event-video-preview > img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    transition: transform 300ms ease, filter 300ms ease;
    width: 100% !important;
}

.fdc-event-media-open:hover .fdc-event-media-image,
.fdc-event-media-open:hover .fdc-event-video-preview > img {
    filter: brightness(0.72);
    transform: scale(1.025);
}

.fdc-event-media-overlay {
    align-items: center;
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 750;
    gap: 5px;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 180ms ease;
}

.fdc-event-media-overlay .dashicons {
    font-size: 28px;
    height: 28px;
    width: 28px;
}

.fdc-event-media-open:hover .fdc-event-media-overlay,
.fdc-event-media-open:focus .fdc-event-media-overlay {
    opacity: 1;
}

.fdc-event-media-featured-label {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(245, 158, 11, 0.94);
    border-radius: 7px;
    color: #422006;
    display: inline-flex;
    font-size: 9px;
    font-weight: 850;
    gap: 4px;
    left: 10px;
    padding: 5px 7px;
    position: absolute;
    text-transform: uppercase;
    top: 10px;
}

.fdc-event-media-featured-label .dashicons {
    font-size: 12px;
    height: 12px;
    width: 12px;
}

.fdc-event-media-day-label {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 5px 8px;
    position: absolute;
    right: 10px;
    text-overflow: ellipsis;
    top: 10px;
    white-space: nowrap;
    z-index: 2;
}

.fdc-event-photo-caption {
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 32px 13px 12px;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.fdc-event-photo-caption strong {
    font-size: 12px;
}

.fdc-event-photo-caption span {
    color: #cbd5e1;
    font-size: 10.5px;
    line-height: 1.35;
    margin-top: 2px;
}

.fdc-event-video-preview {
    background: linear-gradient(145deg, #0f172a, #334155);
    display: block;
    overflow: hidden;
    position: relative;
}

.fdc-event-vimeo-placeholder {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 850;
    gap: 7px;
    height: 100%;
    justify-content: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fdc-event-vimeo-placeholder .dashicons {
    color: #38bdf8;
    font-size: 42px;
    height: 42px;
    width: 42px;
}

.fdc-event-video-play {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.25);
    color: #0284c7;
    display: flex;
    height: 48px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease;
    width: 48px;
}

.fdc-event-media-open:hover .fdc-event-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.fdc-event-video-play .dashicons {
    font-size: 27px;
    height: 27px;
    margin-left: 3px;
    width: 27px;
}

.fdc-event-video-details {
    background: #fff;
    padding: 12px 13px 14px;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-video-details {
    padding: 17px 19px 19px;
}

.fdc-event-video-provider {
    color: #0284c7;
    display: block;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.fdc-event-video-details h3 {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-video-details h3 {
    font-size: 16px !important;
}

.fdc-event-video-details p {
    color: #64748b !important;
    display: -webkit-box;
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    margin: 4px 0 0 !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fdc-event-media-public[data-visible-count="1"] .fdc-event-video-details p {
    font-size: 12px !important;
    -webkit-line-clamp: 3;
}

.fdc-event-media-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.fdc-event-media-more {
    align-items: center;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    color: #334155 !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px !important;
    font-weight: 800 !important;
    gap: 7px;
    margin: 0 !important;
    padding: 9px 14px !important;
}

.fdc-event-media-grid[data-media-expanded="true"] + .fdc-event-media-more-wrap .dashicons {
    transform: rotate(180deg);
}

.fdc-event-media-lightbox[hidden] {
    display: none;
}

.fdc-event-media-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 100000;
}

.fdc-event-media-lightbox-backdrop {
    background: rgba(2, 6, 23, 0.94);
    inset: 0;
    position: absolute;
}

.fdc-event-media-lightbox-dialog {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: calc(100vh - 56px);
    max-width: 1180px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.fdc-event-media-lightbox-content {
    align-items: center;
    display: flex;
    grid-column: 2;
    justify-content: center;
    min-height: min(70vh, 760px);
}

.fdc-event-media-lightbox-content img {
    max-height: min(70vh, 760px);
    max-width: 100%;
    object-fit: contain;
}

.fdc-event-media-lightbox-content iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    max-height: min(70vh, 760px);
    width: 100%;
}

.fdc-event-media-lightbox-close,
.fdc-event-media-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.fdc-event-media-lightbox-close {
    border-radius: 50% !important;
    height: 38px;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    z-index: 2;
}

.fdc-event-media-lightbox-nav {
    align-self: center;
    border-radius: 50% !important;
    height: 40px;
    justify-self: center;
    width: 40px;
}

.fdc-event-media-lightbox-nav.is-previous {
    grid-column: 1;
    grid-row: 1;
}

.fdc-event-media-lightbox-nav.is-next {
    grid-column: 3;
    grid-row: 1;
}

.fdc-event-media-lightbox-footer {
    align-items: center;
    background: #111c31;
    color: #fff;
    display: flex;
    gap: 20px;
    grid-column: 1 / -1;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px 20px;
}

.fdc-event-media-lightbox-title {
    display: block;
    font-size: 13px;
}

.fdc-event-media-lightbox-caption {
    color: #94a3b8 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 3px 0 0 !important;
}

.fdc-event-media-lightbox-position {
    color: #94a3b8;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 750;
}

body.fdc-media-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 1100px) {
    .fdc-event-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fdc-event-media-public[data-visible-count="1"] .fdc-event-media-grid {
        grid-template-columns: minmax(0, 720px);
    }

    .fdc-event-media-public[data-visible-count="2"] .fdc-event-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fdc-event-media-public {
        width: calc(100% - 32px);
    }

    .fdc-event-media-grid,
    .fdc-event-media-public[data-visible-count="3"] .fdc-event-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fdc-event-media-public[data-visible-count="1"] .fdc-event-media-grid {
        grid-template-columns: minmax(0, 640px);
    }
}

@media (max-width: 640px) {
    .fdc-event-media-public {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin: 22px auto 34px;
        padding: 20px 16px;
        width: 100%;
    }

    .fdc-event-media-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .fdc-event-media-count {
        align-self: flex-start;
    }

    .fdc-event-media-filters {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .fdc-event-media-day-filters {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .fdc-event-media-day-filter-label {
        padding-left: 2px;
    }

    .fdc-event-media-grid,
    .fdc-event-media-public[data-visible-count="1"] .fdc-event-media-grid,
    .fdc-event-media-public[data-visible-count="2"] .fdc-event-media-grid,
    .fdc-event-media-public[data-visible-count="3"] .fdc-event-media-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
    }

    .fdc-event-media-card.is-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .fdc-event-media-card.is-featured .fdc-event-media-open,
    .fdc-event-media-card.is-featured .fdc-event-video-preview {
        height: auto;
        min-height: 0;
    }

    .fdc-event-photo-card .fdc-event-media-open,
    .fdc-event-video-preview,
    .fdc-event-media-public[data-visible-count="1"] .fdc-event-photo-card .fdc-event-media-open,
    .fdc-event-media-public[data-visible-count="1"] .fdc-event-video-preview {
        aspect-ratio: 16 / 10;
    }

    .fdc-event-video-details,
    .fdc-event-media-public[data-visible-count="1"] .fdc-event-video-details {
        padding: 14px 15px 16px;
    }

    .fdc-event-media-lightbox {
        padding: 0;
    }

    .fdc-event-media-lightbox-dialog {
        border: 0;
        border-radius: 0;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        height: 100vh;
        max-height: none;
    }

    .fdc-event-media-lightbox-content {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fdc-event-media-public *,
    .fdc-event-media-public *::before,
    .fdc-event-media-public *::after {
        transition-duration: 0.01ms !important;
    }
}
