    /* Karty zdjęć w stylu news-card */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
      margin-top: 25px;
    }

    .photo-card {
      background: #141516;
      border-radius: 10px;
      padding: 12px;
      box-shadow: var(--shadow-soft);
      transition: 0.2s;
      position: relative;
      overflow: hidden;
    }

    .photo-card:hover {
      background: #1d1f20;
    }

    .photo-card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid #333;
    }

    /* po najechaniu */
.photo-card:hover img {
  filter: brightness(1.2);      /* mocniejsze podświetlenie */
}

    .photo-card {
  /* usuń stare display:-moz-inline-stack / inline-block / *display:inline */
  display: block;
  position: relative;
  vertical-align: top;
  margin: 0;                 /* odstęp bierzemy z gap na kontenerze */
  width: auto;
  font-family: Trebuchet, Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
  text-align: center;
  opacity: 0.87;
  outline: none;
  
}



/* link */
.photo-card a {
  margin: 0;
  
}

/* hover */
.photo-card:hover,
.photo-card a:hover {
  opacity: 1;
  transform: scale(1.02); 
  transition: 0.2s ease;
}


	
 /* 	@media (max-width: 900px) {
  .photo-card img {
    width: 170px;
	height: 100px;
  }
}

@media (max-width: 600px) {
   .photo-card img {
    max-width: 150px;
	height: 90px;
  }
}

@media (max-width: 500px) {
   .photo-card img {
    max-width: 130px;
	height: 80px;
  }
}
*/	

    /* Hover na górze zdjęcia */
    .photo-hover {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(0,0,0,0.75);
      color: #fff;
      padding: 10px;
      font-size: 13px;
      opacity: 0;
      transition: 0.25s;
    }

    .photo-card:hover .photo-hover {
      opacity: 1;
    }

    .photo-meta {
      margin-top: 10px;
      font-size: 13px;
      color: #aaa;
      line-height: 1.5;
    }

    .photo-meta a {
      color: #e53935;
      text-decoration: none;
    }

    .photo-meta a:hover {
      color: #ff6b6b;
    }

    /* Statystyki autora */
    .author-stats {
      background: #141516;
      padding: 20px;
      border-radius: 10px;
      margin-bottom: 25px;
      box-shadow: var(--shadow-soft);
      font-size: 16px;
      color: #ddd;
    }

    .author-stats span {
      color: #e53935;
      font-weight: bold;
    }

    /* Pasek sortowania i wyszukiwarki */
    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        background: #141516;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 25px;
        box-shadow: var(--shadow-soft);
    }

    .filter-bar select,
    .filter-bar input,
    .filter-bar button {
        background: #1e1e1e;
        color: #ddd;
        border: 1px solid #333;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }

    .filter-bar select:hover,
    .filter-bar button:hover {
        background: #5a0002;
        color: #fff;
        border-color: #5a0002;
    }

    /* Paginacja */
    .pagination {
      margin-top: 25px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .pagination a {
      padding: 6px 10px;
      border: 1px solid #444;
      color: #ddd;
      text-decoration: none;
      font-size: 14px;
      border-radius: 6px;
    }

    .pagination a.active {
      background: #e60000;
      border-color: #e60000;
      color: #fff;
    }

    /* Lightbox dopisek */
    .lb-data .lb-caption::after {
      content: "";
      color: #ff4444;
      font-size: 14px;
      margin-left: 10px;
    }
	
	.news-back {
    display: inline-block;
    margin: 2px 0;
    padding: 10px 20px;
    background: #5a0002;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
    font-weight: 600;
}

.news-back:hover {
    background: #cc0000;
}

    /* Pasek filtrów galeria_all.php */
    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        background: #141516;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 25px;
        box-shadow: var(--shadow-soft);
    }

    .filter-bar select,
    .filter-bar button,
    .filter-bar a,
    .filter-bar input {
        background: #1e1e1e;
        color: #ddd;
        border: 1px solid #333;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        text-decoration: none;
        font-size: 14px;
    }

    .filter-bar select:hover,
    .filter-bar button:hover,
    .filter-bar a:hover {
        background: #5a0002;
        color: #fff;
        border-color: #5a0002;
    }

    /* Karty zdjęć */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
      margin-top: 25px;
    }

    

    .photo-meta {
      margin-top: 10px;
      font-size: 13px;
      color: #aaa;
      line-height: 1.5;
      text-align: center;
    }

    .photo-meta a {
      color: #e53935;
      text-decoration: none;
    }

    .photo-meta a:hover {
      color: #ff6b6b;
    }

    .pagination {
      margin-top: 25px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .pagination a {
      padding: 6px 10px;
      border: 1px solid #444;
      color: #ddd;
      text-decoration: none;
      font-size: 14px;
      border-radius: 6px;
    }

    .pagination a.active {
      background: #e60000;
      border-color: #e60000;
      color: #fff;
    }
	
	.add-photo-wrapper {
    width: 100%;
    margin: 20px 0 3px 0;
    text-align: center;
}

.add-photo-btn {
    display: inline-block;
    background: #e60000;
    color: #fff;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
    transition: 0.2s;
}

.add-photo-btn:hover {
    background: #ff1a1a;
    box-shadow: 0 0 18px rgba(255,0,0,0.6);
    transform: translateY(-2px);
}
    /* Pasek filtrów galeria_all.php end */

  /* foto.php */
    .photo-full {
      max-width: 100%;
      border-radius: 12px;
      border: 1px solid #333;
      margin-bottom: 20px;
      box-shadow: 0 0 20px rgba(0,0,0,0.6);
    }

  

    .pagination {
        margin-top: 25px;
        display: flex;
        gap: 10px;
    }

    .pagination a {
        padding: 8px 14px;
        background: #5a0002;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
        transition: 0.2s;
    }

    .pagination a:hover {
        background: #cc0000;
    }

    .pagination a.active {
        background: #cc0000;
    }

    .rating span {
      font-size: 32px;
      cursor: pointer;
      color: #666;
    }
    .rating span:hover {
      color: gold;
    }
	
		.news-back {
    display: inline-block;
    margin: 2px 0;
    padding: 10px 20px;
    background: #5a0002;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
    font-weight: 600;
}

.news-back:hover {
    background: #cc0000;
}

.vote-box {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 26px;
    margin: 15px 0;
}

.vote-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
    font-size: 26px;
}

.vote-btn:hover {
    background: #222;
}

.vote-btn.active {
    background: #333;
    color: #fff;
}

.vote-count {
    font-size: 20px;
    color: #aaa;
}

.vote-summary {
    margin-top: 10px;
    color: #bbb;
    font-size: 15px;
}


  /* autor.php */
.user-card {
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 25px;
    border-radius: 8px;
    max-width: 750px;
    margin: 0 auto 40px auto;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.user-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #222;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #777;
}

.user-info h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.user-info p {
    margin: 3px 0;
    color: #aaa;
}

.section-title {
    margin: 25px 0 10px;
    font-size: 18px;
    color: #ddd;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.user-row {
    background: #1b1b1b;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #2d2d2d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-row i {
    font-size: 20px;
    color: #888;
}

.user-row b {
    color: #ccc;
}

.user-wide {
    grid-column: 1 / 3;
}

@media (max-width: 700px) {
    .user-grid {
        grid-template-columns: 1fr;
    }
    .user-wide {
        grid-column: 1;
    }
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 25px 0 35px;
}

.stat-card {
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-icon {
    font-size: 28px;
    color: #888;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 25px 0 35px;
}

.stat-card {
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.stat-icon {
    font-size: 28px;
    color: #888;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

.stat-thumb {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #333;
    object-fit: cover;
}

/* Karty */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 25px 0 35px;
}

.stat-card {
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-icon {
    font-size: 28px;
    color: #888;
}

.stat-value {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

.stat-thumb {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #333;
    object-fit: cover;
}

/* Timeline */
.timeline-box {
    background: #141414;
    border: 1px solid #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    margin-top: 35px;
}

.timeline-title {
    font-size: 20px;
    color: #ddd;
    margin-bottom: 15px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #333;
}

.timeline-info {
    color: #ccc;
    font-size: 14px;
}

.timeline-date {
    color: #777;
    font-size: 12px;
}

.stats-header {
    font-size: 20px;
    color: #ddd;
    margin: 25px 0 10px;
    text-align: left;
    font-weight: 500;
}

.stats-header span {
    color: #fff;
    font-weight: 600;
}

  /* autor.php end */
  
.vote-box-small {
    display: block;
    gap: 8px;
    align-items: center;
    text-align: center;
    font-size: 16px;
    margin-top: 6px;
}

.vote-btn-small {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
    font-size: 16px;
}

.vote-btn-small:hover {
    background: #222;
}

.vote-count-small {
    font-size: 14px;
    color: #888;
}



