

.page-posts {
  min-height: 100vh;

  
  background: var(--color-obsidian);
  color: var(--color-card-foreground);
}


.page-posts main {
  color: var(--color-card-foreground);
}


.no-scroll {
  overflow: hidden;
}



.page-posts .page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--header-band-height) + 2.5rem);
  padding-bottom: 2.25rem;
  overflow: hidden;
}

.page-posts .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(220, 38, 38, 0.16),
    transparent 60%
  );
  pointer-events: none;
}

.page-posts .page-hero .container {
  position: relative;
  z-index: 2;
}

.page-posts .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.9rem;
}

.page-posts .breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.page-posts .breadcrumb a:hover {
  text-decoration: underline;
}

.page-posts .page-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
  line-height: 1;
}

.page-posts .page-subtitle {
  max-width: 72ch;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}



.page-posts .toolbar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.page-posts .toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.page-posts .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.page-posts .chip {
  border: 1px solid rgba(220, 38, 38, 0.32);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
  white-space: nowrap;
}

.page-posts .chip:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.55);
}

.page-posts .chip.is-active {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.22),
    rgba(220, 38, 38, 0.08)
  );
  border-color: rgba(220, 38, 38, 0.75);
}

.page-posts .search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: min(420px, 100%);
}

.page-posts .search i {
  position: absolute;
  left: 0.9rem;
  opacity: 0.85;
}

.page-posts .search input {
  width: 100%;
  padding: 0.85rem 0.95rem 0.85rem 2.55rem;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;

  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.page-posts .search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.page-posts .search input:focus-visible {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: var(--shadow-crimson);
}



.page-posts .gallery {
  padding: 2rem 0 3.25rem 0;
}

.page-posts .ig-embed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .page-posts .ig-embed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-posts .ig-embed-grid {
    grid-template-columns: 1fr;
  }
}


.page-posts .ig-embed-grid blockquote.instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}


.page-posts {
  --ig-height: 440px;
  --ig-shift: 86px;
  --ig-scale: 1.03;
}

.page-posts .ig-crop {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  height: var(--ig-height);
}

.page-posts .ig-crop blockquote.instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}


.page-posts .ig-crop iframe {
  width: 100% !important;
  height: calc(var(--ig-height) + 260px) !important;
  border: 0 !important;
  display: block;
  transform: translateY(calc(var(--ig-shift) * -1)) scale(var(--ig-scale));
  transform-origin: top center;
}

.page-posts .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .page-posts .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-posts .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.page-posts .grid .card {
  position: relative;

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);

  border-radius: var(--radius-lg);
  overflow: hidden;

  cursor: pointer;
  padding: 0;
  text-align: left;

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.page-posts .grid .card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.page-posts .grid .card:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.75);
  outline-offset: 3px;
}


.page-posts .grid .card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.001);
}

@media (min-width: 1024px) {
  .page-posts .grid .card img {
    height: 270px;
  }
}

.page-posts .grid .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.00) 40%,
    rgba(0, 0, 0, 0.70) 100%
  );
  pointer-events: none;
  opacity: 0.92;
}


.page-posts .badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;

  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;

  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.55);
  background: rgba(0, 0, 0, 0.45);

  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}


.page-posts .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  padding: 0.95rem 0.95rem 1rem;
}

.page-posts .meta h4 {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);

  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.page-posts .meta p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}


.page-posts .post-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
}

.page-posts .post-dot {
  opacity: 0.7;
}

.page-posts .post-read {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.page-posts .grid .card:hover .post-read {
  text-decoration: underline;
  text-decoration-color: rgba(220, 38, 38, 0.6);
  text-underline-offset: 3px;
}



.page-posts .empty {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);

  color: rgba(255, 255, 255, 0.78);
  display: none;
}

.page-posts .empty.is-showing {
  display: block;
}



.page-posts .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;
}

.page-posts .lightbox.is-open {
  display: flex;
}


.page-posts .post-modal {
  width: min(1100px, 94vw);
  max-height: 86vh;

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);

  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.65);

  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .page-posts .post-modal {
    grid-template-columns: 1.35fr 1fr;
  }
}


.page-posts .post-media {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  min-height: 260px;
  display: grid;
  place-items: center;
}

.page-posts .lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: cover;
  display: block;
}


.page-posts .post-body {
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .page-posts .post-body {
    padding: 1.25rem 1.25rem 1.35rem;
  }
}

.page-posts .post-header {
  display: grid;
  gap: 0.55rem;
}

.page-posts .post-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.05;
}

.page-posts .post-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.page-posts .post-excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 1rem;
  line-height: 1.55;
}


.page-posts .post-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

@media (min-width: 560px) {
  .page-posts .post-actions {
    grid-template-columns: 1fr 1fr;
  }
}


.page-posts .btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.78rem 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.page-posts .btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: var(--shadow-crimson);
  background: rgba(0, 0, 0, 0.34);
}

.page-posts .btn-outline:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.75);
  outline-offset: 3px;
}



.page-posts .lightbox-close,
.page-posts .lightbox-nav {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;

  display: grid;
  place-items: center;
  cursor: pointer;

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.page-posts .lightbox-close:hover,
.page-posts .lightbox-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: var(--shadow-crimson);
}


.page-posts .lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  z-index: 10000;
}


.page-posts .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  z-index: 3;
}

.page-posts .lightbox-prev {
  left: 0.85rem;
}

.page-posts .lightbox-next {
  right: 0.85rem;
}

@media (max-width: 520px) {
  .page-posts .lightbox-prev,
  .page-posts .lightbox-next {
    display: none;
  }
}



@media (prefers-reduced-motion: reduce) {
  .page-posts .chip,
  .page-posts .grid .card,
  .page-posts .btn-outline,
  .page-posts .lightbox-close,
  .page-posts .lightbox-nav {
    transition: none;
  }
}


.page-posts .posts-empty {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
