:root {
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-bg: #f7f7f7;
  --color-fg: #000000;
  --color-accent: ;
  --color-border: rgba(0, 0, 0, 0.14);
  --max-width: 960px;
}


/* Meta Links Styling */
.meta-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 1.5em 0 2em 0;
}

.meta-link-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 0.75em 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95em;
}

.meta-link-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 700;
  color: var(--color-fg);
  min-width: 100px;
  text-align: left;
}

.meta-link-row a {
  color: var(--color-fg);
  text-decoration: none;
}

.meta-link-row a:hover {
  background: var(--color-fg);
  color: var(--color-bg);

}

.meta-tag {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 0.35rem;
  padding: 0.1em 0.7em;
  margin-right: 0.4em;
  font-size: 0.92em;
  font-weight: 500;
  color: var(--color-fg);
  text-decoration: none;
  transition: background 0.2s, border 0.2s;
}

.meta-tag:hover {
  background: #e0e0e0;
  border-color: var(--color-fg);
  color: var(--color-accent);
}


/* Common Layout Classes */
.page-header {
  margin-bottom: 2em;
  border-bottom: var(--color-border) 1px solid;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1em;
}

.page-title {
  margin: 0;
}

.btn-primary {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease-in-out;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--color-fg);
  color: var(--color-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.35rem;
  height: 2rem;
  padding: 0 0.75rem;
  gap: 0.375rem;
  outline: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-primary:hover {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-bg);
  text-decoration: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Complete button reset to match anchor tag styling exactly */
button.btn-primary {
  /* Reset all browser default button styles */
  border: none;
  margin: 0;
  padding: 0;
  background: none;
  font: inherit;
  cursor: inherit;
  outline: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* Apply all the same styles as .btn-primary anchor tags */
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease-in-out;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--color-fg);
  color: var(--color-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.35rem;
  height: 2rem;
  padding: 0 0.75rem;
  gap: 0.375rem;
  outline: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

button.btn-primary:hover {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-bg);
  text-decoration: none;
}

button.btn-primary:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}

button.btn-primary:active {
  transform: scale(0.97);
}

button.btn-primary:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button variants following shadcn/ui patterns */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease-in-out;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-fg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.35rem;
  height: 2rem;
  padding: 0 0.75rem;
  gap: 0.375rem;
  outline: none;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: var(--color-fg);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease-in-out;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--color-fg);
  background: transparent;
  color: var(--color-fg);
  border-radius: 0.35rem;
  height: 2rem;
  padding: 0 0.75rem;
  gap: 0.375rem;
  outline: none;
}

.btn-outline:hover {
  background: var(--color-fg);
  color: var(--color-bg);
  text-decoration: none;
}

/* Button sizes */
.btn-sm {
  height: 1.75rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}



.project-list {
  display: block;
  margin-top: 2em;
}

.project-list.featured {
  margin-top: 5em;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2em;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.project-row.padded {
  padding: 0.2em 0;
}

.project-link {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
  font-size: 2.1em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.project-link.compact {
  line-height: 1.05;
}

.project-thumb-inline {
  height: 38px;
  width: auto;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1.5px solid #eee;
  vertical-align: middle;
  margin-left: 0.7em;
}

/* Multiple thumbnails styling */
.project-thumbnails {
  display: inline-flex;
  margin-left: 0.7em;
  gap: 0.4em;
  align-items: center;
  width: 100%;
  max-height: 41px;
}

.project-thumbnails .project-thumb-inline {
  margin-left: 0;
}



.project-year {
    font-size: 0.7em;
    color: #888;
    margin-bottom: -2;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    background-color: rgba(0, 0, 0, 0.07);
    flex-shrink: 0;
}

.section-title {
  margin-bottom: 0.7em;
  color:rgb(191, 191, 191)
}

.image-full {
  width: 100%;
}

/* ========================================
   RESPONSIVE IMAGE STYLES
   ======================================== */

/* Default responsive images - match main container behavior */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 0.35rem;
  
  /* Container behavior matching main layout */
  width: 100%;
  max-width: var(--max-width); /* 960px max, same as main container */
  
  /* Center images within their containers */
  margin-left: auto;
  margin-right: auto;
}

/* Images within content should be responsive but not necessarily full width */
p img, 
li img, 
blockquote img {
  margin: 1em auto;
  max-width: 100%;
  width: auto; /* Allow natural sizing within text */
}

/* Inline images should not be full width */
img[style*="display: inline"],
img.inline {
  display: inline;
  width: auto;
  max-width: 100%;
  margin: 0 0.25em;
  vertical-align: middle;
}

/* Thumbnail and small images */
.project-thumb-inline,
img[alt*="thumb"],
img[alt*="icon"] {
  width: auto;
  max-width: 200px;
  margin: 0.5em;
}

/* Full-width images that should break out of text flow */
.image-full,
img[alt*="full-width"],
img[alt*="hero"] {
  width: 100%;
  max-width: var(--max-width);
  margin: 2em auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  img {
    margin: 1em auto;
  }
  
  .image-full {
    margin: 1.5em auto;
  }
  
  /* Ensure thumbnails don't get too large on mobile */
  .project-thumb-inline {
    max-width: 150px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  img {
    margin: 0.75em auto;
  }
  
  .project-thumb-inline {
    max-width: 120px;
  }
}

/* ========================================
   END RESPONSIVE IMAGE STYLES
   ======================================== */

/* ========================================
   TABLE STYLES - SHADCN INSPIRED
   ======================================== */

/* Tables - shadcn-inspired styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

thead {
  border-bottom: 1px solid var(--color-border);
}

th {
  height: 3rem;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

th[align="center"] {
  text-align: center;
}

th[align="right"] {
  text-align: right;
}

tbody {
  border: none;
}

tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

tr:last-child {
  border-bottom: none;
}

td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
  vertical-align: top;
}

td[align="center"] {
  text-align: center;
}

td[align="right"] {
  text-align: right;
}

/* First column alignment - ensure top alignment */
td:first-child,
th:first-child {
  vertical-align: top;
}

/* Table cell variants */
.table-cell-header {
  font-weight: 600;
}

/* Table responsive wrapper */
.table-wrapper {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
}

/* ========================================
   END TABLE STYLES
   ======================================== */

/* Responsive embedded videos (YouTube, Vimeo, etc.) */
iframe {
  max-width: 100%;
  border-radius: 0.35rem;
  margin: 1.5em 0;
}

/* YouTube/Vimeo iframes with automatic responsive height */
iframe[src*="youtube.com"], 
iframe[src*="youtu.be"], 
iframe[src*="vimeo.com"] {
  width: 100%;
  height: 315px; /* Default height for smaller screens */
  aspect-ratio: 16/9; /* Modern browsers will use this for proper ratio */
}

/* Standard video aspect ratio container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1.5em 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.empty-state {
  background: #f8f8f8;
  border: 1.5px solid #eee;
  padding: 3em 5em;
  margin: 2em 0;
  border-radius: 0.35rem;
  max-width: 600px;
}



.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e6e6e6;
  border-radius: 0.35rem;
  font-size: 16px;
  font-family: inherit;
  background-color: #ffffff;
  color: #747474;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(99, 91, 255, 0.1);
  background-color: #ffffff;
}

.form-input:hover {
  border-color: #d1d5db;
}

.form-input::placeholder {
  color: #a0a6b1;
  opacity: 1;
}

/* Form styling enhancements */
label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #7a7a7a;
  margin-bottom: 6px;
  margin-top: 16px;
}

label:first-of-type {
  margin-top: 0;
}

.form-input.spaced {
  margin: 1em 0;
}

.form-input.narrow {
  width: 100px;
}

.form-submit {
	width: 100%;
	margin-top: 2em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 150ms ease-in-out;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid var(--color-fg);
	background: var(--color-fg);
	color: var(--color-bg);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	border-radius: 0.35rem;
	height: 2.5rem;
	padding: 0 1rem;
	gap: 0.375rem;
	outline: none;
}

.form-submit:hover {
	background: rgba(0, 0, 0, 0.9);
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.form-submit:focus-visible {
	outline: 2px solid var(--color-fg);
	outline-offset: 2px;
}

.form-submit:active {
	transform: translateY(1px);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.footer-info {
  text-align: left;
  margin: 3em 0;
  color: #888;
  font-size: 0.95em;
}

.main-centered {
  max-width: 600px;
  margin: 3em auto;
}

.main-404 {
  max-width: 600px;
  margin: 5em auto;
  text-align: center;
}

.title-404 {
  font-size: 3em;
}

.subtitle-404 {
  font-size: 1.3em;
}

.footer-custom {
  text-align: left;
  margin: 7em 0;
  color: #888;
  font-size: 0.95em;
}

@media (max-width: 600px) {
  .footer-custom {
    font-size: 0.8em;
  }
}

/* Simple mobile styles for meta links and tags */
@media (max-width: 600px) {
  .meta-links {
    margin: 1em 0 1.5em 0;
    padding: 0 0.5em;
  }
  .meta-link-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5em 0;
    font-size: 1em;
  }
  .meta-label {
    min-width: 0;
    margin-bottom: 0.2em;
    font-size: 1em;
  }
  .meta-tag {
    font-size: 1em;
    margin-bottom: 0.3em;
    padding: 0.15em 0.9em;
  }
  
  .page-header {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5em;
  }
  
  .page-title {
    padding-bottom: 0.75em;
    margin-bottom: 0.75em;
    border-bottom: var(--color-border) 1px solid;
  }
  
  .header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .btn-primary {
    justify-self: start;
  }
  
  .project-link {
    font-size: 1.8em;
  }
  
  .project-thumb-inline {
    height: 36px;
    margin-left: 0.5em;
  }
  
  .project-thumbnails {
    margin-left: 0.5em;
    gap: 0.3em;
  }
  
  /* Mobile table responsiveness */
  table {
    font-size: 0.8rem;
    margin: 1rem 0;
  }
  
  th, td {
    padding: 0.5rem 0.75rem;
  }
  
  th {
    height: 2.5rem;
  }
}

/* Responsive video sizing */
@media (min-width: 768px) {
  iframe[src*="youtube.com"], 
  iframe[src*="youtu.be"], 
  iframe[src*="vimeo.com"] {
    height: 400px; /* Larger height for tablet+ screens */
  }
}

@media (min-width: 1024px) {
  iframe[src*="youtube.com"], 
  iframe[src*="youtu.be"], 
  iframe[src*="vimeo.com"] {
    height: 500px; /* Even larger for desktop screens */
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  transition: background-color 0.2s;
}

.breadcrumb-link:hover {
  background-color: var(--color-fg);
  color: var(--color-bg);
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-header {
  margin-bottom: 2em;
  border-bottom: var(--color-border) 1px solid;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1em;
}

/* Footer Actions */
.footer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

/* Files Section */
.files-section {
  margin: 3rem 0 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.files-section h2 {
  margin-bottom: 1.5rem;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  border: 1px solid var(--color-border);
  border-radius: 0.35rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.file-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--color-fg);
}

.file-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.file-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-fg);
}

.file-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.875rem;
  color: #666;
}

.file-type {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.file-size {
  font-size: 0.8rem;
  color: #888;
}

/* Video styling */
video {
  border-radius: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #000;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .page-header {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5em;
    border: none;
  }
  
  .page-title {
    padding-bottom: 0em;
    margin-bottom: 0.21em;
    border-bottom: var(--color-border) 1px solid;
  }
  
  .header-actions {
    justify-content: flex-start;
  }
  
  .breadcrumb-nav {
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.75rem;
  }
  
  .footer-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .file-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .file-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
  }
}

/* External Link Styling */
.external-link-icon {
  margin-right: 0.5em;
  font-size: 0.9em;
  padding-left: 14px;
}

.project-link[target="_blank"] {
  position: relative;
}

.project-link[target="_blank"]:hover .external-link-icon {
  opacity: 1;
}
