/* AFCMall v1.3.4 — Uncropped promo images and reliable Drive video */

.promo-card-media {
    min-height: 230px;
    height: clamp(230px, 24vw, 330px);
    aspect-ratio: auto;
    padding: 10px;
    background:
        radial-gradient(circle at 18% 12%, rgba(201,162,39,.14), transparent 34%),
        linear-gradient(145deg, #f8f9fa, #edf1f4);
}

.promo-card-media img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain !important;
    object-position: center;
    border-radius: 15px;
    background: rgba(255,255,255,.72);
}

.promo-card:hover .promo-card-media img {
    transform: scale(1.012);
}

.promo-detail-main {
    width: 100%;
}

.promo-detail-image {
    display: grid;
    place-items: center;
    width: min(100%, 1050px);
    height: clamp(320px, 52vw, 590px);
    margin-inline: auto;
    padding: clamp(10px, 1.8vw, 18px);
    aspect-ratio: auto !important;
    background:
        radial-gradient(circle at 16% 10%, rgba(201,162,39,.12), transparent 32%),
        linear-gradient(145deg, #fafafa, #eef2f5);
}

.promo-detail-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    border-radius: 16px;
    background: rgba(255,255,255,.76);
}

.promo-detail-section {
    width: min(100%, 1050px);
    margin-inline: auto;
}

.promo-video-frame {
    width: min(100%, 920px);
    max-height: 540px;
    margin-inline: auto;
}

.promo-video-frame video,
.promo-video-frame iframe {
    object-fit: contain;
    background: #071525;
}

.promo-video-error {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: none;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 15%, rgba(201,162,39,.19), transparent 34%),
        linear-gradient(145deg, rgba(5,18,34,.98), rgba(17,38,63,.98));
    text-align: center;
}

.promo-video-error strong {
    font-size: clamp(18px, 2.5vw, 25px);
}

.promo-video-error span {
    max-width: 620px;
    color: rgba(255,255,255,.76);
    line-height: 1.6;
}

.promo-video-frame.is-video-error video {
    display: none;
}

.promo-video-frame.is-video-error .promo-video-error {
    display: grid;
}

.promo-cta-panel {
    width: min(100%, 1050px);
    margin-inline: auto;
}

@media (max-width: 680px) {
    .promo-card-media {
        min-height: 220px;
        height: clamp(220px, 72vw, 320px);
        padding: 8px;
    }

    .promo-detail-image {
        height: clamp(260px, 78vw, 420px);
        padding: 8px;
    }

    .promo-video-frame {
        max-height: none;
    }
}
