/* =========================================================
   加藤研究室 トップページ用CSS
   色を変えたい場合は、まず下の :root の値を変更してください。
   ========================================================= */
:root {
  --color-bg: #f6f7f8;
  --color-surface: #ffffff;
  --color-surface-soft: #eef3f5;
  --color-main: #18344d;
  --color-main-light: #2d5574;
  --color-accent: #7a6a43;
  --color-text: #1f252b;
  --color-muted: #67727d;
  --color-border: #dce3e8;
  --shadow-card: 0 18px 45px rgba(24, 52, 77, 0.09);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  --content-width: 1180px;
  --radius-large: 18px;
  --radius-medium: 14px;

  /* ===== トップページの見た目を調整する場所 =====
     ここを変えるだけで、主要な文字・画像サイズを調整できます。 ===== */
  --lab-name-size: clamp(1.08rem, 1.34vw, 1.24rem);
  --affiliation-size: clamp(0.88rem, 1.02vw, 0.96rem);
  --nav-size: 1.02rem;
  --hero-title-size: clamp(1.48rem, 2.15vw, 2.02rem);
  --hero-lead-size: clamp(0.93rem, 0.98vw, 0.98rem);
  --hero-image-aspect: 16 / 9;
  --section-title-size: clamp(0.94rem, 1.0vw, 1.02rem);
  --about-statement-size: 1rem;
  --section-space: 44px;
  --research-text-width: 930px;
  --research-figure-ratio: 70%;
  --publication-toc-ratio: 50%;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

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

a:hover {
  color: var(--color-main-light);
}

.container {
  width: min(var(--content-width), calc(100% - 72px));
  margin: 0 auto;
}

.container.narrow {
  width: min(860px, calc(100% - 72px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 28px;
  min-height: 104px;
  padding: 16px 0 14px;
}


.site-brand {
  display: grid;
  gap: 6px;
  min-width: 0;
  grid-column: 1 / 3;
}

.site-title {
  color: var(--color-main);
  font-size: var(--lab-name-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.site-subtitle {
  color: var(--color-muted);
  font-size: var(--affiliation-size);
  line-height: 1.5;
  white-space: normal;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  flex-wrap: nowrap;
  white-space: nowrap;
  grid-column: 1 / 3;
}

.global-nav a {
  padding: 8px 8px;
  color: var(--color-main);
  font-size: var(--nav-size);
  font-weight: 600;
  border-radius: 999px;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  background: var(--color-surface-soft);
  color: var(--color-main);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-main);
  border-radius: 2px;
}

.hero {
  padding: 34px 0 36px;
  background:
    radial-gradient(circle at top right, rgba(45, 85, 116, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 34px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.eyebrow {
  white-space: nowrap;
}

.hero h1 {
  margin: 0;
  color: var(--color-main);
  font-size: var(--hero-title-size);
  line-height: 1.42;
  letter-spacing: 0.025em;
}

.hero h1 span {
  white-space: nowrap;
}

.hero-lead {
  max-width: 390px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: var(--hero-lead-size);
  line-height: 1.85;
}


.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
}

.hero-links a {
  color: var(--color-main);
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.hero-links a::after {
  content: " →";
}

.hero-statement {
  display: inline-block;
  margin: 28px 0 0;
  padding: 12px 18px;
  color: var(--color-main);
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 14px 14px 0;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 10px 28px rgba(24, 52, 77, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: #fff;
  background: var(--color-main);
  box-shadow: 0 12px 28px rgba(24, 52, 77, 0.23);
}

.button.secondary {
  color: var(--color-main);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero-slideshow {
  position: relative;
  margin: 0;
  padding: 8px;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  aspect-ratio: var(--hero-image-aspect);
  height: auto;
  overflow: hidden;
  border-radius: calc(var(--radius-large) - 10px);
  background: var(--color-surface-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-caption {
  margin: 8px 4px 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(24, 52, 77, 0.18);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--color-main);
}

.section {
  padding: var(--section-space) 0;
}

.about-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section h2 {
  margin: 0;
  color: var(--color-main);
  font-size: var(--section-title-size);
  line-height: 1.45;
}

.about-text {
  margin-top: 24px;
}

.about-text p {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.85;
}

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

.about-statement {
  font-size: var(--about-statement-size);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.text-link {
  color: var(--color-main);
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 128px 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: 0 8px 24px rgba(24, 52, 77, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.event-card:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 85, 116, 0.3);
  box-shadow: 0 14px 34px rgba(24, 52, 77, 0.1);
}

.event-date {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.event-category {
  display: inline-flex;
  justify-content: center;
  padding: 3px 10px;
  color: var(--color-main);
  background: var(--color-surface-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.event-title {
  margin: -2px 0 4px;
  color: var(--color-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.event-summary {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.loading-text,
.event-empty {
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-medium);
  padding: 22px;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.86);
  background: var(--color-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  margin: 0 0 4px;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-footer a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 10px 0;
  }

  .site-brand {
    grid-column: 1 / 2;
    min-width: 0;
  }

  .site-subtitle {
    max-width: 100%;
    white-space: normal;
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: inline-block;
    grid-column: 2 / 3;
    grid-row: 1;
    flex: 0 0 auto;
  }

  .global-nav {
    position: absolute;
    top: 76px;
    left: 36px;
    right: 36px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    grid-column: auto;
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .hero {
    padding: 36px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slideshow {
    padding: 12px;
  }

  .hero-slides {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hero-dots {
    right: 24px;
    bottom: 52px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .event-category {
    justify-self: start;
  }

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

@media (max-width: 520px) {
  .container,
  .container.narrow {
    width: min(100% - 28px, var(--content-width));
  }

  .site-title {
    font-size: 1.02rem;
  }

  .site-subtitle {
    font-size: 0.72rem;
  }

  .hero-caption {
    font-size: 0.76rem;
  }

  .hero-slides {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hero-dots {
    right: 22px;
    bottom: 48px;
  }

  .hero-dot {
    width: 9px;
    height: 9px;
  }
}

/* 900〜1080px幅では、上部メニューだけをスマホ型にし、トップ画像と文章は横並びを維持します。 */
@media (min-width: 901px) and (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
    align-items: start;
    gap: 28px;
  }

  .hero-slideshow {
    padding: 8px;
  }
}


/* Events page */
.page-section {
  background: var(--color-bg);
}

.page-title {
  margin: 0;
  color: var(--color-main);
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.page-lead {
  margin: 12px 0 26px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.event-list-all .event-card {
  scroll-margin-top: 130px;
}

/* =========================================================
   Researchページ用
   ========================================================= */
.page-title-section {
  padding: 44px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-title-section h1 {
  margin: 0;
  color: var(--color-main);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.page-lead {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.9;
}

.research-section {
  background: var(--color-surface);
}

.research-theme {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--color-border);
}

.research-theme:first-child {
  padding-top: 0;
}

.research-theme:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.research-theme-head {
  max-width: 930px;
  margin: 0 0 18px;
  text-align: left;
}

.research-number {
  display: none;
}

.research-theme h2 {
  margin: 0;
  color: var(--color-main);
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.research-body {
  display: grid;
  gap: 18px;
  max-width: var(--research-text-width);
}

.research-body p {
  max-width: 930px;
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.9;
}

.research-figure {
  width: var(--research-figure-ratio);
  max-width: 100%;
  margin: 4px auto 0;
  overflow: hidden;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.research-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.research-figure figcaption {
  padding: 10px 14px 12px;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  background: var(--color-surface);
}

@media (max-width: 520px) {
  .page-title-section {
    padding: 34px 0 28px;
  }

  .research-theme-head {
    margin-bottom: 14px;
  }

  .research-theme {
    padding: 28px 0 32px;
  }

  .research-figure {
    width: 100%;
    max-width: var(--research-text-width);
    margin-left: 0;
    margin-right: 0;
  }
}


/* =========================================================
   Membersページ用
   ========================================================= */
.members-section {
  background: var(--color-surface);
}

.member-group {
  max-width: var(--research-text-width);
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--color-border);
}

.member-group:first-child {
  padding-top: 0;
}

.member-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.member-group h2 {
  margin: 0 0 16px;
  color: var(--color-main);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.student-block {
  margin: 0 0 24px;
}

.student-block:last-child {
  margin-bottom: 0;
}

.student-block h3 {
  margin: 0 0 8px;
  color: var(--color-main);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 700;
}

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

.member-list li {
  padding: 4px 0;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
}

.member-name {
  margin: 0 0 2px;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
}

/* Staff name is plain text; external links are listed separately below it. */
.member-name-link {
  color: inherit;
  border-bottom: 0;
}

.member-role,
.member-affiliation,
.member-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.72;
}

.member-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 8px;
}

.member-links a {
  display: inline;
  padding: 0;
  color: var(--color-main);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pi-item {
  padding-bottom: 2px;
}

@media (max-width: 720px) {
  .member-group {
    padding: 26px 0 30px;
  }

  .member-list li,
  .member-name {
    font-size: 1rem;
  }
}


/* =========================================================
   Publicationsページ用
   ========================================================= */
.publications-section {
  background: var(--color-surface);
}

.publication-list {
  max-width: var(--research-text-width);
  margin: 0;
  padding: 0;
}

.publication-item {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--color-border);
}

.publication-item:first-child {
  padding-top: 0;
}

.publication-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.publication-meta {
  margin: 0 0 5px;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.publication-authors {
  margin: 0 0 5px;
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.75;
}

.publication-title {
  margin: 0 0 6px;
  color: var(--color-main);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 700;
}

.publication-journal,
.publication-doi,
.publication-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.publication-doi a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.publication-toc {
  width: var(--publication-toc-ratio);
  max-width: var(--research-text-width);
  margin: 18px 0 0;
}

.publication-toc img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.publication-empty {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .publication-item {
    padding: 26px 0 30px;
  }

  .publication-toc {
    width: 70%;
    margin-left: 0;
    margin-right: 0;
  }
}

.publication-footnote {
  max-width: var(--research-text-width);
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}


/* =========================================================
   研究成果：招待講演
   ========================================================= */
.accomplishment-heading {
  max-width: var(--research-text-width);
  margin: 0 0 44px;
  color: var(--color-main);
  font-size: clamp(1.34rem, 1.8vw, 1.58rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.invited-section { background: #ffffff; }
.invited-talk-list { max-width: var(--research-text-width); }
.invited-talk-item { padding: 18px 0 20px; border-bottom: 1px solid var(--color-border); }
.invited-talk-item:first-child { padding-top: 0; }
.invited-talk-item:last-child { border-bottom: 0; padding-bottom: 0; }
.invited-talk-title { margin: 0 0 5px; color: var(--color-text); font-size: 0.98rem; font-weight: 700; line-height: 1.65; }
.invited-talk-details { margin: 0; color: var(--color-muted); font-size: 0.93rem; line-height: 1.72; }

/* =========================================================
   Contactページ
   ========================================================= */
.contact-section { background: var(--color-surface); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr); gap: 54px; align-items: start; }
.contact-details h2, .contact-map-wrap h2 { margin: 0 0 18px; color: var(--color-main); font-size: 1.08rem; line-height: 1.5; }
.contact-list { margin: 0; }
.contact-list > div { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list dt { margin: 0 0 4px; color: var(--color-main); font-size: 0.88rem; font-weight: 700; line-height: 1.5; }
.contact-list dd { margin: 0; color: var(--color-text); font-size: 0.95rem; line-height: 1.75; }
.contact-note { color: var(--color-muted); font-size: 0.86rem; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 20px; }
.contact-links a { color: var(--color-main); font-size: 0.92rem; text-decoration: underline; text-underline-offset: 0.18em; }
.contact-map { overflow: hidden; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--color-border); background: var(--color-surface-soft); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 38px; } .contact-map { aspect-ratio: 16 / 10; } }


/* CSV Members / simplified Contact */
.member-loading { margin:0; color:var(--color-muted); }
.contact-simple p { margin:0; color:var(--color-text); font-size:0.96rem; line-height:1.8; }
.contact-person-name { color:var(--color-main) !important; font-size:1.05rem !important; font-weight:700; }
.contact-spaced { margin-top:24px !important; }

.publications-section .publication-list,
.invited-section .invited-talk-list { margin-top: 8px; }

/* =========================================================
   Events 詳細ページ
   ========================================================= */
.event-title a {
  text-decoration: underline;
  text-decoration-color: rgba(45, 85, 116, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.event-title a::after {
  content: " →";
  font-size: 0.88em;
}

.event-title a:hover {
  text-decoration-color: currentColor;
}

.event-detail-heading {
  padding: 46px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
  border-bottom: 1px solid var(--color-border);
}

.event-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.event-detail-title {
  max-width: 900px;
  margin: 0;
  color: var(--color-main);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.event-detail-section {
  padding-top: 42px;
}

.event-detail-body {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 2;
}

.event-detail-body > p {
  margin: 0 0 1.25em;
}

.event-detail-photo {
  margin: 34px 0 28px;
}

.event-detail-photo img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: 0 12px 34px rgba(24, 52, 77, 0.08);
}

.event-detail-photo figcaption {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.event-back-link {
  margin: 36px 0 0;
}

.event-back-link a {
  display: inline-block;
  color: var(--color-main);
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}
