/* Global styles */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #2c3e50;
}

/* Header */
header {
  background-color: #343a40;
}

h1.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #fff;
  margin: 0;
}

/* Navbar links */
.navbar-nav .nav-link {
  margin-left: 20px;
  padding: 10px 15px;
  font-size: 1.1rem;
  color: #f8f9fa !important;
  transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Main article */
.main-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: left;
  margin-bottom: 30px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #34495e;
  margin-top: 30px;
}

p, ol {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

ol {
  padding-left: 20px;
  list-style-type: decimal;
}

img {
  max-width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: #2c3e50;
  padding: 20px 0;
  color: white;
  text-align: center;
}

/* Styl dla linku w footerze */
footer a{
  color: inherit; /* Używa koloru dziedziczonego, czyli białego */
  text-decoration: none; /* Bez podkreślenia */
  transition: text-decoration 0.3s ease; /* Dodanie efektu na podkreślenie */
}

footer a:hover {
  text-decoration: underline; /* Podkreślenie przy najechaniu */
  color: inherit;
}

/* Styles for the gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
}

.gallery a {
  display: block;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Ensure image fills text height */
.image-full-height {
  height: 100%;
  object-fit: cover;
}

/* Responsiveness */
@media (max-width: 768px) {
  .navbar-nav {
      text-align: center;
  }
  .gallery {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
