/* APCCI — supplemental layout for profiles, events, and leadership (scroll + sticky header) */

/* events, what's on, leadership — avoid scroll jump: theme .sticky uses position:fixed + hides the top
   bar, so the header leaves the document flow and everything below shifts up. */
body.apcci-page-events .header-one.header--sticky,
body.apcci-page-whats-on .header-one.header--sticky,
body.apcci-page-leadership .header-one.header--sticky,
body.apcci-page-membership .header-one.header--sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 18px rgba(24, 16, 16, 0.07);
}

/* When main.js adds .sticky after scroll, theme uses position:fixed + hides top bar — that causes a jump.
   Keep true sticky + top bar on desktop like events.html. */
body.apcci-page-events .header-one.header--sticky.sticky,
body.apcci-page-whats-on .header-one.header--sticky.sticky,
body.apcci-page-leadership .header-one.header--sticky.sticky,
body.apcci-page-membership .header-one.header--sticky.sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(24, 16, 16, 0.07);
}
@media only screen and (min-width: 992px) {
  body.apcci-page-events .header-one.header--sticky.sticky .header-top-area-wrapper,
  body.apcci-page-whats-on .header-one.header--sticky.sticky .header-top-area-wrapper,
  body.apcci-page-leadership .header-one.header--sticky.sticky .header-top-area-wrapper,
  body.apcci-page-membership .header-one.header--sticky.sticky .header-top-area-wrapper {
    display: block !important;
  }
}

/* events + what's on + leadership — less dead space under the hero + smaller gap before intro */
body.apcci-page-events .rts-breadcrumb-area,
body.apcci-page-whats-on .rts-breadcrumb-area,
body.apcci-page-leadership .rts-breadcrumb-area,
body.apcci-page-membership .rts-breadcrumb-area {
  height: 280px;
  align-items: flex-end;
  padding-bottom: 1rem;
  box-sizing: border-box;
}
body.apcci-page-events .rts-breadcrumb-area .shape-area,
body.apcci-page-whats-on .rts-breadcrumb-area .shape-area,
body.apcci-page-leadership .rts-breadcrumb-area .shape-area,
body.apcci-page-membership .rts-breadcrumb-area .shape-area {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}
body.apcci-page-events .rts-breadcrumb-area .container,
body.apcci-page-whats-on .rts-breadcrumb-area .container,
body.apcci-page-leadership .rts-breadcrumb-area .container,
body.apcci-page-membership .rts-breadcrumb-area .container {
  position: relative;
  z-index: 1;
}
@media only screen and (max-width: 575px) {
  body.apcci-page-events .rts-breadcrumb-area,
  body.apcci-page-whats-on .rts-breadcrumb-area,
  body.apcci-page-leadership .rts-breadcrumb-area,
  body.apcci-page-membership .rts-breadcrumb-area {
    height: 220px;
    padding-bottom: 0.75rem;
  }
}
body.apcci-page-events .project-details-wrapper-image-top.rts-section-gap,
body.apcci-page-whats-on .project-details-wrapper-image-top.rts-section-gap,
body.apcci-page-leadership .project-details-wrapper-image-top.rts-section-gap,
body.apcci-page-membership .project-details-wrapper-image-top.rts-section-gap {
  padding-top: 1.5rem;
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  body.apcci-page-events .project-details-wrapper-image-top.rts-section-gap,
  body.apcci-page-whats-on .project-details-wrapper-image-top.rts-section-gap,
  body.apcci-page-leadership .project-details-wrapper-image-top.rts-section-gap,
  body.apcci-page-membership .project-details-wrapper-image-top.rts-section-gap {
    padding-top: 1.5rem;
  }
}
@media only screen and (min-width: 992px) {
  body.apcci-page-events .project-details-wrapper-image-top.rts-section-gap,
  body.apcci-page-whats-on .project-details-wrapper-image-top.rts-section-gap,
  body.apcci-page-leadership .project-details-wrapper-image-top.rts-section-gap,
  body.apcci-page-membership .project-details-wrapper-image-top.rts-section-gap {
    padding-top: 1.75rem;
  }
}

/* --- Membership application page --- */
.apcci-membership-wrap {
  max-width: 920px;
}

.apcci-membership-intro {
  font-size: var(--font-size-b1);
  line-height: 1.65;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .apcci-membership-intro {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.apcci-membership-card {
  background: #fff;
  border: 1px solid rgba(24, 16, 16, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 28px rgba(24, 16, 16, 0.05);
}

@media only screen and (min-width: 576px) {
  .apcci-membership-card {
    padding: 1.75rem 2rem;
  }
}

.apcci-membership-heading {
  font-family: "Red Hat Display", sans-serif;
  font-size: var(--font-size-b3);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}

.apcci-membership-subheading {
  font-family: "Red Hat Display", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.apcci-membership-note {
  font-size: var(--font-size-b2);
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.apcci-membership-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #333;
}

.apcci-membership-hint {
  font-weight: 400;
  color: #666;
  font-size: var(--font-size-b2);
}

.apcci-membership-input.form-control {
  border-radius: 8px;
  border: 1px solid rgba(24, 16, 16, 0.14);
  padding: 0.6rem 0.85rem;
  font-size: var(--font-size-b1);
}

.apcci-membership-input.form-control:focus {
  border-color: rgba(228, 102, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(228, 102, 42, 0.12);
}

.apcci-membership-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.apcci-membership-legend {
  float: left;
  font-size: var(--font-size-b1);
  font-weight: 700;
  margin-bottom: 0.75rem;
  width: 100%;
}

.apcci-membership-radio-list {
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apcci-membership-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: var(--font-size-b2);
  line-height: 1.45;
  margin: 0;
}

.apcci-membership-radio input {
  margin-top: 0.28rem;
  flex-shrink: 0;
}

.apcci-membership-check-grid .apcci-membership-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--font-size-b2);
  line-height: 1.45;
  cursor: pointer;
  margin: 0;
  padding: 0.35rem 0;
}

.apcci-membership-check input {
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.apcci-membership-nested-pay {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(24, 16, 16, 0.1);
}

.apcci-membership-nature-block {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
}

.apcci-membership-bank-box {
  background: #f7f9fb;
  border: 1px solid rgba(24, 16, 16, 0.08);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
}

.apcci-membership-bank-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.apcci-membership-bank-dl dt {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
}

.apcci-membership-bank-dl dd {
  margin: 0;
  font-size: var(--font-size-b1);
  font-weight: 600;
  color: #1a1a1a;
}

.apcci-membership-actions {
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.apcci-membership-footer-note {
  margin-top: 1rem;
  font-size: var(--font-size-b2);
  color: #555;
}

.apcci-membership-status {
  margin-top: 1rem;
  min-height: 1.5rem;
}

/* What's On — yellow highlight in primary navigation */
.header-one .nav-area a.apcci-nav-whats-on,
.mobile-menu a.main.apcci-nav-whats-on {
  color: #e6b800 !important;
  font-weight: 700;
}
.header-one .nav-area a.apcci-nav-whats-on:hover,
.mobile-menu a.main.apcci-nav-whats-on:hover {
  color: #ffd54a !important;
}

/* whats-on.html — add-to-calendar buttons */
body.apcci-page-whats-on .apcci-calendar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}
body.apcci-page-whats-on .apcci-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 1.35rem !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14) !important;
  background: #1c2539 !important;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease,
    border-color 120ms ease;
}
body.apcci-page-whats-on .apcci-calendar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16) !important;
}
body.apcci-page-whats-on .apcci-calendar-btn--google {
  background: #00aeea !important;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
body.apcci-page-whats-on .apcci-calendar-btn--outlook {
  background: #0b2f3a !important;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
}
body.apcci-page-whats-on .apcci-calendar-icon {
  width: 26px;
  height: 26px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
body.apcci-page-whats-on .apcci-calendar-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 9px;
  height: 2px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
}
body.apcci-page-whats-on .apcci-calendar-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 8px 0 0 rgba(255, 255, 255, 0.85);
}
@media only screen and (max-width: 575px) {
  body.apcci-page-whats-on .apcci-calendar-btn {
    width: 100%;
  }
}

/* whats-on.html — induction / booking layout (hero uses default breadcrumb .title sizing like Events) */
body.apcci-page-whats-on .apcci-whats-on-hero .pre {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  display: inline-block;
  margin-bottom: 0.5rem;
}
body.apcci-page-whats-on .apcci-whats-on-main {
  padding-bottom: 3rem;
}
body.apcci-page-whats-on .apcci-whats-on-flyer-figure {
  margin: 0;
  padding: 0;
}
body.apcci-page-whats-on .apcci-whats-on-flyer-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
body.apcci-page-whats-on .apcci-whats-on-booking {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  background: #fafafa;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
body.apcci-page-whats-on .apcci-whats-on-booking h2.title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
body.apcci-page-whats-on .apcci-whats-on-booking .apcci-field-label {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.45rem;
  color: #222;
}
body.apcci-page-whats-on .apcci-whats-on-booking .apcci-field-label span {
  font-size: 1rem;
}
body.apcci-page-whats-on .apcci-whats-on-booking .apcci-field {
  margin-bottom: 1rem;
}
body.apcci-page-whats-on .apcci-whats-on-booking .row .apcci-field {
  margin-bottom: 0;
}
body.apcci-page-whats-on .apcci-whats-on-booking .row {
  margin-bottom: 1rem;
}
body.apcci-page-whats-on .apcci-whats-on-booking input[type="text"],
body.apcci-page-whats-on .apcci-whats-on-booking input[type="email"],
body.apcci-page-whats-on .apcci-whats-on-booking input[type="tel"],
body.apcci-page-whats-on .apcci-whats-on-booking input[type="number"],
body.apcci-page-whats-on .apcci-whats-on-booking textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  font-size: 1.125rem;
  box-sizing: border-box;
}
body.apcci-page-whats-on .apcci-whats-on-booking textarea {
  min-height: 5rem;
  resize: vertical;
}
body.apcci-page-whats-on .apcci-whats-on-booking .apcci-fee-note {
  font-size: 1.125rem;
  color: #444;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
body.apcci-page-whats-on .apcci-whats-on-booking .rts-btn {
  font-size: 1.125rem;
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}
body.apcci-page-whats-on .apcci-whats-on-booking #form-status {
  font-size: 1.0625rem;
}
.apcci-profiles {
  padding-top: 2rem;
}

.apcci-profiles .profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.apcci-profiles .profile-card:last-child {
  border-bottom: none;
}

.apcci-profiles .profile-card figure {
  flex: 0 0 200px;
  max-width: 200px;
  margin: 0;
}

.apcci-profiles .profile-card figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
}

@media only screen and (max-width: 480px) {
  .apcci-profiles .profile-card figure {
    flex: 0 0 160px;
    max-width: 160px;
  }
}

.apcci-profiles .profile-card .body {
  flex: 1 1 220px;
}

.apcci-profiles .profile-card .body h4 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.apcci-profiles .profile-card .body .role {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.92;
  margin-bottom: 0.85rem;
}

.apcci-profiles .profile-card .body .apcci-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.2);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.apcci-profiles .profile-card .body .apcci-profile-link:hover,
.apcci-profiles .profile-card .body .apcci-profile-link:focus-visible {
  color: #ffffff;
  background-color: #0a66c2;
  border-color: #0a66c2;
}

/* Match <p> body text — overrides style.css `ul` / `ul li` (which use b1) */
.apcci-profiles .profile-card .body .apcci-profile-duties {
  list-style: disc;
  list-style-type: disc;
  margin: 0.35em 0 0.5rem 0;
  padding-left: 1.3rem;
  font-size: var(--font-size-b2);
  line-height: var(--line-height-b2);
  font-weight: var(--p-regular);
  font-family: inherit;
  color: var(--color-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.apcci-profiles .profile-card .body .apcci-profile-duties li {
  /* Must set on <li> — global `ul li` uses b1; <p> uses b2 */
  font-size: var(--font-size-b2);
  line-height: var(--line-height-b2);
  font-weight: var(--p-regular);
  font-family: inherit;
  color: var(--color-body);
  margin: 0 0 0.15em 0;
  margin-top: 0;
  padding: 0;
  text-indent: 0;
}

.apcci-profiles .profile-card .body .apcci-profile-duties li:last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .apcci-profiles .profile-card .body .apcci-profile-duties,
  .apcci-profiles .profile-card .body .apcci-profile-duties li {
    font-size: 16px;
    line-height: 28px;
  }
}

@media only screen and (max-width: 575px) {
  .apcci-profiles .profile-card .body h4 {
    font-size: 1.35rem;
  }

  .apcci-profiles .profile-card .body .role {
    font-size: 1.05rem;
  }
}

.apcci-profiles .profile-card .body p {
  margin-bottom: 0.5rem;
}

.apcci-events-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.apcci-event-section h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ffd53b;
}

.apcci-event-card {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.apcci-event-card:last-child {
  border-bottom: none;
}

.apcci-event-card h5 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.apcci-event-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Home — What’s On marquee (USTAA-style infinite horizontal scroll) */
@keyframes apcci-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.apcci-home-marquee {
  background: linear-gradient(90deg, #e8f1fb 0%, #f4f8fd 45%, #e8f1fb 100%);
  border-bottom: 1px solid rgba(11, 77, 245, 0.08);
  padding: 0.85rem 0;
}

.apcci-home-marquee__viewport {
  overflow: hidden;
  width: 100%;
}

.apcci-home-marquee__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: max-content;
  animation: apcci-marquee-scroll 38s linear infinite;
}

.apcci-home-marquee__track:hover {
  animation-play-state: paused;
}

.apcci-home-marquee__item {
  flex: 0 0 auto;
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 0 1.75rem;
  outline: none;
}

.apcci-home-marquee__item:focus-visible .apcci-home-marquee__card {
  outline: 3px solid var(--color-blue, #0b4df5);
  outline-offset: 4px;
}

.apcci-home-marquee__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 18px rgba(24, 16, 16, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 720px);
}

.apcci-home-marquee__item:hover .apcci-home-marquee__card,
.apcci-home-marquee__item:focus-visible .apcci-home-marquee__card {
  border-color: rgba(11, 77, 245, 0.45);
  box-shadow: 0 8px 28px rgba(11, 77, 245, 0.12), 0 4px 18px rgba(24, 16, 16, 0.06);
  transform: translateY(-1px);
}

.apcci-home-marquee__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 118px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.apcci-home-marquee__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  min-width: 0;
}

.apcci-home-marquee__pre {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4a6288;
}

.apcci-home-marquee__title {
  font-family: var(--font-secondary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading-1);
}

.apcci-home-marquee__cta {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue, #0b4df5);
}

@media only screen and (min-width: 768px) {
  .apcci-home-marquee__img {
    max-width: 200px;
    max-height: 168px;
  }

  .apcci-home-marquee__title {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apcci-home-marquee__track {
    animation: none;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .apcci-home-marquee__item--loop {
    display: none !important;
  }
}

.apcci-home-highlights {
  background: #fafafa;
  padding: 3rem 0;
}

/* Second home strip: leadership CTA (copy matches the button) */
.apcci-home-leadership-strip {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Event & archive photo grid (events.html) */
.apcci-photo-row {
  margin-bottom: 1.75rem;
  --apcci-thumb-h: 280px;
}

.apcci-event-figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 0 1.5rem 0;
}

.apcci-event-tile {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apcci-event-tile:hover,
.apcci-event-tile:focus-visible {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
  outline: 2px solid #ffd53b;
  outline-offset: 2px;
}

.apcci-photo-row .apcci-event-figure > img,
.apcci-event-tile img {
  width: 100%;
  height: var(--apcci-thumb-h);
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

/* Match <p> body text (style.css) — not rem, since html { font-size: 10px } */
.apcci-photo-row figcaption {
  display: block;
  font-size: var(--font-size-b2);
  line-height: var(--line-height-b2);
  font-weight: var(--p-regular);
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--color-body);
  padding: 0 0.15rem 0.25rem 0.15rem;
}

@media only screen and (max-width: 767px) {
  .apcci-photo-row figcaption {
    font-size: 16px;
    line-height: 28px;
  }
}

@media (min-width: 992px) {
  .apcci-photo-row {
    --apcci-thumb-h: 320px;
  }
}

@media (max-width: 575px) {
  .apcci-profiles .profile-card figure {
    flex-basis: 100px;
    max-width: 100px;
  }
  .apcci-photo-row {
    --apcci-thumb-h: 240px;
  }
}

/* Lightbox (events.html) */
.apcci-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
}

.apcci-lightbox[hidden] {
  display: none !important;
}

.apcci-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 18, 0.88);
  cursor: pointer;
}

.apcci-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px;
}

.apcci-lightbox__close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.15s, transform 0.15s;
}

.apcci-lightbox__close:hover,
.apcci-lightbox__close:focus-visible {
  background: #ffd53b;
  outline: none;
  transform: scale(1.05);
}

/* Width/height set in apcci-events-lightbox.js from natural dimensions for correct portrait vs landscape fit */
.apcci-lightbox__img {
  width: auto;
  height: auto;
  max-width: min(96vw, 100%);
  max-height: min(88vh, 90dvh);
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.apcci-lightbox__caption {
  margin: 1rem 0 0 0;
  max-width: 800px;
  text-align: center;
  color: #fff;
  font-size: var(--font-size-b2);
  line-height: var(--line-height-b2);
  font-weight: var(--p-regular);
  padding: 0 8px 8px 8px;
}

@media only screen and (max-width: 767px) {
  .apcci-lightbox__caption {
    font-size: 16px;
    line-height: 28px;
  }
}

@media (max-width: 575px) {
  .apcci-lightbox__img {
    max-width: 94vw;
    max-height: min(78vh, 85dvh);
  }
  .apcci-lightbox__close {
    top: 4px;
    right: 4px;
  }
}

body.apcci-lightbox-open {
  overflow: hidden;
}

/* Contact page: icon circles are tap targets for tel: / mailto: (mobile) */
body.contact-page .contact-info-area-wrapper-p .single-contact-info .icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}

body.contact-page .contact-info-area-wrapper-p .single-contact-info .icon a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.contact-page .footer-two-single-wized .contact-info-1 .icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  min-height: 35px;
  color: inherit;
  text-decoration: none;
}

body.contact-page .footer-two-single-wized .contact-info-1 .icon a:focus-visible {
  outline: 2px solid var(--color-primary-2, #d92f29);
  outline-offset: 2px;
  border-radius: 50%;
}
