.blog-image-feature,
.inline-gallery {
  max-width: 720px;
  margin: 2rem auto;
}

.blog-image-feature img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.blog-image-feature figure {
  margin: 0;
}

.blog-image-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.blog-image-feature figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #a7b0ba;
}

.post-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d7dde3;
}

.inline-gallery__viewer {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 1rem;
  align-items: center;
}

.inline-gallery__figure {
  margin: 0;
  background: #11161b;
  border: 1px solid #24303a;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.inline-gallery__image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0b1015;
}

.inline-gallery__caption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #d7dde3;
}

.inline-gallery__nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 32, 40, 0.92);
  color: #f3f6f8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.inline-gallery__nav:hover,
.inline-gallery__nav:focus {
  background: rgba(40, 52, 64, 0.96);
}

.inline-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.inline-gallery__thumb {
  padding: 0;
  border: 1px solid #24303a;
  border-radius: 12px;
  background: #11161b;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.inline-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.inline-gallery__thumb:hover,
.inline-gallery__thumb:focus {
  transform: translateY(-2px);
  border-color: #3a4a58;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.inline-gallery__thumb.is-active {
  border-color: #7f93a8;
  box-shadow: 0 0 0 2px rgba(127, 147, 168, 0.18);
}

@media (max-width: 720px) {
  .inline-gallery__viewer {
    grid-template-columns: 1fr;
  }

  .inline-gallery__nav {
    width: 100%;
    height: 44px;
    border-radius: 12px;
  }

  .inline-gallery__nav--prev {
    order: 2;
  }

  .inline-gallery__figure {
    order: 1;
  }

  .inline-gallery__nav--next {
    order: 3;
  }
}