.fbm-frontend {
  --fbm-primary: var(--e-global-color-primary, #001f68);
  --fbm-secondary: var(--e-global-color-secondary, #ff0099);
  --fbm-text: var(--e-global-color-text, #001344);
  --fbm-muted: #5f6680;
  --fbm-border: #e8ebf2;
  --fbm-surface: #ffffff;
  --fbm-soft: #f6f8fc;
  color: var(--fbm-text);
  font-family: var(--e-global-typography-text-font-family, inherit);
  display: grid;
  justify-items: center;
  margin-inline: auto;
  max-width: 1180px;
  width: 100%;
}

.fbm-frontend h2,
.fbm-frontend h3 {
  color: var(--fbm-text);
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-weight: 800;
  letter-spacing: 0;
}

.fbm-gallery-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.fbm-section-heading {
  margin-bottom: 8px;
  max-width: 720px;
}

.fbm-section-heading span {
  color: var(--fbm-secondary);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.fbm-section-heading h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 8px 0 0;
}

.fbm-gallery-card,
.fbm-unlock,
.fbm-access {
  background: var(--fbm-surface);
  border: 1px solid var(--fbm-border);
  border-radius: 0;
}

.fbm-gallery-card {
  align-items: center;
  box-shadow: 0 18px 42px rgba(0, 19, 68, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 24px;
}

.fbm-gallery-card.is-active {
  border-color: var(--fbm-secondary);
}

.fbm-gallery-card h3 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.12;
  margin: 0 0 4px;
}

.fbm-gallery-card time,
.fbm-unlock span,
.fbm-album-head span,
.fbm-access-main > span {
  color: var(--fbm-secondary);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.fbm-button {
  align-items: center;
  background: var(--fbm-primary);
  border: 1px solid var(--fbm-primary);
  border-radius: 0;
  color: #fff;
  display: inline-flex;
  font-family: var(--e-global-typography-accent-font-family, inherit);
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.2px;
  min-height: 40px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fbm-button:hover,
.fbm-button:focus {
  background: #ff0099;
  border-color: #ff0099;
  color: #fff;
  transform: translateY(-1px);
}

.fbm-button-secondary {
  background: transparent;
  color: var(--fbm-primary);
}

.fbm-button-secondary:hover,
.fbm-button-secondary:focus {
  background: var(--fbm-primary);
  border-color: var(--fbm-primary);
  color: #fff;
}

.fbm-unlock,
.fbm-access,
.fbm-album {
  margin-bottom: 34px;
}

.fbm-unlock,
.fbm-access {
  box-shadow: 0 18px 46px rgba(0, 19, 68, 0.08);
  display: block;
  max-width: 760px;
  padding: clamp(24px, 4vw, 42px);
  width: min(760px, 100%);
}

.fbm-access {
  margin-inline: auto;
}

.fbm-album {
  width: 100%;
}

.fbm-unlock h2,
.fbm-access h2,
.fbm-album h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin: 8px 0 0;
}

.fbm-access-main p {
  color: var(--fbm-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 620px;
}

.fbm-unlock form,
.fbm-access form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  min-width: 0;
}

.fbm-unlock label,
.fbm-access label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fbm-unlock input[type="password"],
.fbm-access input[type="password"] {
  appearance: none;
  background: #fff;
  border: 1px solid var(--fbm-border);
  border-radius: 0;
  box-sizing: border-box;
  color: var(--fbm-text);
  display: block;
  font-family: var(--e-global-typography-text-font-family, inherit);
  font-size: 16px;
  line-height: 1.35;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.fbm-unlock input[type="password"]:focus,
.fbm-access input[type="password"]:focus {
  border-color: var(--fbm-secondary);
  box-shadow: 0 0 0 3px rgba(255, 0, 153, 0.14);
  outline: none;
}

.fbm-error {
  background: #fff3fa;
  border-left: 4px solid var(--fbm-secondary);
  color: var(--fbm-text);
  margin: 16px 0 0;
  padding: 10px 12px;
}

.fbm-album {
  background: transparent;
}

.fbm-album-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  position: relative;
}

.fbm-album-head::after {
  background: linear-gradient(90deg, var(--fbm-secondary) 0 74px, var(--fbm-border) 74px 100%);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.fbm-album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.fbm-photo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.fbm-photo-grid figure {
  background: #fff;
  border: 0;
  box-shadow: 0 20px 42px rgba(0, 19, 68, 0.08);
  margin: 0;
  overflow: hidden;
}

.fbm-photo-open {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.fbm-photo-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.fbm-photo-open:hover img,
.fbm-photo-open:focus img {
  transform: scale(1.035);
}

.fbm-photo-grid figcaption {
  padding: 0;
}

.fbm-photo-grid figcaption a {
  background: var(--fbm-primary);
  color: #fff;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.fbm-photo-grid figcaption a:hover,
.fbm-photo-grid figcaption a:focus {
  background: #ff0099;
  color: #fff;
}

.fbm-lightbox-open {
  overflow: hidden;
}

.fbm-lightbox {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.fbm-lightbox.is-open {
  display: block;
}

.fbm-lightbox-backdrop {
  background: rgba(0, 19, 68, 0.94);
  inset: 0;
  position: absolute;
}

.fbm-lightbox-stage {
  align-items: center;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: minmax(0, 1fr) auto;
  inset: 22px;
  position: absolute;
}

.fbm-lightbox-image {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  max-height: calc(100vh - 120px);
  max-width: 100%;
  object-fit: contain;
}

.fbm-lightbox-close,
.fbm-lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 34px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  width: 48px;
}

.fbm-lightbox-close {
  font-size: 30px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.fbm-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
}

.fbm-lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.fbm-lightbox-footer {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 14px;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  padding-top: 18px;
}

.fbm-lightbox-download {
  background: var(--fbm-primary);
  border: 1px solid var(--fbm-primary);
  border-radius: 0;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  text-decoration: none;
}

.fbm-lightbox-download:hover,
.fbm-lightbox-download:focus {
  background: #ff0099;
  border-color: #ff0099;
  color: #fff;
}

.fbm-frontend .fbm-button {
  background: var(--fbm-primary);
  border-color: var(--fbm-primary);
  color: #fff;
}

.fbm-frontend .fbm-button:hover,
.fbm-frontend .fbm-button:focus {
  background: #ff0099;
  border-color: #ff0099;
  color: #fff;
}

.fbm-frontend .fbm-button-secondary {
  background: transparent;
  color: var(--fbm-primary);
}

.fbm-frontend .fbm-button-secondary:hover,
.fbm-frontend .fbm-button-secondary:focus {
  background: var(--fbm-primary);
  border-color: var(--fbm-primary);
  color: #fff;
}

.fbm-frontend .fbm-photo-grid figcaption a {
  background: var(--fbm-primary);
  color: #fff;
}

.fbm-frontend .fbm-photo-grid figcaption a:hover,
.fbm-frontend .fbm-photo-grid figcaption a:focus {
  background: #ff0099;
  color: #fff;
}

.fbm-lightbox .fbm-lightbox-download,
.fbm-lightbox .fbm-lightbox-download:visited {
  background: var(--fbm-primary);
  border-color: var(--fbm-primary);
  color: #fff;
}

.fbm-lightbox .fbm-lightbox-download:hover,
.fbm-lightbox .fbm-lightbox-download:focus {
  background: #ff0099;
  border-color: #ff0099;
  color: #fff;
}

@media (max-width: 720px) {
  .fbm-gallery-card,
  .fbm-album-head,
  .fbm-unlock,
  .fbm-access {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .fbm-lightbox-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    inset: 12px;
  }

  .fbm-lightbox-close,
  .fbm-lightbox-nav {
    height: 40px;
    width: 40px;
  }
}

@media (max-width: 1024px) {
  .fbm-frontend {
    max-width: 100%;
    padding-inline: 20px;
  }

  .fbm-access,
  .fbm-unlock {
    max-width: 720px;
  }

  .fbm-photo-grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .fbm-album-head {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .fbm-frontend {
    padding-inline: 16px;
  }

  .fbm-access,
  .fbm-unlock {
    box-shadow: 0 14px 34px rgba(0, 19, 68, 0.08);
    padding: 28px 22px;
  }

  .fbm-access h2,
  .fbm-unlock h2,
  .fbm-album h2 {
    font-size: clamp(30px, 10vw, 44px);
    overflow-wrap: anywhere;
  }

  .fbm-access-main p {
    font-size: 15px;
  }

  .fbm-button,
  .fbm-frontend .fbm-button {
    min-height: 46px;
    width: 100%;
  }

  .fbm-album-actions {
    justify-content: stretch;
    width: 100%;
  }

  .fbm-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fbm-photo-grid figcaption a {
    font-size: 11px;
    padding: 12px 10px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .fbm-frontend {
    padding-inline: 12px;
  }

  .fbm-access,
  .fbm-unlock {
    border-left: 0;
    border-right: 0;
    box-shadow: 0 10px 26px rgba(0, 19, 68, 0.06);
    padding: 24px 16px;
    width: 100%;
  }

  .fbm-access-main > span,
  .fbm-unlock span,
  .fbm-album-head span {
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .fbm-access input[type="password"],
  .fbm-unlock input[type="password"] {
    font-size: 16px;
    min-height: 48px;
  }

  .fbm-album-head {
    gap: 18px;
  }

  .fbm-photo-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .fbm-photo-grid img {
    aspect-ratio: 4 / 3;
  }

  .fbm-lightbox-stage {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-rows: 48px minmax(0, 1fr) auto;
    inset: 10px;
  }

  .fbm-lightbox-close {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    position: static;
  }

  .fbm-lightbox-image {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: calc(100vh - 170px);
  }

  .fbm-lightbox-prev {
    grid-column: 1;
    grid-row: 2;
    z-index: 2;
  }

  .fbm-lightbox-next {
    grid-column: 3;
    grid-row: 2;
    z-index: 2;
  }

  .fbm-lightbox-footer {
    flex-direction: column;
    gap: 10px;
    grid-row: 3;
    padding-top: 12px;
  }

  .fbm-lightbox-download {
    width: min(260px, 100%);
  }
}
