/* Card styles */
.item {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08); */
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  transition: transform 0.25s ease;
}
.item:hover {
  transform: translateY(-6px);
}
.item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}
.item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}
.hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s;
  text-align: center;
}
.item:hover .hover-info {
  opacity: 1;
}
.view-btn {
  margin-top: 8px;
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Owl custom dots */
.owl-dots {
  text-align: center;
  padding-top: 18px;
}
.owl-dot span {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 9999px;
  background: #cbd5e1;
  margin: 0 6px;
}
.owl-dot.active span {
  background: var(--primary);
}

/* Fixes for alignment/overflow issues */
.owl-stage {
  display: flex;
  align-items: stretch;
}
.owl-stage-outer {
  overflow: hidden;
}
.owl-item {
  display: flex;
  height: 100%;
}
.owl-carousel .item {
  width: 100%;
  box-sizing: border-box;
}
.owl-carousel img {
  display: block;
}
/* remove unintended side-peeking by controlling stage padding instead of CSS hacks */

/* Fullscreen modal (custom lightbox with zoom + pan controls) */
#lightboxModal {
  margin-top: 74px;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
#lightboxModal.open {
  display: flex;
}
.lb-inner {
  position: relative;
  width: 95%;
  max-width: 1400px;
  max-height: 92vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 575.98px) {
  .lb-inner {
    height: 100vh !important;
  }
}
/* The image wrapper handles panning by translating the inner image */
.img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.img-wrap:active {
  cursor: grabbing;
}
#lightboxImage {
  max-width: 65%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.08s linear;
  will-change: transform;
}

/* Toolbar */
.lb-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 1200;
}
.lb-btn {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.lb-btn:active {
  transform: translateY(1px);
}
.lb-close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1200;
}

/* Caption area */
.lb-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  color: var(--primary);
  font-weight: 600;
  text-align: left;
  z-index: 1200;
  display: none;
}
.lb-caption small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 6px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .lb-inner {
    max-width: 100%;
    max-height: 100%;
  }
  .lb-btn {
    padding: 6px 8px;
  }
}

/* Accessibility focus outlines */
.lb-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.12);
  outline-offset: 2px;
}

/* Hide arrows per user request (carousel without arrows) */
.owl-nav {
  display: none;
}
button.owl-dot {
  border: none;
  background: inherit;
}

.owl-stage-outer {
  padding: 10px 0;
}
