/* ==========================================================================
   VGROUP Web – fotogalerie
   ========================================================================== */
.vgw-root .vgw-gal { padding: 50px 0 64px; background: #fff; container-type: inline-size; }
.vgw-root .vgw-gal--embed { padding: 0; }
.vgw-root .vgw-gal__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; margin-bottom: 26px; }
.vgw-root .vgw-gal__intro { flex: 1 1 380px; }

/* odkaz na kalendář */
.vgw-root .vgw-gcal { position: relative; display: flex; align-items: center; gap: 16px; flex: 0 1 440px; min-width: 0; padding: 14px 18px 14px 14px; border-radius: 18px; background: linear-gradient(120deg, var(--vgw-primary) 0%, color-mix(in srgb, var(--vgw-primary) 78%, #3b6fe0) 100%); color: #fff; box-shadow: 0 12px 30px rgba(11, 31, 86, .22); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.vgw-root .vgw-gcal::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.vgw-root .vgw-gcal:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 31, 86, .3); color: #fff; }
.vgw-root .vgw-gcal__ico { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--vgw-accent); box-shadow: 0 6px 16px rgba(227, 19, 27, .4); }
.vgw-root .vgw-gcal__ico svg { width: 26px; height: 26px; }
.vgw-root .vgw-gcal__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vgw-root .vgw-gcal__txt strong { font-family: var(--vgw-font-display); font-size: 17px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.vgw-root .vgw-gcal__txt span { font-size: 13.5px; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgw-root .vgw-gcal__arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background-color .2s, transform .2s; }
.vgw-root .vgw-gcal:hover .vgw-gcal__arrow { background: #fff; color: var(--vgw-primary); transform: translateX(3px); }
.vgw-root .vgw-gcal__arrow svg { width: 18px; height: 18px; }

/* roky */
.vgw-root .vgw-gal__years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 4px; border-radius: 12px; background: var(--vgw-soft); width: fit-content; max-width: 100%; }
.vgw-root .vgw-gal__years a { padding: 8px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #3a4152; transition: background-color .2s, color .2s; }
.vgw-root .vgw-gal__years a:hover { color: var(--vgw-primary); }
.vgw-root .vgw-gal__years a.is-active { background: var(--vgw-primary); color: #fff; box-shadow: 0 4px 12px rgba(11, 31, 86, .22); }

/* nejnovější galerie */
.vgw-root .vgw-gfeat { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); margin-bottom: 30px; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(11, 31, 86, .13); border: 1px solid #e8ecf3; }
.vgw-root .vgw-gfeat__media { position: relative; min-height: 400px; background: var(--vgw-soft); overflow: hidden; }
.vgw-root .vgw-gfeat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vgw-root .vgw-gfeat:hover .vgw-gfeat__media img { transform: scale(1.04); }
.vgw-root .vgw-gfeat__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px 38px; }
.vgw-root .vgw-gfeat__kicker { font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--vgw-accent); }
.vgw-root .vgw-gfeat__title { font-family: var(--vgw-font-display); font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; line-height: 1.12; color: var(--vgw-primary); }
.vgw-root .vgw-gfeat__desc { font-size: 15px; line-height: 1.6; color: var(--vgw-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vgw-root .vgw-gfeat__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 360px; margin-top: 4px; }
.vgw-root .vgw-gfeat__strip span { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--vgw-soft); }
.vgw-root .vgw-gfeat__strip img { width: 100%; height: 100%; object-fit: cover; }
.vgw-root .vgw-gfeat__strip em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 31, 86, .72); color: #fff; font-style: normal; font-weight: 900; font-size: 16px; }
.vgw-root .vgw-gfeat__btn { margin-top: auto; }
.vgw-root .vgw-gfeat .vgw-ev__meta { color: #3a4152; }

/* karta galerie */
.vgw-root .vgw-ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.vgw-root .vgw-gcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e8ecf3; box-shadow: 0 6px 20px rgba(11, 31, 86, .06); transition: transform .25s, box-shadow .25s; }
.vgw-root .vgw-gcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11, 31, 86, .14); }
.vgw-root .vgw-gcard__link { position: absolute; inset: 0; z-index: 3; }
.vgw-root .vgw-gcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--vgw-soft); overflow: hidden; }
.vgw-root .vgw-gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vgw-root .vgw-gcard:hover .vgw-gcard__media img { transform: scale(1.06); }
.vgw-root .vgw-gcard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b7c0d3; }
.vgw-root .vgw-gcard__ph svg { width: 56px; height: 56px; }
.vgw-root .vgw-gcount { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; gap: 12px; padding: 6px 12px; border-radius: 20px; background: rgba(8, 16, 40, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 800; }
.vgw-root .vgw-gcount span { display: inline-flex; align-items: center; gap: 5px; }
.vgw-root .vgw-gcount svg { width: 14px; height: 14px; }
.vgw-root .vgw-gcard__play { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: var(--vgw-accent); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.vgw-root .vgw-gcard__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vgw-root .vgw-gcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.vgw-root .vgw-gcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--vgw-muted); }
.vgw-root .vgw-gcard__tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: #eaf0fb; color: var(--vgw-primary); font-size: 11px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.vgw-root .vgw-gcard__title { font-family: var(--vgw-font-display); font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--vgw-primary); }
.vgw-root .vgw-gcard__desc { font-size: 14px; line-height: 1.55; color: var(--vgw-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vgw-root .vgw-gcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--vgw-accent); }
.vgw-root .vgw-gcard__more svg { width: 16px; height: 16px; transition: transform .2s; }
.vgw-root .vgw-gcard:hover .vgw-gcard__more svg { transform: translateX(4px); }

/* stránkování */
.vgw-root .vgw-gal__pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.vgw-root .vgw-gal__pages a { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--vgw-soft); font-weight: 800; color: var(--vgw-primary); }
.vgw-root .vgw-gal__pages a.is-active, .vgw-root .vgw-gal__pages a:hover { background: var(--vgw-primary); color: #fff; }

/* ---------------- detail ---------------- */
.vgw-root .vgw-gdet__hero { position: relative; padding: 26px 0 38px; background: radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--vgw-primary) 70%, #3b6fe0) 0%, var(--vgw-primary) 55%); color: #fff; overflow: hidden; }
.vgw-root .vgw-gdet__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.vgw-root .vgw-gdet__crumbs a { color: rgba(255, 255, 255, .8); }
.vgw-root .vgw-gdet__crumbs a:hover { color: #fff; }
.vgw-root .vgw-gdet__crumbs svg { width: 13px; height: 13px; opacity: .6; }
.vgw-root .vgw-gdet__crumbs span { color: #fff; font-weight: 700; }
.vgw-root .vgw-gdet__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.vgw-root .vgw-gdet__top > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1 1 520px; }
.vgw-root .vgw-gdet__top .vgw-ev__tag { background: rgba(255, 255, 255, .15); color: #fff; }
.vgw-root .vgw-gdet__title { font-family: var(--vgw-font-display); font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1.08; color: #fff; }
.vgw-root .vgw-gdet__top .vgw-ev__meta { color: rgba(255, 255, 255, .88); }
.vgw-root .vgw-gdet__top .vgw-ev__meta svg { color: #fff; }
.vgw-root .vgw-gdet__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.vgw-root .vgw-gdet__btns .vgw-btn svg { width: 17px; height: 17px; }
.vgw-root .vgw-gdet__desc { max-width: 860px; margin-top: 22px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .86); }
.vgw-root .vgw-gdet__desc p + p { margin-top: 10px; }
.vgw-root .vgw-gdet__desc a { color: #fff; text-decoration: underline; }
.vgw-root .vgw-gdet__body { padding-top: 30px; padding-bottom: 64px; }
.vgw-root .vgw-gdet__more { margin-top: 56px; padding-top: 40px; border-top: 1px solid #e8ecf3; }
.vgw-root .vgw-gdet__morehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vgw-root .vgw-gdet__morehead .vgw-events__title { font-size: clamp(22px, 2vw, 28px); }
.vgw-root .vgw-gdet__all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--vgw-accent); }
.vgw-root .vgw-gdet__all svg { width: 16px; height: 16px; }

/* mřížka fotek */
.vgw-root .vgw-gphotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
.vgw-root .vgw-gph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--vgw-soft); cursor: zoom-in; }
.vgw-root .vgw-gph:first-child { grid-column: span 2; grid-row: span 2; }
.vgw-root .vgw-gph img, .vgw-root .vgw-gph video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.vgw-root .vgw-gph:hover img, .vgw-root .vgw-gph:hover video { transform: scale(1.06); filter: brightness(.82); }
.vgw-root .vgw-gph__ph { position: absolute; inset: 0; background: linear-gradient(135deg, #1a2b5e, var(--vgw-primary)); }
.vgw-root .vgw-gph__zoom { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--vgw-primary); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.vgw-root .vgw-gph__zoom svg { width: 17px; height: 17px; }
.vgw-root .vgw-gph:hover .vgw-gph__zoom { opacity: 1; transform: none; }
.vgw-root .vgw-gph--vid { cursor: pointer; }
.vgw-root .vgw-gph--vid .vgw-gph__zoom { display: none; }
.vgw-root .vgw-gph__play { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--vgw-accent); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .25s; }
.vgw-root .vgw-gph__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vgw-root .vgw-gph:hover .vgw-gph__play { transform: scale(1.1); }

/* ---------------- lightbox ---------------- */
.vgw-glb { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: #070c1c; color: #fff; font-family: var(--vgw-font, system-ui, sans-serif); animation: vgw-glb-in .2s ease-out; }
@keyframes vgw-glb-in { from { opacity: 0; } to { opacity: 1; } }
.vgw-glb[hidden] { display: none !important; }
.vgw-glb__bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; flex: 0 0 auto; }
.vgw-glb__count { font-size: 14px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.vgw-glb__title { flex: 1; min-width: 0; font-size: 14px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgw-glb button { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s; }
.vgw-glb button:hover { background: rgba(255, 255, 255, .24); }
.vgw-glb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vgw-glb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 84px; touch-action: pan-y; }
.vgw-glb__stage > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.vgw-glb__stage > video { max-width: 100%; max-height: 100%; border-radius: 8px; background: #000; }
.vgw-glb__frame { position: relative; width: min(100%, calc((100vh - 170px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.vgw-glb__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vgw-glb__prev, .vgw-glb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.vgw-glb .vgw-glb__prev { left: 18px; width: 54px; height: 54px; }
.vgw-glb .vgw-glb__next { right: 18px; width: 54px; height: 54px; }
.vgw-glb__spin { position: absolute; width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: vgw-spin .8s linear infinite; }
@keyframes vgw-spin { to { transform: rotate(360deg); } }
.vgw-glb__cap { flex: 0 0 auto; min-height: 20px; padding: 10px 18px 6px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.vgw-glb__thumbs { display: flex; gap: 6px; flex: 0 0 auto; padding: 8px 18px 16px; overflow-x: auto; scrollbar-width: thin; justify-content: safe center; }
.vgw-glb__thumbs button { position: relative; flex: 0 0 64px; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; opacity: .45; background: #111 center / cover no-repeat; transition: opacity .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 1px; }
.vgw-glb__thumbs button:hover { opacity: .8; }
.vgw-glb__thumbs button.is-active { opacity: 1; outline-color: #fff; }
.vgw-glb__thumbs button.is-vid::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
html.vgw-lock, html.vgw-lock body { overflow: hidden; }

/* ---------------- responzivita ---------------- */
@container (max-width: 1080px) {
    .vgw-root .vgw-ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .vgw-root .vgw-gfeat { grid-template-columns: 1fr; }
    .vgw-root .vgw-gfeat__media { min-height: 0; aspect-ratio: 16 / 9; }
    .vgw-root .vgw-gfeat__body { padding: 26px 26px 28px; }
    .vgw-root .vgw-gfeat__btn { margin-top: 6px; }
}
@container (max-width: 640px) {
    .vgw-root .vgw-gal__head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin-bottom: 18px; }
    .vgw-root .vgw-gal__intro { flex: 0 0 auto; }
    .vgw-root .vgw-gcal { flex: 0 0 auto; }
    .vgw-root .vgw-gal__years { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .vgw-root .vgw-gal__years a { flex: 0 0 auto; }
    .vgw-root .vgw-ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .vgw-root .vgw-gcard { border-radius: 14px; }
    .vgw-root .vgw-gcard:hover { transform: none; }
    .vgw-root .vgw-gcard__media { aspect-ratio: 1 / 1; }
    .vgw-root .vgw-gcount { left: 8px; bottom: 8px; gap: 8px; padding: 4px 8px; font-size: 11px; }
    .vgw-root .vgw-gcount svg { width: 12px; height: 12px; }
    .vgw-root .vgw-gcard__play { width: 44px; height: 44px; }
    .vgw-root .vgw-gcard__play svg { width: 19px; height: 19px; margin-left: 2px; }
    .vgw-root .vgw-gcard__body { gap: 5px; padding: 10px 12px 13px; }
    .vgw-root .vgw-gcard__meta { font-size: 11px; gap: 4px 6px; }
    .vgw-root .vgw-gcard__tag { display: none; }
    .vgw-root .vgw-gcard__title { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .vgw-root .vgw-gcard__desc { display: none; }
    .vgw-root .vgw-gcard__more { font-size: 11px; gap: 5px; padding-top: 4px; }
    .vgw-root .vgw-gcard__more svg { width: 13px; height: 13px; }
    .vgw-root .vgw-gfeat { border-radius: 18px; margin-bottom: 18px; }
    .vgw-root .vgw-gfeat__body { padding: 20px 18px 22px; gap: 10px; }
    .vgw-root .vgw-gfeat__strip { display: none; }
    .vgw-root .vgw-gfeat__btn { width: 100%; justify-content: center; }
}
@media (max-width: 1100px) {
    .vgw-root .vgw-gphotos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .vgw-root .vgw-gal { padding: 30px 0 44px; }
    .vgw-root .vgw-gdet__hero { padding: 16px 0 26px; }
    .vgw-root .vgw-gdet__crumbs { margin-bottom: 14px; font-size: 12px; }
    .vgw-root .vgw-gdet__top > div:first-child { flex-basis: auto; }
    .vgw-root .vgw-gdet__btns { width: 100%; }
    .vgw-root .vgw-gdet__btns .vgw-btn { flex: 1 1 0; justify-content: center; padding: 0 12px; font-size: 11.5px; }
    .vgw-root .vgw-gdet__desc { font-size: 15px; margin-top: 16px; }
    .vgw-root .vgw-gdet__body { padding-top: 16px; padding-bottom: 44px; }
    .vgw-root .vgw-gphotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .vgw-root .vgw-gph { border-radius: 8px; }
    .vgw-root .vgw-gph__zoom { display: none; }
    .vgw-root .vgw-gph__play { width: 50px; height: 50px; }
    .vgw-root .vgw-gdet__more { margin-top: 36px; padding-top: 28px; }
    .vgw-root .vgw-gdet__morehead .vgw-gdet__all span { display: none; }
    .vgw-glb__bar { padding: 10px 10px 6px 16px; }
    .vgw-glb__stage { padding: 0; }
    .vgw-glb__stage > img { border-radius: 0; }
    .vgw-glb__frame { width: 100%; border-radius: 0; }
    .vgw-glb .vgw-glb__prev, .vgw-glb .vgw-glb__next { width: 42px; height: 42px; background: rgba(0, 0, 0, .35); }
    .vgw-glb .vgw-glb__prev { left: 8px; }
    .vgw-glb .vgw-glb__next { right: 8px; }
    .vgw-glb__thumbs { padding-bottom: max(12px, env(safe-area-inset-bottom)); justify-content: flex-start; }
    .vgw-glb__thumbs button { flex-basis: 52px; width: 52px; height: 40px; }
}
