/* VA Academy homepage: success gallery slider in the hero's right column.
   The box itself is .va-photo from va.css (size, radius, responsive behaviour); this file adds the slider. */
.va .va-gallery { position: relative; isolation: isolate; background: var(--va-sky-soft); }
.va-gallery-slides { position: absolute; inset: 0; }
.va .va-gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.va .va-gallery-slide.is-active { opacity: 1; z-index: 1; }
.va .va-gallery-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Dots: white pill, top right */
.va-gallery-dots { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 9px 11px; }
.va .va-gallery-dot { position: relative; height: 8px; width: 8px; padding: 0; border: 0; border-radius: 999px; background: #c5cfe3; cursor: pointer; transition: width .3s, background .3s; }
.va .va-gallery-dot::before { content: ""; position: absolute; inset: -8px -3px; }
.va .va-gallery-dot.is-active { width: 22px; background: var(--va-navy); }
.va .va-gallery-dot:focus-visible { outline: 2px solid var(--va-blue); outline-offset: 3px; }

/* Caption bar: white, bottom */
.va-gallery-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 10px 10px 10px 14px; min-height: 56px; }
.va-gallery-tag { flex-shrink: 0; background: var(--va-sky); color: var(--va-navy); font-weight: 600; font-size: 13px; line-height: 1.2; padding: 5px 10px; border-radius: 999px; }
.va-gallery-caption { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.va .va-gallery-arrow { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--va-page); color: var(--va-navy); display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.va .va-gallery-arrow:hover { background: var(--va-navy); color: #fff; }
.va .va-gallery-arrow:focus-visible { outline: 2px solid var(--va-blue); outline-offset: 2px; }

/* Phones: the side column stacks, so give the photos a little more height than the plain photo box. */
@media (max-width: 767px) {
    .va .va-gallery { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .va .va-gallery-slide, .va .va-gallery-dot { transition: none; }
}
