/* ===== Logomotion Video Lightbox ===== */

.lml-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

/* Thumbnail — always 3:4 (width:height) */
.lml-thumb-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #000;
}

.lml-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* crop/zoom to fill the frame */
    display: block;
    pointer-events: none;       /* don't show native video controls */
}

.lml-thumb-video::-webkit-media-controls {
    display: none !important;
}

/* Gradient overlay — bottom to top, opacity from widget settings */
.lml-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Center play button */
.lml-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    pointer-events: none;
}

.lml-play-btn svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

/* Brand title — bottom center */
.lml-brand {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    pointer-events: none;
    font-family: inherit;
}

/* ===== Lightbox ===== */
.lml-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lml-lightbox[hidden] {
    display: none;
}

.lml-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 640px;
}

/* Main video keeps 3:4 aspect ratio too */
.lml-main-video-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: calc(100vh - 140px);
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.lml-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lml-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.lml-close svg {
    width: 100%;
    height: 100%;
}

.lml-detail-link {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
}

.lml-detail-link:hover {
    color: #EB3217;
    border-color: #EB3217;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .lml-lightbox {
        padding: 12px;
    }

    .lml-play-btn {
        width: 56px;
        height: 56px;
    }

    .lml-brand {
        font-size: 13px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .lml-close {
        top: -40px;
    }
}
