/**
 * F2S International — posts page.
 * Layers on top of blog.css: the hero, filter pills, footer and card shell all
 * come from there. Only the poster-shaped grid and the lightbox chrome are new.
 */

/*--------------------------------------------------------------
# Poster grid
--------------------------------------------------------------*/
.blog-grid.posts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.posts-grid .post-card {
  position: relative;
}

/* Posters are portrait artwork, not cropped photography: show them whole. */
.posts-grid .post-card-img {
  aspect-ratio: 4 / 5;
  background: var(--brand-navy-soft);
}

.posts-grid .post-card-img img {
  object-fit: cover;
  object-position: top center;
}

.posts-grid .post-card-body {
  padding: 18px 20px 20px;
}

.posts-grid .post-card-body h2 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.posts-grid .post-card-body p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* The whole card is the lightbox trigger; the anchor is stretched over it. */
.post-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
}

.post-link:focus-visible {
  outline: 3px solid var(--brand-navy);
  outline-offset: 3px;
}

.post-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: rgba(27, 54, 84, .78);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}

.post-card:hover .post-zoom,
.post-card:focus-within .post-zoom {
  opacity: 1;
  transform: scale(1);
}

.posts-grid .post-readmore {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

/*--------------------------------------------------------------
# Instagram call-out under the grid
--------------------------------------------------------------*/
.posts-follow {
  margin-top: 44px;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--brand-navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.posts-follow p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.posts-follow strong {
  color: var(--ink);
}

.posts-follow a.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--nav-font);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.posts-follow a.btn-solid:hover {
  background: #14293f;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .blog-grid.posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .blog-grid.posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .blog-grid.posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .posts-follow {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-zoom,
  .posts-follow a.btn-solid {
    transition: none;
  }
}
