/* Grid container */
.mvg-grid {
    display: grid;
    grid-gap: 20px;
}

/* Dynamic columns based on class */
.mvg-columns-1 { grid-template-columns: repeat(1, 1fr); }
.mvg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.mvg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.mvg-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card styling */
.mvg-card {
    background: #fff;
    border: 0px solid #ddd;
    border-radius: 10px;
    padding: 0px;
    text-align: center;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100px;
}

button.mvg-modal-close {
    padding: 0px 0px 6px;
    width: 30px;
    height: 30px;
    border-radius: 40px;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1 !important;
    background: #000;
    color: #fff;
    font-weight: 700;
}

.mvg-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.mvg-card h4 {
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    padding: 0px 20px 5px;
    color: #32174D;
}

/* Modal styling */
.mvg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 305;
}

.mvg-modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.mvg-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 900px;
    transform: translate(-50%, -50%);
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
}

.mvg-modal-player {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
    position: relative;
}

.mvg-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mvg-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
}
