.reklam-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    box-sizing: border-box;
    padding: clamp(16px, 4vh, 48px) clamp(16px, 4vw, 48px);
}

.reklam-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reklam-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 18, 18, 0.32);
    backdrop-filter: blur(2px);
}

.reklam-modal-shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(1080px, 100%);
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reklam-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(1, 54, 52, 0.92);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.reklam-slider {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.reklam-track {
    position: relative;
    width: 100%;
}

.reklam-slide {
    display: none;
    width: 100%;
}

.reklam-slide.is-active {
    display: block;
}

.reklam-slide-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.reklam-slide-media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    line-height: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    background: #0b1f1f;
}

.reklam-slide-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
}

.reklam-slide-copy {
    position: absolute;
    inset: auto 0 0;
    box-sizing: border-box;
    padding: 28px 20px 18px;
    padding-right: 148px;
    background: linear-gradient(180deg, rgba(8, 47, 47, 0) 0%, rgba(8, 47, 47, 0.88) 42%, rgba(8, 47, 47, 0.96) 100%);
    color: #fff;
    pointer-events: none;
    line-height: 1.4;
}

.reklam-slide-copy strong {
    display: block;
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.reklam-slide-copy p {
    margin: 8px 0 0;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.reklam-slide-cta {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--lime, #cce216);
    color: var(--ink, #082f2f);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reklam-slide-cta:hover,
.reklam-slide-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    color: var(--ink, #082f2f);
}

.reklam-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(1, 54, 52, 0.82);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.reklam-nav.prev {
    left: 10px;
}

.reklam-nav.next {
    right: 10px;
}

.reklam-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.reklam-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    pointer-events: auto;
}

.reklam-dots button.is-active {
    background: var(--lime, #cce216);
    transform: scale(1.15);
}

body.reklam-modal-open {
    overflow: hidden;
}

@media (max-width: 1080px) {
    .reklam-modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .reklam-modal-shell {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        margin-top: 12px;
    }

    .reklam-modal-close {
        top: 10px;
        right: 10px;
    }

    .reklam-slide-media {
        display: flex;
        flex-direction: column;
        max-height: none;
        overflow: hidden;
    }

    .reklam-slide-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: min(48dvh, 360px);
        flex: 0 0 auto;
        object-fit: contain;
        background: #0b1f1f;
    }

    .reklam-slide-copy {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        max-height: none;
        padding: 16px 16px 14px;
        background: linear-gradient(180deg, #0f3d3c 0%, #082f2f 100%);
        pointer-events: auto;
        line-height: 1.45;
    }

    .reklam-slide-copy strong {
        font-size: clamp(17px, 4.8vw, 22px);
    }

    .reklam-slide-copy p {
        margin-top: 8px;
        font-size: clamp(13px, 3.6vw, 15px);
    }

    .reklam-slide-cta {
        position: static;
        display: flex;
        width: 100%;
        margin: 0;
        min-height: 46px;
        border-radius: 0;
        box-sizing: border-box;
        box-shadow: none;
    }

    .reklam-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: min(24dvh, 180px);
    }

    .reklam-nav.prev {
        left: 6px;
    }

    .reklam-nav.next {
        right: 6px;
    }

    .reklam-dots {
        position: relative;
        bottom: auto;
        margin-top: 12px;
    }

    .reklam-dots button {
        background: rgba(1, 54, 52, 0.35);
    }

    .reklam-dots button.is-active {
        background: var(--lime, #cce216);
    }
}
