.eyw-svg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.eyw-svg-card {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.eyw-svg-card:hover,
.eyw-svg-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.eyw-svg-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3f3;
}

.eyw-svg-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyw-svg-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.eyw-svg-content {
    display: block;
    padding: 18px 20px 22px;
}

.eyw-svg-title {
    display: block;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
}

.eyw-svg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.eyw-svg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
}

.eyw-svg-modal__dialog {
    position: relative;
    width: min(1100px, calc(100vw - 32px));
    margin: 40px auto;
    z-index: 1;
}

.eyw-svg-modal__close {
    position: absolute;
    right: 0;
    top: -46px;
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.eyw-svg-modal__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.eyw-svg-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.eyw-svg-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .eyw-svg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .eyw-svg-title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .eyw-svg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eyw-svg-content {
        padding: 16px 18px 18px;
    }
}
