@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Karla:ital,wght@0,200..800;1,200..800&family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html {
	background: #05345d;
	color: rgba(255,255,255,0.6);
	font: 300 17px/29px 'Karla', sans-serif;
	text-align: justify;
	height: 100%;
}

::selection {
    background: rgba(244, 242, 240, 0.15);
    color: rgba(244, 242, 240, 0.95);
    text-shadow: 0 0 20px rgba(244, 242, 240, 0.2);
}

body {
    margin: 0;
    padding: 0;
	height: 100%;
}

a {
	font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.4s, border-color 0.4s;
}

a:hover {
    color: rgba(244, 242, 240, 0.85);
    border-bottom-color: rgba(244, 242, 240, 0.35);
}

b {
	font-weight: 500;
}

header {
    width: 1200px;
    background-size: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 0 auto 50px;
    position: relative;
}

nav {
    display: flex;
    text-align: center;
    width: 300px;
}

nav:first-of-type {
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: rgba(244, 242, 240, 0.65);
    margin: 0 4px;
    text-transform: none;
    font-size: 24px;
    letter-spacing: 1px;
    padding: 10px 18px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    transition: color 0.4s;
}

nav a:hover {
    color: rgba(244, 242, 240, 0.8);
    background: transparent;
    border-radius: 0;
    transition: color 0.4s;
}

.keskiotsikko {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    font: 48px 'Playfair Display', serif;
    background: linear-gradient(180deg, #02192d 0%, #03203a 100%);
    padding: 12px 48px;
    border-radius: 0 0 16px 16px;
    top: 0;
    box-shadow: -3px 3px 8px -4px rgba(0, 0, 0, 0.1), 3px 3px 8px -4px rgba(0, 0, 0, 0.1), 0 5px 8px -4px rgba(0, 0, 0, 0.1);
}

.keskiotsikko small {
	font-size: 18px;
	line-height: 10px;
}

.keskiotsikko a {
    text-decoration: none;
    color: #f4f2f0;
	opacity: 0.75;
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
    padding: 10px 20px;
    transition: 0.5s;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 2px 16px rgba(2, 25, 45, 0.8), 0 0 40px rgba(255,255,255,0.15);
}

.keskiotsikko a small {
    letter-spacing: 5px;
    font-size: 16px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.keskiotsikko a small::before {
    content: '';
    display: block;
    width: 90px;
    height: 1px;
    background: linear-gradient(to left, rgba(244, 242, 240, 0.15), transparent);
}

.keskiotsikko a small::after {
    content: '';
    display: block;
    width: 90px;
    height: 1px;
    background: linear-gradient(to right, rgba(244, 242, 240, 0.15), transparent);
}

.ylapalkki {
	background: linear-gradient(#02192d, #05345d);
	height: 80px;
	box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 2;
	overflow: visible;
}

.keskipalkki::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/tausta.png") center no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.keskipalkki {
	background-color: #042645;
	background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
	height: 400px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 1;
}

.sisalto {
	margin: 0 auto;
	margin-top: -40px;
	width: 1300px;
	z-index: 2;
	position: relative;
	padding-bottom: 20px;
}

.alapalkki {
	background-color: #042645;
	background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.alapalkki-sisalto {
	margin: 0 auto;
	width: 1300px;
	font: 300 13px/20px 'Karla', sans-serif;
	font-style: normal;
	letter-spacing: 0.6px;
	color: rgba(244, 242, 240, 0.5);
	display: flex;
	align-items: center;
	padding: 20px 0;
}

.alapalkki-vasen {
	flex: 1;
	text-align: left;
}

.alapalkki-viiva {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(244, 242, 240, 0.15) 20%,
        rgba(244, 242, 240, 0.15) 80%,
        transparent 100%
    );
    margin: -5px 40px;
}
.alapalkki-oikea {
	flex: 1;
	text-align: right;
}

.alapalkki-oikea p + p {
	margin-top: 8px;
}

.copy a {
	font: 300 13px/20px 'Karla', sans-serif;
}

.virtuaali {
	margin-top: 7px;
	display: block;
	text-transform: uppercase;
}

.virtuaali a { font: inherit; }

h1 {
    background: #03203a;
    color: rgba(244, 242, 240, 0.6);
    height: 80px;
    margin: 0 -2px;
    padding: 0 50px;
    border-radius: 15px;
    font: italic 32px 'Lora', serif;
	letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 12px rgba(2, 25, 45, 0.9);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}

h1::before,
h1::after {
    content: '❧';
	color: #05345d;
    font-style: normal;
    font-size: 34px;
    opacity: 0.6;
    margin: 0 30px;
    display: inline-block;
	text-shadow: none;
}

h1::after {
    transform: scaleX(-1);
}

h1 + * {
    margin-top: 40px;
}

h2 {
    font: italic 400 28px 'Lora', serif;
    color: rgba(244, 242, 240, 0.6);
    text-align: center;
    margin: 0 0 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(2, 25, 45, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

h2::before,
h2::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(244, 242, 240, 0.25));
}

h2::after {
    background: linear-gradient(to left, transparent, rgba(244, 242, 240, 0.25));
}

h3 {
    font: italic 400 24px 'Cormorant Garamond', serif;
    color: rgba(244, 242, 240, 0.55);
    letter-spacing: 1.5px;
    margin: 5px 0 -10px 0;
    display: flex;
    align-items: center;
	text-shadow: 0 2px 8px rgba(2, 25, 45, 0.6);
    gap: 12px;
}

h3::before {
    content: '❧';
    font-style: normal;
    font-size: 16px;
    opacity: 0.5;
}

h4 {
    font: italic 400 28px 'Lora', serif;
    color: rgba(244, 242, 240, 0.6);
    margin: 0 0 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(2, 25, 45, 0.6);

}

.koristekuva {
	margin: 20px 0 5px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    filter: grayscale(40%);
    opacity: 0.6;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.koristekuva:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.koristekuva:not(:first-child) {
    margin-left: 28px;
}

.kasvatus {
	display: flex;
	text-align: left;
	margin: 30px 0 20px 0;
}

.kasvatus > div {
	border-radius: 15px;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
	background-color: #042645;
	background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
	padding: 20px 40px 15px 40px;
}

.kasvatus > div:first-child {
	width: 60%;
}

.kasvatus > div:last-child {
	width: 24%;
	margin-left: auto;
}

.kasvatit {
	width: 100%;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
	margin: 30px 0;
}

.kasvatit thead {
	background: linear-gradient(180deg, #03203a 0%, #042645 100%);
	color: #064275;
	text-shadow: 0 2px 8px rgba(2, 25, 45, 0.9);
}

.kasvatit tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.kasvatit th {
	font-weight: 500;
}

.kasvatit th,
.kasvatit td {
	padding: 12px 0 12px 26px;
}

.kasvatit td.numero {
	font-weight: 500;
}

.hevoslistaus {
	width: 100%;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
	margin: 30px 0;
}

.hevoslistaus thead {
	background: linear-gradient(180deg, #03203a 0%, #042645 100%);
	color: #064275;
	text-shadow: 0 2px 8px rgba(2, 25, 45, 0.9);
}

.hevoslistaus tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.hevoslistaus th {
	font-weight: 500;
}

.hevoslistaus th,
.hevoslistaus td {
	padding: 12px 0 12px 26px;
}

.listakuva {
	height: 60px;
	vertical-align: middle;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    filter: grayscale(40%);
    opacity: 0.6;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

tr:hover .listakuva {
    filter: grayscale(0%);
    opacity: 1;
}

.isolista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 50px 0 40px 0;
}

.isolista-kortti {
    border-radius: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    background-color: #042645;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    padding: 0 24px 0 24px;
    display: flex;
	height: 168px;	
    flex-direction: row;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.isolista-kortti a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    text-decoration: none;
	font-weight: 300;
}

.isolista-kortti a:hover {
	color: inherit;
}

.isolista-kortti img {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    filter: grayscale(40%);
    opacity: 0.6;
    object-fit: cover;
    object-position: left center;
    flex-shrink: 0;
    border-radius: 10px;
    width: 160px;
    height: 120px;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.isolista-kortti:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.isolista-kortti-teksti {
    display: flex;
    flex-direction: column;
	padding-left: 10px;
}

.hevonen-ylaosa {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 0;
}

.hevonen-info-oikea {
    flex: 1;
    margin: 10px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badges {
	margin: 10px 0 25px 0;
    display: flex;
	align-items: center;
    justify-content: center;
    gap: 12px;
}

.badge {
    background-color: #042645;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 8px rgba(2, 25, 45, 0.6);
}

.badge small {
	margin-left: 6px;
}

.hevonen-teksti {
    background-color: #042645;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 15px;
    padding: 10px 30px 10px 30px;
    margin-right: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    line-height: 1.8;
}

.hevonen-info-table {
    width: 100%;
    border-collapse: collapse;
}

.hevonen-info-table td {
	padding: 8px 0;
}

.hevonen-info-table tr:not(:last-child) {
    border-bottom: 1px solid transparent;
    background-image: linear-gradient(to right, transparent, rgba(255,255,255, 0.1) 10%, rgba(255,255,255, 0.1) 90%, transparent);
    background-position: bottom;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.hevonen-info-table td:first-child {
    width: 40%;
    font-weight: 500;
	padding-left: 20px;
}

.hevonen-info-table tr:last-child td {
    border-bottom: none;
}

.karuselli {
    flex: 1;
    height: 400px;
    margin: 10px 0 15px 0;
    display: flex;
    flex-direction: column;
}

.karuselli-kehys {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.karuselli-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.karuselli-slide.aktiivinen {
    opacity: 1;
    pointer-events: auto;
}

.karuselli-slide img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    filter: grayscale(40%);
    opacity: 0.6;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
    transition: filter 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
}

.karuselli:hover .karuselli-slide img {
    filter: grayscale(0%);
    opacity: 1;
}

.karuselli-slide.aktiivinen img {
    pointer-events: auto;
}

.karuselli-nappi {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.karuselli-prev { left: 16px; }
.karuselli-next { right: 16px; }


.karuselli-prev::after,
.karuselli-next::after {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.karuselli-nappi:hover::after {
    opacity: 1;
}

.karuselli-prev::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.karuselli-next::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.karuselli-pisteet {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.karuselli-piste {
    width: 30px;
    height: 3px;
    border-radius: 0;
    border: none;
    background: rgba(244, 242, 240, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    box-shadow: none;
}

.karuselli-piste.aktiivinen {
    background: rgba(244, 242, 240, 0.9);
    transform: none;
}

.sukutaulu-kehys {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 0px 6px rgba(0,0,0,0.1);
}

.sukutaulu {
    width: 100%;
	background-color: #042645;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    border-collapse: separate;
    border-spacing: 0;
}

.sukutaulu td {
    padding: 20px 0 20px 40px;
    line-height: 20px;
	text-shadow: 0 2px 8px rgba(2, 25, 45, 0.8)
}

.sukutaulu td.border-full-anchor,
.sukutaulu td.border-two-thirds,
.sukutaulu td.border-two-thirds-anchor,
.sukutaulu td.border-third {
    border-bottom: 1px solid transparent;
    background-repeat: no-repeat;
}

.sukutaulu td.border-full {
    position: relative;
}
.sukutaulu td.border-full::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 5%, rgba(255,255,255,0.1) 95%, transparent);
    pointer-events: none;
}

.sukutaulu td.border-full-anchor {
    border-bottom: none;
    background-image: none;
}

.sukutaulu td.border-two-thirds {
    background-image: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 7%, rgba(255,255,255,0.1) 93%, transparent);
    background-size: 200% 1px;
    background-position: bottom left;
}

.sukutaulu td.border-two-thirds-anchor {
    background-image: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 7%, rgba(255,255,255,0.1) 93%, transparent);
    background-size: 200% 1px;
    background-position: bottom right;
}

.sukutaulu td.border-third {
    background-image: linear-gradient(to right, transparent, rgba(255,255,255,0.1) 10%, rgba(255,255,255,0.1) 90%, transparent);
    background-size: 100% 1px;
    background-position: bottom left;
}

.sukutaulu td.no-border {
    border-bottom: none;
    background-image: none;
}

.sukutiedot {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
	font-weight: 500;
	line-height: 18px;
	color: rgba(255,255,255,0.5);
    display: block;
    margin-top: 6px;
}

.kolmas-polvi {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
	font-weight: 500;
	line-height: 18px;
	color: rgba(255,255,255,0.5);
    display: inline-block;
	margin-left: 10px;
}

.evm {
	position: absolute;
	padding: 0 5px; 
	background: #063965; 
	border-radius: 3px; 
	text-transform: uppercase; 
	display: inline-block; 
	margin: 0 0 0 12px;
	color: rgba(255,255,255,0.45); 
	font-weight: 500; 
	font-size: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 8px rgba(2, 25, 45, 0.6);
}

.otsikko {
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

.paivakirja-merkinta {
	margin-bottom: 30px;
}

.paivakirja-merkinta:last-child {
	margin-bottom: 0;
}

.kaksi-saraketta {
    display: flex;
    gap: 5%;
	margin: -10px 0 10px 0;
}

.kaksi-saraketta > div:first-child {
    flex: 0 0 58%;
}

.kaksi-saraketta > div:last-child {
    flex: 0 0 37%;
}

.jalkelaiset {
	width: 100%;
	overflow: hidden;
	margin: -10px 0 0 0;
}

.jalkelaiset th {
	font-weight: 500;
}

.jalkelaiset th,
.jalkelaiset td {
	padding: 10px 0;
}

.jalkelaiset tr {
    border-bottom: 1px solid transparent;
    background-image: linear-gradient(to right, transparent, rgba(255,255,255, 0.1) 10%, rgba(255,255,255, 0.1) 90%, transparent);
    background-position: bottom;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.sisennys {
	margin-left: 60px;
}

.collapse-sisalto {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
	margin-bottom: 20px;
}

.collapse-sisalto.auki {
    max-height: 2000px;
}

.collapse-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 4px;
}

.collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 17px;
    font-family: 'Karla', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    transition: color 0.4s;
}

.collapse-toggle:hover {
    color: rgba(244, 242, 240, 0.85);
}

.collapse-toggle-ornament {
    font-size: 11px;
    opacity: 0.5;
    transition: opacity 0.4s;
    line-height: 1;
}

.collapse-toggle:hover .collapse-toggle-ornament {
    opacity: 0.8;
}

.galleria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 28px;
    margin: 55px 0 30px 0;
}

.galleria-kuva {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #03203a;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.galleria-kuva img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(40%);
    opacity: 0.6;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.galleria-kuva img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.galleria-kuva.laaja {
    grid-column: span 2;
}

.galleria-kuva.korkea {
    grid-row: span 2;
}

.galleria-kuva.laaja.korkea {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 720px) {
    .galleria {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .galleria-kuva.laaja {
        grid-column: span 2;
    }
    .galleria-kuva.korkea {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .galleria {
        grid-template-columns: 1fr;
    }
    .galleria-kuva.laaja {
        grid-column: span 1;
    }
}

.copy a {
    color: inherit;
    text-decoration: none;
}

.copy a:hover {
    text-decoration: none;
}

.isolista-kortti b {
    transition: color 0.4s;
}

.isolista-kortti a:hover b {
    color: rgba(244, 242, 240, 0.85);
}

.ominaisuuspisteet-container {
    margin: 0px 0 20px 0;
}

.ominaisuuspisteet-lista {
    margin: 16px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    box-sizing: border-box;
}

.ominaisuuspisteet-lista span:first-child {
    flex: 1 1 0;
    text-align: left;
    white-space: nowrap;
}

.ominaisuuspisteet-lista span:nth-child(2) {
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
}

.ominaisuuspisteet-lista span:nth-child(3) {
    flex: 1 1 0;
    text-align: right;
    white-space: nowrap;
}

.taso-palkki-rivi {
    margin-top: 18px;
}

.taso-otsikko {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.taso-nimi {
    font-size: 16px;
    letter-spacing: 0.3px;
}

.taso-pisteet {
    font-size: 16px;
    color: rgba(244, 242, 240, 0.5);
    font-weight: 400;
}

.taso-palkki-tausta {
    width: 100%;
    height: 12px;
    background-color: #042645;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2305345d' fill-opacity='0.39' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.taso-palkki-taytto {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(244, 242, 240, 0.5) 0%, 
        rgba(244, 242, 240, 0.7) 50%, 
        rgba(244, 242, 240, 0.5) 100%);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(244, 242, 240, 0.3);
    position: relative;
}

.taso-palkki-taytto::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.lightbox-tausta {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.lightbox-sisalto {
    position: relative;
    z-index: 1;
    background: rgba(5, 52, 93, 1);
    padding: 8px;
    border-radius: 4px;
	box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.lightbox-kuva {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 2px;
    cursor: pointer;
}

.lightbox-caption {
    display: none;
    padding-top: 0.5em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255,255,255, 0.7);
    font-family: 'Karla', sans-serif;
    font-weight: 400;
	letter-spacing: 0.2px;
}

.lightbox-caption::first-letter {
    display: none;
    padding-top: 0.5em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255,255,255, 0.7);
    font-family: 'Karla', sans-serif;
    font-weight: 800;
	letter-spacing: 0.2px;
}

.lightbox-caption a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}