/* V4V Chicago photo gallery. Colors and type follow the existing CBC site. */
.v4v-photos { scroll-margin-top: 120px; }

.v4v-photos .v4v-gallery-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}
.v4v-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media screen and (max-width: 767px) {
  .v4v-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media screen and (max-width: 479px) {
  .v4v-gallery { grid-template-columns: 1fr; }
}
.v4v-gallery a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #181e25;
  text-decoration: none;
  color: inherit;
}
.v4v-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.v4v-gallery a:hover img,
.v4v-gallery a:focus-visible img {
  transform: scale(1.03);
}
.v4v-gallery a:focus-visible {
  outline: 2px solid var(--accent-yellow, #f5c400);
  outline-offset: 2px;
}
.v4v-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 10, 12, 0.92);
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  cursor: zoom-out;
}
.v4v-lightbox.is-open { display: flex; }
.v4v-lightbox img {
  max-width: min(1600px, 100%);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  cursor: default;
}
.v4v-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: var(--white--100, #fff);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .v4v-gallery img { transition: none; }
}
