/*body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background: #f9f9f9;
  color: #333;
}*/

/* Kontener całej strony, zwężony i wyśrodkowany */
#main-gallery, #full-gallery {
  max-width: 1130px;
  margin: 0 auto;
}

/* Główna galeria: flex i responsywność */
#main-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Obrazki na głównej stronie */
.main-image {
  flex: 1 1 45%;
  cursor: pointer;
  text-align: left;
  padding-top: 0px;
  /* margin-top: 10px; */
  padding-bottom: 20px;
}

/*.main-image h2 {
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 1.2px;
}*/

.main-image h2 {
  margin-bottom: 12px;
  line-height: 0;
  margin-top: 0px;
}

.gallery-title {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
}

.gallery-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.main-image img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  /*border-radius: 8px;*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: block;
  margin-left: 0;
}

/* Loader */
#loader {
  text-align: center;
  font-size: 20px;
  padding: 20px;
}

.hidden {
  display: none;
}

/* Zdjęcia w pełnej galerii - max szerokość i wyśrodkowane */
#full-gallery img {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto 20px;
  display: block;
  /*border-radius: 6px;*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Przycisk powrotu na szarym tle */
#full-gallery button {
  display: inline-block;
  background-color: #ddd;
  color: #333;
  border: none;
  /*border-radius: 5px;*/
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  margin: 20px 0;
  transition: background-color 0.3s ease;
}

#full-gallery button:hover {
  background-color: #bbb;
}

/* Responsywność - jeden obrazek na wąskich ekranach */
@media (max-width: 600px) {
  .main-image {
    flex: 1 1 100%;
  }
}
