*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-size: 36px;
  background-color: #e0f27a;
  color: rgb(46, 75, 52);
}
/* ── Layout ── */
.container {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 1rem;
  border-right: 1px solid #ccc;
}
.main {
  padding: 1rem;
  background-color: #faf6ef;
}
/*scatter*/
.scatter-stage {
  position: relative;
  width: 100%;
  min-height: 400px;
  margin-top: 1rem;
  background-color: white;
  padding: 1rem;
}
.scatter-item {
  position: absolute;
  width: 200px;
  height: 160px;
  overflow: hidden;
  cursor: pointer;
}
.scatter-item img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: -20%;
  margin-top: -20%;
}
/*lightbox*/
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.lightbox-img {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  z-index: 1;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  padding: 0.5rem;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
html {
  scroll-behavior: smooth;
}
/*details plus summary style*/
details {
  border-bottom: 1px solid rgb(46, 75, 52);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
summary {
  cursor: pointer;
  user-select: none;
}
/*custom cursor-desktop*/
@media (pointer: fine) {
  * { cursor: none; }
  .cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: rgb(46, 75, 52);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }
}
@media (pointer: coarse) {
  .cursor { display: none; }
}
/*mobilee*/
@media (max-width: 600px) {
  body {
    font-size: 20px;
  }
  .container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  .scatter-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    height: auto !important;
    min-height: unset;
  }
  .scatter-item {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .scatter-item img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }
}
