/* =========================
   TŁO I TYPOGRAFIA
========================= */
body {
  margin: 0;
  background: #e2c8ac; /* JEDYNE MIEJSCE Z TŁEM */
  color: #1a1a1a;
  font-family: serif;
}

/* =========================
   NAGŁÓWEK – PIECZĘĆ
========================= */
.gallery-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.seal {
  font-size: 4.5rem;
  color: #8b1d18;
  font-family: "Noto Serif JP", serif;
  line-height: 1;
}
/* =========================
   PODPIS POD PIECZĘCIĄ
========================= */
.gallery-header .subtitle {
  color: #8b1d18;   /* TEN SAM KOLOR CO PIECZĘĆ */
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: serif;
}
/* =========================
   PIECZĘĆ JAKO LINK
========================= */
.seal-link {
  text-decoration: none;
  display: inline-block;
}

.seal-link .seal {
  color: #8b1d18; /* dokładnie ten sam kolor */
}

.seal-link:hover .seal {
  opacity: 0.85; /* delikatna informacja, że to link */
  cursor: pointer;
}


/* =========================
   SIATKA GALERII
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   POJEDYNCZA PRACA
========================= */
.gallery-item {
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   OKNO OPISU – CZYTELNE
========================= */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-box {
  background: #e2c8ac; /* TEN SAM KOLOR CO BODY */
  max-width: 760px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  text-align: center;

  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* TEKST */
#modal-text {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1a1a1a;
}

/* ZAMKNIĘCIE */
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
}


/* =========================
   TEKST OPISU
========================= */
#modal-text {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

/* =========================
   ZAMKNIĘCIE
========================= */
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
}
/* =========================
   NAWIGACJA W NAGŁÓWKU
========================= */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.back-link {
  font-size: 2rem;
  text-decoration: none;
  color: #8b1d18;
  line-height: 1;
}

.back-link:hover {
  opacity: 0.7;
}

.seal-link {
  text-decoration: none;
}

.seal {
  font-size: 4.5rem;
  color: #8b1d18;
  font-family: "Noto Serif JP", serif;
  line-height: 1;
}

