@import url("/legal.css");
.wrap { max-width: 1280px; }
.lead { color: rgba(250, 245, 234, 0.6); margin: 0 0 28px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jump a {
  font-size: 0.82rem; text-decoration: none; color: rgba(250, 245, 234, 0.75);
  border: 1px solid rgba(250, 245, 234, 0.18); border-radius: 999px; padding: 5px 12px;
}
.jump a:hover { color: #faf5ea; border-color: rgba(250, 245, 234, 0.5); }
h2.group {
  font-size: clamp(1.6rem, 3vw, 2.1rem); border: 0; margin: 64px 0 0; padding: 0;
  letter-spacing: -0.01em;
}
section { scroll-margin-top: 24px; }
section h2 { display: flex; align-items: baseline; gap: 10px; }
section h2 span { font-size: 0.8rem; font-weight: 400; color: rgba(250, 245, 234, 0.45); }
.grid { columns: 3 320px; column-gap: 12px; }
.ph {
  display: block; break-inside: avoid; margin-bottom: 12px; border-radius: 10px;
  overflow: hidden; background: #161616;
}
.ph img { display: block; width: 100%; height: auto; transition: transform 0.4s ease, opacity 0.3s; }
.ph:hover img { transform: scale(1.025); opacity: 0.92; }
.ph:focus-visible { outline: 2px solid #faf5ea; outline-offset: 3px; }

#lb {
  position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.94);
  display: flex; align-items: center; justify-content: center;
}
#lb[hidden] { display: none; }
#lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; border-radius: 4px; }
#lb p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: 0.85rem; color: rgba(250, 245, 234, 0.7); }
#lb button {
  position: absolute; background: rgba(255, 255, 255, 0.08); color: #faf5ea; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer;
}
#lb button:hover { background: rgba(255, 255, 255, 0.18); }
#lb .x { top: 16px; right: 16px; }
#lb .p { left: 16px; top: 50%; transform: translateY(-50%); }
#lb .n { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .grid { columns: 2 140px; column-gap: 8px; }
  .ph { margin-bottom: 8px; border-radius: 6px; }
  #lb .p, #lb .n { top: auto; bottom: 44px; transform: none; }
}
