@charset "utf-8";

:root {
	--header-color: magenta;
	--accent-color: yellow;
}
/* CSS Document */
/*-GET FONTS--------------------------------------------------------*/
@font-face {
	font-family: 'Saltburn';
	src: url("wt-saltburn/1_WOFF/WTSaltburn-Regular.woff");
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Saltburn';
	src: url("wt-saltburn/1_WOFF/WTSaltburn-Italic.woff");
	font-weight: 400;
	font-style: italic;
}
@font-face {
	font-family: 'Saltburn';
	src: url('wt-saltburn/1_WOFF/WTSaltburn-Heavy.woff');
	font-weight: 700;
	font-style: normal;
}
@font-face {
	font-family: 'Saltburn';
	src: url('wt-saltburn/1_WOFF/WTSaltburn-HeavyItalic.woff');
	font-weight: 700;
	font-style: italic;
}
@font-face {
	font-family: 'Saltburn';
	src: url('wt-saltburn/1_WOFF/WTSaltburn-Thin.woff');
	font-weight: 300;
	font-style: normal;
}
@font-face {
	font-family: 'Saltburn';
	src: url('wt-saltburn/1_WOFF/WTSaltburn-ThinItalic.woff');
	font-weight: 300;
	font-style: italic;
}
/* Get Fonts */
/*-Global Styling----------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
	padding: 0;
	margin: 0;
}


body {
	font-family:'Saltburn';
	font-weight: 400;
	font-style: normal;
	color: #000000;
	overflow-x: hidden;
	font-size: 1em;
	min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
	position: relative;
	margin: .5em 1em;
	flex: 1;
}

/*Global Styling*/
/*Global Font styles---------------------------------------------------*/
h1 {
	font-weight: 700;
	width: 100;
	margin: 2em 1em 1em 1em;
	font-size: 1.5em;
}

h2 {
	font-weight: 700;
	width: 100;
	margin: 3em 1em 1em 1em;
	font-size: 1.2em;
}

.centered {
	text-align: center;
}

a {
	text-decoration: none;
	font-size: 1em;
	color: fuchsia;
}

a:hover {
	color: blue;
}

p {
	margin: 1em 2em;
	text-align: justify;
}

dl {
    display: grid;
    grid-template-columns: 3em 1fr;
    gap: .2em 1em;
	margin: 1em 2em;
}
dt {
    grid-column: 1;
}
dd {
    grid-column: 2;
    margin: 0;
}

hr {
    border: none;
    border-top: 1px solid black;
    margin: 1em 0;
}

.cv-section {
	margin-left: 1em;
}


/*Global Font styles*/
/*Header-------------------------------------------------------------*/
header {
	position: relative;
}
.header-text {
	position: relative;
	width: 100%;
	height: auto;
	background: var(--header-color);
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.header-text h1 {
	width: 100%;
	font-weight: 700;
	margin: 0;
	color: #000000;
	font-size: 1.3em;
	z-index: 100;
	padding: .3em .5em 0rem .5em;
}
/*Footer-------------------------------------------------------------*/
footer {
    margin-top: 10em;
}
.footer-text {
    width: 100%;
    height: auto;
    background: var(--header-color);
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: .3em .5em;
}
.footer-text small {
    font-size: .85em;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: .3em;
	padding: .3em .5em 0 .5em;
	white-space: nowrap;
}
.breadcrumb-sep {
	color: black;
}
.breadcrumb-node {
	font-size: 1em;
	color: black;
}
.breadcrumb-link {
	text-decoration: none;
	color: black;
}
.breadcrumb-link:hover {
	color: blue;
}

#index {
	background: var(--header-color);
}




/*Header*/
/* ---------------- Organization Bar ---------------- */
.sort-bar {
	width: 100%;
	margin-top: 2em;
}
.sort-bar p {
	margin: 0;
	padding: 0;
}
.sort-bar-line {
	width: 100%;
	height: 4px;
	background: var(--accent-color);
	border-top: 1px solid black;
	margin-bottom: .5em;
	padding: 0;
}
.sort-buttons {
	display: flex;
	gap: 1em;
}
.sort-buttons a {
	color: black;
	padding: 0 .2em .9em .2em;
	height: 1em;
	width: auto;
	background: white;
	border: 3px solid var(--accent-color);
	box-shadow: 0 0 0 1px black;
}
.sort-buttons .active {
	background: var(--accent-color);
}
.sort-buttons a:hover {
	background: var(--accent-color);
}

/* ============================================================
   IMAGE DIRECTORY
   Used on pages with photo archives and carousel (e.g. sidewalk restoration).
   Container class: .image-directory
   ============================================================ */
.image-directory {
	margin: 2em 2em 2em .5em;
}
.image-directory .folder {
	padding: .5em 0;
}
.image-directory .folder-content {
	margin-left: 1rem;
	display: none;
}
/* Folder title with arrow and double-line effect */
.image-directory .folder-title {
	position: relative;
	cursor: pointer;
	padding-left: 1.5em;
	padding-bottom: .4em;
	margin-bottom: 0;
}
.image-directory .folder-title::before {
	content: "\25B6";
	position: absolute;
	font-size: 1.5em;
	left: 0;
	top: .1em;
	width: .5em;
	height: .5em;
	line-height: .7em;
	text-indent: -.1em;
	text-align: left;
	background-color: white;
	z-index: 2;
}
.image-directory .folder-title.open::before {
	content: "\25BC";
}
.image-directory .folder-title::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0em;
	height: 4px;
	background: var(--accent-color);
	box-shadow: 0 -1.5px 0 black;
	z-index: 1;
}
/* Thumbnails grid */
.image-directory .folder-content.open .thumbnails {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(100px, 100fr));
	gap: .1em;
	justify-items: center;
	width: 100%;
	box-sizing: border-box;
	margin-top: -4px;
	padding: 5px;
	border: 4px solid var(--accent-color);
	box-shadow: 0 0 0 1.5px black;
}
.image-directory .thumbnails img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: none;
}
.image-directory .thumbnails img:hover {
	cursor: pointer;
}

/* ============================================================
   LINK DIRECTORY
   Used on pages that list links to subpages or projects.
   Container class: .link-directory
   ============================================================ */
.link-directory {
	margin: 2em 2em 2em .5em;
}
.link-directory .folder {
	padding: 0.1em 0;
}
.link-directory .folder-content {
	margin-left: 1rem;
	display: none;
}
/* Top-level labels (Work, About): static, no arrow, no underline */
.link-directory .folder-title.top-level-title {
	cursor: default;
	padding-left: 0;
	padding-bottom: 0;
	margin-bottom: .3em;
}
/* Sub-group folders: arrow and double-line for toggle affordance */
.link-directory .folder-title.sub-group {
	position: relative;
	cursor: pointer;
	padding-left: 1.5em;
	padding-bottom: .4em;
	margin-bottom: 0;
}
.link-directory .folder-title.sub-group::before {
	content: "\25B6";
	position: absolute;
	font-size: 1.5em;
	left: 0;
	top: .1em;
	width: .5em;
	height: .5em;
	line-height: .7em;
	text-indent: -.1em;
	text-align: left;
	background-color: white;
	z-index: 2;
}
.link-directory .folder-title.sub-group.open::before {
	content: "\25BC";
}
.link-directory .folder-title.sub-group::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0em;
	height: 4px;
	background: var(--accent-color);
	box-shadow: 0 -1.5px 0 black;
	z-index: 1;
}
/* Leaf nodes: plain links, no arrow, no underline */
.link-directory .folder-title.leaf {
	display: block;
	cursor: pointer;
	padding-left: 0;
	padding-bottom: 0;
	margin-bottom: .2em;
	text-decoration: none;
}

/* ---------------- Carousel ---------------- */
.carousel-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	background-color: hsla(0,0%,100%,0.75);
	backdrop-filter: blur(5px);
	z-index: 999;
}
.carousel-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.scroll-feed {
	flex: 1;
	display: flex;
	overflow-x: scroll;
	scrollbar-gutter: stable;
	scroll-behavior: smooth;
	padding: 1rem;
	gap: .5rem;
	align-items: center;
	justify-items: center;
	justify-content: flex-start;
}
.scroll-feed img {
	max-height: 70vh;
	max-width: 1000px;
	object-fit: cover;
}

.scroll-spacer {
    flex-shrink: 0;
    width: 50vw;
}

.carousel-ui {
	position: relative;
	height: 3rem;
	background: white;
	color: black;
	z-index: 10000;
	pointer-events: auto;
}
.folder-name {
	font-weight: 700;
	position: absolute;
	left: 0.5rem;
	top: 1em;
	transform: translateY(-50%);
	white-space: nowrap;
	z-index: 10001;
	pointer-events: auto;
}
.nav-buttons {
	position: absolute;
	right: 3rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 10001;
	pointer-events: auto;
	padding: 0;
	margin: 0;
}
button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
 .close-btn {
	background: red;
	border: 2px solid white;
	box-shadow: 0 0 0 1.5px black;
	padding: .15em 0 0 0;
	font-size: 1.5rem;
	margin: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10002;
	pointer-events: auto;
}
.close-btn {
	color: white;
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
	font-size: 2em;
	font-weight: 900;
}

#prev-btn, #next-btn {
	background: white;
	border: 4px solid #00e660;
	box-shadow: 0 0 0 1.5px black;
	padding: .15em 0 0 0;
	font-size: 1.5rem;
	margin: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10002;
	pointer-events: auto;
}
/* Custom scrollbar — WebKit */
.scroll-feed::-webkit-scrollbar {
	height: 12px;
	width: 12px;
}
.scroll-feed::-webkit-scrollbar-track {
	background: var(--accent-color);
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}
.scroll-feed::-webkit-scrollbar-thumb {
	background: white;
	border-radius: 0px;
	border: 2px solid black;
}
.scroll-feed::-webkit-scrollbar-thumb:hover {
	background: white;
}

/* ------- MOBILE / PORTRAIT STYLES ------- */
@media (max-width: 1500px) and (orientation:portrait) {

	body {
		font-size: 2em;
	}

	#header-text {
		font-size: 1.05em;
	}

	.image-directory .folder-content.open .thumbnails {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	.sort-buttons {
		width: 100%;
		gap: .5em;
	}

	.sort-buttons a {
		flex: 1 1;
		text-align: center;
		padding-bottom: 1.2em;
		padding-top: .1em;
	}

	.image-directory .folder {
		margin: .7em 0;
	}

	.scroll-feed {
		flex-direction: column;
		overflow-y: auto;
		overflow-x: hidden;
		align-items: flex-start;
		justify-content: flex-start;
	}
	.scroll-feed img {
		width: 100%;
	}

	.carousel-ui {
		height: 4em;
		border-top: 4px solid var(--accent-color);
		box-shadow: 0 0 0 1.5px black;
	}

	.nav-buttons {
		visibility: collapse;
	}

	.close-btn {
		font-size: 3em;
		width: .7em;
		height: .7em;
		right: .2em;
	}

	.folder-name {
		top: 1.3em;
	}

}

.disclaimer {
	position: absolute;
	width: 100%;
	text-align: center;
	top: 5vw;
	z-index: -1;
	color: orangered;
}

/* ============================================================
   IMAGE BLOCK
   Modular inline image display. Drop .image-block divs anywhere
   in page content. Use data-layout="grid" or data-layout="feed".
   ============================================================ */
.image-block {
	margin: 1em auto 3em auto;
}

/* Grid layout: thumbnail grid, same style as image directory */
.image-block-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: .1em;
	padding: 5px;
	border: 4px solid var(--accent-color);
	box-shadow: 0 0 0 1.5px black;
}
.image-block-grid img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	cursor: pointer;
}

/* Feed layout: full-width vertical stack */
.image-block-feed {
	width: 100%;
	margin: auto;
	display: flex;
	flex-direction: column;
	gap: .5em;
}
.image-block-feed img {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
}

.image-block-caption {
	width: 100%;
	text-align: center;
	margin: .4em 0 0 0;
	padding: 0;
	font-size: 1em;
	color: black;
	font-weight: 300;
}

@media (max-width: 1500px) and (orientation:portrait) {
	.image-block-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}
