/* ===================================================================
   Image Showcase — Elementor Widget Frontend CSS
   =================================================================== */

/* ---------- Wrapper ---------- */
.is-wrapper {
  width: 100%;
  position: relative;
  overflow: visible;
  padding: 40px 0;
}

/* ---------- Skew background ---------- */
.is-skew {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 0;
  transform: skew(0, 2.4deg);
  transform-origin: left top;
  background-color: #f0f4f7;
}

.is-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0;
}

/* ---------- Card Grid (3 per row) ---------- */
.is-grid {
  width: 100%;
  padding: 0;
  list-style: none;
  margin: 0;
}

/* ---------- Single Card (3 columns) ---------- */
.is-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.10));
}

.is-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.18));
}

/* Full-width variant */
.is-card.is-full {
  width: 100%;
}

/* ---------- Card Image ---------- */
.is-card-img {
  display: block;
  overflow: hidden;
  height: 240px;
  border-radius: 8px;
  background-color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-origin: content-box;
  transition: all 0.3s ease-in-out;
}

.is-card-placeholder {
  background-image: linear-gradient(#e8ecf0, #e8ecf0);
}

/* ---------- Caption (normal flow, below white box) ---------- */
.is-card-caption {
  display: block;
  text-align: center;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 10px 0;
  line-height: 30px;
}


/* ===== Large Desktop ≤ 1440px ===== */
@media screen and (max-width: 1440px) {
  .is-inner {
    max-width: 1100px;
  }
}

/* ===== Small Desktop ≤ 1280px ===== */
@media screen and (max-width: 1280px) {
  .is-inner {
    max-width: 960px;
  }
  .is-card-img {
    height: 220px;
  }
}

/* ===== Tablet Landscape ≤ 1024px ===== */
@media screen and (max-width: 1024px) {
  .is-inner {
    max-width: 90%;
  }
  .is-card-img {
    height: 200px;
  }
}

/* ===== Tablet Portrait ≤ 800px ===== */
@media screen and (max-width: 800px) {
  .is-card-img {
    height: 180px;
  }
  .is-card-caption {
    font-size: 14px;
    padding: 12px 8px 0;
    line-height: 1.4;
  }
}

/* ===== Large Phone ≤ 640px ===== */
@media screen and (max-width: 640px) {
  .is-card-img {
    height: 240px;
  }
  .is-wrapper {
    padding: 30px 0;
  }
}

/* ===== Phone ≤ 480px ===== */
@media screen and (max-width: 480px) {
  .is-card-img {
    height: 190px;
  }
  .is-card-caption {
    font-size: 13px;
    padding: 10px 6px 0;
    line-height: 1.3;
  }
  .is-wrapper {
    padding: 20px 0;
  }
}

/* ===== Small Phone ≤ 375px ===== */
@media screen and (max-width: 375px) {
  .is-card-img {
    height: 160px;
  }
  .is-card-caption {
    font-size: 12px;
  }
}
