/********************** Base ***************************/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #f4f6f8;
	color: #1a1a1a;
	font-family: system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

/********************** Typography ***************************/
a {
	color: #1f4fd8;
	text-decoration: none;
	font-weight: 500;
}

a:hover {
	text-decoration: underline;
}

p { margin: 16px 0; }
h1 { font-size: 22px; margin: 24px 0 16px; color: #0b1f33; }
h2 { font-size: 18px; margin: 20px 0 12px; color: #0b1f33; }
h3 { font-size: 16px; margin: 16px 0 10px; color: #143a5a; }
h4 { font-size: 14px; margin: 12px 0 8px; color: #143a5a; }

hr {
	border: none;
	border-top: 1px solid #d0d7de;
	margin: 24px 0;
}

/********************** Container ***************************/
#container {
	max-width: 1100px;
	margin: 0 auto;
	background-color: #ffffff;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/********************** Header ***************************/
#header {
	background-image: url(images/header.webp), url(images/header.jpg);
	background-repeat: repeat-x;
	background-position: center top;
	height: 288px;
	position: relative;
}

#logo_w1,
#logo_w2 {
	position: absolute;
	font-style: italic;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

#logo_w1 { top: 20px; left: 70px; font-size: 28px; }
#logo_w2 { top: 56px; left: 94px; font-size: 22px; }

#header_text {
	position: absolute;
	top: 100px;
	left: 43px;
	width: 260px;
}

#header_text p {
	font-size: 18px;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/********************** Navigation ***************************/
#header ul {
	list-style: none;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #0b1f33; /* NAVY */
	padding: 14px 0;
	text-align: center;
}

#header li { display: inline; }

#header ul a {
	color: #ffffff;
	font-size: 14px;
	margin: 0 16px;
	padding: 6px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#header ul a:hover {
	background-color: rgba(255,255,255,0.15);
	text-decoration: none;
}

/********************** Content ***************************/
#content {
	display: flex;
	padding: 40px;
	background-color: #ffffff;
}

/********************** Columns ***************************/
#left {
	float: left;
	width: 720px;
	padding-right: 40px;
}

#right {
	float: right;
	width: 260px;
	padding-left: 40px;

	/* Pystysuora viiva vasemman palstan erottamiseksi */
	border-left: 1px solid #d0d7de;

	/* Sisennys ylhäältä ja alhaalta */
	padding-top: 14px;   /* sama väli kuin valikon alapuolella */
	padding-bottom: 14px; /* sama väli kuin vaakaviivan yläpuolella */
}

/********************** Sidebar ***************************/
#right h3 { margin-top: 0; }
#right ul { list-style: none; padding-left: 0; }
#right li { margin-bottom: 10px; }

/********************** Images ***************************/

/* Kaikki kuvat vasemman palstan sisällä – venyvät aina palstan leveydelle */
#left img {
	width: 100% !important;       
	height: auto !important;      
	max-width: none !important;   
	display: block !important;
	margin: 16px 0;
	border-radius: 6px;
}

/* Thumbnail / pienet kuvat vasemmassa palstassa */
#left img.thumb {
	width: 200px;       
	height: auto;
	display: inline-block;
	margin: 0 16px 16px 0;
	vertical-align: top;
	border-radius: 4px;
}

/* Gallerian kuvat vasemmassa palstassa (3 rinnakkain) */
#left img.gallery {
	width: calc(33.33% - 10px); 
	height: auto;
	display: inline-block;
	margin: 0 5px 16px 5px;
	border-radius: 4px;
}

/********************** Footer ***************************/
#footerline {
	clear: both;
	height: 1px;
	background-color: #d0d7de;
	margin-top: 14px; /* sama väli kuin oikean palstan alareuna */
}

#footer {
	text-align: center;
	padding: 5px;
	font-size: 13px;
	color: #4b5563;
	background-color: #f9fafb;
}

#back { text-align: center; margin-top: 12px; }

/********************** Responsive ***************************/
@media (max-width: 900px) {

	#logo_w1,
	#logo_w2,
	#header_text {
		position: static;
		text-align: center;
		margin-top: 12px;
	}

	#header { height: auto; padding-bottom: 0; }
	#header ul { position: static; }
	#content { padding: 24px; }

	#left,
	#right {
		float: none;
		width: 100%;
		padding: 0;
		border: none;
	}

	#right {
		margin-top: 40px;
		border-top: 1px solid #d0d7de;
		padding-top: 24px;
	}

	#left img,
	#left img.thumb,
	#left img.gallery {
		width: 100% !important;
		margin: 0 0 16px 0;
	}
}