body {
  font-family: calibri, arial, sans-serif;
  background-color: #FFFFED;	/* kolor tła strony */
  margin: 0;
  padding: 15px;
}

a {
    font-weight: bold;
}

a:link {
	color: #303;
	text-decoration: none;
}

a:visited {
	color: #636;
	text-decoration: none;
}

a:hover {
	color: #30F;
	text-decoration: underline overline;
	text-decoration-color: #0066cc;*/
	text-underline-offset: 3px;
	background-color: #e0e0e0;
	border-radius: 4px;
}


header {

}

header h1 {
  margin-bottom: 8px;
  color: #060;					/*  color: #2c3e50; - kolor nagłówka ROCZNY KALENDARZ  */
}

header p {
	color: #330000;
	font-family: sans-serif, verdana, arial;
	text-align: left;
   margin-left: 0px;
   font-size: 1rem;
   font-weight: bold;					 /* color: #666; - kolor tekstu pod nagłówkiem Wybierz interesujacy... */

}

.calendar-year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.month-card {
  background: #Ff9;				/*	background: white; - kolor tablicy z miesiacami*/
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  padding: 10px;
}

.month-name {
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
  color: #303;							/*	color: #2980b9;  - kolor nazw miesięcy */
  text-transform: capitalize;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.day-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  text-decoration: none;
  color: #C3F;										 /*	color: #333; - kolor dni tygodnia */
  font-size: 0.85rem;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
}

.day-link:hover {
  background-color: #960;		/*	background-color: #3498db; - kolor tła po najechaniu myszką na dzień */
  color: white;
  font-weight: bold;
}

.kontener {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 20px;
}

.nawigacja {
	margin-left: 20px;
	font-size: 0.95rem;
	gap: 20px;
}

.nawigacja a {
	margin: 0;
	padding: 2px 0;
	line-height: 0.5;
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.nawigacja a:hover {
	color: #000;
	text-decoration: underline overline;
	text-decoration-color: #0066cc;
	background-color: #e0e0e0;
 }

.nawigacja a:hover {
	text-underline-offset: 3px;
 	border-radius: 4px;
}
.nawigacja-3 {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	margin-left: 20px;
	font-size: 0.95rem;
	padding-bottom: 20px;
	gap: 0px;
	padding: 2px 0;
	line-height: 0.5;
}

.nawigacja-3 a {
	display: block;
	margin: 0;
	padding: 2px 0;
	line-height: 0.5;
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
	padding: 6px 8px;
	line-height: 0.4;
	margin-top: -6px;
	border-radius: 4px;
}

.nawigacja-3 a:hover {
	olor: #000;
	text-decoration: underline overline;
	text-decoration-color: #0066cc;
	background-color: #e0e0e0;
	border-radius: 0.4px;
}
/* NAWIGACJA DO WYBORU IMION ALFABETYCZNIE */

.nawigacja-imiona {
	margin-left: 60px;
	font-size: 1.1rem;
	gap: 20px;
}

.nawigacja-imiona a {
	margin: 0;
	padding: 2px 0;
	line-height: 0.5;
	color: #800080;
	text-decoration: none;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.nawigacja-imiona a:hover {
	color: #000;
	text-decoration: underline overline;
	text-underline-offset: 3px;
	background-color: #e0e0e0;
	border-radius: 4px;
}


.glowny-tekst {
	margin-right: 60px;
	text-align: justify;
	font-size: 1.2rem;
}

.mat-zrodlowe {
	margin-right: 60px;
	text-align: justify;
	font-size: 0.8rem;
}

.moj-podpis {
	margin-right: 60px;
	text-align: right;
	font-size: 0.8rem;
	font-weight: bold;
}

.podpis-rysunek-prawy {
	display: block;
	font-size: 1.0rem;
	font-weight: bold;
	text-align: right;
	color: #006D00
}

.podpis-rysunek-lewy {
	display: block;
	font-size: 1.0rem;
	font-weight: bold;
	text-align: left;
	color: #006D00
}

.tekst-formatowany {
	font-size: 1.2rem;
	color: #6F6FFF;
}

.grubszy {
	font-size: 1.2rem;
	font-weight: bold;
}

.grid-kontener {
	display: grid;
	grid-template-columns: 230px 1fr;
	gridtemplate-rows: repeat (3, 1fr);
	gap: 15 px;
	min-height: 100vh;
	margin-right: 60px;
}

.glowny-panel {
	grid-column: 2;
	grid-row: 1 / 4;
}

.kursywa {
	font-style: italic;
}

.podkreslony {
	text-decoration: underline;
}

.main-wrapper {
	display: flex;
	flex-direction: column;
	gap: 0px;
	width: 100%;
	padding: 20px;
}

.flex-contener2 {
	display: flex;
	justify-content: flex-start;
	gap: 20px;
	}

.column {
	width: 250px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	/*padding: 20px; */
	min-height; 100px;
}

.full-width-text {
	width: 100%;
	font-size: 1.1rem;
	line-height: 1.2;
}

.grid-four-columns {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0px;
	max-width: 700px;
	color: #0058B4;
	font-size: 1.0rem;
	font-weight: bold;
}

.grid-column {
	display: grid;
	align-content: start;
	text-align: center:
	min-height: 120px;
}

.artykul-kontener {
	margin-right: 60px;
	Max-width: 100%;
}

.galeria-kontener {
	float: right;
	margin-top: 8px;
	margin-left: 20px;
	margin-bottom: 10px;
}

/* TUTAJ ZACZYNA SIĘ CSS DLA GALERII ZDJĘĆ*/

.galeria-pozioma {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 25px;
	margin-bottom: 40px;
	margin-right: 60px;

}

.galeria-miniatura {
	width: 85px;
	height: auto;
	cursor: zoom-in;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease;
}

.galeria-miniatura:hover {
	transform: scale(1.05);
}

.lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	display: none;
	justify-content: center;
	aling-items: center;
	flex-direction: row-reverse;
	gap: 30px;
	cursor: zoom-out;
	padding: 40px 20px;
	box-sizing: border-box;

}

.lightbox-duzy-obraz {
	max-width: 100%;
	max-height: 80%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	animation: zoomSmooth 0.3s ease;
	cursor: zoom-out;
	object-fit: contain;
}

.lightbox-podpis {
	color: #300;
	font-family: sans-serif;
	font-size: 15px;
	font-size: 14px;
	font-weight: bold;
	background-color: #FFFFED;
	padding: 8px 18px;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	border: 1px solid #e0e0e0;
	animation: fadeSmooth 0.4s ease;

	width: 270px;
	max-height: 4.5em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamb: 3;
	-webkit-box-orient: vertical;
}

.lightbox-duzy-obraz, .lightbox {
	cursor: zoom-out;
}

@keyframes zoomSmooth {
	from { transform: scale(0.7); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes fadeSmooth {
	from { opacity: 0; }
	to { opacity: 1; }
}


.obrazek-blok .galeria-opis {
	display: none;
}

.toggle-checkbox {
	display: none;
}


.galeria-pozioma .obrazek-blok:has(.toggle-checkbox:checked) {
	width: 400px;
	z-index: 99;
	grid-column: span 2;
	margin-left: -250px;
}

.toggle-checkbox:checked + .obrazek-foto {
	transform: scale(2.5);
	cursor: zoom-out;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	z-index: 99;

}

.obrazek-opis {
	opacity: 0;
	visibility: hidden;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	color: #300;
	font-family: sans-serif;
	white-space: nowrap;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	background-color: #FFFFED;
	padding: 6px 14px;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	border: 1 px solid #0e0e0e;
	top: 50%;
	transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;

}

.toggle-checkbox:checked ~ .obrazek-opis {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(133.5% + 15px);

}


/* STYLE DO ZOOM ZDJĘĆ*/

/* --- 1. Układ opływania tekstu i podstawowy styl zdjęcia --- */
.float-right {
  float: right;
  margin: 0 0 15px 15px; /* Odstęp tekstu od zdjęcia */
}

.float-left {
  float: left;
  margin: 0 15px 15px 0; /* Odstęp tekstu od zdjęcia */
}

.zoomable {
  width: 150px; /* Początkowa szerokość obrazka w tekście */
  height: auto;
  cursor: zoom-in; /* Lupa z plusem */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Delikatne uniesienie obrazka po najechaniu myszką */
.zoomable:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- 2. Ciemne tło (Overlay) po kliknięciu --- */
#image-overlay {
  display: none; /* Domyślnie ukryte */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75); /* Czarne tło (75% krycia) */
  z-index: 9998; /* Pod powiększonym zdjęciem */
  cursor: zoom-out;
}

/* --- 3. Klasa powiększonego zdjęcia (Zarządzana przez JS) --- */
.zoomable.zoomed {
  position: fixed;
  top: 45%; /* Przesunięte lekko w górę, aby zostawić miejsce na podpis */
  left: 50%;
  transform: translate(-50%, -50%); /* Idealne wycentrowanie */
  width: auto;
  max-width: 85vw;  /* Ograniczenie szerokości na dużych ekranach */
  max-height: 75vh; /* Ograniczenie wysokości, by podpis nie uciekł na dole */
  z-index: 9999;    /* Na samym wierzchu */
  cursor: zoom-out; /* Lupa z minusem */
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: zoomInAnim 0.25s ease-out forwards; /* Płynne otwieranie */
}

/* Animacja płynnego pojawiania się */
@keyframes zoomInAnim {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* --- 4. Nowoczesny podpis pod zdjęciem --- */
#zoom-caption {
  display: none; /* Domyślnie ukryty */
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5vh; /* Ustawienie 5% od dolnej krawędzi ekranu */
  z-index: 9999;
  color: #ffffff; /* Biały tekst */
  font-family: sans-serif;
  font-size: 16px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6); /* Czarne, półprzezroczyste tło pod tekstem */
  padding: 8px 16px;
  border-radius: 4px;
  max-width: 80vw;
  pointer-events: none; /* Kliknięcie "przelatuje" przez tekst i zamyka modal */
}


