:root {
  --bg: #16181d;
  --bg-card: #222530;
  --bg-card-hover: #2b2f3c;
  --text: #ECECEC;
  --text-muted: #9a9ca5;
  --gold: #D4A843;
  --gold-soft: rgba(212, 168, 67, 0.15);
}

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

/* 錨點跳轉時預留 sticky header 的高度，避免標題被蓋住 */
html {
  scroll-padding-top: 80px;
}

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 24, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-search {
  font-size: 1rem;
  border-bottom: none !important;
  opacity: 0.7;
  padding: 6px 4px !important;
}
.nav-search:hover { opacity: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 60vh;
  min-height: 380px;
  max-height: 620px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 60px 40px 40px;
  background: linear-gradient(to top, rgba(16,17,21,0.95) 10%, rgba(16,17,21,0.4) 60%, transparent 100%);
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #16181d;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-overlay h2 {
  font-size: 1.8rem;
  font-weight: 900;
  max-width: 800px;
  margin-bottom: 8px;
}

.hero-overlay p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #16181d;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  transition: filter 0.2s;
}

.btn-gold:hover { filter: brightness(1.1); }

.hero-dots {
  position: absolute;
  bottom: 16px;
  right: 30px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
}

.dot.active { background: var(--gold); }

/* Sections */
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Album / gallery pages */
.page-header {
  padding: 40px 0 10px;
}

.breadcrumb {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  transition: color 0.2s;
}

.breadcrumb:hover { color: var(--gold); }

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
}

.page-header .page-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.score-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.score-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.score-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.award-section {
  padding: 30px 0;
}

.award-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.featured-card .featured-ph {
  aspect-ratio: 16/9;
}

.featured-card .featured-ph.portrait {
  aspect-ratio: auto;
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* 銀牌、銅牌約金牌 2/3 大小 */
.featured-card.size-silver {
  max-width: 66.7%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .featured-card.size-silver {
    max-width: 100%;
  }
}

.featured-card p {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
}

.featured-card p span {
  margin-left: 12px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* 依視窗寬度自動決定欄數：每階設定不同最小寬度，畫面越寬欄數越多，
   數字越前面（等級越高）最小寬度越大，照片也跟著越大 */
.photo-grid.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.photo-grid.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo-grid.grid-5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
/* 6欄固定：碩學會士 12 張兩排專用，靠下對齊 */
.photo-grid.grid-6 {
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
}
.photo-grid.grid-6 .photo-card { display: flex; flex-direction: column; align-items: center; }
.photo-grid.grid-6 .photo-ph { aspect-ratio: auto; }
.photo-grid.grid-6 img.photo-ph {
  object-fit: unset;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 14vw;
}

/* 8欄固定：博學會士 16 張兩排專用
   橫幅：填滿欄寬，高度自然 (長邊=欄寬)
   直幅：max-height≈11vw，長邊和橫幅長邊相近，無黑邊 */
.photo-grid.grid-8 {
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
}
.photo-grid.grid-8 .photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.photo-grid.grid-8 .photo-ph { aspect-ratio: auto; }
.photo-grid.grid-8 img.photo-ph {
  object-fit: unset;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 11vw;
}

/* 博學會士照片說明兩欄對齊 */
.photo-captions {
  margin-top: 8px;
  border-collapse: collapse;
  width: auto;
  white-space: normal;
}
.photo-captions td {
  padding: 2px 12px 2px 0;
  vertical-align: top;
  line-height: 1.9;
}
.photo-captions td:first-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}

/* 博學會士創作理念 */
.creation-concept {
  margin-top: 10px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.03);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-muted);
  white-space: pre-line;
}

/* grid-3、grid-4 再大 20% */
.photo-grid.grid-3-lg { grid-template-columns: repeat(auto-fit, minmax(312px, 1fr)); }
.photo-grid.grid-4-lg { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 最高等級只有 1 張時，不要整排拉滿，改成跟三欄並排時同寬 */
.photo-grid.grid-3:has(> .photo-card:only-child) {
  grid-template-columns: minmax(0, calc((100% - 2 * 16px) / 3));
}

/* 最高榮譽（特優等）大圖網格：最小寬度拉高，讓欄數最多停在 2 欄，
   確保即使張數和下層相同，特優每張也一定比下層大 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 20px;
}

/* 歷史檔案／活動花絮總覽卡片：封面 + 標題 + 日期/簡述
   用 flex-wrap 固定卡片寬度，數量少時自然留白，不會被拉伸成超大卡片 */
.archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.archive-card {
  display: block;
  flex: 0 1 260px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
}

.archive-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.archive-card .photo-ph {
  border-radius: 0;
  aspect-ratio: 4/3;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0c0d10;
}

.archive-card .news-placeholder {
  aspect-ratio: 4/3;
  height: auto;
}

.archive-body {
  padding: 14px 16px;
}

.archive-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.archive-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 6px;
}

.archive-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 歷史清單依年份摺疊，筆數一多也不會塞滿畫面 */
.archive-year {
  margin-bottom: 10px;
}

.archive-year > summary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
}

.archive-year > summary::-webkit-details-marker { display: none; }

.archive-year > summary::before { content: '▸ '; }

.archive-year[open] > summary::before { content: '▾ '; }

.archive-year .archive-grid {
  margin-top: 14px;
  margin-bottom: 10px;
}

.section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: row;
}

.news-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.news-thumb {
  position: relative;
  flex: 0 0 140px;
  min-height: 96px;
  background: #0c0d10;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0c0d10;
  cursor: zoom-in;
}

.pdf-embed {
  width: 100%;
  height: 85vh;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.pdf-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  background: linear-gradient(135deg, #2b2f3c, #1c1f28);
  letter-spacing: 4px;
}

.photo-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #16181d;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  z-index: 2;
}

.news-body {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 6px;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* 首頁本月優秀作品：固定 4 欄，每張比一般 6 欄大 50% */
#featured-grid {
  grid-template-columns: repeat(4, 1fr);
}
#featured-grid img.photo-ph {
  object-fit: contain;
}

.photo-card p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.photo-card p span {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 2px;
}

.photo-ph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-card), #0c0d10);
}

/* 真實照片（<img class="photo-ph">）：等比裁切填滿，蓋掉漸層底色 */
img.photo-ph {
  display: block;
  object-fit: cover;
  background: #0c0d10;
}

.ph1 { background: linear-gradient(135deg, #3a4a5c, #1a222c); }
.ph2 { background: linear-gradient(135deg, #4a3c2c, #1f1810); }
.ph3 { background: linear-gradient(135deg, #5c4a2c, #2c2010); }
.ph4 { background: linear-gradient(135deg, #2c4a3c, #10231c); }
.ph5 { background: linear-gradient(135deg, #4a2c3c, #23101c); }
.ph6 { background: linear-gradient(135deg, #3c3c5c, #18182c); }
.ph7 { background: linear-gradient(135deg, #5c3c2c, #2c1810); }

.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a + a {
  margin-left: 16px;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--gold);
  color: #16181d;
}

/* Quick links */
.quicklinks-section {
  padding-bottom: 60px;
}

.quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.quicklinks a {
  background: var(--bg-card);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.quicklinks a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 30px 0;
  margin-top: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner > div {
  text-align: center;
}

.footer-inner h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-links a:hover { color: var(--gold); }

.visitor-counter {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.visitor-counter img {
  height: 20px;
  vertical-align: middle;
}

/* About page */
.about-text p {
  margin-bottom: 16px;
  color: var(--text);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.history-table th,
.history-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.history-table th {
  color: var(--gold);
  font-weight: 700;
}

.history-table tbody tr:hover {
  background: var(--bg-card);
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 6px 0;
  color: var(--text-muted);
}

.info-list li strong {
  display: inline-block;
  min-width: 110px;
  color: var(--text);
}

.award-title.section-gap {
  margin-top: 36px;
}

.info-list.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(10, auto);
  grid-auto-flow: column;
  gap: 0 24px;
}

@media (max-width: 900px) {
  .info-list.cols-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(15, auto);
  }
}

@media (max-width: 540px) {
  .info-list.cols-3 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

/* 會歌樂譜 */
.score-wrap {
  text-align: center;
  margin: 24px 0;
}

.score-image {
  max-width: 100%;
  width: 640px;
  border-radius: 8px;
}

/* Rules / regulations page */
.rules-doc {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0 24px;
  margin-bottom: 16px;
}

.rules-doc > summary {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
}

.rules-doc > summary::-webkit-details-marker { display: none; }

.rules-doc > summary::before { content: '▸ '; }

.rules-doc[open] > summary::before { content: '▾ '; }

.rules-content {
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.rules-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.rules-chapter {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 20px 0 10px;
}

.rules-content p {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.92rem;
}

.rules-content ul.rules-list {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.rules-content ul.rules-list li {
  margin-bottom: 4px;
}

/* 捐贈名錄 */
.merit-group {
  margin-bottom: 20px;
}

.merit-group:last-child {
  margin-bottom: 0;
}

.merit-group .rules-list {
  padding-left: 20px;
}

.merit-date {
  display: inline-block;
  min-width: 44px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Lightbox */
.photo-card,
.featured-card {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 60px 20px;
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 1024px;
  width: 100%;
}

/* 題名含「組照」的寬幅照片：放大顯示區域，長邊比一般照片再寬 50% */
.lightbox-content.wide {
  max-width: 1500px;
}

.lightbox-photo {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

/* 顯示真實照片時：不裁切，依原始長寬完整顯示（直幅、寬幅組照皆適用） */
.lightbox-photo.has-img {
  aspect-ratio: auto;
  width: 100%;
  height: min(1024px, 90vh);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-photo.has-img img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 18px;
  text-align: center;
}

.lightbox-level {
  display: inline-block;
  background: var(--gold);
  color: #16181d;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.lightbox-title {
  font-size: 1.4rem;
  font-weight: 900;
}

.lightbox-author {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: #16181d;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox { padding: 70px 16px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-close { width: 38px; height: 38px; top: 12px; right: 12px; }
}

/* 圖片燈箱（最新消息縮圖點開看完整圖） */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 60px 20px;
}

.img-lightbox.active { display: flex; }

.img-lightbox-photo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .img-lightbox { padding: 70px 16px; }
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav a:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  #featured-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-overlay h2 { font-size: 1.3rem; }
}

@media (max-width: 540px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-thumb { flex-basis: 110px; }
  #featured-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { text-align: left; }
}
