/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: white;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ===== HEADER STYLES ===== */
.site-header {
  padding: 20px 40px;
  margin-bottom: 30px;
}

.work-page .site-header {
  margin-bottom: 30px;
}

.site-header h1 {
  font-size: 24px;
  font-weight: normal;
  margin: 0;
}

.home-link {
  color: black;
  text-decoration: none;
}

.home-link:hover {
  color: red;
}

.page-highlight {
  color: black;
  text-decoration: none;
  background-color: yellow;
}

.page-highlight:hover {
  text-decoration: none;
}

.page-link {
  color: black;
  text-decoration: none;
}

.page-link:hover {
  background-color: yellow;
}

/* ===== TABLE LAYOUT (ART PAGE) ===== */
.table-wrapper {
  width: 95%;
  margin: 0 auto;
  overflow-x: hidden;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #000;
}

.projects-table td {
  border-bottom: 1px solid #000;
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.col-project {
  width: 70%;
  padding-left: 30px !important;
}

.col-category {
  width: 20%;
  text-align: left;
}

.col-year {
  width: 10%;
  text-align: right;
  padding-right: 30px !important;
}

.project-row {
  cursor: crosshair;
  transition: background-color 0.2s, color 0.2s;
}

.project-row:hover {
  background-color: blue;
  color: white;
}

.project-row:hover .col-project {
  font-style: italic;
}

.project-row.active-row .col-project {
  font-style: italic;
}

.project-row.active-row {
  background-color: blue;
  color: white;
  border-bottom: none;
}

/* Project Details */
.project-details {
  display: none;
  background-color: #ffffff;
}

.project-details td {
  padding: 0;
  border-bottom: none;
}

.details-container {
  padding: 25px 30px 40px;
  overflow: hidden;
  border-bottom: 1px solid #000;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.details-description {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.details-body {
  margin-bottom: 15px;
  line-height: 1.6;
}

.details-link {
  display: inline-block;
  margin-top: 15px;
  color: blue;
  text-decoration: none;
  font-weight: bold;
}

.details-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.details-images img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
}

/* ===== WORK PROJECT LAYOUT ===== */
.work-projects {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 20px 0 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.work-project {
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.work-title {
  font-size: 28px;
  margin: 0 0 30px 0;
  font-weight: normal;
  word-break: break-word;
  hyphens: auto;
}

.work-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.work-category {
  font-weight: bold;
  max-width: 70%;
  word-break: break-word;
}

.work-year {
  white-space: nowrap;
}

.work-description {
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
}

.work-description a {
  color: blue;
  text-decoration: underline;
  word-break: break-all;
}

.work-description a:hover {
  text-decoration: underline;
}

.work-description p {
  margin-bottom: 15px;
}

.work-description ul, .work-description ol {
  margin-left: 20px;
  margin-bottom: 15px;
  padding-right: 10px;
}

.work-links {
  margin-top: auto;
  padding-top: 20px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  color: blue;
  text-decoration: none;
  font-weight: bold;
}

.work-link:after {
  content: "→";
  margin-left: 5px;
}

.work-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.work-images img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

/* Images grid styling */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.multi-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.multi-image-gallery .image-item {
  flex: 1 1 calc(50% - 10px);
  min-width: 150px;
}

.multi-image-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.single-image {
  display: block;
  max-width: 100%;
}

.single-image .image-container {
  max-width: 800px;
  margin: 0 auto;
}

.image-container {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
  max-height: 500px;
}

.images-grid:only-child,
.images-grid:has(.image-container:only-child) {
  max-width: 100%;
}

.images-grid:has(.image-container:only-child) .image-container {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
}

/* Picture gallery styling */
.picture-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.picture-gallery[data-images] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.picture-gallery[data-images] .gallery-main {
  flex: 1;
  min-width: 200px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.gallery-nav button {
  background: none;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
}

.gallery-nav button:hover {
  background-color: #f0f0f0;
}

.gallery-nav button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* ===== FLOATING PREVIEW ===== */
.floating-preview {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  display: none;
  transform: translate(-50%, -50%);
}

.floating-preview img {
  max-width: 550px;
  scale: 1.5;
  max-height: 250px;
  object-fit: contain;
  padding: 5px;
  border-radius: 4px;
}

.image-stage {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000;
}

.image-stage img {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.image-stage img.visible {
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .work-projects {
    gap: 60px;
  }
  
  .work-content {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .work-projects {
    gap: 50px;
  }
  
  .work-project {
    padding: 0 30px;
  }
  
  .work-content {
    gap: 30px;
  }
  
  .work-images img {
    max-height: 250px;
  }
}

@media (max-width: 900px) {
  .work-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .work-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .work-images {
    order: -1;
  }
  
  .work-project {
    padding: 0 20px;
  }
  
  .work-projects {
    gap: 40px;
  }
  
  .work-title {
    font-size: 24px;
  }
  
  .work-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .work-category, .work-year {
    max-width: 100%;
  }
  
  .images-grid {
    grid-template-columns: 1fr;
  }
  
  .picture-gallery[data-images] .gallery-main {
    min-width: 150px;
  }
  
  .floating-preview {
    display: none !important;
  }
  
  .col-category {
    display: none;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .details-images {
    order: -1;
  }
  
  body {
    font-size: 14px;
  }
  
  .site-header {
    padding: 15px 20px;
  }
  
  .col-project {
    padding-left: 15px !important;
  }
  
  .col-year {
    padding-right: 15px !important;
  }
  
  .details-container {
    padding: 15px 20px 25px;
  }
  
  .table-wrapper {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .work-projects {
    gap: 30px;
  }
  
  .work-title {
    font-size: 20px;
  }
  
  .work-description {
    font-size: 14px;
  }
  
  .work-images img {
    max-height: 200px;
  }
  
  .picture-gallery[data-images] {
    flex-direction: column;
  }
  
  .picture-gallery[data-images] .gallery-main {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .work-project {
    padding: 0 15px;
  }
  
  .work-projects {
    gap: 25px;
  }
  
  .work-title {
    font-size: 18px;
  }
  
  .work-content {
    gap: 15px;
  }
  
  .work-description {
    font-size: 13px;
  }
  
  .work-images img {
    max-height: 150px;
  }
  
  .gallery-nav {
    gap: 5px;
  }
  
  .picture-gallery[data-images] {
    gap: 5px;
  }
  
  .picture-gallery[data-images] .gallery-main {
    min-width: 100%;
  }
}

@media (max-width: 380px) {
  .work-project {
    padding: 0 10px;
  }
  
  .work-title {
    font-size: 16px;
  }
  
  .work-meta {
    font-size: 12px;
  }
  
  .work-description {
    font-size: 12px;
  }
  
  .work-images img {
    max-height: 120px;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .gallery-nav button {
    background-color: #333;
    color: #fff;
    border-color: #555;
  }
  
  .floating-preview {
    background-color: rgba(0, 0, 0, 0.8);
  }
} 

/* === CUSTOM OVERRIDES === */
/* Make VeoVJ visuals larger */
.work-project#veovj .work-images img {
  max-height: 300px;
}
/* Display them in a single column so each gets full width */
.work-project#veovj .images-grid {
  grid-template-columns: 1fr;
} 