/* Mosaic gallery — clickable tiles */
.svc-mosaic[data-gallery-lightbox] .svc-mosaic__item {
  border: none;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.svc-mosaic[data-gallery-lightbox] .svc-mosaic__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 35, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.svc-mosaic[data-gallery-lightbox] .svc-mosaic__item:hover::after {
  opacity: 1;
}

.svc-mosaic__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.svc-mosaic__item:hover .svc-mosaic__zoom {
  opacity: 1;
  transform: none;
}

.svc-gallery[data-gallery-lightbox] .svc-gallery__item--btn {
  border: none;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.svc-gallery[data-gallery-lightbox] .svc-gallery__item--btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 35, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.svc-gallery[data-gallery-lightbox] .svc-gallery__item--btn:hover::after {
  opacity: 1;
}

.svc-gallery__item--btn:hover .svc-mosaic__zoom {
  opacity: 1;
  transform: none;
}

/* Lightbox modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 28, 0.88);
  backdrop-filter: blur(6px);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: galleryLightboxIn 0.22s var(--ease);
}

@keyframes galleryLightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

.gallery-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__figure {
  margin: 0;
  width: 100%;
  max-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox__nav--prev { left: -56px; }
.gallery-lightbox__nav--next { right: -56px; }

@media (max-width: 1024px) {
  .svc-pers-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-lightbox__counter {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .gallery-lightbox__nav--prev { left: 8px; }
  .gallery-lightbox__nav--next { right: 8px; }
  .gallery-lightbox__close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.45);
  }
}
