/**********************
			 photoblog 
			***********
	* thème pour PluXml 
	* V1.
	* 12/07/2025
	* Pluxthemes.com - G-cyrillus
	
			*********** 
	*  customize top & bottom backgrounds
	
	// bg-top.jpg https://www.pexels.com/fr-fr/photo/photo-aerienne-du-chateau-a-cote-de-la-foret-2832061/
	// bg-bottom.jpg https://pixabay.com/photos/architecture-neuschwanstein-castle-3119812/
	// defaut thumbnail image 0.jpg->9.jpg from  https://pixabay.com/photos/frog-photographer-fun-camera-green-888798/
	*  You can use your own images, rename accordingly. 
********************/

					/******************************/
					/*********** STYLES ***********/
					/******************************/

* {
	box-sizing: border-box;
	margin: 0;
}
:root {
	--bgColor: white;
	--bgbody: linear-gradient(to bottom, #fff0 50vh, var(--bgColor) 50vh);
	--bg-top: url(../img/bg-top.jpg);
	--bg-bottom: url(../img/bg-bottom.jpg);
	--bgcolor-bottom: #333d;
	--titleColor: ivory;
	--titleStroke: var(--titleColor);
	--titleShadStroke: black;
}
html {
	scroll-behavior: smooth;
	font-family: "Itim", cursive;
	background: var(--bgColor);
}
/* commun  */
a {
	color: inherit;
	text-decoration: none;
	text-transform: capitalize;
}
a:hover,
a.active {
	text-decoration: underline;
}
img {
	max-width: 100%;
}
pre {
	text-align:initial;
	overflow:auto;
}

/* class */
.sr-only {
	position: absolute;
	clip-path:polygon(0 0, 0 0);
}
.feed {
	padding: 1em;
	text-align: center;
}
article .error {
	position: relative;
	z-index: 1;
	text-align:center;
	display:grid;
	align-items:end;
	color: white;
	font-size: 1.4em;
	grid-row: 1;
	grid-column: 1;
	padding-bottom:.3em;;
}
article:has(.error) header h2 {
	color:white;
	text-align:center;
	translate:0 110%;
	position: relative;
	z-index: 3;
	font-size:1.4em;
}

/* bg-top */
body {
	background: var(--bgbody);
}
body::before,
#nav::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	z-index: -1;
	width: 100%;
	min-height: 50vh;
	background: var(--bg-top) center 0 / cover;
}

/* header */
#top {
	min-height: 40vh;
	color: white;
	display: grid;
	grid-template-rows: 1fr;
}
h1 {
	color: var(--titleColor);
	margin: auto;
	text-align: center;
	-webkit-text-stroke: 3px var(--titleStroke);
	letter-spacing: 4px;
	/* extra stroke alike */
	text-shadow: 
    0 0 2px var(--titleShadStroke), 
    0 0 2px var(--titleShadStroke),
    0 0 2px var(--titleShadStroke), 
    0 0 2px var(--titleShadStroke),
    0 0 2px var(--titleShadStroke);
}

/* navigation */
#nav {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
	position: sticky;
	top: -1px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin: -1px 0 0 -1px;
	padding: 0.5em 0;
	line-height: 1.4;
	min-height: 10.2vh;
	align-items: center;
	gap: 1em 2em;
	outline: solid #fff4;
	outline-offset: -1px;
	color: white;
	cursor:pointer;
}
	/* reset cursor to initial */
#nav:is(:focus,:target,:focus-within,:has(#tognav:checked)) {
	cursor:auto;
}
#nav a {/* @first hidden and not hoverable ... unless focused or shown */
	opacity: 0;
	transition: 0.2s;
	pointer-events:none;
}
#nav:focus a,
#nav:target a,
#nav:has(#tognav:checked)  a,
#nav:has(a:focus) a {
	opacity: 1;
	pointer-events:auto;
}
	/* disable submenu from PluXml */
#nav li.menu, #nav .sub-menu {
	display:contents;
}
span.static.group {
	display: none;
}
label[for="tognav"] {
	order:1;
	display: grid;
	position: relative;
	border-block: 2px solid;
	width: 1.75em;
	margin: 0.5em;
	border-radius: 4px;
	transition: 0.2s;
	cursor: pointer;
}
[for="tognav"] b {
	position: absolute;
	right: 0;
	left: 0;
	top: -10px;
	bottom: -10px;
}
[for="tognav"]::before,
[for="tognav"]::after {
	content: "";
	position: absolute;
	border-block: 2px solid;
	width: 1.75em;
	border-radius: 4px;
	transform-origin: 0 50%;
	transition: 0.5;
	transition: 0.2s;
}
[for="tognav"]::before {
	margin-top: -10px;
}
[for="tognav"]::after {
	margin-top: 6px;
}
#tognav:checked ~ [for="tognav"] {
	border-block-color: #fff0;
}
#tognav:checked ~ [for="tognav"]::before {
	rotate: 35deg;
}
#tognav:checked ~ [for="tognav"]::after {
	rotate: -35deg;
}
#nav::after {
	content: "";
	padding-inline: calc(25vw - 350px);
	order:2;
}

/* breadcrumbs */
.repertory.menu.breadcrumb {
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	list-style:none;
	gap:.5em;
	font-size:clamp(12px, 2.5vw,1.4rem);
	font-weight: bold;
	translate: 0 -4rem;
	margin-bottom: 3em;
	color: var(--titleColor);
	margin: auto;
	text-align: center;
	letter-spacing: 1px;
	/* extra stroke alike */
	text-shadow: 
    0 0 2px var(--titleShadStroke), 
    0 0 2px var(--titleShadStroke),
    0 0 2px var(--titleShadStroke), 
    0 0 2px var(--titleShadStroke),
    0 0 2px var(--titleShadStroke);
}
.breadcrumb li + li::before {
	content:'/ ';
}
.breadcrumb a {
	text-decoration:underline;
}

/*content */
main {
	background: white;
	max-width: 960px;
	padding-inline: 1em;
	margin: auto;
}
article:first-of-type {
	margin-top:3em;
	text-align:center;
}
article {
	margin-bottom: 5em;
	display: grid;
	grid-template-rows: auto auto;
	gap: 2em;
	color: #333;
}
article > div {
	position: relative;
}
.more {
  margin-top: 2em;
  text-align: end;
  color: #8B8700;
}
article .more a::before,
article .more a::after  {
	position: absolute;
	content: " »"; 
	translate: 0 90%;
	grid-row: 2;
	bottom: 0;
	right: 1em;
	color: crimson;
	font-size:1.6em;
}
article .more a::before {
	content: "🕮";
	margin-inline-end: 1em;
	line-height: 1.6;
}
article header {
	grid-column: 1;
	grid-row: 1;
	display: grid;
	grid-template-columns: 1fr auto;
	position: relative;
}
article header h2,
article header h2 a{
	text-transform:uppercase;
	position: relative;
	z-index: 1;
}
article header img {
	padding: 5px;
	border: solid 1px;
	grid-column: 1/-1;
	width: 100%;
	scale: 1;
	height: max(60vh,150px);
	min-height: 100%;
	transform-origin: 0 0;
	object-fit: cover;
	z-index: 1;
	background-image:linear-gradient(ivory,ivory);
	filter: drop-shadow(0 0 1px #0008);
	background-clip: content-box;
}
time {
	color:#8B8700;
}
small:has(a),
small cite {
	font-weight: bold;
}
small a {
	font-weight: normal;
}
article footer {
	border-block: solid 2px gray;
	background: #f9f9f9;
	padding-block: 0.5rem;
}
article footer p {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1em;
	padding: 0 1em;
}

/* comments */
#said {
	color:#1A9696;
}
#form {
	width:max-content;
	max-width:80%;
	margin:1em auto;
	border:solid 2px;
	background:#f9f9f9;
	border-radius:8px;
	padding:1em;
}
#form textarea {
	resize:block;
}
#form >:is(div,p:not(:has(#id_rep))) {
	display:grid;
gap:.5rem;}
#form p{
	padding-bottom:.5rem;
}
p:has(#id_rep) {
	border-bottom:solid gray 1px;
	background:#fff8;
	color:gray;
}
[type="submit"] {
	background:#1A9696;
	color:white;
	border-radius:5px;
	border:none;
	margin:auto;
	padding:.5em 1em;
}

/* pagination */
nav.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5em;
	padding: 1em 1em 2em;
}

/* footer */
#footer {
	display: grid;
	color: white;
	font-size: 1.5em;
	min-height: 50vh;
	padding: 0;
	background: var(--bg-bottom) 50% 0% / cover;
}
#footer div {
	display: inherit;
	place-content: center;
	padding: 4em;
	margin: 0;
	backdrop-filter: blur(2px);
	background-color: var(--bgcolor-bottom);
}
#footer p {
	display:block;
	text-align:center;
}

/* queries */
@media (min-width: 750px) {
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article > header {
		grid-column: 1;
		grid-row: 1;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article > header::before {
		content: "\21f1";
		grid-row: 2;
		z-index: 2;
		font-size: 2em;
		color: white;
		text-shadow: 0 0 1px black, 0 0 1px black, 0 0 1px black;
		position: absolute;
		top: 0;
		left: 0.5rem;
		pointer-events: none;
	}
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article > header:has(img:focus)::before {
		content: "\21f2";
		cursor: pointer;
		pointer-events: auto;
	}
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article > header img {
		cursor: pointer;
		transition: 0.5s;
	}
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article > header img:focus {
		scale: 0.33;
		border-width: 3px;
		padding: 10px;
		cursor: initial;
	}
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article > div {
		display: grid;
		place-content: center;
		grid-row: 1;
		grid-column: 1;
		padding: 8em 1em 1em 34%;
		filter: blur(4px);
		opacity: 0.01;
		transition: 0.5s;
	}
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article:hover > div,
	body:is(.mode-home, .mode-tags, .mode-categorie, .mode-archives) article:has(header img:focus) > div {
		opacity: 1;
		filter: blur(0);
	}
}
@media (min-width: 2000px) {
	main {
		max-width: 1980px;
		display: grid;
		gap: 4em;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: masonry;
	}
}