.yppg-layout {
    display: grid !important;
    grid-template-columns: var(--yppg-thumb-width) var(--yppg-player-width) !important;
    column-gap: 30px !important;
    width: calc(var(--yppg-thumb-width) + var(--yppg-player-width) + 30px) !important;
    height: var(--yppg-height) !important;
    max-width: 100% !important;
    margin: -18px auto 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.yppg-thumbs {
    width: var(--yppg-thumb-width) !important;
    height: var(--yppg-height) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.yppg-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--yppg-cols), minmax(0, 1fr)) !important;
    grid-template-rows: repeat(var(--yppg-rows), minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.yppg-item {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #222 !important;
    cursor: pointer !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
}

.yppg-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.yppg-item:hover img {
    opacity: .76;
}

.yppg-player {
    width: var(--yppg-player-width) !important;
    height: var(--yppg-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #000 !important;
}

.yppg-iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.yppg-error {
    padding: 12px;
    font: 14px/1.4 Arial, sans-serif;
    background: #222;
    color: #fff;
}

@media (max-width: 1000px) {
    .yppg-layout {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
        row-gap: 12px !important;
    }

    .yppg-player {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        order: -1 !important;
    }

    .yppg-thumbs {
        width: 100% !important;
        height: var(--yppg-height) !important;
    }
}
