.profile_photo {
	width: 75%;
	/*height: 50%;*/
	border-radius: 10px;
}

@media only screen and (min-width: 768px) {
	.profile_photo {
		width: 75%;
		/*height: 10vw;*/
		border-radius: 10px;
	}
}

.sep-after:after {
	margin-top: 20px !important;
	margin-bottom: 20px !important;
}

/************************ Comments ************************/
.post-comments:before {
	content: "";
	display: block;
	border-bottom: .125em solid #ffcd00;
	width:4em
}

.post-comments {
	padding-top: 20px;
	width: 100%;
	max-width: 740px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

.post-comment {
	background-color: rgb(245, 245, 245);
	padding: 10px;
	margin-bottom: 10px;
}

.post-comment > p {
	margin-bottom: 0px;
}

.post-comment-header {
	display: flex;
	flex-direction: row;
}

.post-comment-avatar {
	width: 54px;
	height: 54px;
	margin-right: 10px;
	/*flex-grow: 1;*/
}

.post-comment-info {
	flex-grow: 3;
}

.post-comment-reply-btn {
	color: rgb(3, 169, 244)	;
}


.post-comment-reply-btn > a{
	color: rgb(3, 169, 244);
}

.post-comment-reply {
	margin-top: 10px;
	margin-left: 30px;
	padding: 10px;
	background-color: rgb(255, 255, 255);
}

.post-comment-reply > p {
	margin-bottom: 0px;
}

.post-comment-field {
	margin-bottom: 10px;
	display: flex;
	flex-direction: row;
}

.hidden {
	display: none;
}

#colors {
	/*width: 250px;*/
	display: flex;
	flex-direction: row;
	align-items: center;
}

.color-picker {
	height: 35px;
	width: 35px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #aaa;

	margin-left: 10px;
	margin-bottom: 2px;
}

.color-picker:hover {
	box-shadow: 0 0 0 2px #666;
}

.color-selected {
	box-shadow: 0 0 0 2px #222;
}

.dialog {
	/*height: 50px;*/
	text-align: center;
	line-height: 20px;
	padding: 15px;
}

#post-submitting {
	background-color: #ddd;
	animation: pulse_animation 2s infinite;
}

@keyframes pulse_animation {
	0% {background-color: #ddd;}
	50% {background-color: rgb(250, 250, 250);}
	100% {background-color: #ddd;}
}

#post-submitted {
	background-color: #40bd5b;
}

#post-error {
	background-color: #ff8181;
}

.comment_form {
	margin-top: 20px;
}

/************************ Projects ************************/
.project-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
	justify-items: center;
	max-width: 1400px;
	margin: 0 auto;
}

.project {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
}

.project:hover {
	transform: translateY(-6px) scale(1.015);
	box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.project::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 205, 0, 0.12) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
	pointer-events: none;
}

.project:hover::before {
	opacity: 1;
}

.project-cover {
	position: relative;
	overflow: hidden;
	height: 200px;
}

.project-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project:hover .project-cover img {
	transform: scale(1.08);
}

.project-cover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.project:hover .project-cover-overlay {
	opacity: 1;
}

.project-status {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-status.active {
	background: #22c55e;
	color: #fff;
}

.project-status.in-progress {
	background: #f59e0b;
	color: #fff;
}

.project-status.archived {
	background: rgba(0,0,0,0.55);
	color: rgba(255,255,255,0.85);
}

.project-type {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px 4px 8px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-type svg {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
}

.project-type.work {
	background: rgba(255,255,255,0.9);
	color: #333;
}

.project-type.personal {
	background: rgba(0,0,0,0.55);
	color: rgba(255,255,255,0.9);
}

.project-container {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 24px 24px;
	position: relative;
	z-index: 2;
}

.project-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.project-title {
	font-weight: 700;
	font-size: 20px;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.project:hover .project-title {
	color: #d4a800;
}

.project-link-icon {
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translate(-4px, 0);
	flex-shrink: 0;
	color: #888;
}

.project:hover .project-link-icon {
	opacity: 1;
	transform: translate(0, 0);
}

.project-description {
	font-size: 14.5px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 16px 0;
	flex: 1;
	transition: color 0.3s ease;
}

.project:hover .project-description {
	color: #444;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.project-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	background: rgba(255, 205, 0, 0.1);
	color: #b8900a;
	transition: all 0.3s ease;
	transform: translateY(0);
}

.project:hover .project-tag {
	background: rgba(255, 205, 0, 0.18);
	color: #9a7800;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(255, 205, 0, 0.15);
}

/* Featured card */
.project.featured {
	grid-column: span 2;
	max-width: 100%;
}

.project.featureed .project-cover {
	height: 240px;
}

.project.featureed .project-title {
	font-size: 24px;
}

.project.featureed .project-container {
	padding: 24px 28px 28px;
}

/* "More to come" placeholder */
.project-placeholder {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 20px;
	color: #999;
	font-size: 16px;
	font-style: italic;
	border: 2px dashed #e0e0e0;
	border-radius: 16px;
	background: rgba(255, 205, 0, 0.03);
	max-width: 420px;
	width: 100%;
	justify-self: center;
}

@media (max-width: 900px) {
	.project.featured {
		grid-column: span 1;
	}

	.project.featureed .project-cover {
		height: 200px;
	}
}

@media (max-width: 600px) {
	.project-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.project {
		max-width: 100%;
	}

	.project-cover {
		height: 180px;
	}
}


/************************ Research Overview ************************/
.research-entry {
	display: flex;
	flex-direction: row;

	margin-bottom: 20px;
}

.research-thumb {
	flex: 0 0 100px;

	display: flex;
	flex-direction: column;
}

.research-thumb > img {;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

@media only screen and (max-width: 768px) {
	.research-entry {
		flex-direction: column;
	}

	.research-thumb {
		display: none;
	}
}

.research-details {
	width: 100%;
	flex: 1 0;
	/*background-color: red;*/

	display: flex;
	flex-direction: column;
	justify-content: flex-start;

	margin-left: 10px;
}

.research-title {
	text-align: left;
}

.research-authors {
	font-size: 0.9em;
	text-align: left;
}

.research-author-note {
	font-size: 0.7em;
	text-align: left;
}

.research-venue {
	font-size: 0.9em;
	text-align: left;
}

.highlight-author {
	color: #0ca60c;
}

.research-abstract {
	color: #555555;
	overflow: hidden;
	font-size: 0.8em;
	text-align: justify;
	margin-top: 5px;

	max-height: 0px;

	transition: max-height 0.26s ease;
}

.expanded {
	max-height: 500px !important;
	transition: max-height 1s ease;
}

.research-actions {
	display: flex;
	flex-direction: row;
	flex-flow: wrap;
}

.research-action {
	font-size: 0.9em;
	background-color: #ffcd00;
	margin: 10px 10px 10px 0px;
	padding: 5px 10px;

	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);

	cursor: pointer;

	border-bottom: 0px !important;
}

.research-action:hover {
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.research-citation {
	width: 100%;
	font-size: 0.8em;

	max-height: 0px;
	overflow: hidden;

	transition: max-height 0.26s ease;
}

/*********************** TEACHING ***********************/
.teaching-entry {
	border-bottom: 0px !important;

	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	padding: 20px;

	cursor: pointer;
}

.teaching-entry:hover {
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4);
}

.teaching-title > h4 {
	margin-bottom: 5px;
}

.teaching-abstract {
	margin-top: 10px;
	font-size: 1em;
}

.menu li.current > a {
  pointer-events: auto;
}

/************************ Carousel ************************/
.profile-carousel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	max-width: 740px;
	margin: 0 auto;
}

.carousel-photo-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-photo-row::before,
.carousel-photo-row::after {
	content: '';
	position: absolute;
	top: -6rem;
	width: 4rem;
	height: calc(100% + 12rem);
}

.carousel-photo-row::before {
	left: -2rem;
}

.carousel-photo-row::after {
	right: -2rem;
}

.carousel-slides {
	position: relative;
	width: 280px;
	height: 210px;
	display: flex;
	justify-content: center;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.carousel-slide.active {
	opacity: 1;
	pointer-events: auto;
}

.carousel-description {
	position: relative;
	text-align: left;
	width: 100%;
	max-width: 740px;
}

.carousel-desc-slide {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	white-space: pre-wrap;
}

.carousel-desc-slide.active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.carousel-description p {
	margin-top: 0;
	margin-bottom: 0.5em;
}

.carousel-description p:last-child {
	margin-bottom: 0;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 1.2rem;
	color: #666;
	cursor: pointer;
	padding: 0;
	line-height: 42px;
	text-align: center;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
	opacity: 1;
	color: #111;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.disabled:hover {
	opacity: 0;
	box-shadow: none;
	transform: translateY(-50%);
}

.carousel-photo-row:hover .carousel-arrow:not(.disabled) {
	opacity: 0.3;
	pointer-events: auto;
}

.carousel-photo-row:hover .carousel-arrow:not(.disabled):hover {
	opacity: 1;
	pointer-events: auto;
}

.carousel-arrow-left {
	left: -2rem;
}

.carousel-arrow-right {
	right: -2rem;
}

@media only screen and (max-width: 768px) {
	.carousel-slides {
		width: 200px;
		height: 150px;
	}

	.carousel-arrow-left {
		left: -0.5rem;
	}

	.carousel-arrow-right {
		right: -0.5rem;
	}
}



.project.animate-in {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
				transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
				background-color 0.3s ease,
				box-shadow 0.3s ease;
}

.project.animate-in:nth-child(1) { transition-delay: 0.05s; }
.project.animate-in:nth-child(2) { transition-delay: 0.12s; }
.project.animate-in:nth-child(3) { transition-delay: 0.19s; }
.project.animate-in:nth-child(4) { transition-delay: 0.26s; }
.project.animate-in:nth-child(5) { transition-delay: 0.33s; }
.project.animate-in:nth-child(6) { transition-delay: 0.40s; }

.project.featureed.animate-in { transition-delay: 0s; }

.project-placeholder.animate-in {
	transition-delay: 0s;
}

