/* HABCO Socials — aligned with style.css (Arial/Helvetica, site tokens) */

.page-socials,
.page-socials .social-gallery-section,
.page-socials .social-gallery-intro,
.page-socials .social-thumb,
.page-socials .social-thumb-title,
.page-socials .social-modal-title,
.page-socials .social-modal-caption,
.page-socials .social-lightbox-card {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink, #111);
  -webkit-font-smoothing: antialiased;
}

.social-gallery-section {
  max-width: 1120px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  box-sizing: border-box;
}

.social-gallery-intro {
  margin-bottom: 28px;
  max-width: 860px;
}

.social-gallery-intro h2 {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-transform: none;
  color: #171717;
}

.social-gallery-intro p {
  margin: 0;
  max-width: 780px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: #4b4b4b;
}

.social-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

@media (max-width: 900px) {
  .social-gallery { grid-template-columns: repeat(2, 1fr); }
  .social-gallery-section { width: min(100% - 34px, 680px); padding: 22px 0 32px; }
}

@media (max-width: 560px) {
  .social-gallery { grid-template-columns: 1fr; }
  .social-gallery-section { width: min(100% - 28px, 680px); padding: 18px 0 28px; }
  .social-gallery-intro h2 { font-size: 22px; }
  .social-gallery-intro p { font-size: 15.5px; line-height: 1.65; }
}

.social-card { margin: 0; }

.social-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  color: inherit;
}

.social-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
  transition: transform 0.28s var(--ease, cubic-bezier(.16,1,.3,1)), box-shadow 0.28s ease;
}

.social-thumb:hover img,
.social-thumb:focus-visible img {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.social-thumb:focus-visible {
  outline: 2px solid var(--ink, #111);
  outline-offset: 3px;
}

.social-thumb-title {
  display: block;
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #171717;
  text-transform: none;
}

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

/* Lightbox — same system font stack */
.social-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.social-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.social-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-lightbox-card {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 28px));
  max-height: min(92vh, 900px);
  overflow: auto;
  background: rgba(255,255,255,0.97);
  border-radius: 13px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.18);
  padding: 28px 32px 26px;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}

.social-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.social-modal-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 14px;
}

.social-modal-title {
  margin: 0 0 10px;
  padding-right: 36px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: none;
  color: #111;
}

.social-modal-caption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}

.social-modal-caption p {
  margin: 0 0 12px;
}

.social-modal-caption p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  .social-lightbox-card {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 24px);
    padding: 24px 18px 20px;
  }
  .social-modal-title { font-size: 21px; }
}
