/* The LC Group - shared Case Studies project gallery lightbox */
.case-gallery .case-gallery-item img { cursor: zoom-in; }
.case-gallery .case-gallery-item img:focus-visible { outline: 3px solid #1784bf; outline-offset: 3px; }

.lc-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 17, 25, .91);
  display: none;
  overflow-y: auto;
  padding: 25px 18px;
  box-sizing: border-box;
}
.lc-gallery-overlay.is-open { display: grid; place-items: center; }
.lc-gallery-modal {
  position: relative;
  box-sizing: border-box;
  width: min(1100px, 100%);
  padding: 69px 58px 24px;
  background: transparent;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
}
/* Dynamic project details, taken from the existing Case Study heading/location. */
.lc-gallery-project-info {
  position: absolute;
  top: 12px;
  left: 58px;
  right: auto;
  width: auto; /* JS matches the actual displayed photograph width. */
  box-sizing: border-box;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  text-align: left;
}
.lc-gallery-project-info[hidden],
.lc-gallery-project-title[hidden],
.lc-gallery-project-location[hidden] { display: none; }
.lc-gallery-project-title { font-weight: 600; }
.lc-gallery-project-location { margin-top: 2px; font-weight: 400; }
.lc-gallery-image-wrap {
  text-align: center;
  line-height: 0;
}
.lc-gallery-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 162px);
  margin: 0 auto;
  object-fit: contain;
}
.lc-gallery-counter {
  margin-top: 14px;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
}
.lc-gallery-button {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 1;
}
.lc-gallery-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.lc-gallery-close { right: 14px; top: 10px; font-size: 32px; width: 32px; height: 32px; }
.lc-gallery-prev, .lc-gallery-next { top: 50%; transform: translateY(-50%); width: 42px; height: 62px; font-size: 48px; }
.lc-gallery-prev { left: 3px; }
.lc-gallery-next { right: 3px; }
.lc-gallery-button:hover { color: #9cdaff; }
@media (max-width: 700px) {
  .lc-gallery-overlay { padding: 12px 8px; }
  .lc-gallery-modal { padding: 68px 34px 18px; }
  .lc-gallery-project-info { top: 9px; font-size: 11px; }
  .lc-gallery-image { max-height: calc(100dvh - 138px); }
  .lc-gallery-close { top: 7px; right: 8px; }
  .lc-gallery-prev, .lc-gallery-next { font-size: 35px; width: 32px; }
  .lc-gallery-prev { left: 0; }
  .lc-gallery-next { right: 0; }
  .lc-gallery-counter { font-size: 15px; margin-top: 10px; }
}
