/* NEWS – layout kart */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card {
  background-color: #E5F2FB;
  border-radius: 16px;
  padding: 42px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.news-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Tekst / akapity / lista */
.news-text p {
  text-align: justify;
}

.news-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.news-text ul {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.news-text ul li {
  margin: 6px 0;
  color: #1C2B39;
}

/* Galeria pod tekstem */
.news-image {
  margin-top: 20px;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.news-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .news-card {
    padding: 18px;
  }

  .news-title {
    font-size: 20px;
  }

  .news-gallery {
    grid-template-columns: 1fr;
  }

  .news-gallery img {
    height: 220px;
  }
}

.gallery-open {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-weight: 700;
  cursor: pointer;
}

.gallery-open:hover {
  background: #FDE9F8;
}


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
}

.lightbox-close { top: 16px; right: 18px; }
.lightbox-prev  { left: 18px; }
.lightbox-next  { right: 18px; }


/* +50 zdjęć – overlay button */
.gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 260px;
  border-radius: 12px;

  background: linear-gradient(
    rgba(28, 43, 57, 0.25),
    rgba(28, 43, 57, 0.45)
  );

  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

/* hover */
.gallery-more:hover {
  background: linear-gradient(
    rgba(216, 111, 216, 0.65),
    rgba(216, 111, 216, 0.85)
  );
  transform: scale(1.03);
}

/* Odsunięcie logotypów od treści newsa */
.news .logos-grid {
  margin-top: 80px; 
}

/* mobile */
@media (max-width: 768px) {
  .gallery-more {
    height: 220px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    font-size: 36px;
  }
}