* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 16px/1.4 Times, "Times New Roman", serif;
}

a {
  color: #00e;
}

.top {
  text-align: center;
  padding: 18px 12px 8px;
}

.logo-link {
  display: inline-block;
}

.logo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.line {
  margin: 8px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.aside {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #444;
}

.sub {
  margin: 10px 0 0;
  font-style: italic;
}

#app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 12px 48px;
}

.post-wrap {
  max-width: 100%;
  margin: 0 auto;
}

h1,
h2 {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.is-1 {
  grid-template-columns: 1fr;
}

.grid.is-2 {
  grid-template-columns: 1fr 1fr;
}

.grid.is-many {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  display: block;
  color: #000;
  text-decoration: none;
  background: #fff;
  border: 1px solid #000;
  text-align: left;
}

.card:hover {
  background: #f6f6f6;
}

.card-pic {
  position: relative;
  background: #eee;
}

.card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.grid.is-2 .card img,
.grid.is-1 .card img {
  height: 240px;
}

.grid.is-many .card img {
  height: 200px;
}

.card.is-sold img {
  opacity: 0.55;
}

.sold-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 3px 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.card-meta {
  padding: 8px 10px 10px;
}

.card-price {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.card-name {
  margin: 2px 0 0;
}

.empty {
  text-align: center;
  padding: 40px 8px;
}

.stage {
  margin: 0 0 8px;
  background: #fff;
}

.stage img {
  display: block;
  width: 100%;
  max-height: 42vh;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 4px;
  margin: 0 0 16px;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: #111;
  cursor: pointer;
  aspect-ratio: 1;
}

.thumbs button.is-on {
  border-color: #ff0;
}

.thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.repeat {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.desc {
  white-space: pre-wrap;
  margin: 0 0 18px;
}

.buy {
  font: inherit;
  font-size: 1rem;
  padding: 6px 10px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #000;
}

.phone {
  margin: 12px 0 0;
}

.phone a {
  font-size: 1.2rem;
  font-weight: 700;
}

.back {
  display: inline-block;
  margin: 0 0 14px;
}

.admin form,
.login {
  max-width: 480px;
}

label {
  display: block;
  margin: 0 0 10px;
}

input,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  padding: 6px;
  margin-top: 3px;
  border: 1px solid #000;
  background: #fff;
}

textarea {
  min-height: 120px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.row button,
.row input[type="submit"] {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}

.err {
  color: #a00;
}

.list {
  margin-top: 28px;
}

.item {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 10px 0;
}

.slot {
  display: flex;
  flex-direction: column;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 0 10px;
  font-size: 0.95rem;
}

.tools button {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}

.tools button:disabled {
  opacity: 0.35;
  cursor: default;
}

.sorter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.tile {
  position: relative;
  width: 110px;
}

.tile img {
  display: block;
  width: 110px;
  height: 82px;
  object-fit: cover;
  background: #eee;
}

.tile-btns {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.tile-btns button {
  font: inherit;
  padding: 2px 6px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}

.tile-btns button:disabled {
  opacity: 0.35;
}

.first {
  display: block;
  font-size: 0.75rem;
  margin-top: 2px;
}

.foot {
  text-align: center;
  padding: 0 12px 48px;
  font-size: 0.85rem;
}

.foot a {
  color: #666;
}

.about {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: left;
  font-size: 1rem;
  color: #000;
}

.about h2,
.about-toggle {
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
  text-decoration: underline;
}

.about p {
  margin: 0 0 14px;
}

@media (max-width: 699px) {
  .grid.is-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .logo {
    width: 136px;
    height: 136px;
  }

  #app {
    max-width: 860px;
    padding: 12px 18px 56px;
  }

  .card img,
  .grid.is-2 .card img,
  .grid.is-1 .card img {
    height: 280px;
  }

  .grid.is-many .card img {
    height: 230px;
  }

  .stage img {
    max-height: 46vh;
  }
}

@media (min-width: 1200px) {
  .logo {
    width: 168px;
    height: 168px;
  }

  #app {
    max-width: 1680px;
    padding: 16px 32px 72px;
  }

  .post-wrap {
    max-width: 1320px;
  }

  .grid.is-1 {
    max-width: 1280px;
    margin: 0 auto;
  }

  .card img {
    height: 52vh;
    min-height: 320px;
    max-height: 580px;
  }

  .grid.is-1 .card img {
    height: 56vh;
    min-height: 400px;
    max-height: 620px;
  }

  .grid.is-2 .card img {
    height: 48vh;
    min-height: 360px;
    max-height: 560px;
  }

  .grid.is-many .card img {
    height: 280px;
    min-height: 230px;
    max-height: 320px;
  }

  .stage img {
    max-height: 70vh;
  }

  .about {
    max-width: 720px;
  }
}
