.teaching-intro-box {
	max-width: 1250px;
	width: 90%;
	margin: auto;
	padding: 5rem 0 3rem;
	text-align: center;
}

.teaching-intro-box h1, h2, p {
	margin-bottom: 1rem;
}

.photos-description {
	margin: 3rem 0 0;
	font-style: italic;
}

/* Style tab links */
.tablink-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.tablink {
	background-color: #3498DB;
	color: #fff;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	font-size: 17px;
	flex: 1;
}

.tablink:hover {
  background-color: #5dade2;
}

.tablink.active {
	background-color: #002182;
}

/* Style the tab content */
.tab-content-container {
	max-width: 1250px;
	width: 90%;
	margin: auto;
}

.tabcontent {
	color: #000;
	display: none;
	padding: 100px 20px;
	height: 100%;
	padding-top: 5rem;
	text-align: center;
}

#professional {background: linear-gradient(135deg, #e4ecf2, #d5dfe7);}
#public {background: linear-gradient(135deg, #e4ecf2, #d5dfe7);}
#overseas {background: linear-gradient(135deg, #e4ecf2, #d5dfe7);}

/* ===============================
	PROFESSIONAL + PUBLIC PAGE/SECTION
================================ */
.image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin: 1.5rem auto 10rem;
}

.image-grid img {
	width: 100%;
	height: auto;
	border-radius: 5px;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	cursor: zoom-in;
	transition: transform 0.3s ease;
}

.image-grid img:hover {
	transform: scale(1.02);
}

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media(max-width: 800px) {
	.image-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

/* ===============================
	OVERSEAS PAGE/SECTION
================================ */
.thumbnails-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin: 1.5rem auto 10rem;
}

.thumbnail-img {
	position: relative;
	width: 100%;
	border-radius: 5px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	cursor: pointer;
}

/* --------------------------------
	PLAY BUTTON OVERLAY
---------------------------------- */
.thumbnail { /* icon needs for positioning */
	position: relative;
	display: inline-block;
}

.thumbnail i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	pointer-events: none;
	width: 80px; 	/* making perfect circle */
	height: 80px; 	/* making perfect circle */
	background: linear-gradient(135deg, #3498DB, #5dade2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	transition: transform 0.3s ease;
}

.thumbnail:hover i { /* make play circle scale slightly bigger when hovered over */
	transform: translate(-50%, -50%) scale(1.2);
}

/* --------------------------------
	POPUP
---------------------------------- */
.video-popup {
	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: 1000;
}

.video-popup-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 5px;
	overflow: hidden;
}

.video-popup iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.video-popup .close {
	position: absolute;
	top: 2rem;
	right: 4rem;
	color: white;
	font-size: 3rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001; /* ensure above iframe */
}

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media(max-width: 800px) {
	.thumbnails-container {
		grid-template-columns: repeat(1, 1fr);
		gap: 3rem;
	}

	.video-popup .close {
		top: 6rem;
		right: 2.5rem;
	}
}
