/* ==========================================================================
   Clickerz Community - front-end recreation
   --------------------------------------------------------------------------
   Every value in this file was taken from the live WordPress site
   (clickerzcommunity.com - BeTheme 28.5.10 + BeBuilder dynamic CSS):
     * theme options  : fonts, sizes, colours, container widths, breakpoints
     * header builder : post-20.css  (padding / colours / menu / icon boxes)
     * content builder: post-2.css   (section paddings, heading sizes, bars)
   Bootstrap 5 is the structural layer only - its look is overridden below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (real values from the reference site)
   -------------------------------------------------------------------------- */
:root {
  /* --- aliases requested for readability -------------------------------- */
  --primary-color: #22223b;          /* brand navy - buttons, menu, icons   */
  --secondary-color: #00bcd4;        /* cyan accent - tagline, text shadow   */
  --text-color: #626262;             /* body copy                            */
  --heading-color: #22223b;          /* h1 - h6                              */
  --background-color: #ffffff;
  --border-color: #e0e0e0;

  /* --- full extracted palette ------------------------------------------- */
  --mfn-club-name: #0c5598;          /* "CLICKERZ COMMUNITY" (inline style)  */
  --mfn-mobile-club-name: #0d5598;   /* mobile bar club name                 */
  --mfn-hover-beige: #f1eae7;        /* side-menu hover / icon hover colour  */
  --mfn-sidebar-bg: #f3f3f3;         /* off-canvas menu background           */
  --mfn-bar-track: #f4f4f4;          /* progress bar track                   */

  /* --- typography ------------------------------------------------------- */
  --mfn-font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --mfn-font-heading: "Frank Ruhl Libre", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* --- layout ----------------------------------------------------------- */
  --mfn-wrapper-width: 1160px;       /* #Wrapper @ >=1240px                  */
  --mfn-container-width: 1140px;     /* .container / .section_wrapper        */
  --mfn-gap-x: 12px;                 /* --mfn-column-gap-left / right        */
  --mfn-gap-bottom: 40px;            /* --mfn-column-gap-bottom              */

  /* --- buttons (BeTheme option values) ---------------------------------- */
  --mfn-button-font-size: 14px;
  --mfn-button-font-weight: 500;
  --mfn-button-padding: 15px 30px;
  --mfn-button-radius: 3px;
  --mfn-button-color: #22223b;
  --mfn-button-color-hover: #ffffff;
  --mfn-button-bg: #ffffff;
  --mfn-button-bg-hover: #22223b;
  --mfn-button-border: #e0e0e0;
  --mfn-button-border-hover: #22223b;
}

/* --------------------------------------------------------------------------
   2. Base / Bootstrap overrides
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  height: 100%;
  background-color: var(--background-color);
  scroll-behavior: smooth;
  /* The desktop header collapses while scrolling, which changes the document
     height. Chrome's scroll anchoring reacts to that by nudging scrollTop,
     and because our header state is driven by a scroll threshold, the two
     feed back into each other and the header flickers. Turning anchoring off
     for the page removes that feedback loop. */
  overflow-anchor: none;
}

body {
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--mfn-font-body);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a,
a:visited,
a:focus { text-decoration: none; outline: 0; color: inherit; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; border-style: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 15px; }
button { font-family: inherit; }

/* Bootstrap container is replaced by the BeTheme container width */
.container { max-width: var(--mfn-container-width); padding-left: var(--mfn-gap-x); padding-right: var(--mfn-gap-x); }

#Wrapper { max-width: var(--mfn-wrapper-width); margin: 0 auto; background-color: var(--background-color); }

/* Accessibility helpers ------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--primary-color);
  color: #fff;
  font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 15px;
  color: var(--heading-color);
  letter-spacing: 0;
}

h1, h2, h3, h4 { font-family: var(--mfn-font-heading); font-weight: 700; }
h5, h6 { font-family: var(--mfn-font-body); font-weight: 400; }

h1 { font-size: 48px; line-height: 58px; }
h2 { font-size: 40px; line-height: 48px; }
h3 { font-size: 33px; line-height: 40px; }
h4 { font-size: 28px; line-height: 34px; }
h5 { font-size: 21px; line-height: 26px; }
h6 { font-size: 14px; line-height: 21px; }

em, i { font-style: italic; }
strong, b { font-weight: 700; }

/* --------------------------------------------------------------------------
   4. Header - mobile bar
   -------------------------------------------------------------------------- */
.mfn-header-tmpl {
  position: relative;
  z-index: 1000;
  background-color: var(--background-color);
}

.mfn-header-mobile-bar { display: none; }

.mfn-header-mobile-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.mfn-header-mobile-bar__title {
  margin: 0;
  color: var(--mfn-mobile-club-name);
  font-family: "Times New Roman", Times, serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.mfn-burger {
  background: none;
  border: 0;
  padding: 6px 2px;
  color: var(--primary-color);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Header - main row (brand / logo / social)
   -------------------------------------------------------------------------- */
.mfn-header-main {
  padding: 10px 40px;
  margin-top: -10px;                  /* original section: margin-top:-10px  */
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

.mfn-header-main__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: var(--mfn-container-width);
  margin: 0 auto;
}

.mfn-header-main__brand { flex: 0 0 40%; min-width: 0; }
.mfn-header-main__logo  { flex: 0 0 20%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.mfn-header-main__social {
  flex: 0 0 40%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Brand text block (original: font-family 'Georgia', 45px / 53px, weight 700) */
.mfn-club-name {
  margin: 0;
  color: var(--mfn-club-name);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  line-height: 53px;
  font-weight: 700;
  text-align: center;
}

.mfn-club-subname {
  margin: 0 0 15px;
  text-align: center;
  font-weight: 700;                   /* <em><strong> markup                  */
  font-style: italic;
}

.mfn-header-main__logo .logo-wrapper { display: flex; align-items: center; justify-content: center; }
.mfn-header-main__logo img { display: block; width: 100%; height: auto; }

/* Social icon boxes - 44px circles, 1px #e0e0e0 border, 16px icon */
.mfn-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 6px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 16px;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.mfn-social-icon:hover,
.mfn-social-icon:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--mfn-hover-beige);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Header - tagline bar ("We Encourage Photography...!!!")
   -------------------------------------------------------------------------- */
.mfn-header-tagline { background-color: var(--background-color); }

.mfn-header-tagline__text {
  margin: 0;
  padding: 8px 0;
  color: var(--secondary-color);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18px;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  text-align: right;
}

/* --------------------------------------------------------------------------
   7. Header - main navigation
   -------------------------------------------------------------------------- */
.mfn-header-navbar {
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

.mfn-header-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.mfn-menu-li { position: relative; flex-grow: 0; }

.mfn-header-navbar .mfn-menu-link {
  display: flex;
  align-items: center;
  padding: 32px;
  color: var(--primary-color);
  font-family: var(--mfn-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.mfn-header-navbar .mfn-menu-link:hover,
.mfn-header-navbar .mfn-menu-link:focus { text-decoration: none; }

/* Animated underline (original: mfn-menu-animation-text-line-bottom, colour #22223B) */
.mfn-header-navbar .mfn-menu-label { position: relative; display: inline-block; }

.mfn-header-navbar .mfn-menu-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}
.mfn-header-navbar .mfn-menu-li:hover > .mfn-menu-link .mfn-menu-label::after,
.mfn-header-navbar .mfn-menu-li:focus-within > .mfn-menu-link .mfn-menu-label::after,
.mfn-header-navbar .current-menu-item > .mfn-menu-link .mfn-menu-label::after { width: 100%; }

/* Sub-menu arrow (only parent items carry one on the original site) */
.mfn-menu-subicon { margin-left: 8px; font-size: 11px; line-height: 1; }
.mfn-menu-link > .mfn-menu-subicon { display: none; }
.mfn-menu-li.menu-item-has-children > .mfn-menu-link > .mfn-menu-subicon { display: inline-block; }

/* Dropdown menus (hover on desktop - mfn-menu-submenu-on-hover) */
.mfn-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1002;
  min-width: 260px;
  padding: 8px 0;
  margin: 0;
  background-color: #fff;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
}

.mfn-menu-li:hover > .mfn-submenu,
.mfn-menu-li:focus-within > .mfn-submenu,
.mfn-menu-li.is-open > .mfn-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mfn-submenu .mfn-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
}
.mfn-submenu .mfn-menu-link:hover,
.mfn-submenu .mfn-menu-link:focus {
  background-color: var(--mfn-hover-beige);
  color: var(--primary-color);
  text-decoration: none;
}
.mfn-submenu .mfn-menu-label::after { display: none; }
.mfn-submenu .mfn-menu-subicon { margin: 0 0 0 12px; }
.mfn-submenu .mfn-menu-link > .mfn-menu-subicon { display: inline-block; }

/* Third level opens to the right */
.mfn-submenu .mfn-submenu { top: -9px; left: 100%; }
.mfn-submenu .mfn-menu-li:hover > .mfn-submenu,
.mfn-submenu .mfn-menu-li:focus-within > .mfn-submenu { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   8. Mobile off-canvas menu (Bootstrap offcanvas, BeTheme side-menu styling)
   -------------------------------------------------------------------------- */
.mfn-header-tmpl-menu-sidebar {
  width: 250px !important;
  background-color: var(--mfn-sidebar-bg);
  border: 0;
}

.mfn-header-tmpl-menu-sidebar__wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 20px 18px 40px;
  overflow-y: auto;
}

.mfn-sidebar-close {
  align-self: flex-end;
  background: none;
  border: 0;
  padding: 0 4px;
  color: var(--primary-color);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mfn-header-menu--side { display: block; width: 100%; margin-top: 10px; }

.mfn-header-menu--side .mfn-menu-li { flex-grow: 1; }

.mfn-header-menu--side .mfn-menu-row { display: flex; align-items: center; }

.mfn-header-menu--side .mfn-menu-link {
  flex: 1 1 auto;
  padding: 10px 0;
  color: var(--primary-color);
  font-family: var(--mfn-font-body);
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}
.mfn-header-menu--side .mfn-menu-li:hover > .mfn-menu-link,
.mfn-header-menu--side .mfn-menu-link:hover { background-color: var(--mfn-hover-beige); text-decoration: none; }

.mfn-submenu-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  color: var(--primary-color);
  font-size: 13px;
  cursor: pointer;
}
.mfn-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.mfn-submenu-toggle i { transition: transform 0.25s ease-in-out; }

.mfn-header-menu--side .mfn-submenu {
  position: static;
  min-width: 0;
  padding: 0 0 6px 14px;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mfn-header-menu--side .mfn-submenu .mfn-menu-link { display: block; padding: 8px 6px; font-size: 15px; line-height: 22px; }

#body_overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
body.mfn-menu-open #body_overlay { opacity: 1; visibility: visible; }
body.mfn-menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   9. Content - "What You Need to Know"
   -------------------------------------------------------------------------- */
.section { position: relative; }

.section-about {
  margin-top: 10px;                   /* original: section margin-top 10px   */
  background-color: var(--background-color);
}

.section-about .section_wrapper { width: 100%; }

/* original wrap padding: 100px 10% 130px */
.section-about__text { padding: 100px 10% 130px; }

/* original builder value: 48px / 58px (41/49 @ <=959px, 29/35 @ <=767px) */
.section-about__title { margin-bottom: 20px; font-size: 48px; line-height: 58px; }

.section-about__paragraphs p { margin-bottom: 15px; }

/* original: margin-top:-20px + text-shadow 1px 0 0 #00BCD4 */
.section-about__closing {
  margin-top: -20px;
  margin-bottom: 0;
  text-shadow: 1px 0 0 var(--secondary-color);
}

.section-about__image { display: flex; align-items: stretch; }
.section-about__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   10. Content - "Our Statistics & Achievements"
   -------------------------------------------------------------------------- */
.section-stats {
  padding-top: 50px;
  padding-bottom: 20px;
}

/* Decorative heading with inward pointing arrows (fancy_heading_arrows) */
.fancy_heading { text-align: center; }

.fh-top {
  height: 1px;
  margin: 0 0 25px;
  background-color: var(--border-color);
}

.fancy_heading__title { margin-bottom: 15px; font-size: 43px; line-height: 43px; }

.fancy_heading__title i {
  font-size: 0.62em;
  vertical-align: middle;
  color: var(--primary-color);
}
.fancy_heading__title i:first-child { margin-right: 18px; }
.fancy_heading__title i:last-child { margin-left: 18px; }

.fancy_heading .inside {
  margin-bottom: 40px;
  color: #000000;
  font-size: 14px;
  line-height: 24px;
}

/* Progress bars (heights / widths copied from the original markup) */
.progress_bars .bars_list > li { margin-bottom: 25px; }

.progress_bars .bars_list > li h6 {
  margin-bottom: 6px;
  color: #000000;
  font-weight: 400;
}

.progress_bars .bar {
  position: relative;
  height: 15px;
  background-color: var(--mfn-bar-track);
  overflow: hidden;
}

.progress_bars .bar .progress {
  display: block;
  height: 100%;
  background-color: grey;             /* original inline: background-color:grey */
  transition: width 1s ease-in-out;
}

.progress_bars .pb-desc { display: none; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.mfn-footer { background-color: var(--background-color); }

.footer_copy {
  padding: 20px 0;
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
}

.footer_copy__inner { position: relative; }

.footer_copy .copyright {
  padding: 8px 70px;
  color: var(--text-color);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}
.footer_copy .copyright a { color: var(--primary-color); text-decoration: underline; }
.footer_copy .copyright a:hover { text-decoration: none; }

.footer_copy .social { display: none; }

/* Back-to-top button - 50px circle, hover = navy bg / white icon */
#back_to_top.footer_button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background-color: var(--mfn-button-bg);
  border: 1px solid var(--mfn-button-border);
  border-radius: 50%;
  color: var(--mfn-button-color);
  font-size: 16px;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
#back_to_top.footer_button:hover,
#back_to_top.footer_button:focus {
  background-color: var(--mfn-button-bg-hover);
  border-color: var(--mfn-button-border-hover);
  color: var(--mfn-button-color-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   12. Scrolled header state
   The original header is fixed: the brand row carries "hide-on-scroll"
   (it disappears once the page is scrolled) while the tagline and the menu
   bar stay visible.
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .mfn-header-tmpl {
    position: sticky;
    top: 0;
    /* Give the pinned header its own compositing layer so the browser
       composites it instead of repainting it on every scroll frame - this is
       what actually stops the flicker while the page scrolls. translateZ(0)
       reliably promotes the layer; backface-visibility alone often does not. */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Never let this element act as a scroll-anchor node either. */
    overflow-anchor: none;
  }

  .mfn-header-main {
    overflow: hidden;
    /* An explicit max-height is what makes the collapse animatable. With the
       default value of "none" the row snapped shut in a single frame while
       scrolling. */
    max-height: 320px;
    /* Only max-height and opacity are animated. Transitioning padding forced a
       layout + repaint of the sticky element on every frame, which read as
       flicker, so padding now switches instantly. */
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .mfn-header-tmpl.mfn-header-scrolled .mfn-header-main {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-color: transparent;
  }
}

/* --------------------------------------------------------------------------
   13. Responsive - exact breakpoints used by the reference site
   1240px / 1440px / 959px / 767px / 479px
   -------------------------------------------------------------------------- */

/* Tablet portrait - 768px to 959px */
@media (max-width: 959px) {
  body { font-size: 14px; line-height: 22px; }
  h1 { font-size: 41px; line-height: 49px; }
  h2 { font-size: 34px; line-height: 41px; }
  h3 { font-size: 28px; line-height: 34px; }
  h4 { font-size: 24px; line-height: 29px; }
  h5 { font-size: 18px; line-height: 22px; }
  h6 { font-size: 13px; line-height: 19px; }

  .mfn-header-menu { font-size: 13px; }
  .mfn-header-navbar .mfn-menu-link { padding: 26px 20px; font-size: 13px; }

  .mfn-header-main { padding-left: 5%; padding-right: 5%; }
  .mfn-header-main__social { justify-content: flex-end; }

  .section-about .container-fluid { padding-left: 5%; padding-right: 5%; }
  .section-about__text { padding: 70px 8% 80px; }
  .section-about__title { font-size: 41px; line-height: 49px; }

  .fancy_heading__title { font-size: 38px; line-height: 38px; }
}

/* 960px to 1199px - slightly tighter menu links so the row never overflows */
@media (max-width: 1199px) and (min-width: 960px) {
  .mfn-header-navbar .mfn-menu-link { padding: 26px 20px; }
}

/* Above 1440px the brand / logo / social columns use their exact ratios */
@media (max-width: 1440px) {
  .mfn-header-main__brand,
  .mfn-header-main__logo,
  .mfn-header-main__social { flex: 1 1 0; }
}

/* Mobile landscape and portrait - 767px and below: mobile header takes over */
@media (max-width: 767px) {
  body { font-size: 13px; line-height: 20px; }
  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 36px; }
  h3 { font-size: 25px; line-height: 30px; }
  h4 { font-size: 21px; line-height: 26px; }
  h5 { font-size: 16px; line-height: 20px; }
  h6 { font-size: 13px; line-height: 19px; }

  .container { max-width: 550px; padding-left: 33px; padding-right: 33px; }

  /* Mobile bar replaces the desktop header rows */
  .mfn-header-mobile-bar { display: block; padding-left: 5%; padding-right: 5%; }
  .mfn-header-main,
  .mfn-header-tagline,
  .mfn-header-navbar { display: none; }

  .section-about .container-fluid { padding-left: 33px; padding-right: 33px; }
  .section-about__text { padding: 60px 0 60px; }
  .section-about__title { font-size: 29px; line-height: 35px; }
  .section-about__closing { margin-top: 0; }

  .section-about__image { margin-top: 10px; }

  .fancy_heading__title { font-size: 34px; line-height: 34px; }
  .fancy_heading__title i { font-size: 0.6em; }
  .fancy_heading__title i:first-child { margin-right: 10px; }
  .fancy_heading__title i:last-child { margin-left: 10px; }

  .footer_copy .copyright { padding: 8px 60px; }
  #back_to_top.footer_button { width: 44px; height: 44px; }
}

/* Small phones - 479px and below */
@media (max-width: 479px) {
  body { font-size: 13px; line-height: 19px; }
  h1 { font-size: 29px; line-height: 35px; }
  h2 { font-size: 24px; line-height: 29px; }
  h3 { font-size: 20px; line-height: 24px; }
  h4 { font-size: 17px; line-height: 20px; }
  h5 { font-size: 13px; line-height: 19px; }
  h6 { font-size: 13px; line-height: 19px; }

  .mfn-header-mobile-bar__title { font-size: 19px; }
  .fancy_heading__title { font-size: 30px; line-height: 30px; }
}

/* Large desktops - 1240px and above (BeTheme container widths) */
@media (min-width: 1240px) {
  #Wrapper { max-width: var(--mfn-wrapper-width); }
  .container { max-width: var(--mfn-container-width); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   EVENTS PAGE
   --------------------------------------------------------------------------
   Built from the live page's own markup + builder stylesheet
   (clickerzcommunity.com/partnership/ - page id 8, mcb-section-*):
     * centred h2 headings over a banner image (background-repeat:repeat-x,
       padding-top:10px, colour #fafbfe)
     * a BeTheme "feature list" (data-col="4") showing the dates in a
       4 column grid, one icon per date, <hr> rules between the rows
     * centred dividers carrying a bookmark icon (gaps 29px / 23px)
   Icons: the original uses the theme's own icon font (icon-opentable,
   icon-flash, icon-users, icon-bookmarks) - Font Awesome equivalents are
   used here since only FA is loaded.
   ========================================================================== */

.section-events {
  margin-top: 10px;
  padding: 60px 0 80px;
  background-color: var(--background-color);
}

/* Centred category heading over the decorative banner image */
.event-heading {
  margin: 0 0 15px;
  padding-top: 10px;
  text-align: center;
  font-family: Verdana, Geneva, sans-serif;
  color: #fafbfe;
  background-image: url("https://clickerzcommunity.com/wp-content/uploads/sites/28/2025/03/Untitled-12.jpg");
  background-repeat: repeat-x;
  background-position: center top;
}

/* 4 column feature list (BeTheme feature_list data-col="4") */
.feature-list ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li p {
  margin: 0;
}

.feature-list .icon {
  color: var(--primary-color);
  font-size: 15px;
  line-height: 1;
}

/* Full width rule BeTheme places between feature-list rows */
.feature-list hr {
  grid-column: 1 / -1;
  height: 0;
  margin: 2px 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

/* Divider with a centred bookmark icon (gap-top 29px / gap-bottom 23px) */
.event-divider {
  display: flex;
  align-items: center;
  margin: 29px 0 23px;
}

.event-divider::before,
.event-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--border-color);
}

.event-divider__icon {
  padding: 0 14px;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1;
}

/* MEP note - bold, teal, leading asterisk exactly as published */
.event-note {
  margin: 0;
}

.event-note strong {
  color: #2c8b80;
  font-weight: 700;
}

@media (max-width: 767px) {
  .section-events { padding: 40px 0 50px; }
  .feature-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
  .feature-list ul { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   MEMBERS PAGE
   --------------------------------------------------------------------------
   A photography-club members directory built on the same tokens, container
   width, typography, buttons and header/footer components as the homepage.
   Member data mirrors the live page (clickerzcommunity.com/members/):
     * name, membership number (CCPC_xxxx), designation, birthday date
     * the club's own member photographs are referenced directly, with the
       local 1:1 placeholder as the fallback for anyone without a photo
   Desktop 4 per row, tablet 2, mobile 1 (Bootstrap 5 grid).
   ========================================================================== */

.section-members {
  margin-top: 10px;
  padding: 60px 0 80px;
  background-color: var(--background-color);
}

.members-intro {
  max-width: 820px;
  margin: 0 auto 10px;
}

/* Grid --------------------------------------------------------------- */
.members-grid { --bs-gutter-y: 30px; }

/* Card --------------------------------------------------------------- */
.member-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
  overflow: hidden;
  transition: border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.member-card:hover,
.member-card:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 14px 30px rgba(34, 34, 59, 0.12);
  transform: translateY(-4px);
}

/* Photograph (1:1, matching the club's own member images) */
.member-card__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  background-color: var(--mfn-bar-track);
  overflow: hidden;
}

.member-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease-in-out;
}

.member-card:hover .member-card__photo img,
.member-card:focus-within .member-card__photo img { transform: scale(1.05); }

/* Body --------------------------------------------------------------- */
.member-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 20px 24px;
  text-align: center;
}

.member-card__name {
  margin: 0 0 6px;
  color: var(--heading-color);
  font-family: var(--mfn-font-heading);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

/* Designation - sits in the club's cyan accent, like the tagline */
.member-card__role {
  margin: 0 0 5px;
  color: var(--secondary-color);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Membership number */
.member-card__id {
  margin: 0 0 16px;
  color: var(--text-color);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* Short info (birthday) pinned to the bottom of every card */
.member-card__meta {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 13px;
  line-height: 20px;
}

.member-card__meta i {
  margin-right: 6px;
  color: var(--primary-color);
  font-size: 12px;
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1199px) {
  .member-card__name { font-size: 20px; }
}

@media (max-width: 767px) {
  .section-members { padding: 40px 0 50px; }
  .members-grid { --bs-gutter-y: 24px; }
  .member-card__body { padding: 18px 16px 20px; }
}

@media (max-width: 479px) {
  .member-card__name { font-size: 19px; }
  .member-card__role { font-size: 11px; }
}

/* "Know more" link styled with the theme button components (see section 14) */
.member-card__more {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

/* ==========================================================================
   14. SHARED BUTTON  (BeTheme button style - same tokens used by the header
       and footer controls, so inner pages stay visually identical)
   ========================================================================== */
.cz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--mfn-button-padding);
  background-color: var(--mfn-button-bg);
  border: 1px solid var(--mfn-button-border);
  border-radius: var(--mfn-button-radius);
  color: var(--mfn-button-color);
  font-family: var(--mfn-font-body);
  font-size: var(--mfn-button-font-size);
  font-weight: var(--mfn-button-font-weight);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.cz-button:hover,
.cz-button:focus {
  background-color: var(--mfn-button-bg-hover);
  border-color: var(--mfn-button-border-hover);
  color: var(--mfn-button-color-hover);
  text-decoration: none;
}

.cz-button--primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}
.cz-button--primary:hover,
.cz-button--primary:focus {
  background-color: var(--mfn-button-bg);
  border-color: var(--mfn-button-border);
  color: var(--mfn-button-color);
}

/* ==========================================================================
   15. MEMBERSHIP PAGE
   --------------------------------------------------------------------------
   Content mirrors the club's own membership page
   (clickerzcommunity.com/club-membership-form/): the Rules & Regulations
   link, the membership process/form fields, the club declaration, the real
   joining / annual / re-joining fees and the published account details.
   Built only with the tokens, typography and container widths above.
   ========================================================================== */
.section-membership {
  margin-top: 10px;
  padding: 30px 0 80px;
  background-color: var(--background-color);
}

.membership-intro { max-width: 820px; margin: 0 auto; }

/* Each content block is separated by a rule instead of a generic card */
.membership-block {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border-color);
}

.membership-title {
  margin-bottom: 18px;
  font-size: 33px;
  line-height: 40px;
}

.membership-subtitle {
  margin-bottom: 14px;
  color: var(--heading-color);
  font-family: var(--mfn-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.membership-lead { font-size: 16px; line-height: 26px; }
.membership-lead:last-child { margin-bottom: 0; }

/* Bulleted list with the club's cyan accent */
.membership-list { margin: 0 0 15px; }
.membership-list > li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}
.membership-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary-color);
}

/* Highlighted panel (accents only - no new colours are introduced) */
.membership-panel {
  height: 100%;
  padding: 26px 26px 20px;
  background-color: var(--mfn-bar-track);
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
}

/* Call to action row */
.membership-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
@media (min-width: 992px) {
  .membership-cta { justify-content: flex-end; }
}

.membership-note {
  margin: 0 0 20px;
  padding: 18px 22px;
  background-color: var(--mfn-bar-track);
  border-left: 3px solid var(--secondary-color);
}
.membership-note p:last-child { margin-bottom: 0; }
.membership-note strong { color: var(--heading-color); }

/* Numbered process list ------------------------------------------------- */
.membership-steps {
  counter-reset: membership-step;
  margin: 0 0 10px;
  padding: 0;
}
.membership-steps > li {
  position: relative;
  counter-increment: membership-step;
  padding: 0 0 28px 66px;
  list-style: none;
}
.membership-steps > li::before {
  content: counter(membership-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-family: var(--mfn-font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.membership-steps > li::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 6px;
  width: 1px;
  background-color: var(--border-color);
}
.membership-steps > li:last-child { padding-bottom: 0; }
.membership-steps > li:last-child::after { display: none; }
.membership-steps .membership-subtitle { margin-bottom: 6px; }
.membership-steps p:last-child { margin-bottom: 0; }

/* Fees table ------------------------------------------------------------ */
.membership-fees {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  margin: 0;
}
.membership-fees th,
.membership-fees td {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}
.membership-fees thead th {
  background-color: var(--mfn-bar-track);
  color: var(--heading-color);
  font-family: var(--mfn-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.membership-fees tbody th {
  color: var(--heading-color);
  font-family: var(--mfn-font-body);
  font-weight: 700;
}
.membership-fees .fee-amount { color: var(--heading-color); font-weight: 700; }

/* Account / UPI details ------------------------------------------------- */
.account-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0;
}
.account-list dt { color: var(--heading-color); font-weight: 700; }
.account-list dd { margin: 0; }

/* ==========================================================================
   16. FORMS  (membership + contact) - visual styling only, no backend
   ========================================================================== */
.cz-form fieldset {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.cz-form fieldset:last-of-type { margin-bottom: 20px; }

.cz-form legend {
  padding: 0;
  margin-bottom: 16px;
  color: var(--heading-color);
  font-family: var(--mfn-font-heading);
  font-size: 21px;
  line-height: 26px;
  font-weight: 700;
}

.cz-form .form-label {
  margin-bottom: 6px;
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 500;
}
.cz-form .form-label .req { color: var(--secondary-color); }

.cz-form .form-control,
.cz-form .form-select {
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
  color: var(--text-color);
  font-family: var(--mfn-font-body);
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}
.cz-form .form-control::placeholder { color: #9a9a9a; }
.cz-form .form-control:focus,
.cz-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: none;
  outline: 0;
}

.cz-form .form-check { margin-bottom: 0; }
.cz-form .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-color: var(--border-color);
}
.cz-form .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.cz-form .form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}
.cz-form .form-check-label { font-size: 14px; line-height: 22px; }
.cz-form .form-text { font-size: 13px; line-height: 20px; }

.cz-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* ==========================================================================
   17. CONTACT PAGE
   ========================================================================== */
.section-contact {
  margin-top: 10px;
  padding: 30px 0 80px;
  background-color: var(--background-color);
}

.contact-intro { max-width: 820px; margin: 0 auto; }

.contact-block {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border-color);
}

.contact-title { margin-bottom: 18px; font-size: 33px; line-height: 40px; }

/* Club information list ------------------------------------------------- */
.contact-info {
  display: grid;
  gap: 24px;
  margin: 0;
}
.contact-info__item { display: flex; gap: 14px; }
.contact-info__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 16px;
  line-height: 1;
}
.contact-info__body { min-width: 0; }
.contact-info__body h3 {
  margin: 0 0 4px;
  color: var(--heading-color);
  font-family: var(--mfn-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-info__body p { margin: 0 0 2px; }
.contact-info__body a { color: var(--text-color); }
.contact-info__body a:hover { color: var(--primary-color); }

.contact-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-social .mfn-social-icon { margin: 0; }

/* Map placeholder (no API key required) --------------------------------- */
.contact-map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-top: 16px;
  overflow: hidden;
  background-color: var(--mfn-bar-track);
  background-image:
    linear-gradient(#e6e6e6 1px, transparent 1px),
    linear-gradient(90deg, #e6e6e6 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
  text-align: center;
}
.contact-map__inner { position: relative; padding: 30px 24px; }
.contact-map__inner > i {
  display: block;
  margin-bottom: 12px;
  color: var(--primary-color);
  font-size: 34px;
  line-height: 1;
}
.contact-map__inner h3 {
  margin: 0 0 6px;
  font-family: var(--mfn-font-heading);
  font-size: 21px;
  font-weight: 700;
}
.contact-map__inner p { margin: 0 0 16px; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
  .membership-title,
  .contact-title { font-size: 30px; line-height: 36px; }
}

@media (max-width: 767px) {
  .section-membership,
  .section-contact { padding: 20px 0 50px; }
  .membership-block,
  .contact-block { margin-top: 40px; padding-top: 34px; }
  .membership-title,
  .contact-title { font-size: 25px; line-height: 30px; }
  .membership-steps > li { padding-left: 58px; }
  .membership-steps > li::before { width: 40px; height: 40px; font-size: 15px; }
  .membership-steps > li::after { left: 20px; top: 46px; }
  .membership-panel { padding: 20px 18px 14px; }
  .account-list { grid-template-columns: 1fr; gap: 3px; }
  .account-list dt { margin-top: 12px; }
  .account-list dt:first-of-type { margin-top: 0; }
  .contact-map { min-height: 240px; }
  .cz-form legend { font-size: 19px; }
  .cz-form .form-control,
  .cz-form .form-select { font-size: 15px; }
}

@media (max-width: 479px) {
  .membership-fees th,
  .membership-fees td { padding: 10px 12px; font-size: 13px; }
  .cz-button { width: 100%; }
}

/* ==========================================================================
   18. MEMBER PROFILE + PHOTO GALLERY + LIGHTBOX
   The "Know more" page (member.html) and the click-to-zoom image viewer.
   Same tokens / container widths as the rest of the theme; nothing new.
   ========================================================================== */

.section-member {
  margin-top: 10px;
  padding: 40px 0 80px;
  background-color: var(--background-color);
}

.member-breadcrumb { margin: 0 0 20px; font-size: 13px; }
.member-breadcrumb a { color: var(--text-color); }
.member-breadcrumb a:hover { color: var(--primary-color); }
.member-breadcrumb i { margin-right: 6px; }

.member-notice__noscript { margin: 0 0 20px; padding: 14px 18px; background-color: var(--mfn-bar-track); border-radius: var(--mfn-button-radius); }

/* Not-found state ------------------------------------------------------- */
.member-notice {
  margin-top: 20px;
  padding: 50px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
  text-align: center;
}
.member-notice > i {
  display: block;
  margin-bottom: 14px;
  color: var(--primary-color);
  font-size: 36px;
  line-height: 1;
}
.member-notice h2 { margin: 0 0 8px; font-size: 28px; line-height: 34px; }
.member-notice p { max-width: 520px; margin: 0 auto 20px; }

/* Profile --------------------------------------------------------------- */
.member-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 10px;
  padding: 40px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
}

.member-profile__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--mfn-bar-track);
  border-radius: var(--mfn-button-radius);
}
.member-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile__name {
  margin: 0 0 6px;
  font-family: var(--mfn-font-heading);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
}

.member-profile__role {
  margin: 0 0 20px;
  color: var(--secondary-color);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.member-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.member-profile__meta dt {
  margin: 0;
  color: var(--text-color);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.member-profile__meta dd {
  margin: 2px 0 0;
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 700;
}

.member-profile__about { margin: 0 0 24px; }
.member-profile__back i { margin-right: 8px; }

/* Galleries ------------------------------------------------------------- */
.member-gallery {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--border-color);
}

.member-gallery__title {
  margin-bottom: 8px;
  font-size: 33px;
  line-height: 40px;
}

.member-gallery__note {
  margin: 0 0 26px;
  color: var(--text-color);
  font-size: 14px;
  line-height: 24px;
}

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

/* Click-to-zoom thumbnail (a real button, so Enter / Space work too) */
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--mfn-bar-track);
  border: 1px solid var(--border-color);
  border-radius: var(--mfn-button-radius);
  cursor: zoom-in;
  transition: border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--primary-color);
  box-shadow: 0 14px 30px rgba(34, 34, 59, 0.14);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease-in-out;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }

.gallery-item__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 34, 59, 0.45);
  color: #ffffff;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom { opacity: 1; }

/* Lightbox -------------------------------------------------------------- */
body.cz-lightbox-open { overflow: hidden; }

.cz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
  background-color: rgba(17, 17, 28, 0.93);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.cz-lightbox.is-open { display: flex; }

.cz-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
}

.cz-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--mfn-button-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cz-lightbox__caption {
  max-width: 90vw;
  color: #ffffff;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

.cz-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.cz-lightbox__close,
.cz-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.cz-lightbox__close:hover,
.cz-lightbox__close:focus-visible,
.cz-lightbox__nav:hover,
.cz-lightbox__nav:focus-visible {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.cz-lightbox__close { top: 22px; right: 22px; }
.cz-lightbox__nav { top: 50%; transform: translateY(-50%); }
.cz-lightbox__nav--prev { left: 18px; }
.cz-lightbox__nav--next { right: 18px; }
.cz-lightbox__nav[disabled] { opacity: 0; visibility: hidden; pointer-events: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
  .member-profile { grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; }
  .member-gallery__title { font-size: 30px; line-height: 36px; }
}

@media (max-width: 767px) {
  .section-member { padding: 20px 0 50px; }
  .member-profile { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .member-profile__photo { max-width: 220px; margin: 0 auto; }
  .member-profile__name { font-size: 26px; }
  .member-gallery { margin-top: 40px; padding-top: 34px; }
  .member-gallery__title { font-size: 25px; line-height: 30px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

  .cz-lightbox { padding: 58px 14px; }
  .cz-lightbox__image { max-height: calc(100vh - 150px); }
  .cz-lightbox__close { top: 12px; right: 12px; }
  .cz-lightbox__nav { width: 44px; height: 44px; }
  .cz-lightbox__nav--prev { left: 6px; }
  .cz-lightbox__nav--next { right: 6px; }
}

@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .cz-lightbox__nav { width: 40px; height: 40px; font-size: 15px; }
}
