.vdp-single {
    --vdp-accent: #111827;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #0f172a;
    max-width: 880px;
    margin: 0 auto;
    padding: 42px 20px 64px;
}

.vdp-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.vdp-title {
    font-size: 36px;
    margin: 0;
    letter-spacing: -0.02em;
}

.vdp-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 18px;
}

.vdp-meta {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.vdp-pill {
    background: rgba(17, 24, 39, 0.08);
    color: #0f172a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.vdp-pill--muted {
    background: rgba(100, 116, 139, 0.15);
    color: #475569;
}

.vdp-cover img {
    width: 100%;
    border-radius: 14px;
    display: block;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.vdp-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    line-height: 1.7;
}

.vdp-long-text p {
    margin: 0 0 14px;
}

.vdp-long-text,
.vdp-long-text p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vdp-gallery {
    display: grid;
    gap: 16px;
}

.vdp-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
}

.vdp-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.vdp-gallery.layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.vdp-gallery.layout-grid figure {
    aspect-ratio: 1 / 1;
}

.vdp-gallery.layout-masonry {
    display: block;
    column-count: 3;
    column-gap: 16px;
}

.vdp-gallery.layout-masonry:not(.is-ready) img {
    opacity: 0;
}

.vdp-gallery.layout-masonry.is-ready img {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

.vdp-gallery.layout-masonry figure {
    break-inside: avoid;
    margin: 0 0 16px;
}

.vdp-gallery.layout-minimal {
    grid-template-columns: 1fr;
}

.vdp-gallery.layout-carousel {
    display: grid;
    gap: 12px;
}

.vdp-gallery.layout-carousel .vdp-gallery-stage {
    position: relative;
}

.vdp-gallery.layout-carousel .vdp-gallery-track {
    display: grid;
}

.vdp-gallery.layout-carousel figure {
    aspect-ratio: 16 / 10;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15);
    width: 100%;
    display: none;
}

.vdp-gallery.layout-carousel figure.is-active {
    display: block;
    outline: 2px solid var(--vdp-accent, #0ea5e9);
    outline-offset: 2px;
}

.vdp-gallery.layout-carousel .vdp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    border: 0;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.vdp-gallery.layout-carousel .vdp-gallery-nav:is(:hover, :focus-visible) {
    background: rgba(14, 165, 233, 0.85);
}

.vdp-gallery.layout-carousel .vdp-gallery-nav.is-prev {
    left: 10px;
}

.vdp-gallery.layout-carousel .vdp-gallery-nav.is-next {
    right: 10px;
}

.vdp-gallery.layout-carousel .vdp-gallery-nav::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.vdp-gallery.layout-carousel .vdp-gallery-nav.is-prev::before {
    transform: rotate(-135deg);
}

.vdp-gallery.layout-carousel .vdp-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--vdp-accent, #0ea5e9) rgba(15, 23, 42, 0.1);
}

.vdp-gallery.layout-carousel .vdp-gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.vdp-gallery.layout-carousel .vdp-gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
}

.vdp-gallery.layout-carousel .vdp-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--vdp-accent, #0ea5e9);
    border-radius: 999px;
}

.vdp-gallery.layout-carousel .vdp-thumb {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    outline: 2px solid transparent;
    flex: 0 0 90px;
    scroll-snap-align: start;
}

.vdp-gallery.layout-carousel .vdp-thumb img {
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.vdp-gallery.layout-carousel .vdp-thumb.is-active,
.vdp-gallery.layout-carousel .vdp-thumb:focus-visible {
    outline-color: var(--vdp-accent, #0ea5e9);
}
.vdp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 20px;
}
.vdp-lightbox img {
    max-width: min(960px, 100%);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    touch-action: none;
    transform: translate(0, 0) scale(1);
}
.vdp-lightbox-open {
    overflow: hidden;
}

.vdp-video video {
    width: 100%;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
}

.vdp-embed iframe,
.vdp-embed .vdp-embed-code {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.vdp-embed-code {
    padding: 12px;
}

.vdp-single a {
    color: var(--vdp-accent);
}

@media (max-width: 768px) {
    .vdp-gallery {
        gap: 12px;
    }

    .vdp-gallery.layout-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .vdp-gallery.layout-masonry {
        column-gap: 12px;
    }

    .vdp-gallery.layout-carousel .vdp-gallery-nav {
        width: 36px;
        height: 36px;
    }

    .vdp-gallery.layout-carousel .vdp-gallery-thumbs {
        grid-auto-flow: column;
        grid-auto-columns: minmax(72px, 1fr);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .vdp-lightbox {
        padding: 0;
    }

    .vdp-lightbox img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 900px) {
    .vdp-gallery.layout-masonry {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .vdp-title {
        font-size: 28px;
    }

    .vdp-gallery {
        gap: 12px;
    }

    .vdp-gallery.layout-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vdp-gallery.layout-grid figure,
    .vdp-gallery.layout-carousel figure {
        aspect-ratio: 4 / 3;
    }

    .vdp-gallery.layout-masonry {
        column-count: 1;
        column-gap: 0;
    }
}
