/* =====================================================================
   Dream Cleen v2 - gallery hover + full-screen lightbox
   ---------------------------------------------------------------------
   Gallery images are wrapped in <a class="dc-gal" href=IMAGE-URL>. On
   hover/focus they darken with a navy tint and show an eye icon; a click
   opens the full-screen lightbox built by /assets/js/dc-gallery-*.js.
   Edit the values marked <<<.
   ===================================================================== */

/* ---------- gallery tiles ---------- */
/* inline-block shrink-wraps the image, so the layout and image size stay exactly as before */
.elementor-widget-image a.dc-gal {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
}
.elementor-widget-image a.dc-gal img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform .5s ease;
}
.dc-gal__over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 28, 82, .55);   /* <<< navy tint + darkening on hover */
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.dc-gal__eye {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;                         /* <<< eye badge size */
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 2px solid rgba(255, 255, 255, .85);
  transform: scale(.7);
  transition: transform .3s ease;
}
.dc-gal__eye svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-gal:hover .dc-gal__over,
.dc-gal:focus-visible .dc-gal__over { opacity: 1; }
.dc-gal:hover .dc-gal__eye,
.dc-gal:focus-visible .dc-gal__eye { transform: scale(1); }
.elementor-widget-image a.dc-gal:hover img,
.elementor-widget-image a.dc-gal:focus-visible img { transform: scale(1.04); }
.dc-gal:focus-visible { outline: 3px solid #61CE70; outline-offset: 3px; }

/* ---------- lightbox ---------- */
html.dc-lb-open { overflow: hidden; }
.dc-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(6, 10, 30, .96);    /* <<< lightbox backdrop */
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  font-family: inherit;
  -webkit-user-select: none;
  user-select: none;
}
.dc-lb.is-open { opacity: 1; visibility: visible; }

.dc-lb__top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.dc-lb__count { font-size: 15px; letter-spacing: .06em; color: rgba(255, 255, 255, .8); }

.dc-lb__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px;
}
.dc-lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateX(var(--dc-shift, 0)) scale(.98);
  transition: opacity .3s ease, transform .35s ease;
}
.dc-lb__img.is-in { opacity: 1; transform: none; }

.dc-lb__caption {
  flex: 0 0 auto;
  margin: 14px 18px 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
  color: #fff;
}

.dc-lb__thumbs {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-x: auto;
}
.dc-lb__thumb {
  flex: 0 0 auto;
  width: 84px;                         /* <<< thumbnail size */
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  overflow: hidden;
  opacity: .5;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}
.dc-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-lb__thumb:hover { opacity: .85; }
.dc-lb__thumb.is-active { opacity: 1; border-color: #61CE70; }   /* <<< active thumbnail border */

.dc-lb__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.dc-lb__btn:hover { background: rgba(255, 255, 255, .25); }
.dc-lb__btn:focus-visible { outline: 2px solid #61CE70; outline-offset: 2px; }
.dc-lb__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dc-lb__prev,
.dc-lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.dc-lb__prev { left: 14px; }
.dc-lb__next { right: 14px; }

.dc-lb__spinner {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dc-lb-spin .8s linear infinite;
  opacity: 0;
  transition: opacity .2s ease;
}
.dc-lb.is-loading .dc-lb__spinner { opacity: 1; }
@keyframes dc-lb-spin { to { transform: rotate(360deg); } }

@media (max-width: 767.98px) {
  .dc-lb__stage { padding: 0 8px; }
  .dc-lb__prev,
  .dc-lb__next { top: auto; bottom: 8px; transform: none; width: 42px; height: 42px; background: rgba(0, 0, 0, .45); }
  .dc-lb__thumb { width: 64px; height: 44px; }
  .dc-lb__caption { font-size: 15px; }
  /* the phone quick-contact button would sit on top of the lightbox */
  html.dc-lb-open .dc-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-gal img, .dc-gal__over, .dc-gal__eye, .dc-lb, .dc-lb__img { transition: none; }
}
