
.frlb {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  opacity: 0;
  transition: opacity .24s ease;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.frlb.is-open {
  display: block;
  opacity: 1;
}

.frlb__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(220,38,38,.14), transparent 28%),
    rgba(10,12,18,.94);
  backdrop-filter: blur(8px);
}

.frlb__shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.frlb__figure {
  position: relative;
  margin: 0;
  width: min(96vw, 1600px);
  max-width: 100%;
}

.frlb__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 100px);
  text-align: center;
}

.frlb__image {
  display: block;
  margin: 0 auto;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  background: #fff;
}

.frlb__caption {
  margin: 14px auto 0;
  max-width: min(980px, 90vw);
  text-align: center;
  color: rgba(255,255,255,.94);
  font-size: 15px;
  line-height: 1.5;
}

.frlb__close,
.frlb__nav {
  position: fixed;
  z-index: 1000001;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.frlb__close:hover,
.frlb__nav:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.17);
}

.frlb__close {
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 34px;
  line-height: 1;
}

.frlb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 42px;
  line-height: 1;
}

.frlb__nav:hover {
  transform: translateY(calc(-50% - 2px));
}

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

body.frlb-open {
  overflow: hidden;
}

img {
  cursor: zoom-in;
}

img.frlb-no-lightbox,
.no-lightbox img,
.wp-block-social-links img,
.custom-logo,
.site-logo img,
.avatar,
.emoji,
[role="presentation"] img,
.widget img[width="1"][height="1"] {
  cursor: auto;
}

@media (max-width: 900px) {
  .frlb__shell { padding: 18px; }
  .frlb__image {
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 110px);
    border-radius: 16px;
  }
  .frlb__nav {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .frlb__shell { padding: 12px; }
  .frlb__stage { min-height: calc(100vh - 84px); }
  .frlb__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 28px;
  }
  .frlb__nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .frlb__nav--prev { left: 8px; }
  .frlb__nav--next { right: 8px; }
  .frlb__image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }
  .frlb__caption { font-size: 14px; }
}
