:root {
  --text-color: #1a1a1a;
  --muted: #666;
  --background: #ffffff;
  --quote-border: #e5e5e5;
}

/* =========================
   Base Page
========================= */
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-color);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Homepage */
.museum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* =========================
   Page Shell (outer wrapper only)
   NOTE: no width control here
========================= */
.page {
  padding: 40px 24px;
}

.museum-main {
  max-width: 950px;
  margin: 0 auto;
}

.museum-layout {
  max-width: 950px;
  margin: 0 auto;
}

/* =========================
   Title System
========================= */


/* =========================
   Paragraph
========================= */
p {
  font-size: 18px;
  margin: 16px 0;
}

/* Optional lead paragraph */
.lead {
  font-size: 20px;
  color: var(--muted);
}

/* =========================
   Blockquote (museum identity layer)
========================= */
blockquote {
  margin: 24px 0;
  padding: 12px 18px;

  border-left: 3px solid var(--quote-border);
  color: var(--muted);

  font-style: italic;
}

/* =========================
   Images
========================= */
img {
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  display: block;
}

/* =========================
   Links
========================= */
a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: #ccc;
}

a:hover {
  text-decoration-color: #000;
}

/* Homepage */

.exhibit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumbnail {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.meta .title {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
}

.meta .description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.muted {
  color: #888;
  font-size: 13px;
}

.signature {
  margin-top: 16px;
  font-size: 12px;
  color: #999;
}

.gallery {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery img {
  margin: 0;
  border-radius: 6px;
}

@media (max-width: 600px) {

  .museum-grid {
    display: block;
    padding: 0;          /* IMPORTANT: remove horizontal waste */
  }

  .exhibit-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px 0;  /* vertical spacing only */
  }

  .thumbnail {
    width: 54px;
    height: 54px;
    object-fit: cover;
    display: block;
    margin: 8px 0 0 0;           /* critical: remove global img margin effect */
    flex-shrink: 0;
  }

  .meta {
    flex: 1;
    min-width: 0;
  }

  .exhibit-card > a {
    display: flex;
    line-height: 0;
  }
}

video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;

  margin: 24px auto;

  border: 1px solid #eee;
  border-radius: 8px;

  background: #fafafa;
}

.museum-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.museum-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    max-width: 72px;
    object-fit: contain;
    display: block;
}

.museum-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.museum-title-group h1 {
    margin: 0;
}

.museum-title-group .subtitle {
    margin-top: 4px;
}

.museum-footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.footer-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 24px;

    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Exhibit reading pages */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 900px) {
  .door-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .door-grid {
    grid-template-columns: 1fr;
  }
}

.door-card {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.door-title {
  font-weight: 600;
  font-size: 18px;
}

.door-subtitle {
  font-size: 13px;
  opacity: 0.7;
}

.footer-links {
    margin-top: 0px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;

    display: flex;
    flex-direction: column;
    gap: 20px;

    align-items: flex-start;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.share-message {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;

    text-align: left;
    align-self: center;

    max-width: 520px;
}

.share-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;

    justify-content: center;
    align-items: center;

    margin-top: 0px;
    flex-wrap: wrap; /* keeps it safe on small screens */
}

.share-button,
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border: 1px solid #d0d0d0;
    border-radius: 999px;

    background: white;
    color: #222;

    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1;

    cursor: pointer;

    transition: all 0.15s ease;
}

.share-button:hover,
.copy-button:hover {
    background: #f7f7f7;
    border-color: #bdbdbd;
}

.share-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
