/* === Reset + struktura === */
body {
  margin: 0;
  font-family: "Roboto Mono", monospace;
  background-color: #000;
  color: #fff;
}

.wrapper {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* === Nagłówek (Top Bar) === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logo {
  font-weight: 500;
  font-size: 1.2em;
}

.intro-text {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.9em;
  line-height: 1.4;
  color: #ccc;
  font-weight: 400;
}

.intro-text p {
  margin: 4px 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.8em;
}

nav a:hover {
  text-decoration: underline;
}

/* === Galeria (strona główna) === */
.gallery {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* === Thumbnaile === */

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #444;
  transition: border-color 0.2s ease;
}

.thumb img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.thumb:hover {
  border-color: #d82900; /* ramka */
}

.thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background-color: #d82900;
  color: #000;
  font-size: 1.1em;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.thumb:hover .thumb-title {
  opacity: 1;
}

/* === Pasek powrotu ("← back") === */
.back-bar {
  padding: 10px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 60px;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.0em;
  padding: 0 10px;
}

.back-link:hover {
  text-decoration: underline;
}

/* === Układ strony projektu === */
.project-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.project-images {
  width: 1280px;
  box-sizing: border-box;
}

.project-images img {
  width: 100%;
  margin-bottom: 20px;
  display: block;
  border: 1px solid #444;
}

.project-description {
  width: 640px;
  box-sizing: border-box;
}

.project-description h1 {
  margin-top: 0;
  font-size: 1.5em;
}

.project-description p {
  font-size: 0.95em;
  line-height: 1.6;
}

.project-description a:link {
  color: #fff;
  text-decoration: none;
}

.project-description a:visited {
  color: #811f09;
}

.project-description a:hover {
  text-decoration: underline;
}

/* === MEDIA QUERIES === */
@media (max-width: 1600px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-content {
    flex-direction: column;
  }

  .project-images,
  .project-description {
    width: 100%;
  }

  .project-description {
    margin-top: 40px;
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1em;
  }

  nav a {
    font-size: 0.75em;
    margin-left: 10px;
  }

  .project-description p {
    font-size: 0.9em;
  }
}

/* === STOPKA === */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px 10px 20px;
  border-top: 1px solid #333;
  margin-top: 60px;
  font-size: 0.85em;
  box-sizing: border-box;
}

.footer-left a {
  color: #ccc;
  text-decoration: none;
  margin-right: 15px;
}

.footer-left a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-left a svg {
  width: 18px;
  height: 18px;
  fill: #ccc;
  margin-right: 15px;
  vertical-align: middle;
  transition: fill 0.2s ease;
}

.footer-left a:hover svg {
  fill: #fff;
}

.footer-right {
  color: #666;
}

.header-separator {
  border-bottom: 1px solid #333;
  margin-bottom: 0;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
  border: 1px solid #444;
  cursor: zoom-out;
}

.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.6;
}

.lightbox button:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}


#md-content {
  font-size: 0.95em;
  line-height: 1.6;
  color: #ccc;
}

#md-content h1,
#md-content h2 {
  color: #fff;
  margin-top: 40px;
  margin-bottom: 10px;
}

#md-content a:link
#data-content a:link
.database a:link {
  color: #d82900;
  text-decoration: none;
}

#md-content a:visited
#data-content a:visited
.database a:visited {
  color: #811f09;
  text-decoration: none;
}