.wpip-shortcode,
[data-portfolio-info="true"],
[data-portfolio-info="1"] {
    font-family: 'IBM Plex Mono', monospace;
}

.wpip-shortcode {
    position: absolute;
    inset: 0;
    z-index: 30;
}

.wpip-shortcode .wpip-trigger {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.wpip-shortcode .screen-reader-text,
.wpip-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wpip-attribute-active {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.wpip-attribute-active a {
    pointer-events: none !important;
}

.wpip-hover-panel {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 31;
    background: #ffffff;
    color: #222222;
    padding: 18px;
    text-align: right;
    max-height: 100%;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.06);
}

/* Hover alleen zichtbaar zolang de muis echt op het item staat */
.elementor-portfolio-item:hover > .wpip-hover-panel,
.elementor-portfolio-item:focus-within > .wpip-hover-panel,
.wpip-attribute-active:hover > .wpip-hover-panel,
.wpip-attribute-active:focus-within > .wpip-hover-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wpip-info-card {
    background: #ffffff;
    color: #222222;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.wpip-card-title {
    display: none;
}

.wpip-card-title-large {
    margin: 0 0 24px;
    padding: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    color: #222222;
    text-align: right;
    background: #ffffff;
    letter-spacing: -0.4px;
}

.wpip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px 0;
    align-items: start;
    border-bottom: 1px solid #e7e7e7;
}

.wpip-label {
    text-align: left;   /* ← LINKS */
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #222222;
}

.wpip-value {
    text-align: right;  /* ← RECHTS */
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #222222;
}

.wpip-empty {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #222222;
    text-align: right;
    background: #ffffff;
    opacity: 1;
}

.wpip-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.wpip-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wpip-modal-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.28s ease;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 24%),
        rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(4px);
}

.wpip-modal.is-open .wpip-modal-backdrop {
    opacity: 1;
}

.wpip-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 32px));
    max-height: min(80vh, 820px);
    overflow: auto;
    background: #ffffff;
    color: #222222;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 28px;
    padding: 32px 32px 28px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.18);
    text-align: right;
    font-family: 'IBM Plex Mono', monospace;
    outline: none;
    opacity: 0;
    transform: scale(0.965) translateY(10px);
    transition:
        opacity 0.24s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.wpip-modal.is-open .wpip-modal-dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.wpip-modal-dialog::before,
.wpip-modal-dialog::after {
    display: none;
}

.wpip-modal .wpip-row {
    border-bottom-color: #e7e7e7;
}

.wpip-modal .wpip-card-title,
.wpip-modal .wpip-card-title-large {
    padding-top: 0;
}

body.wpip-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .wpip-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .wpip-modal {
        padding: 14px;
    }

    .wpip-modal-dialog {
        width: min(100vw - 20px, 760px);
        max-height: 86vh;
        padding: 24px 18px 20px;
        border-radius: 22px;
    }

    .wpip-card-title-large {
        font-size: 26px;
        margin-bottom: 18px;
    }
}

.wpip-card-header {
    margin-bottom: 24px;
}

.wpip-card-title-large {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
}

.wpip-card-category {
    margin-top: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    color: #ABABAB;
    text-align: right;
}


.wpip-inline-content {
    position: relative;
    display: block;
    width: 100%;
}

.wpip-inline-content .wpip-info-card {
    background: transparent;
    box-shadow: none;
}

.wpip-language-switch {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* ← BELANGRIJK */
    width: 100% !important;               /* ← zodat hij naar rechts kan duwen */
    text-align: right !important;
}

.wpip-language-option {
    display: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #ABABAB !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    text-align: right !important;
    transition:
        color 0.18s ease !important,
        transform 0.18s ease !important,
        opacity 0.18s ease !important;
}

.wpip-language-option.is-visible {
    display: inline-block !important;
    opacity: 1 !important;
}

.wpip-language-option:hover,
.wpip-language-option:focus,
.wpip-language-option:active {
    color: #222222 !important;
    outline: none !important;
}

.wpip-language-option:active {
    transform: translateY(1px) !important;
}
