:root {
    --text: #233224;
    --border: #6e8b63;
    --accent: #49684b;
    --bg: #dbe7d5;
    --gradient-top: #f3f8f0;
    --gradient-bottom: #d6e2d1;
}


	header {
		background: url('richie/header.gif');
	}
/* end light mode styling */


* { 
	box-sizing: border-box;
	scrollbar-color:  var(--border) var(--gradient-bottom);
}
html {
	overscroll-behavior: none;
}
body {
    padding: 10px;
    font-family: 'MS PGothic', sans-serif;
    color: var(--text);

    background-color: #fceef1;
    background-image: url("richie/wallpaper.gif");
    background-repeat: no-repeat;
    background-size: cover;
}

.large {
    width: 500px;
    flex: 0 0 auto;
}
.container {
	width: 880px;
	margin: 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradient-top);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradient-bottom);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradient-bottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}
/* these control the column widths */
.small { flex: 1 1 9%; }

.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }

header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 150px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}
header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradient-top);
}


nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradient-top),var(--gradient-bottom));
}
nav div {
	text-align: center;
	font-size: 22px;
	margin: 5px 5px 10px 5px;
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradient-bottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradient-bottom), var(--gradient-top));
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}


section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradient-top),var(--gradient-bottom));
	padding: 5px;
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 10px;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
}
h1 { 
	font-size: 24px;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}
h2 { 
	font-size: 22px;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 20px;
}
h4 { 
	font-size: 18px;
	color: var(--accent);
	padding-left: 12px;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}


/* ---------- Galerie ---------- */

.gallery{
    width: 840px;
    height:180px;
    display:flex;
    gap:18px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:10px;
    margin:auto;
    background:transparent;

}
/* ---------- Galerie ---------- */

.bis{
    width: 400px;
    height:180px;
    display:flex;
    gap:18px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:10px;
    margin:auto;
    background: transparent;

}
/* ---------- Miniatures ---------- */

.thumb{
    width:150px;
    height:150px;
    object-fit:cover;
    flex-shrink:0;
    cursor:pointer;
    transition:0.25s;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
}

.thumb:hover{

    transform:scale(1.08) rotate(-2deg);

}

/* ---------- Lightbox ---------- */

#lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    background:rgba(255, 191, 208, 0.6);

}

#lightbox img{
    max-width:88%;
    max-height:88%;
    box-shadow:0 0 40px rgba(0,0,0,.4);
}

/* ---------- Fermer ---------- */

#close{

    position:absolute;

    top:20px;

    right:35px;

    font-size:60px;

    color:white;

    cursor:pointer;

    user-select:none;

}

/* ---------- Flèches ---------- */

.arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    color:white;

    font-size:70px;

    cursor:pointer;

    padding:20px;

    transition:.2s;

}

.arrow:hover{

    transform:translateY(-50%) scale(1.25);

}

#prev{

    left:25px;

}

#next{

    right:25px;

}