/* CUSTOM FONT */
@font-face {
  font-family: 'MyCustomFont';
  src: url('font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* TITLE BAR (retro window header) */
.title-bar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: linear-gradient(#d9d6cf, #c4c0b8);
  border-bottom: 1px solid #000;
}

/* buttons on left */
.title-bar .buttons {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}

.title-bar .buttons .btn {
  width: 10px;
  height: 10px;
  border: 1px solid #000;
}

.btn.close { background: #f4a3a3; }
.btn.min   { background: #f7dea3; }
.btn.max   { background: #a6d8a6; }

/* TITLE TEXT */
.title-bar .title {
  font-family: 'MyCustomFont', sans-serif;
  font-size: 14px;
  padding-left: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: url('zg.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'MyCustomFont', sans-serif;
  color: #111;
}

/* ⭐ PHOTOS PAGE — CUSTOM BACKGROUND ⭐ */
.photos-page {
  background: url('photosbg.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* ⭐ BOARD PAGE — CUSTOM BACKGROUND ⭐ */
.board-page {
  background: url('photo.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* Top menu bar */
.menu-bar {
  background: rgba(224, 221, 214, 0.85);
  backdrop-filter: blur(3px);
  border-bottom: 2px solid #000;
  padding: 4px 20px;
  font-size: 12px;
}

.menu-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-title {
  font-family: 'MyCustomFont', sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #111;
}

.site-title:hover {
  opacity: 0.6;
}

.menu-bar a {
  text-decoration: none;
  color: #111;
}

.logo {
  height: 14px;
  width: auto;
}

/* MAIN PAGE LAYOUT */
#desktop {
  min-height: calc(100vh - 30px);
  padding: 20px;
  display: grid;
  grid-template-columns: 720px 1fr 720px;
  column-gap: 40px;
}

.window {
  background: rgba(249, 247, 241, 0.92);
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-size: 12px;
  backdrop-filter: blur(2px);
  transition: all 0.25s ease;
}

.hover-window:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 6px 6px 0 #000;
  cursor: pointer;
}

.window-body {
  padding: 20px 12px 12px;
  font-size: 16px;
}

.middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.window-small {
  width: 100%;
  max-width: 720px;
}

.art-img {
  width: 100%;
  height: auto;
  display: block;
}

.art-list input {
  width: 100%;
  border: 1px solid #000;
  padding: 2px 4px;
  background: #f9f7f1;
}

.art-thumb {
  width: 100%;
  border: 1px solid #000;
  margin-bottom: 6px;
}

.window-right .window-body {
  padding-top: 1px;
}

.title-bar .title {
  font-size: 18px;
}

@media (max-width: 900px) {
  #desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .window-small {
    max-width: 100%;
  }
}

/* =============================== */
/* PHOTOS PAGE: 3-COLUMN GRID      */
/* =============================== */

#desktop.photos-layout {
  min-height: calc(100vh - 30px);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

#desktop.photos-layout .window-small {
  max-width: 100%;
}

#desktop.photos-layout .window-body {
  padding: 8px;
}

@media (max-width: 1100px) {
  #desktop.photos-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  #desktop.photos-layout {
    grid-template-columns: 1fr;
  }
}

.photo-click {
  cursor: zoom-in;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

#lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
  background: #f9f7f1;
}

/* ========================= */
/* BOARD PAGE: FULL WINDOW   */
/* ========================= */

#desktop.board-full {
  min-height: calc(100vh - 30px);
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.window-full {
  width: 100%;
  max-width: 1400px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.board-body {
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.board-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
