/* ==========================================================================
   Johannesdal Village – Gallery redesign
   Plain CSS, no dependencies. Everything is scoped under .jv-gallery so it
   cannot clash with Bootstrap 4 / Bootstrap Material Design / Site.css.
   Brand colours and font come from the live site's Site.css.
   ========================================================================== */
.jv-gallery, .jv-lb {
    --jv-olive: #616129;       /* nav accent + agent buttons */
    --jv-olive-dark: #4d4d20;
    --jv-gunmetal: #292f36;    /* footer + headings */
    --jv-shadowblue: #778DA9;  /* section headings */
    --jv-fulvous: #E18426;     /* accent */
    --jv-sand: #f6f4ee;
    --jv-line: #e4e1d8;
    --jv-radius: 10px;
    --jv-gap: 12px;
}
.jv-gallery {
    font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    color: var(--jv-gunmetal);
    background: #fff;
    overflow-x: clip;
}
.jv-gallery *, .jv-gallery *::before, .jv-gallery *::after { box-sizing: border-box; }
.jv-gallery img { padding: 0; max-width: 100%; }
.jv-gallery a { text-decoration: none; }
.jv-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.jv-btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .95em 1.6em .8em; border-radius: 999px;
    font: 600 .82rem/1 'Josefin Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase;
    border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.jv-btn:hover { transform: translateY(-1px); }
.jv-btn--primary { background: var(--jv-olive); color: #fff !important; }
.jv-btn--primary:hover { background: var(--jv-olive-dark); }
.jv-btn--ghost { border-color: rgba(255,255,255,.75); color: #fff !important; background: rgba(255,255,255,.06); }
.jv-btn--ghost:hover { background: #fff; color: var(--jv-gunmetal) !important; }
.jv-btn--outline { border-color: var(--jv-olive); color: var(--jv-olive) !important; background: transparent; }
.jv-btn--outline:hover { background: var(--jv-olive); color: #fff !important; }
.jv-btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Hero ---------- */
.jv-hero {
    position: relative; min-height: min(68vh, 620px); display: flex; align-items: flex-end;
    color: #fff; background: var(--jv-gunmetal) center / cover no-repeat;
    isolation: isolate;
}
.jv-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.jv-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(41,47,54,.05) 0%, rgba(41,47,54,.25) 45%, rgba(29,33,38,.85) 100%);
}
.jv-hero__inner { width: 100%; padding-top: 120px; padding-bottom: 56px; }
.jv-eyebrow {
    display: inline-flex; align-items: center; gap: .75em;
    font-size: .8rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: #f3e2cf;
}
.jv-eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--jv-fulvous); }
.jv-hero h1 {
    font-family: 'Josefin Sans', sans-serif; font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1; letter-spacing: .04em; text-transform: uppercase; margin: .35em 0 .25em; color: #fff;
}
.jv-hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 300; max-width: 34em; margin: 0 0 1.6em; line-height: 1.45; color: rgba(255,255,255,.92); }
.jv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jv-hero__stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.jv-hero__stats strong { color: #fff; font-weight: 600; font-size: 1.05rem; margin-right: .35em; }

/* ---------- Filter bar ---------- */
.jv-filters {
    position: sticky; top: 0; z-index: 5;
    background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--jv-line);
}
.jv-filters__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.jv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0; padding: 2px; list-style: none; }
.jv-chips::-webkit-scrollbar { display: none; }
.jv-chip {
    flex: none; display: inline-flex; align-items: center; gap: .55em;
    padding: .75em 1.15em .6em; border-radius: 999px; border: 1px solid var(--jv-line); background: #fff;
    font: 500 .85rem/1 'Josefin Sans', sans-serif; color: var(--jv-gunmetal); cursor: pointer; transition: all .2s;
}
.jv-chip:hover { border-color: var(--jv-olive); color: var(--jv-olive); }
.jv-chip[aria-pressed="true"] { background: var(--jv-gunmetal); border-color: var(--jv-gunmetal); color: #fff; }
.jv-chip__count { font-size: .72rem; opacity: .65; }
.jv-filters .jv-btn { padding: .8em 1.3em .65em; }
@media (max-width: 760px) {
    .jv-filters .jv-btn { display: none; }
    .jv-hero { min-height: 560px; }
    .jv-hero::after { background: linear-gradient(180deg, rgba(41,47,54,.15) 0%, rgba(29,33,38,.55) 40%, rgba(29,33,38,.92) 100%); }
    .jv-eyebrow { font-size: .7rem; letter-spacing: .2em; }
    .jv-eyebrow::before { width: 28px; }
    .jv-hero__stats { gap: 6px 18px; font-size: .75rem; }
    .jv-hero .jv-btn { padding: .9em 1.2em .75em; font-size: .75rem; }
    .jv-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Sections ---------- */
.jv-section { padding: 56px 0 8px; }
.jv-section[hidden], .jv-group[hidden], .jv-tile[hidden] { display: none !important; }
.jv-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.jv-section__title {
    font-family: 'Josefin Sans', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300;
    letter-spacing: .06em; text-transform: uppercase; margin: 0; color: var(--jv-gunmetal); padding: 0;
}
.jv-section__title::before { content: ""; display: inline-block; vertical-align: middle; width: 56px; height: 2px; background: var(--jv-gunmetal); margin: 0 14px 6px 0; }
.jv-section__intro { margin: 0; max-width: 38em; color: #5c636b; font-size: 1rem; line-height: 1.5; }
.jv-group { margin-bottom: 36px; }
.jv-group__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.jv-group__title { font-family: 'Josefin Sans', sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--jv-shadowblue); margin: 0; padding: 0; }
.jv-group__sub { color: var(--jv-gunmetal); font-weight: 400; letter-spacing: .08em; text-transform: none; font-size: .95rem; margin-left: .6em; }
.jv-group__sub::before { content: "·"; margin-right: .6em; color: var(--jv-shadowblue); }
.jv-group__link { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--jv-olive) !important; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.jv-group__link:hover { color: var(--jv-fulvous) !important; }
/* Optional intro text for a group (e.g. the October 2026 bird photos) */
.jv-group__intro { max-width: 52em; margin: 0 0 18px; padding: 18px 22px 6px; background: var(--jv-sand); border-left: 3px solid var(--jv-fulvous); border-radius: 0 var(--jv-radius) var(--jv-radius) 0; }
.jv-group__intro-title { font-family: 'Josefin Sans', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--jv-gunmetal); margin: 0 0 10px; padding: 0; line-height: 1.3; }
.jv-group__intro p { margin: 0 0 12px; color: #5c636b; font-size: 1rem; line-height: 1.6; }
.jv-group__intro em { font-style: italic; color: var(--jv-gunmetal); }
@media (max-width: 600px) { .jv-group__intro { padding: 14px 16px 4px; } .jv-group__intro p { font-size: .95rem; } }
.jv-badge { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .45em .8em .3em; border-radius: 4px; background: #efe9dc; color: #7a6a45; }
.jv-badge--sold { background: #f4e3d2; color: #a35a12; }

/* ---------- Grid ---------- */
.jv-grid {
    container-type: inline-size;
    display: grid; gap: var(--jv-gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: calc((100cqw - 2 * var(--jv-gap)) / 3 * .62);
    grid-auto-flow: dense;
}
@media (max-width: 900px) {
    .jv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - var(--jv-gap)) / 2 * .66); }
    .jv-gallery { --jv-gap: 8px; }
}
.jv-tile {
    position: relative; overflow: hidden; border-radius: var(--jv-radius); background: #e9e6df;
    margin: 0; cursor: zoom-in;
}
.jv-tile--feature { grid-column: span 2; grid-row: span 2; }
@media (min-width: 901px) { .jv-tile--wide { grid-column: span 2; } .jv-tile--wide figcaption { opacity: 1; transform: none; } }
.jv-tile a { position: absolute; inset: 0; display: block; outline-offset: -3px; }
.jv-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: 0;
}
.jv-tile img.is-loaded { opacity: 1; }
.jv-tile:hover img, .jv-tile a:focus-visible img { transform: scale(1.045); }
.jv-tile figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(20,24,28,.78));
    color: #fff; font-size: .9rem; line-height: 1.3; letter-spacing: .02em;
    opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.jv-tile:hover figcaption, .jv-tile a:focus-visible + figcaption, .jv-tile--feature figcaption { opacity: 1; transform: none; }
.jv-tile--feature figcaption { font-size: 1.05rem; padding: 60px 20px 18px; }
.jv-tile__tag { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-bottom: 3px; }
@media (hover: none) { .jv-tile figcaption { display: none; } .jv-tile--feature figcaption { display: block; } }

/* ---------- CTA band ---------- */
.jv-cta {
    margin: 48px 0 8px; border-radius: 16px; overflow: hidden; position: relative; isolation: isolate;
    background: var(--jv-gunmetal); color: #fff;
}
.jv-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.jv-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(41,47,54,.95) 0%, rgba(41,47,54,.7) 55%, rgba(41,47,54,.25) 100%); }
.jv-cta__inner { padding: clamp(32px, 5vw, 64px); max-width: 640px; }
.jv-cta h2 { font-family: 'Josefin Sans', sans-serif; font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: .05em; text-transform: uppercase; margin: 0 0 .5em; color: #fff; }
.jv-cta h2::before { display: none; }
.jv-cta p { font-weight: 300; font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.5em; color: rgba(255,255,255,.9); }
.jv-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.jv-insta { display: flex; align-items: center; gap: 20px; justify-content: center; padding: 40px 0 64px; color: #5c636b; text-align: left; }
.jv-insta a { color: var(--jv-olive) !important; font-weight: 600; }
.jv-insta img { width: 92px; height: auto; }
.jv-insta svg { width: 1em; height: 1em; vertical-align: -.12em; margin-left: .25em; }
@media (max-width: 760px) { .jv-insta img { display: none; } .jv-insta { text-align: center; } }

/* ---------- Lightbox ---------- */
.jv-lb {
    position: fixed; inset: 0; z-index: 2000; display: none;
    background: rgba(14,17,20,.985); color: #fff; font-family: 'Josefin Sans', Helvetica, Arial, sans-serif;
    }
.jv-lb__stage { touch-action: none; }
.jv-lb.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.jv-lb__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.jv-lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 72px; overflow: hidden; }
.jv-lb__img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none;
    transition: opacity .25s, transform .25s, filter .4s; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.jv-lb__img.is-low { filter: blur(6px); }
.jv-lb__img[hidden], .jv-lb__video[hidden] { display: none; }
.jv-lb__video { max-width: 100%; max-height: 100%; border-radius: 6px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.45); }

/* Video tiles: play badge over the poster thumbnail */
.jv-tile--video a::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
    border-radius: 50%; background: rgba(20,24,28,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
    border: 2px solid rgba(255,255,255,.85); transition: transform .25s, background-color .25s; pointer-events: none;
}
.jv-tile--video:hover a::after { transform: scale(1.08); background-color: rgba(97,97,41,.85); }
.jv-tile--video { cursor: pointer; }
.jv-tile__dur {
    position: absolute; top: 10px; right: 10px; z-index: 1; pointer-events: none;
    padding: .4em .6em .25em; border-radius: 4px; background: rgba(20,24,28,.72); color: #fff;
    font: 600 .75rem/1 'Josefin Sans', sans-serif; letter-spacing: .06em;
}

/* Extra tile shapes (October 2026 views & wildlife) */
.jv-tile--tall { grid-row: span 2; }                     /* portrait photos */
.jv-tile--pano { grid-column: 1 / -1; }                  /* wide panoramas: full width */
@media (min-width: 901px) { .jv-tile--pano { grid-row: span 2; } }
.jv-tile--pano figcaption { opacity: 1; transform: none; }
@media (hover: none) { .jv-tile--pano figcaption { display: block; } }
.jv-lb__spinner { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: jv-spin .8s linear infinite; display: none; }
.jv-lb.is-loading .jv-lb__spinner { display: block; }
@keyframes jv-spin { to { transform: rotate(360deg); } }
.jv-lb__btn {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.jv-lb__btn:hover, .jv-lb__btn:focus-visible { background: rgba(255,255,255,.22); }
.jv-lb__btn svg { width: 22px; height: 22px; }
.jv-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.jv-lb__nav--prev { left: 14px; } .jv-lb__nav--next { right: 14px; }
.jv-lb__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px 22px; }
.jv-lb__caption { font-size: 1.05rem; line-height: 1.35; }
.jv-lb__caption small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--jv-fulvous, #E18426); margin-bottom: 4px; }
.jv-lb__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jv-lb .jv-btn--ghost { border-color: rgba(255,255,255,.45); }
@media (max-width: 760px) {
    .jv-lb__stage { padding: 0; }
    .jv-lb__nav { display: none; }
    .jv-lb__bottom { padding: 14px 16px 20px; }
    .jv-lb__actions { width: 100%; }
    .jv-lb__actions .jv-btn { flex: 1; justify-content: center; }
}
html.jv-lock, html.jv-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .jv-gallery *, .jv-lb * { transition: none !important; animation: none !important; } }
