* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff9f5;
  color: #2d2a26;
}
.site-header {
  text-align: center;
  background-image: linear-gradient(rgba(255, 255, 255, 0.43), rgba(255, 255, 255, 0.43)), url('/static/background.jpg');
  background-size: cover;         /* wypełnia cały header */
  background-position: center;    /* środek obrazu zawsze widoczny */
  background-repeat: no-repeat;
  /* background: linear-gradient(135deg, #ffe6ea, #fff5cc); */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 32vw;
}

@media (max-width: 900px) {
  .site-header {
    height: 45vw;
  }
}

.header-text-wrapper h1 {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 6vw;
  font-style: normal;
}

.header-text-wrapper h2 {
  font-weight: 300;
  font-size: 2vw;
  font-style: normal;
}

@media (max-width: 900px) {
  .header-text-wrapper h1 {
    font-size: 8vw;
  }
  .header-text-wrapper h2 {
    font-size: 3vw;
  }
}

.header-text-wrapper h1,
.header-text-wrapper h2,
.header-text-wrapper p {
  position: relative;
  z-index: 2; /* tekst nad overlay */
}

.header-text-wrapper {
  display: flex;           /* robi z wrappera flex container */
  flex-direction: column;  /* ustawienie w kolumnie (h1, h2, p jeden pod drugim) */
  justify-content: center; /* pionowe centrowanie */
  align-items: center;     /* poziome centrowanie */
  height: 100%;            /* zajmuje całą wysokość headera */
  width: 100%;             /* zajmuje całą szerokość headera */
}


.main-title h1 {
  font-family: 'Cormorant', serif;
  font-weight: 700;
  font-size: 3rem;
  margin: 0.2em 0;
}

/*----------- WRZUTKA -----------*/


.uploader {
  width: 600px;
  max-width: 90%;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uploader:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.uploader form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-btn {
  display: inline-block;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #c5b69d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px #cbb6a4;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  text-align: center;
}

.upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 195, 165, 0.4);
}

.submit-btn {
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #e6d5b8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px #cbb6a4;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px #d9c3a5;
}

/*----------- GALERIA -----------*/

.gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* maksymalnie 3 kolumny */
  gap: 16px;
  padding: 25px;
  width: 1200px;
  max-width: 40%;
  margin: 0 auto 40px;
}

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

/* @media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    max-width: 85%;
  }
} */

/*----------- KARTY -----------*/

.media-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 1;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  /* height: 200px;  */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/*----------- WIADOMOSC -----------*/

.description-wrapper {
  overflow: hidden;
  position: relative;
}

.description-text {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #6b5f57;
}

 /* .description-wrapper.gradient {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
} */

.description-wrapper.gradient::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
} 

.read-more-btn {
  display: none; /* domyślnie ukryty */
  margin: 4px 12px 12px;
  background: #c5b69d;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.read-more-btn:hover {
  background: #ff9aa2;
}

/*----------- Autor & data -----------*/

.author {
  padding: 4px 12px 8px;
  font-family: "Pacifico", cursive; 
  font-size: 23px;
  color: #3c3c3c;
}

.date {
  padding: 2px 12px 8px;
  font-size: 12px;
  color: #999;
  font-family: "Roboto", sans-serif; 
  text-align: right;
}

#file-input {
  display: none;
}

.text-input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: #c5b69d;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
  outline: none;
}

#message {
  width: 100%; /* zajmuje całą szerokość karty */
  max-width: 100%;
  min-height: 50px; /* minimalna wysokość */
  padding: 12px 16px; /* większy padding */
  font-size: 16px;
  font-family: inherit; /* większa czcionka */
  border: 1px solid #e1d6cf;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical; /* można rozciągać tylko w pionie */
}

#message:focus {
  border-color: #c5b69d;
  box-shadow: 0 0 6px rgba(255, 154, 162, 0.3);
}


/* Pagination */

.pagination {
  width: 100%;
  height: 100%;
  padding: 20px;
  padding-bottom: 40px;
  background: #303030;
  display:flex;
  flex-direction: column;
  text-align: center;
}

.current {
  color:#e1d6cf;
  justify-content: center;
  text-decoration: none;
}

.current a {
  text-decoration: none;
  color: #dfc3b1;
  font-size: 20px;
}

.current a:visited {
  text-decoration: none;
  color: #db8c5a;
}

.current a:hover {
  text-decoration: none;
  color: #704b34;
}


