/* Photos page: the page content is a manual stack of classic-editor
   <figure class="wp-caption"> blocks, each hardcoded to width:600px and
   center-aligned - that's why it rendered as a narrow single column with
   huge side margins at any viewport width. This reflows those same figures
   into a uniform grid without touching the page content itself. */

.page-id-20150 .entry-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--vc-space-md);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--vc-space-lg) var(--vc-space-md);
}

.page-id-20150 .entry-content figure.wp-caption {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--vc-radius-md);
  overflow: hidden;
  cursor: zoom-in;
}

.page-id-20150 .entry-content figure.wp-caption img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-id-20150 .entry-content figure.wp-caption:hover img {
  transform: scale(1.05);
}

.page-id-20150 .entry-content figure.wp-caption::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 24, 28, 0.75) 0%, rgba(20, 24, 28, 0) 50%);
  pointer-events: none;
}

.page-id-20150 .entry-content .wp-caption-text {
  position: absolute;
  left: var(--vc-space-sm);
  right: var(--vc-space-sm);
  bottom: var(--vc-space-sm);
  z-index: 1;
  color: #fff;
  font-family: var(--vc-font-body);
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

@media (max-width: 980px) {
  .page-id-20150 .entry-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .page-id-20150 .entry-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .page-id-20150 .entry-content {
    grid-template-columns: 1fr;
  }
}

/* Lightbox (built by photos.js) */
.vc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.vc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.vc-lightbox__figure {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vc-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--vc-radius-sm);
}

.vc-lightbox__caption {
  color: #fff;
  font-family: var(--vc-font-body);
  font-size: 0.9rem;
  margin-top: var(--vc-space-sm);
  text-align: center;
}

.vc-lightbox__close,
.vc-lightbox__prev,
.vc-lightbox__next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--vc-font-body);
  line-height: 1;
  transition: color 0.15s ease;
}

.vc-lightbox__close:hover,
.vc-lightbox__prev:hover,
.vc-lightbox__next:hover {
  color: var(--vc-accent);
}

.vc-lightbox__close {
  top: var(--vc-space-md);
  right: var(--vc-space-md);
  font-size: 2rem;
}

.vc-lightbox__prev,
.vc-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  padding: var(--vc-space-sm);
}

.vc-lightbox__prev {
  left: var(--vc-space-sm);
}

.vc-lightbox__next {
  right: var(--vc-space-sm);
}

@media (max-width: 700px) {
  .vc-lightbox__prev,
  .vc-lightbox__next {
    font-size: 1.8rem;
  }
}

/* Videos section */
.vc-videos {
  grid-column: 1 / -1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--vc-space-lg) var(--vc-space-md) var(--vc-space-lg);
  border-top: 1px solid color-mix(in srgb, var(--vc-ink) 12%, transparent);
}

.vc-videos__heading {
  font-family: var(--vc-font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--vc-ink);
  margin: 0 0 var(--vc-space-md);
}

.vc-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--vc-space-md);
}

.vc-video-item {
  margin: 0;
}

.vc-video-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--vc-radius-md);
  background: var(--vc-ink);
  object-fit: cover;
}

.vc-video-item figcaption {
  margin-top: var(--vc-space-sm);
  font-family: var(--vc-font-body);
  font-size: 0.85rem;
  color: var(--vc-support);
}

@media (max-width: 700px) {
  .vc-videos__grid {
    grid-template-columns: 1fr;
  }
}
