/* Fotogalerij (Google Drive) */
.vvw-gallery { display: flex; flex-direction: column; gap: 20px; min-height: 200px; }
.vg-msg { color: var(--muted); }
.vg-fail { background: var(--mist); border-left: 4px solid var(--sail); border-radius: var(--r); padding: 20px 24px; display: grid; gap: 8px; }
.vg-fail p { margin: 0; }
.vg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .95rem; }
.vg-crumbs button { background: none; border: 0; padding: 4px 2px; font: 600 .95rem var(--body); color: var(--sail-ink, var(--ink)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vg-crumbs button[aria-current] { text-decoration: none; color: var(--fg); cursor: default; }
.vg-crumbs span { color: var(--muted); }
.vg-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vg-album { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--fg); transition: transform .15s ease, box-shadow .15s ease; }
.vg-album:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(15,36,51,.5); }
.vg-cover { aspect-ratio: 3/2; background: var(--mist) center/cover no-repeat; display: block; }
.vg-cover--empty { background-image: none; }
.vg-name { padding: 12px 14px; font-weight: 700; font-family: var(--display); }
.vg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.vg-drive small { font-weight: 500; opacity: .75; margin-left: 4px; }
.vg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.vg-item { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--mist); cursor: zoom-in; aspect-ratio: 3/2; }
.vg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.vg-item:hover img { transform: scale(1.04); }
.vg-item--vid::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(15,36,51,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center/22px no-repeat; }
.vg-more-wrap { display: flex; justify-content: center; }
@media (max-width: 560px) { .vg-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } .vg-item { border-radius: 4px; } .vg-albums { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* lightbox */
.vg-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(8,20,29,.96); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: auto 1fr auto; color: #fff; }
.vg-lb[hidden] { display: none; }
.vg-lb-bar { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.vg-lb-count { font-variant-numeric: tabular-nums; opacity: .8; }
.vg-lb-actions { display: flex; gap: 8px; align-items: center; }
.vg-lb-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: 600 .92rem var(--body); text-decoration: none; cursor: pointer; }
.vg-lb-btn:hover { background: rgba(255,255,255,.1); }
.vg-lb-dl { background: var(--sail); color: var(--sail-ink); border-color: var(--sail); }
.vg-lb-dl:hover { background: #f5d85a; }
.vg-lb-close { width: 40px; padding: 0; justify-content: center; }
.vg-lb-btn svg, .vg-lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vg-lb-nav { align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vg-lb-nav:hover { background: rgba(255,255,255,.22); }
.vg-lb-prev { grid-column: 1; grid-row: 2; } .vg-lb-next { grid-column: 3; grid-row: 2; }
.vg-lb-stage { grid-column: 2; grid-row: 2; display: grid; place-items: center; min-height: 0; min-width: 0; padding: 0 4px; }
.vg-lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.vg-lb-stage iframe { width: min(100%, 1100px); aspect-ratio: 16/9; max-height: calc(100vh - 140px); border: 0; border-radius: 4px; }
.vg-lb-name { grid-column: 1 / -1; grid-row: 3; text-align: center; padding: 10px 16px 16px; font-size: .85rem; opacity: .7; }
@media (max-width: 640px) {
  .vg-lb { grid-template-columns: 0 1fr 0; }
  .vg-lb-nav { position: absolute; bottom: 14px; width: 44px; height: 44px; }
  .vg-lb-prev { left: 16px; } .vg-lb-next { right: 16px; }
  .vg-lb-btn span { display: none; } .vg-lb-btn { width: 40px; padding: 0; justify-content: center; }
}
.vg-static { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
