/* =========================
   FB WALL – GRID + CARDS
   ========================= */

#fbwall {
  padding-block: clamp(40px, 6vw, 72px);
}

/* main grid */
#fbwall .wcx-fbwall {
  max-width: 1160px;
  margin: 32px auto 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: minmax(160px, 1fr);
}

/* big hero on the left, like Byron layout */
#fbwall .wcx-fbcard--hero {
  grid-row: 1 / span 2;
  grid-column: 1 / span 1;
}

/* responsive tweaks */
@media (max-width: 991.98px) {
  #fbwall .wcx-fbwall {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(180px, 1fr);
  }
  #fbwall .wcx-fbcard--hero {
    grid-column: 1 / span 2;
    grid-row: auto;
    min-height: 260px;
  }
}

@media (max-width: 639.98px) {
  #fbwall .wcx-fbwall {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(240px, 1fr);
  }
  #fbwall .wcx-fbcard--hero {
    grid-column: auto;
  }
}

/* base card */
#fbwall .wcx-fbcard {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

/* button that holds the thumbnail */
#fbwall .wcx-fbthumb {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent;
}

/* actual image */
#fbwall .wcx-fbthumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.55s ease, filter 0.55s ease;
}

/* subtle hover zoom / pop */
#fbwall .wcx-fbcard:hover .wcx-fbthumb img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

/* little Facebook badge bottom-right */
#fbwall .wcx-fbcard__badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #1877f2;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}

#fbwall .wcx-fbcard__badge svg {
  width: 18px;
  height: 18px;
}

/* ---- LOAD MORE ---- */

#fbwall .wcx-fbcard--extra {
  display: none;
}

#fbwall.fbwall-expanded .wcx-fbcard--extra {
  display: block;
}

/* centre the Load more button */
#fbwall .wcx-fbwall__more {
  text-align: center;
  margin-top: 24px;
}

/* optional: make the ghost button a bit nicer if needed */
#fbwall .btn-ghost {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#fbwall .btn-ghost:hover {
  background: #f3f4f6;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

/* =========================
   LIGHTBOX
   ========================= */

.wcx-fblightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wcx-fblightbox.is-open {
  display: flex;
}

body.fbwall-no-scroll {
  overflow: hidden;
}

/* dimmed background */
.wcx-fblightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

/* dialog container */
.wcx-fblightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  width: 100%;
  background: #0b1120;
  color: #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
}

@media (max-width: 767.98px) {
  .wcx-fblightbox__dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
}

/* image side */
.wcx-fblightbox__media {
  background: #020617;
}

.wcx-fblightbox__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* meta side */
.wcx-fblightbox__meta {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* header with fb icon + date */
.wcx-fbheader__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  color: #1877f2;
  display: grid;
  place-items: center;
}

.wcx-fbheader__icon svg {
  width: 18px;
  height: 18px;
}

.wcx-fbheader__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wcx-fbheader__title {
  font-weight: 600;
}

.wcx-fbheader__subtitle {
  font-size: 13px;
  color: #9ca3af;
}

.wcx-fblightbox__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* body text */
.wcx-fblightbox__body h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  color: #f9fafb;
}

.wcx-fblightbox__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7eb;
}

/* close button (X) */
.wcx-fblightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.75);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.wcx-fblightbox__close span {
  display: block;
  width: 14px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

.wcx-fblightbox__close span:first-child {
  transform: rotate(45deg);
}
.wcx-fblightbox__close span:last-child {
  transform: rotate(-45deg);
}

/* next / prev arrows */
.wcx-fblightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.7);
  display: grid;
  place-items: center;
  color: #e5e7eb;
  cursor: pointer;
}

.wcx-fblightbox__nav svg {
  width: 20px;
  height: 20px;
}

.wcx-fblightbox__nav--prev {
  left: 18px;
}
.wcx-fblightbox__nav--next {
  right: 18px;
}

/* =========================
   LIQUID GLASS LIGHTBOX CARD
   ========================= */

/* whole dialog = glass card */
.wcx-fblightbox__dialog {
  position: relative;
  max-width: 1060px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);

  /* liquid glass look */
  background:
    radial-gradient(circle at 0% 0%, rgba(248,250,252,0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.18), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow:
    0 40px 120px rgba(15,23,42,0.85),
    inset 0 0 0 1px rgba(248,250,252,0.08);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
}

/* mobile stack still ok */
@media (max-width: 767.98px) {
  .wcx-fblightbox__dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
}

/* left side (image) sits on clear glass */
.wcx-fblightbox__media {
  background: radial-gradient(circle at 50% 0%, rgba(15,23,42,0.6), transparent 60%);
}

/* right side = extra frosted panel */
.wcx-fblightbox__meta {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at 0% 0%, rgba(248,250,252,0.14), transparent 55%), radial-gradient(circle at 100% 100%, rgba(56,189,248,0.16), transparent 60%), linear-gradient(160deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.04));
  border-left: 1px solid rgba(148,163,184,0.4);
}

/* titles / text pop a bit more on glass */
.wcx-fblightbox__body h3 {
  margin: 4px 0 8px;
  font-size: 19px;
  color: #f9fafb;
}

.wcx-fblightbox__body p {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
}

/* close + arrows floated as small glass chips */
.wcx-fblightbox__close,
.wcx-fblightbox__nav {
  background: radial-gradient(circle at 30% 10%, rgba(248,250,252,0.98), rgba(209,213,219,0.92));
  color: #020617;
  box-shadow: 0 16px 40px rgba(15,23,42,0.65);
}

.wcx-fblightbox__close span {
  background: #020617;
}

.wcx-fblightbox__nav:hover,
.wcx-fblightbox__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(15,23,42,0.85);
}
/* Make the right meta panel true liquid glass */
.wcx-fblightbox__meta{
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  /* lighter, translucent glass */
  background:
    radial-gradient(circle at 0% 0%, rgba(248,250,252,0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.22), transparent 65%),
    linear-gradient(160deg, rgba(15,23,42,0.32), rgba(15,23,42,0.18));

  border-left: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12);

  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
}

/* keep text readable on lighter glass */
.wcx-fblightbox__body h3{
  color:#f9fafb;
}
.wcx-fblightbox__body p{
  color:#e5e7eb;
}
/* === FB wall – mobile spacing fix === */
@media (max-width: 767.98px){

  /* stack as now, but with side padding */
  #fbwall .wcx-fbwall{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-inline: 16px;   /* space left & right */
  }

  /* give each card breathing room + card look */
  #fbwall .wcx-fbcard{
    margin: 0;              /* rely on padding above */
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15,23,42,.18);
  }

  /* hero card – same radius, no special full-bleed behaviour */
  #fbwall .wcx-fbcard--hero{
    border-radius: 22px;
  }
}
