:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #152d3f;
  background: #f0f4f7;
}

* { box-sizing: border-box; }
body { margin: 0; }

.gallery {
  width: min(100%, 70rem);
  margin-inline: auto;
  padding: clamp(2.25rem, 7vw, 5.75rem) clamp(1rem, 5vw, 3rem);
}

h1 {
  margin: 0 0 clamp(1.25rem, 4vw, 2.375rem);
  font-family: Arial, sans-serif;
  font-size: clamp(2.125rem, 6vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.gallery-help {
  margin: -0.875rem 0 1.5rem;
  color: #496172;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.preview-page { overflow: hidden; }

#design-frame {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  border: 0;
}

.preview-notice {
  position: absolute;
  inset: 1rem 1rem auto;
  margin: 0;
}

.designs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.875rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.design {
  display: block;
  min-height: 100%;
  border: 1px solid #c8d5dd;
  border-radius: 1.125rem;
  background: white;
  color: inherit;
  box-shadow: 0 0.5rem 1.25rem rgb(20 44 64 / 5%);
  text-decoration: none;
}

.design:hover { border-color: #607f96; box-shadow: 0 0.75rem 1.5rem rgb(20 44 64 / 11%); }
.design:focus-visible { outline: 3px solid #245a84; outline-offset: 4px; }

.design-preview {
  display: block;
  width: calc(100% - 1rem);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0.5rem 0.5rem 0;
  border: 1px solid rgb(20 44 64 / 10%);
  border-radius: 0.7rem;
  background: #edf2f5;
}

.name {
  display: block;
  padding: 0.875rem 1rem 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
