/* Holiday Lights layouts: each one drawn from above, its runs of lights glowing on a night ground, is what there is to
   look at; everything round the drawings stays as quiet as Holiday Lights' own page. */

.layouts-page {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) 0 96px;
}

.lt-back a {
  color: var(--haze);
  font-weight: 650;
  text-decoration: none;
}

.lt-back a:hover {
  color: var(--moon);
  text-decoration: underline;
}

.lt-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 10px;
}

.lt-head h1 {
  font: 800 clamp(46px, 7.4vw, 88px) / 0.95 var(--display);
  font-stretch: 82%;
  letter-spacing: -0.02em;
}

.lt-head-one h1 {
  margin-top: 10px;
  font-size: clamp(36px, 5.6vw, 64px);
  overflow-wrap: anywhere;
}

.lt-lead {
  max-width: 36em;
  margin-top: 18px;
  color: var(--haze);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}

/* How to use one: three steps, folded away until wanted. */
.lt-how {
  max-width: 46em;
  margin-top: 22px;
}

.lt-how summary,
.lt-use h2 {
  color: var(--moon);
  font-weight: 700;
}

.lt-how summary {
  width: fit-content;
  cursor: pointer;
}

.lt-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--haze);
  line-height: 1.55;
}

.lt-steps li::marker {
  color: var(--amber);
  font-weight: 750;
}

.lt-steps b {
  color: var(--moon);
}

.lt-steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(196, 176, 255, 0.1);
  color: var(--moon);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* Newest or most downloaded. */
.lt-sort {
  display: inline-flex;
  gap: 4px;
  margin-top: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lt-sort-button {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--haze);
  font: 650 14.5px var(--text);
  cursor: pointer;
}

.lt-sort-button:hover {
  color: var(--moon);
}

.lt-sort-button[aria-pressed="true"] {
  background: rgba(196, 176, 255, 0.14);
  color: var(--moon);
}

.lt-sort-button:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 2px;
}

#lt-list {
  transition: opacity 0.15s;
}

#lt-list.is-loading {
  opacity: 0.55;
}

/* The gallery. */
.lt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.lt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.lt-card-art {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0822;
}

.lt-card-art .lt-drawing,
.lt-card-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 16px;
}

.lt-card h2 {
  font: 750 21px / 1.2 var(--display);
  font-stretch: 90%;
  overflow-wrap: anywhere;
}

.lt-card h2 a {
  color: var(--moon);
  text-decoration: none;
}

.lt-card h2 a:hover {
  text-decoration: underline;
}

.lt-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--haze);
  font-size: 14.5px;
}

.lt-by img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.lt-by a {
  color: var(--moon);
  font-weight: 600;
}

.lt-card-what {
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
}

.lt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.lt-card-count {
  color: var(--dim);
  font-size: 14px;
}

.lt-card-foot .button svg,
.lt-actions .button svg {
  width: 17px;
  height: 17px;
}

.lt-drawing-none {
  fill: var(--dim);
  font: 500 15px var(--text);
}

.lt-empty {
  max-width: 34em;
  margin-top: 26px;
  padding: 28px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--haze);
  line-height: 1.55;
}

.lt-empty-title {
  margin-bottom: 6px;
  color: var(--moon);
  font: 750 22px var(--display);
}

.lt-missing a {
  color: var(--moon);
}

/* One layout. */
.lt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 14px;
}

.lt-meta .lt-by {
  margin-top: 0;
  font-size: 15.5px;
}

.lt-when {
  color: var(--dim);
  font-size: 15px;
}

.lt-art {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.lt-art-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lt-figure {
  margin: 0;
}

.lt-figure img,
.lt-figure .lt-drawing {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0d0822;
  object-fit: cover;
}

.lt-figure figcaption {
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
}

.lt-about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  margin-top: 30px;
}

.lt-note {
  max-width: 36em;
  color: var(--moon);
  font-size: 17px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lt-facts {
  margin-top: 14px;
  color: var(--haze);
}

.lt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}

.lt-report {
  color: var(--dim);
}

.lt-report svg {
  width: 15px;
  height: 15px;
}

.lt-use h2 {
  font: 750 22px var(--display);
}

/* Sharing one. */
.share-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
}

.share-dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 34px);
}

.share-body {
  display: grid;
  gap: 16px;
  padding: 20px 24px;
  overflow-y: auto;
}

.share-intro,
.share-public {
  color: var(--haze);
  font-size: 15px;
  line-height: 1.5;
}

.share-intro b {
  color: var(--moon);
}

.share-public {
  color: var(--dim);
  font-size: 14px;
}

.share-file {
  padding: 9px 12px;
}

.share-file::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--moon);
  font: 600 14px var(--text);
  cursor: pointer;
}

#share-send svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 980px) {
  .lt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lt-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lt-grid,
  .lt-art-two {
    grid-template-columns: 1fr;
  }
}
