/* ---------- GLOBAL ---------- */

body {
	font-family: Arial, sans-serif;
	background-color: #e3e7ea;
	margin: 0;
	padding: 20px;
	text-align: center;
	color: #2c2c2c;
}

h1 {
	margin-top: 40px;
	font-size: 3em;
	border-bottom: 4px solid #444;
	display: inline-block;
	padding-bottom: 10px;
}

/* ---------- INFO BOX ---------- */

.info-box {
	background-color: #f0f1f3;
	border-radius: 12px;
	padding: 20px;
	margin: 40px auto;
	max-width: 800px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.info-box h2 {
	margin-top: 0;
	font-size: 1.5em;
	color: #303030;
}

.info-box p {
	margin: 5px 0;
	color: #3a3a3a;
}

/* ---------- PORTRAIT CARDS ---------- */

.portraits-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px;
	margin-bottom: 60px;
}

.portrait-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 45%;
	max-width: 300px;
	text-decoration: none;
	transition: none;
	padding: 10px;
	border-radius: 14px;
}

.portrait-card img {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #4caf50;
	margin-bottom: 10px;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.portrait-card img:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.portrait-card .name {
	font-weight: bold;
	margin-bottom: 5px;
	color: #2b2b2b;
}

.portrait-card .years {
	font-size: 0.9em;
	color: #555;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */

@media (max-width: 800px) {
	.portrait-card {
		flex: 0 0 48%;
		padding: 8px;
	}
	.portrait-card img {
		width: 190px;
		height: 190px;
	}
	.portraits-container {
		gap: 24px;
	}
}

@media (max-width: 500px) {
	.portrait-card {
		flex: 0 0 48%;
		padding: 6px;
	}
	.portrait-card img {
		width: 150px;
		height: 150px;
	}
	.portraits-container {
		gap: 18px;
	}
	body {
		padding: 0 10px;
	}
}

/* ---------- TABLE ---------- */

table {
	border-collapse: collapse;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	margin-top: 40px;
}

th, td {
	border: 1px solid #ddd;
	padding: 8px 12px;
	text-align: left;
}

th {
	background-color: #4caf50;
	color: white;
	text-transform: uppercase;
}

tr:nth-child(even) {
	background-color: #f0f1f3;
}

tr:hover {
	background-color: #e1e6e8;
}

/* ---------- THUMBNAILS ---------- */

.thumbnail {
	max-width: 80px;
	max-height: 80px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin: 3px;
	transition: transform 0.2s;
}

.thumbnail:hover {
	transform: scale(1.1);
	border-color: #4caf50;
}

a {
	text-decoration: none;
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
	display: none;
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	justify-content: center;
	align-items: center;
}

.lightbox img {
	max-width: 90%;
	max-height: 90%;
	cursor: zoom-in;
	transform-origin: center center;
}

.lightbox img.zoomed {
	transform: scale(2);
	cursor: zoom-out;
}

/* ---------- LIGHTBOX ---------- */

.back-button {
	position: absolute;
	top: 20px;
	left: 20px;
	padding: 8px 14px;
	background-color: #4caf50;
	color: white;
	font-weight: bold;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	transition: background-color 0.2s ease, transform 0.2s ease;
	font-family: "Trebuchet MS", sans-serif;
}

.back-button:hover {
	background-color: #45a049;
	transform: translateY(-2px);
}
