.ycg-wrap {
    width: 100%;
    clear: both;
}

.ycg-grid {
    display: grid;
    grid-template-columns: repeat(var(--ycg-cols-desktop, 3), minmax(0, 1fr));
    gap: var(--ycg-gap, 24px);
}

.ycg-card {
    min-width: 0;
}

.ycg-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--ycg-radius, 12px);
    background: #000;
}

.ycg-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ycg-card-header {
    margin-top: 14px;
}

.ycg-title {
    margin: 0;
    font-size: clamp(1.05rem, 1vw, 1.25rem);
    line-height: 1.3;
    font-weight: 700;
}

.ycg-date {
    display: block;
    margin-top: 8px;
    font-size: .9rem;
    opacity: .7;
}

.ycg-text {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.ycg-text > :first-child {
    margin-top: 0;
}

.ycg-text > :last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .ycg-grid {
        grid-template-columns: repeat(var(--ycg-cols-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ycg-grid {
        grid-template-columns: repeat(var(--ycg-cols-mobile, 1), minmax(0, 1fr));
    }
}

.ycg-video-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.ycg-video-button img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.ycg-video-button:hover img,
.ycg-video-button:focus-visible img {
    transform: scale(1.03);
    opacity: .88;
}

.ycg-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: rgba(0, 0, 0, .72);
}

.ycg-play::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.ycg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .78);
}

.ycg-lightbox.is-open {
    display: flex;
}

.ycg-lightbox__inner {
    position: relative;
    width: min(1100px, 100%);
}

.ycg-lightbox__video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--ycg-radius, 12px);
    background: #000;
}

.ycg-lightbox__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ycg-lightbox__close {
    position: absolute;
    right: 0;
    top: -46px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.ycg-lightbox-open {
    overflow: hidden;
}

.ycg-card--hidden {
    display: none;
}

.ycg-load-more-wrap {
    display: block;
    width: 100%;
    clear: both;
    grid-column: 1 / -1;
    margin-top: 28px;
    text-align: center;
}

.ycg-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--ycg-button-radius, 999px);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    background: var(--ycg-button-bg, #111827);
    color: var(--ycg-button-text, #fff);
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.ycg-load-more:hover,
.ycg-load-more:focus-visible {
    background: var(--ycg-button-bg-hover, #374151);
    color: var(--ycg-button-text-hover, #fff);
}
