/* ==========================================================================
   Elementor Custom Image Grid - Frontend Stylesheet v2.4.0
   ========================================================================== */

.ecig-wrapper {
  width: 100%;
  box-sizing: border-box;
}

.ecig-grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}

@media (max-width: 1024px) {
  .ecig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 24px;
  }
}

@media (max-width: 640px) {
  .ecig-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 24px;
  }
}

.ecig-item {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #dcdcde;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.ecig-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ecig-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.ecig-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Hover Effects */
.ecig-hover-zoom-in:hover .ecig-image {
  transform: scale(1.08);
}

.ecig-hover-zoom-out:hover .ecig-image {
  transform: scale(0.94);
}

.ecig-hover-overlay-dark:hover .ecig-image {
  filter: brightness(0.75);
}

.ecig-hover-tilt-3d {
  perspective: 800px;
}

.ecig-hover-tilt-3d:hover .ecig-image {
  transform: scale(1.05) rotateY(4deg) rotateX(-2deg);
}

/* Badges */
.ecig-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Overlay & Captions */
.ecig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.ecig-item:hover .ecig-overlay {
  opacity: 1;
}

.ecig-caption-overlay-always .ecig-overlay {
  opacity: 1;
}

.ecig-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-kerning: normal;
    letter-spacing: 0.08em;
    font-weight: 400;
    color: #ffffff;
    line-height: normal;
    font-family: var(--font-agathoregular);
}

.ecig-caption {
  margin: 0;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.4;
}

.ecig-bottom-caption {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #dcdcde;
}

.ecig-bottom-caption .ecig-title {
  color: #1d2327;
}

.ecig-bottom-caption .ecig-caption {
  color: #50575e;
}

/* Entrance Animations */
@keyframes ecigFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ecigZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ecig-item[data-ecig-animate="fade-up"] {
  animation: ecigFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecig-item[data-ecig-animate="zoom-in"] {
  animation: ecigZoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Lightbox Modal */
.ecig-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ecig-lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.ecig-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ecig-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

/* Custom CSS for Grid Items */
.elementor-custom-image-grid-widget .featured-arch {
  outline: 2px solid rgba(224, 122, 95, 0.4);
}

.elementor-custom-image-grid-widget .glow-hover:hover {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

