/* Shared page shell and standalone panel styles for the public site. */
.section {
  padding: clamp(12px, 2.1vw, 16px);
}

.section.section-plain {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bio-preview {
  position: relative;
  max-height: 170px;
  overflow: hidden;
}

.bio-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(253, 247, 246, 0), rgba(253, 247, 246, 1));
  pointer-events: none;
}

.bio-preview.expanded {
  max-height: none;
  overflow: visible;
}

.bio-preview.expanded::after {
  display: none;
}

.copy {
  margin-top: 10px;
  line-height: 1.7;
  color: #3c2b2d;
}

.button {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-card,
.user-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  padding: 12px;
}

.home-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.home-card p {
  margin: 10px 0 0;
  line-height: 1.6;
  color: #3c2b2d;
}

.home-card a {
  color: #731726;
  word-break: break-word;
}

.gallery-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-tile {
  min-height: var(--gallery-home-video-height-desktop);
  border: var(--gallery-frame-border);
  border-radius: var(--gallery-frame-radius);
  background: var(--gallery-frame-surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
  color: var(--ink);
}

.media-tile img {
  width: 100%;
  height: var(--gallery-thumb-height-desktop);
  object-fit: cover;
  display: block;
  background: #181316;
}

.media-tile .tile-label {
  display: block;
  padding: 7px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.media-tile:hover,
.media-tile:focus-visible {
  border-color: rgba(115, 23, 38, 0.45);
}

.gallery-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.user-panel {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 242, 244, 0.72));
}

.user-panel label,
.user-panel button,
.user-panel input,
.user-panel .meta,
.user-panel .eyebrow,
.home-card a,
.home-card button,
.button {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.user-panel form {
  display: grid;
  gap: 10px;
}

.user-panel label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.user-panel input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status {
  font-size: 12px;
  color: #5a4246;
  margin: 0;
}

@media (max-width: 1040px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-grid {
    gap: 14px;
  }

  .home-card,
  .user-panel {
    padding: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .media-tile img {
    height: var(--gallery-home-video-height-mobile);
  }

  .button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 12px 14px;
  }
}
