@font-face {
  font-family: "SegoeUI";
  src: url("../fonts/segoe-ui/Segoe UI.ttf");
}

@font-face {
  font-family: "SegoeUIBoldItalic";
  src: url("../fonts/segoe-ui/Segoe UI Bold Italic.ttf");
}

body {
  font-family: "SegoeUI";
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.desktop {
  background: url("../assets/images/window-xp-background.jpg") center center ;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 12px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.desktop .xp-window {
  height: auto;
  min-height: 420px;
}

.desktop .window-body {
  height: auto;
  padding: 20px 10px;
}

/* Window */
.xp-window {
  width: 550px;
  height: 420px;
  margin: 0 auto;
  background: #ece9d8;
  border: 3px solid #0a58e6;
  box-shadow:
    inset 1px 1px 0 #6fa7ff,
    inset -1px -1px 0 #003caa;
  color: white;
}

.title-bar {
  min-height: 30px;
  background: linear-gradient(to bottom, #2a6df2 0%, #0a53e6 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-bottom: 1px solid #003ea8;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 14px;
  color: white;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  flex-wrap: nowrap;
  min-width: 0;
  padding: 4px 0;
}

.title-left > div:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-icon {
  width: 16px;
  height: 16px;
  background: #f5d76e;
  border: 1px solid #8c7a1b;
  border-radius: 2px;
  position: relative;
}

.window-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.controls {
  display: flex;
  gap: 4px;
}

.btn {
  width: 22px;
  height: 22px;
  border: 1px solid white;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.btn.min,
.btn.max {
  background: linear-gradient(to bottom, #3b79ff, #1557d8);
}

.btn.close {
  background: linear-gradient(to bottom, #f07a59, #c73d17);
}

.window-body {
  width: 100%;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ece9d8;
  font-family: "Courier New";
  color: black;
  text-align: center;
}
.window-body h1 {
  font-size: 40px;
  margin-bottom: 10px;
  justify-content: center;
}

.window-body p {
  font-size: 20px;
}

/* Shortcuts */
.shortcuts {
  width: 520px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 70px;
  justify-items: center;
}

.shortcut {
  font-family: "SegoeUI";
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 150px;
  color: white;
  text-decoration: none;
}

.folder-icon {
  width: 64px;
  height: auto;
  image-rendering: pixelated; 
}



.shortcut span {
  font-size: 15px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}




.about-desktop {
  background: url("../assets/images/window-xp-background.jpg") center center / cover no-repeat;
  min-width: 100%;
  font-family: "SegoeUI";
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.about-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 5vh 4vw;
  margin-top: 16px;
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.polaroid {
  width: min(260px, 80vw);
  aspect-ratio: 1512 / 1912;
  overflow: hidden;
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About card */
.about-card {
  position: static;
  width: min(400px, 92vw);
  border: 1px solid #333;
  background: #b8b8b8;
}

.about-title {
  background: #315cb2;
  color: white;
  font-family: "Courier New", monospace;
  font-size: 20px;
  padding: 6px 10px;
}

.about-content {
  padding: 8px 10px;
  color: black;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.15;
}

.about-content .label {
  color: white;
  margin-bottom: 8px;
}

.notepad {
  position: static;
  width: min(45vw, 500px);
  height: 65vh;
  flex-shrink: 0;
}

.notepad .window-body {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  overflow: auto;
  padding: 10px 18px 10px;
}

.statement {
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

/* =========================
   ARTWORKS PAGE
========================= */

.artworks-desktop {
  min-height: 100vh;
  width: 100%;
  background: url("../assets/images/window-xp-background.jpg") center center / cover no-repeat;
  padding: 6vh 4vw;
  font-family: "SegoeUI", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   WINDOW (Save As)
========================= */

.save-window {
  width: min(calc(100% - 8px), 1000px);
  height: min(80vh, 700px);
  margin: 0 auto;
  background: #ece9d8;
  border: 3px solid #0a58e6;

  display: flex;
  flex-direction: column;

  box-shadow:
    inset 1px 1px 0 #6fa7ff,
    inset -1px -1px 0 #003caa;
}

/* toolbar */
.save-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: black;
  border-bottom: 1px solid #b8b8b8;
}

.dropdown {
  display: flex;
  align-items: center;
  gap: 6px;

  background: white;
  border: 1px solid #7f9db9;
  padding: 2px 6px;
  height: 24px;
  width: 220px;
}

.dropdown img {
  width: 16px;
}

.dropdown-arrow {
  margin-left: auto;
  padding-left: 6px;
}

.toolbar-icon {
  width: 18px;
  height: 18px;

}

/* =========================
   FILE AREA
========================= */

.file-area {
  flex: 1;
  min-height: 0;
  background: white;
  margin: 6px;
  border: 1px solid #7f9db9;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 28px 40px;
  align-content: start;
}

.artwork-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8a8a8a;
  font-family: "Courier New", monospace;
  font-size: 28px;
  line-height: 1;
  justify-self: stretch;
  margin-top: 4px;
  text-align: right;
}

.artwork-section-header::before {
  content: "";
  height: 1px;
  flex: 1;
  background: #e8e8e8;
}

.artwork-section-header::after {
  content: none;
}

/* =========================
   ART FOLDER (CSS BUILT)
========================= */

.folder-art {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.icon-wrapper {
  position: relative;
  width: 90px;
}

/* main folder */
.folder-art-box {
  position: relative;
  width: 100%;
  height: 70px;

  background: linear-gradient(#f7e37a, #d9c44e);
  border: 2px solid #a88f2a;
  border-radius: 4px;
}

/* tab */
.folder-art-tab {
  position: absolute;
  top: -10px;
  left: 8px;

  width: 34px;
  height: 12px;

  background: linear-gradient(#f7e37a, #e2d15a);
  border: 2px solid #a88f2a;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

/* preview images */
.folder-art-content {
  position: absolute;
  top: 9px;
  left: 14px;

  width: 62px;
  height: 48px;
  overflow: hidden;

  display: block;
}

.folder-art-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* shortcut arrow */
.arrow {
  position: absolute;
  bottom: -4px;
  left: -6px;
  width: 18px;
}

/* label */
.folder-art span {
  font-size: 20px;
  color: black;
}

.artworks-empty {
  color: black;
  font-size: 14px;
}

/* =========================
   FOOTER
========================= */

.save-footer {
  padding: 8px;
  font-size: 12px;
  color: black;
}

.footer-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.footer-row input,
.footer-row select {
  height: 24px;
  border: 1px solid #7f9db9;
  font-family: "SegoeUI";
}

.footer-row button {
  height: 26px;
  background: #ece9d8;
  border: 1px solid #003caa;
  font-family: "SegoeUI";
}


.exhibitions-desktop {
  width: 100%;
  min-height: 100vh;
  background: url("../assets/images/window-xp-background.jpg") center center ;
  padding: 3vh 2.5vw;
  font-family: "SegoeUI", Arial, sans-serif;
}




/* =========================
   FOOTER
========================= */

.work-desktop {
  width: 100%;
  min-height: 100vh;
  background: #a8a79e;
  padding: 3vh 2.5vw;
  font-family: "SegoeUI", Arial, sans-serif;
}

.work-layout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

.work-layout > .file-tree-window {
  width: 100%;
  max-width: 1400px;
  height: 280px;
  margin: 0;
  flex-shrink: 0;
}

.work-layout > .file-tree-window > .title-bar {
  cursor: pointer;
}

.work-layout > .file-tree-window.collapsed {
  height: auto;
}

.work-layout > .file-tree-window.collapsed .file-tree-body {
  display: none;
}

.file-tree-window {
  width: 230px;
  height: 88vh;
  margin: 0;
  flex-shrink: 0;
}

.file-tree-body {
  height: calc(100% - 30px);
  background: #ece9d8;
  color: black;
  font-size: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tree-header {
  height: 22px;
  background: #f4f1df;
  border-bottom: 1px solid #c8c4ad;
  padding: 5px 16px;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding-left: 8px;
  color: black;
  font-family: "SegoeUI", Arial, sans-serif;
  font-size: 12px;
}

.header-item {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.tree-link {
  font-family: "SegoeUI";
  text-decoration: underline;
  text-underline-offset: 2px;
}



.exhibitions-page .file-tree-body {
  font-family: "SegoeUI";
  font-size: 14px;
  overflow: auto;
}

.exhibitions-page .tree-header,
.exhibitions-page .tree-item {
  font-family: "SegoeUI";
  font-size: 14px;
}

.exhibitions-page .tree-item {
  min-height: 24px;
  height: auto;
  padding-top: 3px;
  padding-bottom: 3px;
}

.award-title {
  font-family: "SegoeUIBoldItalic";
}

.contact-page .file-tree-body {
  font-family: "SegoeUI";
  font-size: 18px;
}

.contact-page .tree-header {
  font-size: 14px;
}

.contact-content {
  padding: 18px 16px;
  line-height: 1.5;
  font-family: "Courier New";
  text-align: center;
}

.contact-content ul {
  display: inline-block;
  margin-top: 16px;
  padding-left: 24px;
  text-align: left;
}

.contact-content li + li {
  margin-top: 12px;
}

.tree-arrow {
  width: 12px;
  font-size: 10px;
  display: inline-block;
}

.tree-children {
  display: block;
}

.tree-children > .tree-item,
.tree-children > .tree-group > .tree-item {
  padding-left: 32px;
}

.tree-children .tree-children > .tree-item,
.tree-children .tree-children > .tree-group > .tree-item {
  padding-left: 56px;
}

.tree-group.collapsed .tree-children {
  display: none;
}

.mini-folder {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.tree-spacer {
  display: inline-block;
}

.work-main-window {
  width: 100%;
  max-width: 1400px;
  height: 92vh;
  margin: 0;
  overflow: hidden;
}

.work-main-body {
  width: 100%;
  height: calc(100% - 30px);
  background: #ece9d8;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 40px;
}

.work-details {
  padding: 28px 16px 3px;
  color: black;
  font-family: "Courier New", monospace;
  text-align: center;
}

.work-title {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: bold;
}

.work-year {
  margin-bottom: 12px;
  font-size: 18px;
}

.work-description {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.4;
}

.work-details span {
  font-weight: bold;
}

.work-page-content {
  margin-top: 24px;
}

.vimeo-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 16px auto;
}

.work-text {
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: normal;
}

.image-carousel {
  width: 100%;
  max-width: 100%;
  margin: 12px auto 0;
}

img.lightbox-image {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  cursor: default;
}

.image-carousel-main-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.image-carousel-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 32px;
}

.image-carousel-media {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.image-carousel-btn {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #a0a0a0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.image-carousel-btn:hover {
  background: #ece9d8;
}

.image-carousel-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.image-carousel-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.image-carousel-thumb {
  width: 58px;
  height: 44px;
  padding: 0;
  border: 2px solid #a0a0a0;
  background: white;
  cursor: pointer;
  flex: 0 0 auto;
}

.image-carousel-thumb.active {
  border-color: #316ac5;
}

.image-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-carousel-video-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #ece9d8;
  color: #111;
  font-size: 18px;
  line-height: 1;
}

.works-artwork-item {
  cursor: pointer;
}

.works-artwork-item.selected {
  background: #316ac5;
  color: white;
}

.work-placeholder {
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #666;
}


.tree-screen {
  width: 100%;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* make the tree big + centered */
.full-tree {
  width: min(600px, 90vw);
  height: 90vh;
  margin: 0;
}


@media (max-width: 800px) {
  
  .work-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center; /* centers children */
  }

  .work-layout > .file-tree-window,
  .work-main-window {
    width: 100%;
    max-width: 1400px;
  }

  .work-layout > .file-tree-window {
    height: 280px;
    flex-shrink: 0;
  }

  .work-main-window {
    flex: 1;
  }
}

/* Responsive */
@media (max-width: 700px) {
  .xp-window {
    width: 90%;
  }

  .work-layout > .file-tree-window,
  .work-layout > .work-main-window {
    width: 100%;
  }
  .window-body h1 {
  font-size: 20px;
  margin-bottom: 10px;
  justify-content: center;
}

  .shortcuts {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
  }

    .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .left-column {
    align-items: center;
    width: 100%;
  }

  .notepad {
    width: 92vw;
  }
}

/* stack on smaller screens */
@media (max-width: 800px) {
  .artworks-layout {
    flex-direction: column;
    align-items: center;
  }

  .file-tree-window,
  .artwork-main-window {
    width: 90vw;
  }

  .file-tree-window {
    height: 280px;
  }

  .artwork-main-window {
    height: 100vh;
    
  }
  .exhibitions-page .file-tree-window.full-tree {
    height: auto;
    width: min(600px, 90vw);
  }

}
