
.moments-editorial-page main > section:not(.gallery-section):not(.back-section) {
  padding: 0;
}

.moments-editorial-page main {
  padding-right: 0;
}

html:has(.moments-editorial-page) body {
  background-color: #f1ede5;
}

.moments-editorial-page {
  --bg-color: #f1ede5;
  --primary-jade: #1C4A3C;
  --accent-gold: #B8860B;
  --text-main: #2C2C2C;
  --light-jade: rgba(28,74,60,0.08);
  --medium-jade: rgba(28,74,60,0.67);
  --soft-white: #FAFAF8;
  --warm-cream: #FFF5EC;
  --shadow: 0 18px 45px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gold-gradient: linear-gradient(135deg, #C9A962 0%, #B8860B 50%, #8B6914 100%);
  --ink-80: rgba(44,44,44,.82);
  --ink-65: rgba(44,44,44,.65);
  --ink-50: rgba(44,44,44,.50);
  --ink-35: rgba(44,44,44,.35);
  --ink-20: rgba(44,44,44,.20);
  --rule: rgba(44,44,44,.12);
  --paper: rgba(255,255,255,.46);
  --paper-2: rgba(255,255,255,.62);

  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
.hero-editorial {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left {
  position: relative;
  background: var(--primary-jade);
  overflow: hidden;
}

.hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.float-label {
  position: absolute;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
}

.float-label.top-left {
  top: 40px;
  left: 40px;
}

.float-label.mid-left {
  top: 35%;
  left: 40px;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
}

.hero-number {
  position: absolute;
  bottom: 80px;
  left: 40px;
  font-family: "Noto Serif TC", serif;
  font-size: 180px;
  font-weight: 900;
  color: white;
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -10px;
}

.hero-number span {
  font-size: 100px;
  opacity: 0.5;
}

.hero-right {
  position: relative;
  padding: 60px calc(60px + var(--rail-gutter, 0px)) 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.corner-info {
  position: absolute;
  top: 40px;
  right: 60px;
  text-align: right;
}

.corner-number {
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-50);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.corner-title {
  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-jade);
}

.corner-arrow {
  display: inline-block;
  margin-right: 12px;
  font-size: 18px;
  color: var(--accent-gold);
}

.hero-title-group {
  margin-bottom: 60px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 16px;
}

.hero-main-title {
  font-family: "Noto Serif TC", serif;
  font-size: 72px;
  font-weight: 900;
  color: var(--primary-jade);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 8px;
}

.hero-subtitle-en {
  font-size: 13px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--ink-35);
  font-weight: 600;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.content-block {
  position: relative;
}

.content-list {
  list-style: none;
  margin-bottom: 20px;
}

.content-list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-65);
  margin-bottom: 8px;
  font-weight: 600;
}

.content-list li span {
  color: var(--accent-gold);
  font-weight: 700;
}

.content-desc {
  font-size: 14px;
  color: var(--ink-80);
  line-height: 1.9;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.panel-number {
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}

.panel-title {
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink-80);
}

.panel-desc {
  font-size: 13px;
  color: var(--ink-50);
  line-height: 1.8;
}

.panel-thumbnail {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.panel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.panel-thumbnail:hover img {
  transform: scale(1.05);
}

.side-cards {
  position: absolute;
  right: 60px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px;
}

.side-card {
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.side-card:hover {
  background: var(--primary-jade);
  color: white;
  transform: translateX(-4px);
}

.side-card:hover .card-icon {
  background: rgba(255,255,255,0.2);
}

.card-icon {
  width: 36px;
  height: 36px;
  background: var(--light-jade);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.card-text {
  flex: 1;
}

.card-label {
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-value {
  font-size: 13px;
  font-weight: 700;
}

.card-arrow {
  font-size: 14px;
  opacity: 0.5;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 60px;
  /* border-top: 1px solid var(--rule); */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
}

.bottom-left {
  display: flex;
  flex-direction: column;
}

.bottom-org {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-35);
}

.bottom-tagline {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-65);
}

.bottom-counter {
  font-family: "Noto Serif TC", serif;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.counter-current {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-jade);
}

.counter-divider {
  font-size: 20px;
  color: var(--ink-35);
  margin: 0 4px;
}

.counter-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-35);
}

.gallery-section {
  padding: 80px calc(60px + var(--rail-gutter, 0px)) 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.gallery-title-group {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.gallery-title {
  font-family: "Noto Serif TC", serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-jade);
}

.gallery-count {
  font-size: 14px;
  color: var(--ink-50);
  font-weight: 600;
}

.gallery-masonry {
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: inherit;
  color: inherit;
}

button.gallery-item:focus-visible {
  outline: none;
  box-shadow: var(--focus, 0 0 0 3px rgba(184, 134, 11, 0.35));
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,74,60,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-number {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 1px;
}

.overlay-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.back-section {
  padding: 0 calc(60px + var(--rail-gutter, 0px)) 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.back-link:hover {
  background: var(--primary-jade);
  border-color: var(--primary-jade);
  transform: translateX(-4px);
  color: #fff;
}

.back-link:hover,
.back-link:hover span {
  color: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  color: var(--ink-80);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox-close:hover {
  background: var(--accent-gold);
  color: white;
  transform: rotate(90deg);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: white;
  border: none;
  border-radius: 50%;
  color: var(--primary-jade);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox-nav:hover {
  background: var(--primary-jade);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    height: 50vh;
    min-height: 400px;
  }
  .hero-right {
    padding: 40px calc(40px + var(--rail-gutter, 0px)) 40px 40px;
  }
  .hero-main-title {
    font-size: 48px;
  }
  .side-cards {
    position: static;
    width: 100%;
    flex-direction: row;
    margin-top: 32px;
  }
  .side-card {
    flex: 1;
  }
  .hero-bottom {
    position: static;
    margin-top: 40px;
  }
  .gallery-masonry {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .hero-right {
    padding: 32px calc(24px + var(--rail-gutter, 0px)) 32px 24px;
  }
  .corner-info {
    position: static;
    text-align: left;
    margin-bottom: 32px;
  }
  .hero-main-title {
    font-size: 36px;
  }
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .side-cards {
    flex-direction: column;
  }
  .hero-bottom {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .gallery-section {
    padding: 48px calc(24px + var(--rail-gutter, 0px)) 80px 24px;
  }
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .gallery-masonry {
    column-count: 2;
  }
  .back-section {
    padding: 0 calc(24px + var(--rail-gutter, 0px)) 60px 24px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .hero-left {
    height: 40vh;
    min-height: 300px;
  }
  .hero-number {
    font-size: 100px;
    bottom: 40px;
    left: 20px;
  }
  .float-label {
    display: none;
  }
  .hero-main-title {
    font-size: 28px;
  }
  .gallery-masonry {
    column-count: 1;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title-group { animation: fadeInUp 0.8s ease 0.2s both; }
.hero-content-grid { animation: fadeInUp 0.8s ease 0.4s both; }
.side-cards { animation: fadeInUp 0.8s ease 0.6s both; }

.gallery-item {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }
.gallery-item:nth-child(11) { animation-delay: 0.55s; }
.gallery-item:nth-child(12) { animation-delay: 0.6s; }
  

.hero-img {
  width: 100%;
  background:
linear-gradient(
  rgba(0,0,0,0.35),
  rgba(0,0,0,0.35)
),
url('https://img1.wsimg.com/isteam/ip/efab237e-94e1-40b7-87ea-be9de3d11c0d/IMG_3243.JPG/:/');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}
.hero-right--india {
  background: url("../../../assets/images/india-neelakurinji-flower.webp") bottom / cover no-repeat;
}

.hero-right--tw {
  background: url("../../../assets/images/taiwan-cedar-draft.webp") center / contain no-repeat;
}

.hero-left--india {
  background: var(--primary-jade);
}
