:root {
  --brand-color: #651e7c;
  --brand-color-dark: #4f1363;
  --page-bg: #f3f1f4;
  --card-radius: 10px;
  --modal-radius: 10px;
  --text-main: #1f1724;
  --text-soft: #7a7480;
  --border-soft: rgba(101, 30, 124, 0.08);
  --shadow-soft: 0 10px 30px rgba(28, 18, 35, 0.08);
  --shadow-hover: 0 18px 44px rgba(28, 18, 35, 0.14);
  --modal-width: 1500px;
  --modal-height: 700px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--page-bg);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  padding: 36px 0 72px;
}

.inspiration-section {
  max-width: 1440px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  color: #071e5d;
}

.outer-gallery-wrap {
  position: relative;
  padding: 0 26px 34px;
}

.outer-gallery-swiper {
  overflow: hidden;
}

.outer-gallery-swiper .swiper-slide {
  height: auto;
}

.gallery-card {
  height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.gallery-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.gallery-media {
  position: relative;
  aspect-ratio: 1 / 0.78;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #ded9e2;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.03);
}

.gallery-card-body {
  padding: 0 8px;
  text-align: center;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.28;
  color: #6f6972;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.28em * 2);
}

.outer-gallery-arrow {
  position: absolute;
  top: calc(50% - 24px);
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(19, 16, 28, 0.78);
  color: #fff;
  z-index: 10;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.outer-gallery-arrow:hover {
  background: rgba(101, 30, 124, 0.95);
  transform: translateY(-50%) scale(1.02);
}

.outer-gallery-prev {
  left: -4px;
  transform: translateY(-50%);
}

.outer-gallery-next {
  right: -4px;
  transform: translateY(-50%);
}

.outer-gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.outer-gallery-arrow.swiper-button-disabled {
  opacity: 0.38;
  cursor: default;
}

.outer-gallery-arrow.swiper-button-disabled:hover {
  background: rgba(19, 16, 28, 0.78);
  transform: translateY(-50%);
}

.outer-gallery-pagination {
  position: static;
  margin-top: 18px;
  text-align: center;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(101, 30, 124, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-soft);
}

.ig-modal .modal-dialog {
  width: min(var(--modal-width), calc(100vw - 42px));
  max-width: min(var(--modal-width), calc(100vw - 42px));
  margin: 24px auto;
}

.ig-modal .modal-content {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ig-modal-shell {
  position: relative;
  background: #fff;
  border-radius: var(--modal-radius);
  overflow: hidden;
  box-shadow: 0 22px 80px rgba(17, 12, 25, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(32, 25, 39, 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: #1f1724;
  transform: scale(1.04);
}

.ig-modal-layout {
  display: flex;
  align-items: stretch;
  min-height: min(var(--modal-height), calc(100vh - 48px));
  max-height: min(var(--modal-height), calc(100vh - 48px));
}

.ig-media-col,
.ig-content-col {
  width: 50%;
  min-width: 0;
}

.ig-media-col {
  background: #1b1620;
}

.ig-media-shell,
.ig-main-swiper,
.ig-main-swiper .swiper-wrapper,
.ig-main-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.ig-main-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0a12;
}

.ig-main-swiper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #0d0a12;
}

.swiper-nav {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: rgba(19, 16, 28, 0.78);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.ig-media-shell:hover .swiper-nav,
.ig-main-swiper:focus-within .swiper-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.swiper-nav:hover {
  background: rgba(101, 30, 124, 0.95);
}

.swiper-nav::after {
  font-size: 1rem;
  font-weight: 700;
}

.ig-main-pagination {
  bottom: 14px !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(120, 120, 120, 0.8);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #651e7c;
}

.ig-content-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-left: 1px solid rgba(101, 30, 124, 0.08);
}

.ig-content-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.ig-post-head {
  flex: 0 0 auto;
  padding: 18px 28px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(101, 30, 124, 0.08);
  backdrop-filter: blur(8px);
}

.ig-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
}

.ig-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(101, 30, 124, 0.12);
  box-shadow: 0 4px 14px rgba(20, 12, 24, 0.08);
}

.ig-avatar svg,
.ig-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.ig-avatar.has-fallback {
  background: rgba(101, 30, 124, 0.1);
  color: var(--brand-color);
}

.ig-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ig-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.ig-author-sub {
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.is-hidden {
  display: none !important;
}

.is-empty {
  display: none !important;
}

.ig-copy-block {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 28px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 30, 124, 0.26) transparent;
}

.ig-copy-block::-webkit-scrollbar {
  width: 8px;
}

.ig-copy-block::-webkit-scrollbar-track {
  background: transparent;
}

.ig-copy-block::-webkit-scrollbar-thumb {
  background: rgba(101, 30, 124, 0.22);
  border-radius: 999px;
}

.ig-copy-block::-webkit-scrollbar-thumb:hover {
  background: rgba(101, 30, 124, 0.34);
}

.ig-caption-block {
  margin-bottom: 16px;
}

.ig-caption-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #5f5967;
}

.ig-inline-author {
  color: var(--text-main);
  font-weight: 700;
  margin-right: 8px;
}

.detail-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-content-meta span,
.ig-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f1edf3;
  color: #6f6972;
  font-size: 0.94rem;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
}

.detail-content {
  font-size: 1rem;
  line-height: 1.78;
  color: #5f5967;
}

.detail-content p {
  margin-bottom: 12px;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

.ig-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gallery-media,
.outer-gallery-arrow,
.ig-media-shell,
.ig-main-swiper,
.ig-main-swiper .swiper-wrapper,
.ig-main-swiper .swiper-slide,
.gallery-media img,
.ig-main-swiper img,
.swiper-nav {
  -webkit-tap-highlight-color: transparent;
}

.gallery-media img,
.ig-main-swiper img,
.swiper-nav,
.outer-gallery-arrow {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.outer-gallery-arrow:focus,
.outer-gallery-arrow:active,
.swiper-nav:focus,
.swiper-nav:active,
.modal-close:focus,
.modal-close:active {
  outline: none;
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  .ig-modal .modal-dialog {
    width: min(1100px, calc(100vw - 28px));
    max-width: min(1100px, calc(100vw - 28px));
  }
}

@media (max-width: 991.98px) {
  .page-shell {
    padding: 28px 0 56px;
  }

  .outer-gallery-wrap {
    padding: 0 18px 30px;
  }

  .outer-gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .outer-gallery-prev {
    left: -2px;
  }

  .outer-gallery-next {
    right: -2px;
  }

  .ig-modal .modal-dialog {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    height: calc(100dvh - 18px);
    margin: 9px auto;
  }

  .ig-modal .modal-content,
  .ig-modal-shell {
    height: 100%;
  }

  .ig-modal-layout {
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }

  .ig-media-col,
  .ig-content-col {
    width: 100%;
  }

  .ig-content-col {
    flex: 1 1 auto;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(101, 30, 124, 0.08);
  }

  .ig-media-col {
    flex: 0 0 auto;
    min-height: 0;
  }

  .ig-media-shell,
  .ig-main-swiper {
    height: clamp(220px, 40dvh, 320px);
  }

  .ig-post-head {
    padding: 16px 18px 14px;
  }

  .ig-author-row {
    padding-right: 34px;
  }

  .ig-copy-block {
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .detail-title {
    font-size: clamp(1.4rem, 7vw, 2.1rem);
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 2.2rem;
  }

  .card-title {
    font-size: 0.95rem;
  }
}
