/* Flagon Kennel customer albums. Scoped to home gallery and its lightbox. */
body.flagon-site #flagon-main .flagon-home-gallery .flagon-gallery-item > a[data-flagon-album] {
  position: relative;
  isolation: isolate;
  outline-offset: 4px;
  cursor: zoom-in;
}
body.flagon-site #flagon-main .flagon-home-gallery .flagon-gallery-item > a[data-flagon-album]::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg,rgba(10,35,33,.64),transparent 72%);
  pointer-events: none;
  z-index: 1;
}
body.flagon-site #flagon-main .flagon-home-gallery .flagon-gallery-dog-name {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-family: inherit;
  font-size: clamp(13px,1.05vw,17px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  text-shadow: 0 1px 5px rgba(0,0,0,.18);
  pointer-events: none;
  text-align: left;
}
body.flagon-site #flagon-main .flagon-home-gallery .flagon-gallery-item > a[data-flagon-album]:focus-visible {
  outline: 3px solid #fa654b;
}
.fk26-gallery-modal {
  position: fixed;
  inset: 0;
  width: min(94vw,1010px);
  max-width: none;
  max-height: min(95dvh,950px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fffefa;
  color: #25433f;
  box-shadow: 0 30px 95px rgba(3,24,23,.25);
}
.fk26-gallery-modal::backdrop { background: rgba(8,29,27,.78); }
.fk26-gallery-modal .fk26-modal-panel { max-height: min(95dvh,950px); overflow-y:auto; padding:24px 26px 20px; }
.fk26-gallery-modal .fk26-modal-head { display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px; }
.fk26-gallery-modal .fk26-modal-kicker { color:#e25e46;font-size:11px;font-weight:800;letter-spacing:.13em; }
.fk26-gallery-modal .fk26-modal-title { margin:3px 0 2px!important;color:#214742!important;font-size:clamp(24px,3vw,33px)!important;font-weight:750!important;line-height:1.25!important; }
.fk26-gallery-modal .fk26-modal-count {font-size:13px;color:#667973;font-weight:550}
/* Close control must remain a true circle despite Flatsome's default button min-height. */
.fk26-gallery-modal button.fk26-modal-close {
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #d9e4de !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-image: none !important;
  color: #254641 !important;
  box-shadow: none !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: none !important;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.fk26-gallery-modal button.fk26-modal-close svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.fk26-gallery-modal button.fk26-modal-close:hover {
  background: #f4f8f5 !important;
  border-color: #b9ccc2 !important;
  color: #e45f49 !important;
}
.fk26-gallery-modal .fk26-modal-stage {position:relative;display:flex;align-items:center;justify-content:center;min-height:170px;max-height:62dvh;border-radius:14px;overflow:hidden;background:#f3f5f2;}
.fk26-gallery-modal .fk26-modal-photo {display:block!important;width:auto!important;max-width:100%!important;max-height:62dvh!important;height:auto!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important;}
.fk26-gallery-modal .fk26-nav {position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px!important;height:44px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.96)!important;color:#23433d!important;border:1px solid #e2e8e3!important;border-radius:50%!important;padding:0!important;margin:0!important;box-shadow:0 4px 20px rgba(3,24,23,.08)!important;cursor:pointer;}
.fk26-gallery-modal .fk26-nav:disabled {opacity:.25;cursor:default;}
.fk26-gallery-modal .fk26-nav svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;}
.fk26-gallery-modal .fk26-previous {left:14px;right:auto;}
.fk26-gallery-modal .fk26-next {right:14px;left:auto;}
.fk26-gallery-modal .fk26-modal-caption {margin:16px auto 12px!important;max-width:800px;color:#385953!important;font-size:15px!important;line-height:1.65!important;text-align:center!important;}
.fk26-gallery-modal .fk26-modal-thumbs {display:flex;justify-content:flex-start;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:8px 2px 5px;}
.fk26-gallery-modal .fk26-modal-thumb {flex:0 0 76px!important;display:block!important;width:76px!important;height:69px!important;margin:0!important;padding:3px!important;background:#fff!important;border:2px solid transparent!important;border-radius:11px!important;box-shadow:none!important;overflow:hidden;cursor:pointer;opacity:.75;}
.fk26-gallery-modal .fk26-modal-thumb.is-active {border-color:#e56a51!important;opacity:1;}
.fk26-gallery-modal .fk26-modal-thumb img {display:block;width:100%;height:100%;object-fit:cover;border-radius:7px;}
.fk26-gallery-modal button:focus-visible {outline:3px solid #fa654b!important;outline-offset:2px;}
@media (max-width:767px) {
  body.flagon-site #flagon-main .flagon-home-gallery .flagon-gallery-dog-name {font-size:13px;left:9px;right:8px;bottom:9px;}
  .fk26-gallery-modal {width:98vw;max-height:94dvh;border-radius:14px;}
  .fk26-gallery-modal .fk26-modal-panel {padding:16px 12px 12px;max-height:94dvh;}
  .fk26-gallery-modal button.fk26-modal-close {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
  .fk26-gallery-modal button.fk26-modal-close svg {width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex-basis:18px!important;}
  .fk26-gallery-modal .fk26-modal-stage {max-height:54dvh;}
  .fk26-gallery-modal .fk26-modal-photo {max-height:54dvh!important;}
  .fk26-gallery-modal .fk26-nav {width:37px!important;height:37px!important;}
  .fk26-gallery-modal .fk26-previous {left:7px;}
  .fk26-gallery-modal .fk26-next {right:7px;}
  .fk26-gallery-modal .fk26-modal-caption {font-size:13px!important;line-height:1.5!important;margin:12px 5px!important;}
  .fk26-gallery-modal .fk26-modal-thumb {flex-basis:61px!important;width:61px!important;height:58px!important;}
}
@media (prefers-reduced-motion:reduce) {
  body.flagon-site #flagon-main .flagon-home-gallery .flagon-gallery-item img {transition:none!important;}
}
