
/* StockView Image Advertisement Carousel */

.svh-card.svh-ad.sv-image-ad-card {
    padding: 0 !important;
    margin: 0;
    display: block !important;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #eef3fb;
}

.sv-ad-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 275px;
    overflow: hidden;
    border-radius: inherit;
    isolation: isolate;
}

.sv-ad-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .65s ease, visibility .65s ease;
}

.sv-ad-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.sv-ad-image-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sv-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Previous and Next */
.sv-ad-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ffffff55;
    background: #091d3c77;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s, background .25s;
}

.sv-ad-carousel:hover .sv-ad-arrow,
.sv-ad-arrow:focus-visible {
    opacity: 1;
}

.sv-ad-arrow:hover {
    background: #071b39dd;
}

.sv-ad-prev { left: 10px; }
.sv-ad-next { right: 10px; }

/* Pagination */
.sv-ad-dots {
    position: absolute;
    z-index: 5;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.sv-ad-dot {
    width: 7px;
    height: 7px;
    border: 0;
    padding: 0;
    border-radius: 10px;
    background: #ffffff88;
    box-shadow: 0 1px 4px #0003;
    cursor: pointer;
    transition: width .3s, background .3s;
}

.sv-ad-dot.is-active {
    width: 25px;
    background: #fff;
}

.sv-ad-carousel :focus-visible {
    outline: 2px solid #38cfff;
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .sv-ad-carousel {
        min-height: 0;
        aspect-ratio: 2 / 1;
    }

    .sv-ad-arrow {
        opacity: .8;
        width: 25px;
        height: 25px;
    }

    .sv-ad-prev { left: 5px; }
    .sv-ad-next { right: 5px; }

    .sv-ad-dots { bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .sv-ad-slide,
    .sv-ad-dot,
    .sv-ad-arrow {
        transition: none;
    }
}
