.jvf-core { --jvf-accent: #195d4b; --jvf-line: #d7dfdb; color: inherit; font: inherit; }
.jvf-core, .jvf-core * { box-sizing: border-box; }
.jvf-core .jvf-title { margin: 0 0 1.25rem; padding: 0; color: inherit; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.25; }
.jvf-core .jvf-documents { list-style: none; margin: 0; padding: 0; }
.jvf-core .jvf-document { padding: 1rem 0; border-bottom: 1px solid var(--jvf-line); overflow-wrap: anywhere; }
.jvf-core .jvf-document:first-child { border-top: 1px solid var(--jvf-line); }
.jvf-core .jvf-document-link { display: inline-flex; align-items: flex-start; gap: .5em; max-width: 100%; color: var(--jvf-accent); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.jvf-core .jvf-document-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .15em; }
.jvf-core .jvf-document-title { min-width: 0; overflow-wrap: anywhere; }
.jvf-core .jvf-file-meta { display: block; font-size: .85em; margin-top: .2rem; }
.jvf-core .jvf-description { margin: .5rem 0 0; padding: 0; white-space: normal; }
.jvf-core .jvf-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.jvf-core .jvf-figure { margin: 0; min-width: 0; }
.jvf-core .jvf-gallery-link { display: block; border-radius: .4rem; overflow: hidden; }
.jvf-core .jvf-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.jvf-core figcaption { margin-top: .5rem; font-size: .9em; overflow-wrap: anywhere; }
.jvf-core a:focus-visible, .jvf-lightbox button:focus-visible { outline: 3px solid #986000; outline-offset: 4px; }
.jvf-core .jvf-album-year + .jvf-album-year { margin-top: 2.5rem; }
.jvf-core .jvf-album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.jvf-core .jvf-album-card { margin: 0; padding: 0; min-width: 0; }
.jvf-core .jvf-album-link { display: block; height: 100%; border: 1px solid var(--jvf-line); border-radius: .5rem; color: inherit; text-decoration: none; background: transparent; }
.jvf-core .jvf-album-cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem .5rem 0 0; }
.jvf-core .jvf-album-info { display: block; padding: 1rem; }
.jvf-core .jvf-album-name { display: block; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.jvf-core .jvf-album-count { display: block; margin-top: .35rem; font-size: .85em; }
.jvf-core .jvf-album-link:hover .jvf-album-name { text-decoration: underline; text-underline-offset: .18em; }
.jvf-core.jvf-album-description p:last-child { margin-bottom: 0; padding-bottom: 0; }
@media (max-width: 980px) { .jvf-core .jvf-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .jvf-core .jvf-album-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .jvf-core .jvf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .jvf-core .jvf-gallery { grid-template-columns: minmax(0, 1fr); } }
/* Opt in only on a dedicated Divi section/row/module. Leave it editable in Visual Builder. */
@supports selector(:has(*)) {
    body:not(.et-fb):not(:has(#et-fb-app)) .jvf-auto-hide-bilder:not(:has(.jvf-bilder)),
    body:not(.et-fb):not(:has(#et-fb-app)) .jvf-auto-hide-dokument:not(:has(.jvf-dokument)),
    body:not(.et-fb):not(:has(#et-fb-app)) .jvf-auto-hide-galleri:not(:has(.jvf-galleri)),
    body:not(.et-fb):not(:has(#et-fb-app)) .jvf-auto-hide-beskrivning:not(:has(.jvf-album-description)) { display: none !important; }
}
.jvf-lightbox { width: min(96vw, 1200px); max-width: 96vw; max-height: 94vh; padding: 1rem; border: 0; border-radius: .5rem; background: #101916; color: #fff; overflow: auto; }
.jvf-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.jvf-lightbox .jvf-lightbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.jvf-lightbox button { min-width: 44px; min-height: 44px; padding: .5rem .8rem; border: 1px solid #fff; border-radius: .25rem; background: #101916; color: #fff; font: inherit; cursor: pointer; }
.jvf-lightbox button:disabled { opacity: .5; cursor: default; }
.jvf-lightbox .jvf-close { margin-left: auto; }
.jvf-lightbox figure { margin: 0; }
.jvf-lightbox img { display: block; max-width: 100%; width: auto; height: auto; max-height: 66vh; margin: 0 auto; object-fit: contain; }
.jvf-lightbox figcaption, .jvf-lightbox .jvf-image-error { margin: .75rem 0 0; color: #fff; overflow-wrap: anywhere; }
.jvf-lightbox [hidden] { display: none !important; }
html.jvf-lightbox-open { overflow: hidden; }
