/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066CC;
  --primary-dark: #004C99;
  --secondary-color: #333333;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-lighter: #fafafa;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.header-tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-main {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 30px 18px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-item > a:hover {
  color: var(--primary-color);
  background-color: var(--bg-lighter);
}

.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  list-style: none;
}

.dropdown li {
  border-bottom: 1px solid var(--border-color);
}

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

.dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 25px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: #000;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  max-width: 600px;
  z-index: 10;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
  color: var(--primary-color);
  font-size: 3.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
  border: none;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-prev:hover,
.hero-next:hover {
  background-color: white;
  color: var(--primary-color);
}

.hero-prev {
  left: 30px;
}

.hero-next {
  right: 30px;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-indicator.active {
  background-color: white;
  transform: scale(1.2);
}

/* 重要なお知らせ */
.important-notice {
  background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
  padding: 60px 0;
}

.notice-content {
  text-align: center;
}

.notice-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.notice-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.notice-body p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* ボタン */
.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* セクション共通 */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

/* News & Topics */
.news-section {
  background-color: var(--bg-lighter);
}

.news-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}

.news-tab {
  padding: 10px 30px;
  background-color: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.news-tab:hover,
.news-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.news-list {
  list-style: none;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: var(--bg-lighter);
}

.news-date {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.news-label {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 3px;
}

.news-label-news {
  background-color: #e3f2fd;
  color: #1976d2;
}

.news-label-tech {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.news-link {
  flex: 1;
  color: var(--text-color);
  font-size: 0.95rem;
}

.news-link:hover {
  color: var(--primary-color);
}

.news-more {
  text-align: center;
  margin-top: 3rem;
}

/* 会社紹介 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.intro-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.intro-image:hover img {
  transform: scale(1.05);
}

/* 技術情報 */
.tech-section {
  background-color: var(--bg-lighter);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tech-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.tech-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.tech-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* 会社情報 */
.company-info {
  background-color: var(--bg-lighter);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.info-card {
  background-color: white;
  padding: 50px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.info-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.info-label {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

/* フッター */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
  padding-left: 5px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ページヘッダー */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* コンテンツセクション */
.content-section {
  padding: 80px 0;
}

/* セクションタイトル（小） */
.section-title-small {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0; 
  padding-bottom: 0; 
}

/* =========================================
   เฉพาะหน้า Products (Layout, Grid & Lightbox)
   ========================================= */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px; 
  background-color: var(--bg-lighter);
  padding: 25px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: var(--text-color);
  background-color: white;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.85rem;
}

.sidebar-menu a .count {
  font-size: 0.8rem;
  color: var(--text-light);
}

.sidebar-menu a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.sidebar-menu a:hover .count {
  color: rgba(255, 255, 255, 0.8);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px dashed var(--border-color);
}

.category-card {
  text-align: center;
}

.category-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.category-card a:hover {
  transform: translateY(-5px);
}

.category-btn {
  width: 100%;
  margin-top: -5px;
  border-radius: 0 0 4px 4px;
  font-size: 0.85rem;
  padding: 10px;
}

.black-placeholder {
  background-color: #000;
  width: 100%;
  aspect-ratio: 4/3; 
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.category-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; 
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

.album-link {
  font-size: 0.95rem; 
  font-weight: 500;
  color: var(--text-color);
  text-decoration: underline; 
  transition: var(--transition);
  margin-bottom: 0.3rem; 
}

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

.category-detail-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px; 
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-item {
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-image-frame {
  width: 100%;
  aspect-ratio: 4/3; 
  background-color: #000;
  overflow: hidden;
  position: relative; 
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.4s ease;
  color: transparent; 
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 15px;
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
  display: flex;
  justify-content: center;
}

.gallery-overlay p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.gallery-item:hover .gallery-image-frame img {
  transform: scale(1.1);
}

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

.gallery-caption {
  padding: 12px 15px;
  text-align: left; 
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--bg-lighter); 
  min-height: 45px;
  display: flex;
  align-items: center;
}

.gallery-more {
  text-align: center;
  Margin-top: 3rem;
}

/* =========================================
   ระบบ Lightbox (Popup แบบไดนามิก)
   ========================================= */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 40px 0; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; 
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh; 
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
  overflow: hidden; 
  display: flex;
  flex-direction: column;
}

.lightbox-scrollable-content {
  overflow-y: auto; 
  width: 100%;
  max-height: 100%;
}

.lightbox-main-img-container {
  width: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
}

.lightbox-main-img {
  width: 100%;
  height: auto;
  max-height: 55vh; 
  object-fit: contain;
  display: block;
}

.lightbox-info {
  padding: 30px;
}

.lightbox-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

/* คลาสใหม่สำหรับเนื้อหาไดนามิก (ข้อความ และ รูปเสริม) */
#lightboxDynamicContent {
  width: 100%;
  text-align: left; /* บังคับชิดซ้ายทั้งหมด */
}

.lightbox-desc {
  display: block;
  width: 100%;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 15px; 
  clear: both; /* ข้อ 3: ตัดขึ้นบรรทัดใหม่เสมอเมื่อมีข้อความแทรก */
}

.lightbox-extra-img {
  display: inline-block; /* ข้อ 1 & 2: เรียงรูปจากซ้ายไปขวา ต่อเนื่องกัน */
  vertical-align: top; /* จัดขอบบนของรูปให้เสมอกัน */
  height: 250px; /* ข้อ 2: ล็อกความสูงให้เท่ากันเสมอ */
  width: auto;   /* ความกว้างยืดหยุ่นตามรูปจริง */
  max-width: 100%; /* ป้องกันรูปล้นจอ */
  object-fit: contain; 
  margin: 0 10px 15px 0; /* ข้อ 4: จัดชิดซ้าย เว้นระยะขวาและล่าง */
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  background-color: transparent; /* เอาพื้นหลังดำออกให้คลีนขึ้น */
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 15px;
  transition: 0.3s;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(0,0,0,0.9);
  color: var(--primary-color);
}

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

/* =========================================
   Responsive 
   ========================================= */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .header-container { padding: 0 20px; height: 70px; }
  .header-logo h1 { font-size: 1.3rem; }
  .header-tagline { font-size: 0.7rem; }
  
  .mobile-menu-toggle { display: flex; }
  .header-nav { 
    display: none; 
    position: absolute;
    top: 70px; 
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .header-nav.active { 
    display: block; 
  }
  
  .nav-main {
    flex-direction: column;
    padding: 0;
  }
  .nav-item { width: 100%; }
  .nav-item > a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .layout-with-sidebar { 
    grid-template-columns: 1fr; 
    gap: 30px; 
  }
  .sidebar { 
    position: static; 
    margin-bottom: 20px; 
  }
  
  .category-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .category-header-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-logo h1 { font-size: 1.1rem; }
  .lightbox-modal { padding: 20px 0; }
  .lightbox-content-wrapper { width: 95%; max-height: 95vh; }
  .lightbox-info { padding: 20px; }
  .lightbox-nav { font-size: 30px; padding: 10px; }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  .lightbox-close { right: 15px; top: 0px;}
  .intro-grid { display: flex; flex-direction: column-reverse; }
  .info-grid { display: flex; flex-direction: column; }
  .tech-grid { display: flex; flex-direction: column; }
  
  /* ในมือถือ อนุญาตให้รูปเล็กลงได้ถ้าจอมันเล็กกว่า 250px */
  .lightbox-extra-img { height: auto; max-height: 250px; }
}

@media (max-width: 480px) {
  .category-overview-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}