/* ============================================
   LIGHTBOX (Twoje istniejące style — bez zmian)
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lightbox-img.visible {
  opacity: 1;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lightbox .close:hover {
  transform: scale(1.2);
}

.lightbox .nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.lightbox .nav span {
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}
.lightbox .nav span:hover {
  transform: scale(1.2);
}

/* ============================================
   GALERIA — kafelki ze zdjęciami i wideo
   ============================================ */
.gallery-item {
  cursor: pointer;
  width: 100%;
  display: block;
}

.gallery-image {
  width: 100%;
  display: block;
}

.gallery-video-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery-video,
.gallery-video-thumb {
  width: 100%;
  display: block;
}

.gallery-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2a2a2a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  pointer-events: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-video-wrapper:hover .play-icon {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ============================================
   LIGHTBOX — wideo i iframe (dopasowane do stylu obrazka)
   ============================================ */
.lightbox-video,
.lightbox-iframe {
  max-width: 90%;
  max-height: 80vh;
  width: 90vw;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  background: #000;
  margin: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: none;
}

.lightbox-video.visible,
.lightbox-iframe.visible {
  display: block;
  opacity: 1;
}

.lightbox-img:not(.visible) {
  display: none;
}