/* ========================================
   程志超 - 新上里里長候選人 官方網站
   Japanese-clean design with visual impact
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #2d4666;
  --color-primary-light: #3d5d80;
  --color-primary-lighter: #527799;
  --color-accent: #c3ab96;
  --color-accent-hover: #b09680;
  --color-accent-light: rgba(195, 171, 150, 0.18);
  --color-bg: #f5f0eb;
  --color-bg-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-text-muted: #888;
  --color-border: #e2d2bf;
  --color-hero-overlay: rgba(45, 70, 102, 0.90);
  --font-heading: 'Noto Serif TC', serif;
  --font-body: 'Noto Sans TC', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  font-weight: 700;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .nav-menu a {
  color: var(--color-text-secondary);
}

.navbar.scrolled .nav-menu a:hover {
  color: var(--color-primary);
  background: var(--color-accent-light);
}

.nav-menu a.active {
  color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  color: #fff;
  padding: var(--nav-height) 0 40px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-location::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.hero-title .label {
  display: block;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.hero-title .name {
  display: block;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 8px;
}

.hero-title .name .highlight {
  color: var(--color-accent);
}

.hero-slogan {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin: 24px 0 40px;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.8;
  max-width: 380px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  letter-spacing: 2px;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(195, 171, 150, 0.35);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Hero Image */
.hero-image {
  flex: 0 0 auto;
  width: 42%;
  max-width: 520px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(1.02);
}

.hero-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 120px;
  background: linear-gradient(to top, var(--color-primary), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Hero decorative elements */
.hero-deco {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(195, 171, 150, 0.15);
  border-radius: 50%;
  top: 10%;
  right: -50px;
  z-index: 1;
}

.hero-deco-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(195, 171, 150, 0.08);
  border-radius: 50%;
  bottom: -100px;
  right: 15%;
  z-index: 1;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: 120px 0;
  background: var(--color-bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrapper {
  position: relative;
}

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

.about-photo-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-quote {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: 2px;
}

.about-content {
  padding-top: 16px;
}

.about-intro {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 2;
}

.about-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-section-title::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.about-list {
  margin-bottom: 36px;
}

.about-list li {
  padding: 10px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ========================================
   SERVICE RECORDS SECTION
   ======================================== */
.service {
  padding: 120px 0;
  background: var(--color-bg);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.album-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: var(--color-bg-white);
}

.album-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.album-cover {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.album-card:hover .album-cover img {
  transform: scale(1.05);
}

.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(195, 171, 150, 0.35) 0%, transparent 50%);
  transition: var(--transition);
}

.album-card:hover .album-cover-overlay {
  background: linear-gradient(to top, rgba(195, 171, 150, 0.5) 0%, transparent 55%);
}

.album-info {
  padding: 24px;
}

.album-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.album-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.album-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.album-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.album-view svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.album-card:hover .album-view svg {
  transform: translateX(4px);
}

/* ========================================
   PLATFORM SECTION
   ======================================== */
.platform {
  padding: 120px 0;
  background: var(--color-bg-white);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.platform-card {
  padding: 40px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.platform-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.platform-card:hover::before {
  transform: scaleY(1);
}

.platform-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.platform-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.platform-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: 120px 0;
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact .section-label {
  color: var(--color-accent);
}

.contact .section-title {
  color: #fff;
}

.contact .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(195, 171, 150, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.contact-item-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1.05rem;
  color: #fff;
}

.contact-item-value a {
  color: #fff;
}

.contact-item-value a:hover {
  color: var(--color-accent);
}

/* Contact photo side */
.contact-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
}

.contact-deco {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(195, 171, 150, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -200px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  background: #1e2f44;
  text-align: center;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   ALBUM MODAL
   ======================================== */
.album-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.album-modal.active {
  opacity: 1;
  visibility: visible;
}

.album-modal-content {
  background: var(--color-bg);
  min-height: 100vh;
  padding: var(--nav-height) 0 60px;
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.album-modal.active .album-modal-content {
  transform: translateY(0);
}

.album-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.album-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.album-modal-close {
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-text-secondary);
}

.album-modal-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.album-modal-close svg {
  width: 20px;
  height: 20px;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.album-photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.album-photo-item:hover {
  transform: scale(1.02);
}

.album-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-photo-item:hover img {
  transform: scale(1.08);
}

/* ========================================
   VIDEO IN GRID
   ======================================== */
.album-photo-item.is-video {
  position: relative;
}

.album-photo-item.is-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.album-photo-item.is-video:hover .video-play-badge {
  background: rgba(195, 171, 150, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-badge svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 3px;
}

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

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

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  outline: none;
  background: #000;
}

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #fff;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #fff;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

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

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

/* ========================================
   ALBUM STANDALONE PAGE
   ======================================== */
.album-page-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.album-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 20px;
  transition: var(--transition);
}

.album-back-link:hover {
  color: var(--color-accent);
}

.album-back-link svg {
  width: 18px;
  height: 18px;
}

.album-page-info {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.album-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--color-primary);
}

.album-page-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.album-page-body {
  padding: 48px 0 80px;
  background: var(--color-bg);
  min-height: 60vh;
}

.album-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Ensure <a> album cards behave like block elements */
a.album-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 32px;
  }

  .hero-image {
    width: 38%;
  }

  .about-grid {
    gap: 48px;
  }

  .platform-grid {
    gap: 24px;
  }

  .contact-grid {
    gap: 48px;
  }
}

/* Tablet portrait / Large mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Navigation mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.05rem;
    padding: 14px 16px;
  }

  .nav-menu a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero mobile */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-content {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    gap: 24px;
  }

  .hero-image {
    width: 55%;
    max-width: 280px;
  }

  .hero-image::before {
    display: none;
  }

  .hero-text {
    padding: 0 0 40px;
  }

  .hero-location {
    justify-content: center;
  }

  .hero-location::before {
    display: none;
  }

  .hero-title .name {
    letter-spacing: 4px;
  }

  .hero-slogan {
    max-width: 100%;
    margin: 16px auto 32px;
  }

  .hero-deco,
  .hero-deco-2 {
    display: none;
  }

  /* About mobile */
  .about {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Service mobile */
  .service {
    padding: 80px 0;
  }

  .album-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Platform mobile */
  .platform {
    padding: 80px 0;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-card {
    padding: 28px;
  }

  /* Contact mobile */
  .contact {
    padding: 80px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-photo {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Album page & modal mobile */
  .album-photo-grid,
  .album-page-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .album-page-header {
    padding: 20px 0;
  }

  .album-page-info {
    flex-direction: column;
    gap: 4px;
  }

  .album-page-body {
    padding: 24px 0 60px;
  }

  /* Lightbox mobile */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-image,
  .lightbox-video {
    max-width: 95vw;
    max-height: 80vh;
  }

  .video-play-badge {
    width: 44px;
    height: 44px;
  }

  .video-play-badge svg {
    width: 20px;
    height: 20px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-title .name {
    font-size: 3rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .about-photo-accent {
    display: none;
  }

  .album-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-number {
    font-size: 2rem;
  }
}

/* Body scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}
