body {
  margin: 0;
  background: #ffffff;
  font-family: 'MiSansSemibold', sans-serif;
}

body.lightbox-open {
  overflow: hidden;
}

.art-page {
  width: min(1280px, calc(100% - 24px));
  margin: 22px auto 40px;
}

.art-intro {
  margin: 10px 6px 28px;
  padding: 8px 0 0;
}

.art-intro-title {
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1;
  color: #c6a6f4;
  font-weight: 800;
  margin-bottom: 18px;
}

.art-intro-text {
  font-size: clamp(22px, 5.4vw, 44px);
  line-height: 1.25;
  color: #444;
  font-weight: 700;
}

.art-intro-accent {
  color: #60e3cf;
}

.art-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 6px;
}

.art-topbar .breadcrumb {
  font-size: 14px;
  color: #666;
}

.admin-link {
  font-size: 14px;
}

.art-masonry {
  column-count: 4;
  column-gap: 14px;
}

.art-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
  text-decoration: none;
  background: transparent;
}

.art-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
}


.art-card:hover img {
  opacity: 0.96;
}

.art-empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.art-lightbox[hidden] {
  display: none;
}

.art-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
}

.art-lightbox-panel {
  position: relative;
  width: min(1100px, calc(100% - 24px));
  height: 100%;
  margin: 0 auto;
  z-index: 1;
}

.art-lightbox-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 22px 0 40px;
  box-sizing: border-box;
}

.art-lightbox-close {
  position: absolute;
  top: 14px;
  right: 0;
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(255,255,255,0.86);
  font-size: 34px;
  line-height: 46px;
  cursor: pointer;
  color: #222;
  z-index: 2;
}

.art-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: none;
  height: auto;
  margin: 36px auto 0;
}

.art-lightbox-meta {
  width: min(100%, 900px);
  margin: 18px auto 0;
  color: #222;
  text-align: left;
  line-height: 1.7;
}

.art-meta-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.art-artist {
  font-size: 16px;
}

.art-artist a {
  color: #22a2c3;
  text-decoration: none;
}

.art-meta-desc {
  margin-top: 10px;
  color: #666;
}

.admin-body {
  background: #f4f4f4;
  color: #222;
}

.admin-wrap {
  width: min(900px, calc(100% - 24px));
  margin: 24px auto;
}

.admin-tip {
  color: #666;
}

.admin-panel {
  display: grid;
  gap: 10px;
  background: #fff;
  padding: 18px;
  border-radius: 14px;
}

.admin-panel input, .admin-panel button {
  font: inherit;
  padding: 10px 12px;
}

.admin-panel button {
  border: 0;
  border-radius: 10px;
  background: #22a2c3;
  color: #fff;
}

.back-link {
  color: #22a2c3;
  text-decoration: none;
}

.code-box {
  margin-top: 16px;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-all;
  background: #111;
  color: #d5f8d5;
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .art-masonry { column-count: 3; }
}

@media (max-width: 720px) {
  .art-masonry { column-count: 2; column-gap: 10px; }
  .art-card { margin-bottom: 10px; }
  .art-topbar { margin-bottom: 12px; }
  .art-intro { margin: 4px 6px 18px; }
  .art-intro-title { margin-bottom: 12px; }
  .art-lightbox-panel { width: calc(100% - 16px); }
  .art-lightbox-close { right: 2px; top: 10px; }
  .art-lightbox-image { margin-top: 44px; }
  .art-lightbox-meta { margin-top: 14px; }
  .art-meta-title { font-size: 18px; }
  .art-artist { font-size: 15px; }
}


.art-card {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.art-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.art-lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.art-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.art-lightbox-backdrop {
  opacity: 0;
  transition: opacity .35s ease;
}

.art-lightbox.is-open .art-lightbox-backdrop {
  opacity: 1;
}

.art-lightbox-panel {
  transform: translateY(26px);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}

.art-lightbox.is-open .art-lightbox-panel {
  transform: translateY(0);
  opacity: 1;
}

.art-lightbox-image {
  cursor: zoom-out;
}

.art-lightbox-meta {
  text-align: center;
}

.art-meta-title {
  text-align: center;
}

.art-artist {
  text-align: center;
}

.art-meta-desc {
  text-align: center;
}
