/* ============ GALERIA WYCIECZKI: duże zdjęcie + miniatury + podgląd na cały ekran ============ */
.iab-prose .wp-block-gallery.is-enhanced{ display: none; }

.trip-gallery{ margin-top: 20px; }
.trip-gallery__stage{ position: relative; background: var(--indigo-dark); border-radius: var(--radius); overflow: hidden; }
.trip-gallery__open{
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  aspect-ratio: 3 / 2; touch-action: pan-y;
}
.trip-gallery .trip-gallery__img{ width: 100%; height: 100%; margin: 0; object-fit: cover; display: block; border-radius: 0; }
.trip-gallery .trip-gallery__img.is-portrait{ object-fit: contain; }
.trip-gallery__zoom, .trip-gallery__count{
  position: absolute; bottom: 12px; display: grid; place-items: center;
  background: rgba(16,13,43,.72); color: #fff; border-radius: var(--radius); pointer-events: none;
}
.trip-gallery__zoom{ right: 12px; width: 36px; height: 36px; }
.trip-gallery__zoom svg{ width: 17px; height: 17px; }
.trip-gallery__count{ left: 12px; height: 36px; padding: 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.trip-gallery__nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #fff; color: var(--indigo);
  box-shadow: 0 6px 20px rgba(16,13,43,.28); transition: background .18s ease, color .18s ease;
}
.trip-gallery__nav:hover{ background: var(--indigo); color: #fff; }
.trip-gallery__nav svg{ width: 20px; height: 20px; }
.trip-gallery__nav--prev{ left: 12px; }
.trip-gallery__nav--next{ right: 12px; }
.trip-gallery__open:focus-visible, .trip-gallery__nav:focus-visible, .trip-gallery__thumb:focus-visible{ outline: 2px solid var(--indigo); outline-offset: 2px; }

.trip-gallery__thumbs{
  display: flex; gap: 8px; margin-top: 8px; padding: 2px 2px 6px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--indigo-light) transparent; position: relative;
}
.trip-gallery__thumb{
  flex: 0 0 auto; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--surface-2);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; opacity: .62;
  outline: 2px solid transparent; outline-offset: 0; transition: opacity .18s ease, outline-color .18s ease;
}
.trip-gallery .trip-gallery__thumb img{ width: 100%; height: 100%; margin: 0; object-fit: cover; display: block; border-radius: 0; }
.trip-gallery__thumb:hover{ opacity: 1; }
.trip-gallery__thumb.is-active{ opacity: 1; outline-color: var(--indigo); }
@media (max-width: 640px){
  .trip-gallery__open{ aspect-ratio: 4 / 3; }
  .trip-gallery__thumb{ width: 84px; }
  .trip-gallery__nav{ width: 40px; height: 40px; }
  .trip-gallery__nav--prev{ left: 8px; }
  .trip-gallery__nav--next{ right: 8px; }
}

/* Podgląd na cały ekran */
.has-lightbox{ overflow: hidden; }
.lightbox{
  position: fixed; inset: 0; z-index: 300; background: rgba(10,8,28,.985);
  display: grid; place-items: center; padding: 64px 72px 24px;
}
.lightbox[hidden]{ display: none; }
.lightbox__figure{ margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; touch-action: pan-y; }
.lightbox__img{ max-width: 100%; max-height: calc(100% - 40px); min-height: 0; object-fit: contain; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.lightbox__caption{ color: #E4E1F5; font-size: 14px; font-weight: 600; text-align: center; }
.lightbox__btn{
  position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .18s ease;
}
.lightbox__btn[hidden]{ display: none; }
.lightbox__btn:hover{ background: rgba(255,255,255,.26); }
.lightbox__btn:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__btn svg{ width: 22px; height: 22px; }
.lightbox__close{ top: 12px; right: 12px; }
.lightbox__prev{ left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next{ right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px){
  .lightbox{ padding: 64px 8px 84px; }
  .lightbox__prev, .lightbox__next{ top: auto; bottom: 20px; transform: none; }
  .lightbox__prev{ left: calc(50% - 60px); }
  .lightbox__next{ right: calc(50% - 60px); }
}
