.wg-9c306b61-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.wg-9c306b61-card {
    position: relative;
    height: 380px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wg-9c306b61-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.wg-9c306b61-card:hover .wg-9c306b61-image-bg {
    transform: scale(1.1);
}

.wg-9c306b61-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s ease;
}

.wg-9c306b61-card:hover .wg-9c306b61-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.wg-9c306b61-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.wg-9c306b61-card:hover .wg-9c306b61-content {
    transform: translateY(0);
}

.wg-9c306b61-tag {
    align-self: flex-start;
    background: #0073ec;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.wg-9c306b61-play-icon {
    width: 48px;
    height: 48px;
    background: #0073ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 115, 236, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wg-9c306b61-card:hover .wg-9c306b61-play-icon {
    transform: scale(1);
}

.wg-9c306b61-play-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    margin-left: 2px;
}

.wg-9c306b61-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.wg-9c306b61-desc {
    font-size: 14px;
    color: #dddddd;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.wg-9c306b61-card:hover .wg-9c306b61-desc {
    opacity: 1;
    max-height: 100px;
    margin-top: 5px;
}

/* Modal Lightbox styling */
.wg-9c306b61-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wg-9c306b61-lightbox.wg-active {
    opacity: 1;
    pointer-events: auto;
}

.wg-9c306b61-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wg-9c306b61-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.wg-9c306b61-lightbox-close svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.wg-9c306b61-lightbox-content {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.wg-9c306b61-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.wg-9c306b61-lightbox-content iframe {
    width: 800px;
    height: 450px;
    max-width: 100%;
    border: none;
}
