body {
	background-color: #e6f2ff;
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
}

.full {
	display: flex;
	flex-wrap: wrap;
	max-width: 900px;
	margin: 20px auto;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}

.left, .right {
	padding: 15px;
	box-sizing: border-box;
}

.left {
	flex: 1;
	min-width: 250px;
}

.right {
	flex: 2;
}

h1 {
	font-size: 24px;
	margin-top: 0;
}

h2, h3 {
	font-size: 18px;
	margin-top: 20px;
	margin-bottom: 10px;
}

h4 {
	font-size: 16px;
	margin-top: 15px;
	margin-bottom: 5px;
}

p, li {
	font-size: 14px;
	line-height: 1.5;
}

ul {
	padding-left: 20px;
}

.image {
	text-align: center;
	margin-bottom: 20px;
}

.image img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
}

.otsikko {
	margin-bottom: 20px;
}

.mobile-name {
    display: none;
}


@media only screen and (max-width: 768px) {
	
	.right .name,
    .right .title {
        display: none;
    }

    .mobile-name {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }

    .mobile-name h1 {
        font-size: 22px;
        margin: 0;
    }

    .mobile-name p {
        font-size: 14px;
        margin: 5px 0 10px 0;
    }


	.full {
		flex-direction: column;
		margin: 10px;
		padding: 15px;
	}
	
	.left, .right {
		width: 100%;
		padding: 10px;
	}
	
	h1 {
		font-size: 22px;
		text-align: center;
	}
	
	.title {
		text-align: center;
	}
	
	.image {
		margin-top: 10px;
	}
	
	.Contact p {
		margin: 5px 0;
	}
	
	ul {
		margin-top: 5px;
	}
}

@media only screen and (max-width: 480px) {
	
	h1 {
		font-size: 20px;
	}
	
	h2, h3 {
		font-size: 16px;
	}
	
	h4 {
		font-size: 15px;
	}
	
	p, li {
		font-size: 13px;
	}
	
	.image img {
		width: 80px;
		height: 80px;
	}
	
}

/* VIDEO SECTION */
.video-section {
    margin-top: 60px;
	margin-bottom: 120px;
    padding: 20px;
	max-width: 900px;
	margin-left: auto;
	margin-right:auto;
}

.video-section h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.video-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* GRID FOR DESKTOP + MOBILE */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

/* VIDEO CARD STYLE */
.video-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.video-card img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

.video-card img:hover {
    transform: scale(1.03);
}

.video-card span {
    margin-top: 8px;
    font-size: 0.95rem;
}

/* POPUP VIDEO MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal video {
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
}

.video-card video {
    width: 200px;         /* kiinteä leveys */
    height: 112px;         /* kiinteä korkeus (16:9) */
    object-fit: cover;    /* leikkaa reunat → tasakokoiset thumbit */
    border-radius: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
}


.video-desc {
    font-size: 0.85rem;
    margin-top: 6px;
    opacity: 0.8;
}

.info-link {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
}

.info-link:hover {
    color: #004a99;
}

/* INFO MODAL */
.info-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.info-content {
    background: white;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 22px;
    cursor: pointer;
}
