/* Gallery-scoped adaptation of the supplied FixItAll service-page visual standard. */
.fia-gallery {
  --fia-blue: #0b63ce;
  --fia-ink: #000000;
  --fia-muted: #52616b;
  --fia-soft: #f1f9ff;
  --fia-pale: #f7f9fc;
  --fia-border: #dce5ec;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  background: #ffffff;
  color: var(--fia-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: anywhere;
  scroll-margin-top: 24px;
}
.fia-gallery *, .fia-gallery *::before, .fia-gallery *::after, .fia-lightbox * { box-sizing: border-box; }
.fia-gallery h2, .fia-gallery h3, .fia-gallery h4,
.fia-gallery p, .fia-gallery a, .fia-gallery span, .fia-gallery button,
.fia-gallery figure, .fia-gallery figcaption, .fia-gallery nav {
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.fia-gallery h2, .fia-gallery h3, .fia-gallery h4 {
  color: var(--fia-ink) !important;
  font-weight: 700 !important;
  text-align: left !important;
}
.fia-gallery h2 { margin: 0 0 16px !important; font-size: clamp(24px, 2.4vw, 28px) !important; line-height: 1.3 !important; }
.fia-gallery h3 { margin: 0 0 12px !important; font-size: 21px !important; line-height: 1.4 !important; }
.fia-gallery p { margin: 0 0 16px; color: var(--fia-ink) !important; font-size: inherit; line-height: inherit; text-align: left !important; }
.fia-gallery p:last-child { margin-bottom: 0; }
.fia-gallery a { color: var(--fia-blue) !important; text-decoration: underline; text-underline-offset: 3px; }
.fia-gallery a:hover { text-decoration-thickness: 2px; }
.fia-gallery :is(button,a):focus-visible { outline: 3px solid var(--fia-blue); outline-offset: 4px; }
.fia-gallery button { cursor: pointer; font: inherit; }
.fia-gallery .fia-grid { display: grid; grid-template-columns: repeat(var(--fia-cols,3), minmax(0,1fr)); gap: 16px; }
.fia-gallery .fia-card { min-width: 0; border: 1px solid var(--fia-border); border-radius: 10px; overflow: hidden; background: #ffffff; }
.fia-gallery .fia-card:hover { border-color: var(--fia-blue); background: var(--fia-soft); }
.fia-gallery .fia-album-open { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--fia-ink); text-align: left !important; box-shadow: none; }
.fia-gallery .fia-album-open > img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; margin: 0; border-radius: 0; }
.fia-gallery .fia-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.fia-gallery .fia-count { font-size: 14px; color: var(--fia-muted); }
.fia-gallery .fia-title { color: var(--fia-ink); font-size: 21px; font-weight: 700; line-height: 1.4; text-align: left !important; }
.fia-gallery .fia-desc { color: var(--fia-ink); font-size: 16px; line-height: 1.6; white-space: pre-line; text-align: left !important; }
.fia-gallery .fia-explore { display: block; margin-top: 8px; color: var(--fia-blue); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fia-gallery .fia-placeholder { display: grid; place-items: center; aspect-ratio: 4/3; background: var(--fia-pale); color: var(--fia-muted); }
.fia-gallery .fia-album-heading { padding: 36px 24px; margin: 0 0 32px; background: var(--fia-soft); border-radius: 12px; text-align: left !important; }
.fia-gallery .fia-album-heading h2 { margin: 0 0 20px !important; font-size: clamp(28px, 3.4vw, 40px) !important; line-height: 1.18 !important; }
.fia-gallery .fia-album-heading p { max-width: 850px; font-size: 18px; line-height: 1.65; white-space: pre-line; }
.fia-gallery .fia-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 24px; padding: 8px 16px; border: 1px solid var(--fia-border); border-radius: 6px; background: #ffffff; color: var(--fia-blue); font-size: 15px; font-weight: 600; text-align: left; }
.fia-gallery .fia-back:hover { border-color: var(--fia-blue); background: var(--fia-soft); }
.fia-gallery .fia-project-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0 0 24px; text-align: left !important; }
.fia-gallery .fia-nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--fia-blue); font-size: 15px; font-weight: 600; text-align: left !important; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.fia-gallery .fia-nav-link:hover { color: #084eaa; background: transparent; }
.fia-gallery .fia-projects { margin-bottom: 32px; }
.fia-gallery .fia-loose { margin-top: 52px; }
.fia-gallery .fia-loose-heading { margin: 40px 0 20px !important; }
.fia-gallery .fia-photo-stage { margin: 40px 0 0; padding: 0 24px; }
.fia-gallery .fia-photo-stage:first-of-type { margin-top: 32px; }
.fia-gallery .fia-stage-heading { padding-bottom: 12px; border-bottom: 1px solid var(--fia-border); margin-bottom: 24px !important; }
.fia-gallery .fia-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
.fia-gallery .fia-photo { margin: 0 !important; min-width: 0; text-align: left !important; }
.fia-gallery .fia-photo a { position: relative; display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--fia-border); border-radius: 10px; background: var(--fia-pale); }
.fia-gallery .fia-photo img { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: cover; object-position: center; }
.fia-gallery .fia-photo figcaption { margin-top: 12px; padding: 0; color: var(--fia-ink) !important; font-size: 14px; line-height: 1.6; white-space: pre-line; text-align: left !important; }
.fia-gallery .fia-stage { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-block; padding: 6px 10px; border: 1px solid var(--fia-blue); border-radius: 6px; background: #ffffff; color: var(--fia-blue); font-size: 13px; font-weight: 700; line-height: 1.4; }
.fia-gallery .fia-stage-after, .fia-gallery .fia-stage-during { background: var(--fia-blue); color: #ffffff; }
.fia-gallery .fia-project-contact { padding: 36px 24px; margin-top: 52px; border: 0; border-radius: 12px; background: var(--fia-soft); text-align: left !important; }
.fia-gallery .fia-project-contact h3 { font-size: clamp(24px,2.4vw,28px) !important; line-height: 1.3 !important; margin-bottom: 16px !important; }
.fia-gallery .fia-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.fia-gallery .fia-contact-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; padding: 11px 22px; border: 1px solid var(--fia-blue); border-radius: 6px; background: #ffffff; color: var(--fia-blue) !important; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none !important; }
.fia-gallery .fia-contact-actions a:hover { background: var(--fia-soft); }
.fia-gallery .fia-contact-actions a.fia-contact-primary { background: var(--fia-blue); color: #ffffff !important; }
.fia-gallery .fia-contact-actions a.fia-contact-primary:hover { background: #084eaa; border-color: #084eaa; }
.fia-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 16px 24px; border: 0; box-sizing: border-box; background: #101715; color: #ffffff; font-family: Arial,Helvetica,sans-serif; }
.fia-lightbox[open] { display: flex; flex-direction: column; }
.fia-lightbox::backdrop { background: #101715; }
.fia-lightbox .fia-lb-bar { display: flex; gap: 16px; align-items: center; flex-shrink: 0; min-height: 48px; padding-bottom: 10px; font-size: 16px; line-height: 1.3; }
.fia-lightbox .fia-lb-bar > span:first-child { flex: 1; overflow-wrap: anywhere; }
.fia-lightbox .fia-lb-count { white-space: nowrap; font-size: 14px; }
.fia-lightbox button { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff60; border-radius: 6px; background: #17251f; color: #ffffff; font: 32px/1 Arial,Helvetica,sans-serif; cursor: pointer; }
.fia-lightbox button:focus-visible { outline: 3px solid #63a7ff; outline-offset: 3px; }
.fia-lightbox button[hidden] { display: none; }
.fia-lightbox .fia-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.fia-lightbox .fia-lb-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.fia-lightbox .fia-lb-prev, .fia-lightbox .fia-lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.fia-lightbox .fia-lb-prev { left: 0; }
.fia-lightbox .fia-lb-next { right: 0; }
.fia-lightbox .fia-lb-caption { margin: 12px auto 0; max-width: 900px; max-height: 22vh; overflow: auto; color: #ffffff !important; font: 16px/1.5 Arial,Helvetica,sans-serif; white-space: pre-line; overflow-wrap: anywhere; text-align: left; }
.fia-lightbox .fia-lb-caption:empty { margin: 0; }
@media (max-width: 800px) {
  .fia-gallery .fia-albums, .fia-gallery .fia-projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .fia-gallery { padding: 16px 8px 28px; font-size: 16px; }
  .fia-gallery .fia-album-heading, .fia-gallery .fia-project-contact { padding: 28px 16px; }
  .fia-gallery .fia-album-heading p { font-size: 17px; }
  .fia-gallery .fia-albums, .fia-gallery .fia-projects, .fia-gallery .fia-photo-grid { grid-template-columns: 1fr; }
  .fia-gallery .fia-photo-stage { margin-top: 36px; padding-right: 16px; padding-left: 16px; }
  .fia-gallery .fia-project-contact { margin-top: 36px; }
  .fia-gallery .fia-contact-actions { align-items: stretch; }
  .fia-gallery .fia-contact-actions a { flex: 1 1 100%; width: 100%; }
  .fia-lightbox { padding: 10px; }
  .fia-lightbox button { width: 44px; height: 44px; }
  .fia-lightbox .fia-lb-bar, .fia-lightbox .fia-lb-caption { font-size: 14px; }
}
