/* BV GALERIJA – tri kartice na domači strani. */

/* BV GALERIJA / HOME – slogi so omejeni samo na to komponento. */
.bv-gallery-home {
    width: 100%;
    margin: 18px 0 24px;
}

.bv-gallery-home-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    color: #14283e;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.bv-gallery-home-kicker {
    color: #8a4b08;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bv-gallery-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bv-gallery-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #3e6a8c;
    border-radius: 12px;
    background: #0b1d31;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bv-gallery-home-card:hover,
.bv-gallery-home-card:focus-visible {
    transform: translateY(-3px);
    border-color: #e8c17a;
    box-shadow: 0 12px 23px rgba(0, 0, 0, 0.35);
}

.bv-gallery-home-picture {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #17385a, #340b2b);
}

.bv-gallery-home-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: transform 450ms ease;
}

/* Pokončna fotografija je vidna v celoti, ob straneh ostane temen okvir. */
.bv-gallery-home-image--portrait {
    object-fit: contain;
    background: #081522;
}

.bv-gallery-home-card:hover .bv-gallery-home-image {
    transform: scale(1.045);
}

.bv-gallery-home-picture::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(2, 10, 20, 0.62), transparent);
    pointer-events: none;
}

.bv-gallery-home-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 12px 13px 14px;
    border-top: 4px solid var(--bv-gallery-accent, #e0bc78);
}

.bv-gallery-home-category {
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.2;
    font-weight: 900;
}

.bv-gallery-home-desc {
    color: #bfd1e4;
    font-size: 12px;
    line-height: 1.4;
}

.bv-gallery-home-card--red {
    --bv-gallery-accent: #df2544;
}

.bv-gallery-home-card--gold {
    --bv-gallery-accent: #e2b650;
}

.bv-gallery-home-card--blue {
    --bv-gallery-accent: #2b9be9;
}

.bv-gallery-home-card--red .bv-gallery-home-content {
    background: linear-gradient(140deg, #611022, #1b172e);
}

.bv-gallery-home-card--gold .bv-gallery-home-content {
    background: linear-gradient(140deg, #50401f, #18243b);
}

.bv-gallery-home-card--blue .bv-gallery-home-content {
    background: linear-gradient(140deg, #124772, #141e3a);
}

.bv-gallery-home-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #d5e3ee;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .bv-gallery-home-grid {
        grid-template-columns: 1fr;
    }

    .bv-gallery-home-picture {
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-gallery-home-card,
    .bv-gallery-home-image {
        transition: none;
    }
}

/* ==========================================================
   BV GALERIJA – PREGLED ALBUMOV IN ALBUM
   Ločeno od obstoječih .bv-gallery-home-* razredov.
   ========================================================== */

body.bv-gallery-page {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% -20%, #183353 0%, #0b1727 52%, #080d14 100%);
    color: #f4f7fc;
    font-family: Arial, Helvetica, sans-serif;
}

.bv-gallery-page *,
.bv-gallery-page *::before,
.bv-gallery-page *::after {
    box-sizing: border-box;
}

.bv-gallery-container {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 32px 0 90px;
}

.bv-gallery-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #92aac5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.bv-gallery-breadcrumb a {
    color: #c6d9ed;
    text-decoration: none;
}

.bv-gallery-breadcrumb a:hover {
    color: #e3bc6c;
}

.bv-gallery-heading {
    margin: 42px 0 30px;
}

.bv-gallery-eyebrow {
    color: #dfb665;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.bv-gallery-heading h1 {
    margin: 12px 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: 1px;
}

.bv-gallery-heading p {
    margin: 0;
    color: #c3d2e3;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.5;
}

.bv-gallery-album-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 880px;
}

.bv-gallery-album-card {
    display: block;
    overflow: hidden;
    border: 1px solid #355c7e;
    border-radius: 18px;
    background: #13263e;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.bv-gallery-album-card:hover,
.bv-gallery-album-card:focus-visible {
    transform: translateY(-5px);
    border-color: #e2b65c;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.bv-gallery-album-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8;
    background: #081522;
}

.bv-gallery-album-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: var(--bv-ken-start, scale(1.04));
    transition:
        opacity 2800ms ease-in-out,
        transform 3500ms cubic-bezier(0.2, 0.48, 0.45, 1);
    will-change: opacity, transform;
}

.bv-gallery-album-photo.is-portrait {
    object-fit: contain;
}

.bv-gallery-album-photo.is-active {
    opacity: 1;
    transform: var(--bv-ken-end, scale(1.12));
}

/* Med izginjanjem ohranimo zadnji položaj fotografije. */
.bv-gallery-album-photo.is-leaving {
    transition: opacity 2800ms ease-in-out;
}


.bv-gallery-album-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(1, 9, 19, 0.88), transparent 68%);
    pointer-events: none;
}

.bv-gallery-album-onphoto {
    position: absolute;
    bottom: clamp(14px, 4%, 34px);
    left: clamp(16px, 4%, 38px);
    right: 18px;
    display: grid;
    gap: 10px;
    pointer-events: none;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.bv-gallery-year {
    color: #f1c77c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.bv-gallery-album-onphoto strong {
    font-size: clamp(22px, 4.5vw, 44px);
    letter-spacing: 0.6px;
    line-height: 1.1;
}

/* Barvna zgodba v naslovu: zelena do sredine, rdeča od sredine naprej. */
.bv-gallery-title-green {
    color: #A8F2A6;
    text-shadow: 0 0 9px rgba(57, 220, 104, 0.24);
}

.bv-gallery-title-red {
    color: #E8EDF3;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.12);
}

.bv-gallery-visual-hint {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.bv-gallery-album-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 26px;
    border-top: 3px solid #d1a34f;
    background: linear-gradient(130deg, #1d3c5e, #181e3c);
}

.bv-gallery-album-info h2 {
    margin: 0 0 7px;
    font-size: 23px;
}

.bv-gallery-album-info p {
    margin: 0;
    color: #c6d6e7;
    font-size: 13px;
    line-height: 1.45;
}

.bv-gallery-album-link {
    flex-shrink: 0;
    color: #f1c77c;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.bv-gallery-album-missing,
.bv-gallery-no-albums {
    padding: 42px;
    color: #c1d5ea;
    background: #152940;
    text-align: center;
    border-radius: 14px;
}

.bv-gallery-photo-grid {
    columns: 3 245px;
    column-gap: 14px;
}

.bv-gallery-photo-item {
    display: block;
    break-inside: avoid;
    margin: 0 0 14px;
    overflow: hidden;
    border-radius: 9px;
    background: #162940;
}

.bv-gallery-photo-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 300ms ease, filter 300ms ease;
}

.bv-gallery-photo-item:hover img {
    transform: scale(1.035);
    filter: brightness(1.08);
}

.bv-gallery-lightbox {
    position: fixed;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 30px 70px;
    border: 0;
    background: rgba(3, 8, 15, 0.97);
    color: white;
}

.bv-gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.bv-gallery-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bv-gallery-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.bv-gallery-lightbox-close,
.bv-gallery-lightbox-prev,
.bv-gallery-lightbox-next {
    position: absolute;
    border: 1px solid #597b98;
    border-radius: 50%;
    background: #14263e;
    color: white;
    cursor: pointer;
    font-size: 34px;
}

.bv-gallery-lightbox-close {
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
}

.bv-gallery-lightbox-prev,
.bv-gallery-lightbox-next {
    top: 50%;
    width: 45px;
    height: 54px;
    transform: translateY(-50%);
}

.bv-gallery-lightbox-prev {
    left: 12px;
}

.bv-gallery-lightbox-next {
    right: 12px;
}

.bv-gallery-lightbox-count {
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    color: #e3bc6c;
    font-size: 13px;
}

@media (max-width: 700px) {
    .bv-gallery-container {
        width: calc(100% - 24px);
        padding-top: 20px;
    }

    .bv-gallery-album-visual {
        aspect-ratio: 4 / 3;
    }

    .bv-gallery-album-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .bv-gallery-lightbox {
        padding: 56px 30px;
    }

    .bv-gallery-lightbox-prev,
    .bv-gallery-lightbox-next {
        width: 28px;
        height: 44px;
        font-size: 24px;
    }

    .bv-gallery-lightbox-prev {
        left: 1px;
    }

    .bv-gallery-lightbox-next {
        right: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-gallery-album-card,
    .bv-gallery-album-photo,
    .bv-gallery-photo-item img {
        transition: none;
    }
}

/* BV GALERIJA / ALBUM – napredek zgodbe med naslovnico in opisom. */
.bv-gallery-progress {
    position: relative;
    height: 29px;
    background: linear-gradient(90deg, #101d30, #182946);
    border-top: 1px solid rgba(239, 193, 100, 0.36);
    border-bottom: 1px solid rgba(239, 193, 100, 0.28);
}

.bv-gallery-progress-track {
    position: absolute;
    top: 13px;
    left: 20px;
    right: 76px;
    height: 3px;
    background: rgba(164, 188, 216, 0.24);
    border-radius: 100px;
    overflow: hidden;
}

.bv-gallery-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #b98731, #f9d77b);
    border-radius: inherit;
    box-shadow: 0 0 9px rgba(248, 196, 82, 0.75);
    transition: width 3000ms linear;
}

.bv-gallery-progress-dots {
    position: absolute;
    inset: 0 76px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.bv-gallery-progress-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid rgba(201, 220, 238, 0.55);
    border-radius: 50%;
    background: #203855;
    box-shadow: 0 0 0 2px #15243a;
    transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.bv-gallery-progress-dot.is-seen {
    background: #c69a43;
    border-color: #efc56c;
}

.bv-gallery-progress-dot.is-current {
    background: #ffe09a;
    border-color: #ffe09a;
    box-shadow: 0 0 0 3px rgba(244, 183, 59, 0.2), 0 0 12px 3px rgba(255, 203, 99, 0.75);
}

.bv-gallery-progress-count {
    position: absolute;
    top: 0;
    right: 15px;
    display: flex;
    align-items: center;
    height: 100%;
    color: #efcc83;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .bv-gallery-progress-fill,
    .bv-gallery-progress-dot {
        transition: none;
    }
}


/* BV GALERIJA / album – navigacija in celozaslonska projekcija. */
.bv-gallery-back-link {
    display: inline-flex;
    align-items: center;
    margin: 18px 0 6px;
    padding: 10px 16px;
    border: 1px solid rgba(224, 188, 120, 0.56);
    border-radius: 100px;
    background: rgba(22, 43, 69, 0.92);
    color: #f1d397;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease;
}

.bv-gallery-back-link:hover,
.bv-gallery-back-link:focus-visible {
    background: #294767;
    border-color: #f1d397;
}

.bv-gallery-lightbox:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: #03080f;
}

.bv-gallery-lightbox-toolbar {
    position: absolute;
    bottom: 18px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 25px);
    transform: translateX(-50%);
    z-index: 2;
}

.bv-gallery-lightbox-autoplay,
.bv-gallery-lightbox-fullscreen {
    padding: 9px 13px;
    border: 1px solid #597b98;
    border-radius: 100px;
    background: rgba(20, 38, 62, 0.92);
    color: #f5dfab;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.bv-gallery-lightbox-autoplay:hover,
.bv-gallery-lightbox-fullscreen:hover,
.bv-gallery-lightbox-autoplay:focus-visible,
.bv-gallery-lightbox-fullscreen:focus-visible {
    background: #294767;
    border-color: #f2d08c;
}

.bv-gallery-lightbox-toolbar .bv-gallery-lightbox-count {
    position: static;
    display: inline-block;
    min-width: 54px;
    transform: none;
    text-align: center;
    font-size: 13px;
}

.bv-gallery-lightbox-img {
    max-height: calc(100vh - 125px);
}

@media (max-width: 700px) {
    .bv-gallery-lightbox-toolbar {
        gap: 5px;
        bottom: 10px;
    }

    .bv-gallery-lightbox-autoplay,
    .bv-gallery-lightbox-fullscreen {
        padding: 8px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .bv-gallery-lightbox-toolbar .bv-gallery-lightbox-count {
        min-width: 38px;
        font-size: 11px;
    }
}


/* =============================================================
   BV GALERIJA – filmski prehodi samo v AUTO LOOP popupu.
   Naslovnica albuma in termometer ostaneta nespremenjena.
   ============================================================= */
.bv-gallery-lightbox-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 125px);
    overflow: hidden;
    background: #03080f;
    isolation: isolate;
}

.bv-gallery-lightbox-stage .bv-gallery-lightbox-frame {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    backface-visibility: hidden;
    transform-origin: center;
}

.bv-gallery-lightbox-stage .bv-gallery-lightbox-frame.is-visible {
    opacity: 1;
}

.bv-gallery-lightbox-stage .bv-gallery-lightbox-frame[class*="bv-gallery-enter-"],
.bv-gallery-lightbox-stage .bv-gallery-lightbox-frame[class*="bv-gallery-leave-"] {
    animation-duration: var(--bv-popup-transition, 1250ms);
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
}

/* Nezen klasicen fade skozi kratko zatemnitev. */
.bv-gallery-enter-fade {
    animation-name: bv-gallery-fade-in;
}
.bv-gallery-leave-fade {
    animation-name: bv-gallery-fade-out;
}
@keyframes bv-gallery-fade-in {
    0%, 45% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes bv-gallery-fade-out {
    0% { opacity: 1; }
    55%, 100% { opacity: 0; }
}

/* Prekrivanje dveh fotografij brez zatemnitve. */
.bv-gallery-enter-crossfade {
    animation-name: bv-gallery-cross-in;
}
.bv-gallery-leave-crossfade {
    animation-name: bv-gallery-cross-out;
}
@keyframes bv-gallery-cross-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bv-gallery-cross-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Drsenje od desne proti levi. */
.bv-gallery-enter-slide {
    animation-name: bv-gallery-slide-in;
}
.bv-gallery-leave-slide {
    animation-name: bv-gallery-slide-out;
}
@keyframes bv-gallery-slide-in {
    from { opacity: 0.75; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes bv-gallery-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0.75; transform: translateX(-100%); }
}

/* Pocasno priblizevanje z mehkim prelivanjem. */
.bv-gallery-enter-zoom {
    animation-name: bv-gallery-zoom-in;
}
.bv-gallery-leave-zoom {
    animation-name: bv-gallery-zoom-out;
}
@keyframes bv-gallery-zoom-in {
    from { opacity: 0; transform: scale(0.93); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes bv-gallery-zoom-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.07); }
}

/* Razkritje nove slike z leve proti desni. */
.bv-gallery-enter-wipe {
    animation-name: bv-gallery-wipe-in;
}
.bv-gallery-leave-wipe {
    animation-name: bv-gallery-wipe-out;
}
@keyframes bv-gallery-wipe-in {
    from { opacity: 1; clip-path: inset(0 100% 0 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes bv-gallery-wipe-out {
    from { opacity: 1; }
    to { opacity: 1; }
}

/* Cinematic: mehak zoom, rahlo zatemnjen prehod. */
.bv-gallery-enter-cinematic {
    animation-name: bv-gallery-cinematic-in;
}
.bv-gallery-leave-cinematic {
    animation-name: bv-gallery-cinematic-out;
}
@keyframes bv-gallery-cinematic-in {
    from { opacity: 0; transform: scale(1.09); filter: brightness(0.55); }
    to { opacity: 1; transform: scale(1); filter: brightness(1); }
}
@keyframes bv-gallery-cinematic-out {
    from { opacity: 1; transform: scale(1); filter: brightness(1); }
    to { opacity: 0; transform: scale(0.97); filter: brightness(0.55); }
}

@media (max-width: 700px) {
    .bv-gallery-lightbox-stage {
        height: calc(100vh - 150px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-gallery-lightbox-stage .bv-gallery-lightbox-frame {
        animation: none !important;
    }
}

/* =============================================================
   BV GALERIJA – rezijska konzola in tekoci zlati trak AUTO LOOP.
   Velja samo za popup; naslovnica in njen termometer ostaneta ista.
   ============================================================= */

.bv-gallery-lightbox-toolbar {
    bottom: 33px;
    z-index: 5;
    gap: 9px;
}

.bv-gallery-lightbox-order {
    padding: 9px 13px;
    border: 1px solid #597b98;
    border-radius: 100px;
    background: rgba(20, 38, 62, 0.92);
    color: #f5dfab;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.bv-gallery-lightbox-order:hover,
.bv-gallery-lightbox-order:focus-visible {
    background: #294767;
    border-color: #f2d08c;
}

.bv-gallery-lightbox-progress {
    position: absolute;
    right: 70px;
    bottom: 14px;
    left: 70px;
    z-index: 5;
    height: 5px;
    pointer-events: none;
}

.bv-gallery-lightbox-progress-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 100px;
    background: rgba(159, 182, 207, 0.25);
}

.bv-gallery-lightbox-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #B47B20, #FFD66A);
    box-shadow: 0 0 8px rgba(245, 194, 78, 0.65);
    transition: none;
}

.bv-gallery-lightbox-stage {
    height: calc(100vh - 165px);
}

@media (max-width: 700px) {
    .bv-gallery-lightbox-toolbar {
        bottom: 31px;
        gap: 5px;
    }

    .bv-gallery-lightbox-autoplay,
    .bv-gallery-lightbox-fullscreen,
    .bv-gallery-lightbox-order {
        padding: 7px 9px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .bv-gallery-lightbox-progress {
        right: 25px;
        bottom: 14px;
        left: 25px;
    }

    .bv-gallery-lightbox-stage {
        height: calc(100vh - 165px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-gallery-lightbox-progress-fill {
        transition: none !important;
    }
}
