@media (max-width: 600px) {
  .header-nav .about {
    font-size: 1rem;
  }
}
/* Import Minion Concept font for logo */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Noto+Serif+KR:wght@200..900&family=Noto+Serif+SC:wght@200..900&family=Noto+Serif+TC:wght@200..900&display=swap');

/* Overlap title styling for spaces page (smaller than main gallery) */
h1, .main-title, .main-title-ja, .main-title-en {
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #222;
  margin: 0 0.5em 0 0;
  padding: 0;
  letter-spacing: 0.1em;
  z-index: 1;
}
.header-sub {
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #888;
  margin-left: 0.5em;
  padding: 0;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  z-index: 1;
}
.main-title-en, .overlap-en {
  color: #666;
  margin-right: 0.5em;
}
.main-title-ja {
  font-weight: 400;
  margin-right: 0.5em;
}
.overlap, .overlap-en {
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #222;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
  position: absolute;
  line-height: 1;
}
.overlap {
  left: 0.4em;
  top: 0.4em;
}
.overlap-en {
  left: 0.9em;
  top: 0;
}
h1 {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  margin: 0;
}
.main-title-ja {
  font-weight: bold;
  margin-right: 0.5em;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
}
.main-title-en {
  font-size: 1.1rem;
  color: #888;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
  font-weight: 400;
  margin-right: 0.5em;
}
/* Tooltip for AI source */
.desc-tooltip {
  position: relative;
  cursor: pointer;
  display: inline-block;
  color: #888;
  font-size: 0.9em;
  margin-left: 4px;
}
.desc-tooltip-text {
  visibility: hidden;
  width: max-content;
  background: #222;
  color: #fff;
  text-align: left;
  border-radius: 0;
  padding: 4px 8px;
  position: absolute;
  z-index: 10;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.85em;
  white-space: nowrap;
}
.desc-tooltip:hover .desc-tooltip-text,
.desc-tooltip:focus .desc-tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* Spaces Catalog Styles */
#spaces-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible; /* Allow vertical overflow to show scrollbar */
}

/* Ensure body allows vertical scrolling on spaces page */
body {
  overflow-y: auto !important;
  overflow-x: hidden;
}

.spaces-header {
  text-align: center;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 4px 0 6px 0;
  border-bottom: 1px solid #eee;
}
.header-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.about {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.1em;
  border-radius: 0;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 16px;
  margin-right: 0;
  align-self: center;
  order: 2;
  display: inline-block;
}
.about:focus {
  outline: none;
}
@media (max-width: 600px) {
  .about {
    font-size: 1rem;
  }
}
@keyframes about-rotate {
  0% { transform: rotate(0deg); }
  8% { transform: rotate(20deg); }
  12% { transform: rotate(-15deg); }
  16% { transform: rotate(10deg); }
  20% { transform: rotate(-5deg); }
  24% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.about.animate {
  animation: about-rotate 2s linear;
}
.about:hover, .about:focus {
  color: #1976d2;
  transform: scale(1.15);
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher {
  margin-bottom: 0;
  margin-top: 6px;
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem; /* tighten spacing so logo and nav sit closer to corner */
}

.overlap-wrap {
  position: relative;
  display: inline-block;
  transition: all 0.2s ease;
}

.overlap-wrap:hover {
  transform: translateY(-1px);
}

/* Logo container: single consolidated rule
   - use inline-flex to center SVGs vertically
   - set perspective and preserve-3d for 3D flip
   - nudge down slightly so baseline aligns with nav items
*/
.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: 100px;
  height: auto;
  overflow: visible;
  perspective: 1000px;
  transform-style: preserve-3d;
  transform-origin: center center;
  margin-top: 6px;
}

/* Hover subtle lift applied to wrapper, not the container, so we don't interfere with 3D transforms */
.overlap-wrap:hover {
  transform: translateY(-1px);
}

/* Logo SVG styling */
.logo-svg {
  width: 100px;
  height: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(.4,.0,.2,1);
  backface-visibility: hidden;
  will-change: transform;
}

/* ensure SVGs align vertically with text */
.logo-svg { vertical-align: middle; }

.logo-primary {
  opacity: 1;
  transform: rotateY(0deg);
}

.logo-secondary {
  opacity: 1; /* kept for smooth swap; both rendered, rely on rotation */
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Ensure SVG faces do not show their backface and control stacking during flip */
.logo-svg, .logo-primary, .logo-secondary {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.logo-primary { position: relative; z-index: 2; }
.logo-secondary { z-index: 1; }

/* When flipped, bring secondary forward */
.logo-flip .logo-primary { transform: rotateY(-180deg); z-index: 1; }
.logo-flip .logo-secondary { transform: rotateY(0deg); z-index: 2; }

/* 3D flip animation: handled via child transforms (logo-primary / logo-secondary) */

/* Active flip state */
.logo-flip .logo-primary { transform: rotateY(-180deg); }
.logo-flip .logo-secondary { transform: rotateY(0deg); }

/* Reduce font sizes inside header (navigation & language) */
.header-nav a, .lang-switcher, .lang-switcher button {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Tighten results summary if present under small header */
.results-summary { margin-top: 4px; }

/* Utility: prevent image selection flicker */
.logo-container img { user-select: none; }

@media (max-width: 600px) {
  .logo-container { width: 84px; }
  .logo-svg { width: 84px; }
  .header-main { padding: 4px 10px 0 10px; }
  .header-nav a, .lang-switcher button { font-size: 0.7rem; }
  .header-left { gap: 0.1rem; }
  .header-nav a { margin-left: 2px; padding: 4px 6px; }
  .header-main { flex-wrap: nowrap; }
  .header-main {
    justify-content: space-between;
  }
  .header-left {
    flex-grow: 1;
  }
  .header-nav a {
    flex-shrink: 1;
  }
  .lang-btn { padding: 6px 8px; }
  .header-nav .about { padding: 6px 8px; }
  .header-nav .about {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-left: 8px;
    margin-right: 0;
  }
  .about-desktop { display: none !important; }
  .about-mobile { display: inline-block !important; }
}

.header-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* make header span full width so logo can sit at the corner */
  padding: 4px 12px 0 6px; /* small left padding to nudge off the very edge */
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
  min-height: 48px;
}
.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher {
  margin-bottom: 0;
  margin-top: 6px;
}

.overlap-wrap {
  position: relative;
  display: inline-block;
  transition: all 0.2s ease;
}

.overlap-wrap:hover {
  transform: translateY(-1px);
}

/* Logo container: single consolidated rule
   - use inline-flex to center SVGs vertically
   - set perspective and preserve-3d for 3D flip
   - nudge down slightly so baseline aligns with nav items
*/
.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  width: 100px;
  height: auto;
  overflow: visible;
  perspective: 1000px;
  transform-style: preserve-3d;
  transform-origin: center center;
  margin-top: 6px;
}

/* Hover subtle lift applied to wrapper, not the container, so we don't interfere with 3D transforms */
.overlap-wrap:hover {
  transform: translateY(-1px);
}

/* Logo SVG styling */
.logo-svg {
  width: 100px;
  height: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(.4,.0,.2,1);
  backface-visibility: hidden;
  will-change: transform;
}

/* ensure SVGs align vertically with text */
.logo-svg { vertical-align: middle; }

.logo-primary {
  opacity: 1;
  transform: rotateY(0deg);
}

.logo-secondary {
  opacity: 1; /* kept for smooth swap; both rendered, rely on rotation */
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Ensure SVG faces do not show their backface and control stacking during flip */
.logo-svg, .logo-primary, .logo-secondary {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.logo-primary { position: relative; z-index: 2; }
.logo-secondary { z-index: 1; }

/* When flipped, bring secondary forward */
.logo-flip .logo-primary { transform: rotateY(-180deg); z-index: 1; }
.logo-flip .logo-secondary { transform: rotateY(0deg); z-index: 2; }

/* 3D flip animation: handled via child transforms (logo-primary / logo-secondary) */

/* Active flip state */
.logo-flip .logo-primary { transform: rotateY(-180deg); }
.logo-flip .logo-secondary { transform: rotateY(0deg); }

/* Reduce font sizes inside header (navigation & language) */
.header-nav a, .lang-switcher, .lang-switcher button {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Tighten results summary if present under small header */
.results-summary { margin-top: 4px; }

/* Utility: prevent image selection flicker */
.logo-container img { user-select: none; }

@media (max-width: 600px) {
  .logo-container { width: 84px; }
  .logo-svg { width: 84px; }
  .header-main { padding: 4px 10px 0 10px; }
  .header-nav a, .lang-switcher button { font-size: 0.7rem; }
  .header-left { gap: 0.1rem; }
  .header-nav a { margin-left: 2px; padding: 4px 6px; }
  .header-main { flex-wrap: nowrap; }
  .header-main {
    justify-content: space-between;
  }
  .header-left {
    flex-grow: 1;
  }
  .header-nav a {
    flex-shrink: 1;
  }
  .lang-btn { padding: 6px 8px; }
  .header-nav .about { padding: 6px 8px; }
  .header-nav .about {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-left: 8px;
    margin-right: 0;
  }
  .about-desktop { display: none !important; }
  .about-mobile { display: inline-block !important; }
}

.header-main h1 {
  font-size: 2rem;
  margin: 0;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
}
.header-sub {
  font-size: 1.1rem;
  color: #888;
  margin-left: 0.5em;
  font-weight: 400;
}
.header-nav a {
  color: #666;
  text-decoration: none;
  margin-left: 12px; /* reduced left margin so nav sits closer to logo */
  font-size: 1rem;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 0;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
}
.header-nav a:hover {
  color: #333;
  background: rgba(0,0,0,0.04);
  border-color: #e0e0e0;
  transform: translateY(-1px);
}
.lang-btn, .header-nav .about {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9em;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: normal;
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  border-radius: 0;
  letter-spacing: 0.1em;
}
.lang-btn.active {
  color: #1976d2;
  font-weight: bold;
}
.lang-btn:hover:not(.active), .header-nav .about:hover {
  color: #333;
  background: none;
}
.header-nav .about:focus {
  outline: none;
}
/* Remove all previous .header-nav .about rules above this point */
.about {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  letter-spacing: 0.1em;
  border-radius: 0;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 16px;
  margin-right: 0;
  align-self: center;
  order: 2;
  display: inline-block;
}
.about:focus {
  outline: none;
}
@media (max-width: 600px) {
  .about {
    font-size: 1rem;
  }
}
/* Filter and Results Styles */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-radius: 0;
  background: #fafafa;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-group {
  display: flex;
  gap: 6px;
  align-items: center;
}
.filter-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 4px 14px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.filter-btn.selected, .filter-btn:active {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}
.results-summary {
  text-align: left;
  font-size: 0.95rem;
  color: #555;
  margin: 8px 0 24px 0;
}

.spaces-header h1 {
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
  font-size: 2rem;
  margin: 0;
  padding: 0;
}

.filter {
  margin-top: 10px;
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.space-card {
  border: 1px solid #eee;
  border-radius: 0;
  overflow: visible; /* allow tooltips to overflow */
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

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

.space-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.space-info {
  padding: 15px;
}
.space-badges {
  margin: 0 0 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 0;
  background: #e3eafc;
  color: #1976d2;
  font-weight: 500;
  border: 1px solid #bbdefb;
}
.badge-location {
  background: #fff3e0;
  color: #ff9800;
  border: 1px solid #ffe0b2;
}
.badge-element {
  background: #e8f5e9;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}
.badge-style {
  background: #fce4ec;
  color: #c2185b;
  border: 1px solid #f8bbd0;
}
.badge-tag {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.space-title {
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 400;
}

.space-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 10px 0;
}

.space-status {
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  padding: 5px 10px;
  border-radius: 0;
  display: inline-block;
}

.status-available {
  background: #4CAF50;
}

.status-taken {
  background: #f44336;
}

.status-shared {
  background: #43c97f;
  color: #fff;
}


/* Modal for space details */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  margin: auto;
  padding: 24px 18px 18px 18px;
  border-radius: 0;
  max-width: 500px;
  width: 95vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  max-height: 85vh; /* Reduced from 90vh to allow more space */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  /* Ensure scrolling works on mobile */
  -webkit-overflow-scrolling: touch;
}

/* Adjust modal positioning for very tall content or small screens */
@media (max-height: 600px) {
  .modal-content {
    top: 5vh;
    transform: translate(-50%, 0);
    max-height: 90vh;
  }
}

.modal-image {
  width: 100%;
  max-width: 100%;
  max-height: 40vh; /* Reduced from 60vh to give more room for content */
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 1em;
  box-sizing: border-box;
}
.close {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #888;
  font-size: 2rem;
  font-weight: normal;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
  transition: color 0.2s;
}
.close:hover {
  color: #f44336;
}
.modal-info {
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  max-height: 50vh; /* Allow scrolling within modal info */
  flex: 1; /* Allow modal-info to grow and fill available space */
}

.modal-info h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5em 0;
  font-family: "Noto Serif JP", "Noto Serif KR", "Noto Serif SC", "Noto Serif TC", Arial, serif;
}
.modal-info p {
  margin: 0.3em 0;
  font-size: 0.98rem;
}
.modal-contact {
  margin: 1em 0 0.5em 0;
  font-size: 1rem;
}
.modal-contact a {
  color: #1976d2;
  text-decoration: underline;
  margin: 0 0.5em 0 0;
}
.modal-instructions {
  margin: 1em 0 0.5em 0;
  font-size: 1rem;
  color: #333;
  font-weight: bold;
}
.modal-status {
  margin: 1em 0 0 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #b00;
}

/* Embedded map styling */
.map-section {
  margin: 1.5em 0 2em 0;
}

.map-section h3,
.map-section h4 {
  margin-bottom: 1em;
  color: rgb(253, 98, 120);
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
}

.map-section h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.8em;
}

.embedded-map {
  border: 2px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(253, 98, 120, 0.15);
  background: #fafafa;
}

.embedded-map iframe {
  display: block;
  width: 100%;
  border: none;
}

@media (max-width: 768px) {
  .embedded-map iframe {
    height: 200px;
  }
  
  .embedded-map {
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(253, 98, 120, 0.1);
  }
}

/* About Modal Styling */
.about-modal-content {
  max-width: 700px;
  width: 90vw;
  max-height: 85vh;
  padding: 0;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.about-modal-info {
  font-family: 'Times New Roman', 'STIX Two Text', serif;
  line-height: 1.6;
  color: #444;
  padding: 40px 32px 28px 32px;
  overflow-y: auto;
  max-height: calc(85vh - 100px); /* leave some space for banner */
}

/* GAP Banner styling */
.about-banner {
  box-sizing: border-box;
  padding: 0;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: absolute;
  top: -1px; /* extend beyond modal border */
  left: -1px; /* extend beyond modal border */
  right: -1px; /* extend beyond modal border */
  width: calc(100% + 2px); /* account for left/right border */
  z-index: 1;
  /* Remove aspect ratio constraint, let image determine height */
  overflow: hidden;
}

.gap-banner-img {
  width: 100%;
  height: auto;
  object-fit: contain; /* show full image without cropping */
  object-position: top left; /* align to top-left */
  display: block;
  max-width: 100%;
}

.gap-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .about-modal-content {
    padding: 0;
    max-height: 90vh; /* increase modal height on mobile */
  }
  
  .about-modal-info {
    padding: 24px 16px;
    max-height: calc(90vh - 120px); /* leave more space for banner on mobile */
    overflow-y: auto;
  }
  
  .about-banner {
    position: absolute;
    top: -1px; /* extend beyond modal border */
    left: -1px; /* extend beyond modal border */
    right: -1px; /* extend beyond modal border */
    width: calc(100% + 2px); /* account for left/right border */
    text-align: left;
    overflow: hidden;
    min-height: 80px; /* ensure minimum height on mobile */
  }
  
  .gap-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top left;
    display: block;
    max-width: 100%;
    min-height: 80px; /* ensure minimum height */
  }
  
  .about-lang-section {
    min-height: calc(100vh - 200px); /* ensure content area is tall enough */
  }
}

.about-modal-info h2 {
  font-family: 'Times New Roman', 'STIX Two Text', serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 1.5em 0;
  color: #333;
  text-align: center;
}

.about-modal-info p {
  margin: 0 0 1.2em 0;
  font-size: 1rem;
  text-align: justify;
  color: rgb(253, 98, 120);
  font-family: "Times New Roman", serif;
  font-weight: bold;
  font-style: italic;
  line-height: 1.2;
}

.about-modal-info ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.about-modal-info ol li {
  margin: 0.5em 0;
  font-size: 1rem;
  color: rgb(127, 120, 110);
  font-family: "STIX Two Text", serif;
  font-weight: bold;
  font-style: italic;
  line-height: 1.2;
}

.about-credits {
  margin-top: 2.5em;
  padding-top: 2em;
  border-top: 1px solid #ddd;
}

.about-credits h3 {
  font-family: 'Times New Roman', 'STIX Two Text', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.8em 0;
  color: rgb(253, 98, 120);
}

.about-credits p {
  margin: 0 0 1.5em 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
}

.about-credits a {
  color: rgb(253, 98, 120);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-credits a:hover {
  color: rgb(230, 80, 100);
  text-decoration: underline;
}

.geidai-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: #666 !important;
}

.geidai-link:hover {
  text-decoration: none !important;
  color: #555 !important;
}

.geidai-logo-img {
  width: 60px;
  height: auto;
  vertical-align: middle;
  transition: transform 0.2s ease;
  filter: grayscale(20%);
}

.geidai-link:hover .geidai-logo-img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.maps-link {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Modal close button positioning fix */
.about-modal-content .close {
  top: 16px;
  right: 20px;
  color: #999;
  font-size: 1.8rem;
  z-index: 20;
  background: rgba(250, 250, 250, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.about-modal-content .close:hover {
  color: rgb(253, 98, 120);
  background: rgba(250, 250, 250, 1);
}

@media (max-width: 768px) {
  .about-modal-content {
    padding: 36px 24px 20px 24px;
    max-width: 95vw;
  }
  
  .about-modal-info h2 {
    font-size: 1.6rem;
  }
  
  .about-modal-info p,
  .about-modal-info ol li {
    font-size: 0.95rem;
  }
  
  .about-credits h3 {
    font-size: 1.2rem;
  }
  
  .geidai-logo-img {
    width: 50px;
  }
  
  .about-modal-content .close {
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    width: 28px;
    height: 28px;
  }
}

/* Update thumbnails in modal */
.space-updates {
  margin-top: 1em;
  width: 100%;
  overflow: hidden;
}

.space-update {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
}

.update-header {
  margin-bottom: 0.5em;
  font-size: 0.9em;
  color: #666;
}

.update-text {
  margin: 0.5em 0;
  font-size: 0.95em;
}

.update-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5em;
  width: 100%;
  overflow: hidden;
}

.update-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.update-thumb:hover {
  border-color: #1976d2;
}

/* Language switcher styles */
.lang-switcher {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}
.lang-separator {
  color: #888;
  margin: 0 4px;
  font-size: 0.9em;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9em;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: normal;
  font-family: 'Noto Serif JP', 'Noto Serif KR', 'Noto Serif SC', 'Noto Serif TC', serif;
  border-radius: 0;
  letter-spacing: 0.1em;
}
.lang-btn.active {
  color: #1976d2;
  font-weight: bold;
}
.lang-btn:hover:not(.active) {
  color: #333;
}
.lang-separator {
  color: #888;
  margin: 0 4px;
  cursor: default;
}