/**
 * Produktvorstellung (spotlight) single — methodology note, Icecat gallery, content cleanup.
 */

.vgl-spotlight-page__methodology {
    margin: var(--vgl-space-6) 0 0;
}

.vgl-spotlight-page__methodology-text {
    margin: 0;
    font-size: var(--vgl-font-size-sm);
    line-height: 1.6;
    color: var(--vgl-color-text);
}

.vgl-spotlight-page__product-link {
    margin: var(--vgl-space-4) 0 0;
}

.vgl-spotlight-page__gallery {
    margin: 0 0 var(--vgl-space-6);
}

.vgl-spotlight-page__gallery .product-media {
    margin: 0;
    position: relative;
}

.vgl-spotlight-page__gallery .merchant-price-reduction.price-reduction {
    position: absolute;
    width: 100px;
    top: -6px;
    right: 3px;
    font-size: 22px;
    transform: rotate(8deg);
    z-index: 9;
    background-color: var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    border-radius: 7px;
    text-align: center;
    font-weight: 700;
    padding: 5px;
}

.vgl-spotlight-page__gallery .main-product-photo {
    background: var(--vgl-color-bg-alt);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg);
    padding: var(--vgl-space-4);
    text-align: center;
}

.vgl-spotlight-page__gallery .main-product-photo .image-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    margin: 0;
    cursor: pointer;
}

.vgl-spotlight-page__gallery .main-product-photo > .image-cont:not(:nth-child(1)) {
    display: none;
}

.vgl-spotlight-page__gallery .main-product-photo .image-cont > .helper {
    display: none;
}

.vgl-spotlight-page__gallery .main-product-photo img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.vgl-spotlight-page__gallery .slider-nav {
    display: none;
    margin-top: var(--vgl-space-3);
}

.vgl-spotlight-page__gallery .slider-nav img {
    max-height: 72px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: var(--vgl-radius-sm);
    border: 1px solid transparent;
}

.vgl-spotlight-page__gallery .slider-nav .slick-current img {
    border-color: var(--vgl-color-primary);
}

.vgl-spotlight-page__gallery .main-product-photo .slick-prev {
    left: -8px !important;
}

.vgl-spotlight-page__gallery .main-product-photo .slick-next {
    right: -8px !important;
}

/* Lightbox zoom — same behaviour as product single */
.vgl-spotlight-page__gallery .openSlider {
    display: flex !important;
    position: fixed !important;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    z-index: -1;
    opacity: 0;
}

.vgl-spotlight-page__gallery .openSlider.active_s {
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.vgl-spotlight-page__gallery .openSlider > div {
    position: fixed !important;
    max-width: 60vw;
    display: inline-block;
    top: 20vh;
    background: rgba(255, 255, 255, 0.98);
    padding: var(--vgl-space-4);
}

.vgl-spotlight-page__gallery .openSlider .image-cont .zoom_container {
    background-position: var(--bg-x, 50%) var(--bg-y, 50%);
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
    margin: 4% auto;
}

.vgl-spotlight-page__gallery .openSlider .image-cont img {
    cursor: zoom-in;
    transition: opacity 0.5s;
    display: block;
    width: auto;
    max-height: calc(50vh - 30px) !important;
}

.vgl-spotlight-page__gallery .openSlider .image-cont img:hover {
    opacity: 0;
}

.vgl-spotlight-page__gallery .openSlider .slick-dots li.slick-active button:before {
    color: var(--vgl-color-primary);
}

.vgl-spotlight-page__gallery .openSlider > div .slick-slide {
    text-align: center;
    outline: none;
}

.vgl-spotlight-page__gallery .openSlider.not_slick > div {
    width: 60vh !important;
    height: auto !important;
    text-align: center;
}

.vgl-spotlight-page__gallery .main-product-photo .s-a-h {
    opacity: 0;
    pointer-events: none;
}

/* AI image prompts must not appear as visible captions in the article body */
.vgl-spotlight-page__body figcaption {
    display: none;
}

/* Icecat gallery is rendered above the body — skip duplicate hero block in content */
.vgl-spotlight-page:has(.vgl-spotlight-page__gallery) .vgl-spotlight-page__body > .wp-block-image:first-child,
.vgl-spotlight-page:has(.vgl-spotlight-page__gallery) .vgl-spotlight-page__body > figure.wp-block-image:first-child {
    display: none;
}

.vgl-spotlight-page__body > h2:first-of-type {
    margin-top: 0;
}

@media (max-width: 640px) {
    .vgl-spotlight-page__product-link .vgl-btn {
        width: 100%;
        text-align: center;
    }

    .vgl-spotlight-page__gallery .main-product-photo .image-cont {
        min-height: 220px;
    }

    .vgl-spotlight-page__gallery .main-product-photo img {
        max-height: 280px;
    }

    .vgl-spotlight-page__gallery .openSlider > div {
        max-width: 80% !important;
        height: 60% !important;
    }

    .vgl-spotlight-page__gallery .openSlider > div .image-cont img:hover {
        opacity: 1 !important;
    }
}
