/* ===============================
   FABRIC IMAGE ROW (FEATURE 4.1)
================================ */

.ser-cuz-fabric-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    max-width: 100%;
}

.ser-cuz-fabric-img {
    position: relative;
    aspect-ratio: 1 / 1;
    /* 🔒 ล็อก 1:1 */
    overflow: hidden;
    border-radius: 14px;
    background: #f2f4f7;
}

/* รูป */
.ser-cuz-fabric-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* blur-up */
    filter: blur(16px);
    transform: scale(1.05);
    transition:
        filter 0.7s ease,
        transform 0.7s ease;
}

/* โหลดเสร็จ */
.ser-cuz-fabric-img img.is-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* hover (สุภาพ ไม่แรง) */
@media (hover: hover) {
    .ser-cuz-fabric-img:hover img {
        transform: scale(1.04);
    }
}

/* mobile */
@media (max-width: 640px) {
    .ser-cuz-fabric-gallery {
        gap: 12px;
    }
}

/* ===============================
   FEATURE IMAGE XL
================================ */

.ser-cuz-image-xl {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* แนวตั้ง ดูพรีเมียม */
    overflow: hidden;
    border-radius: 18px;
    background: #f2f4f7;
}

/* image */
.ser-cuz-image-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* blur-up */
    filter: blur(18px);
    transform: scale(1.05);
    transition:
        filter 0.8s ease,
        transform 0.8s ease;
}

/* loaded */
.ser-cuz-image-xl img.is-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* ===============================
   FEATURE IMAGE XL — TABLE SHADOW
================================ */

.ser-cuz-image-xl {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: visible;
    /* ต้องเปิดเพื่อให้เงาออกนอกกรอบ */
    border-radius: 18px;
    background: transparent;
}

/* กล่องภาพจริง */
.ser-cuz-image-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    border-radius: 18px;
    background: #f2f4f7;

    /* blur-up */
    filter: blur(18px);
    transform: scale(1.05);
    transition:
        filter 0.8s ease,
        transform 0.8s ease;
}

/* โหลดเสร็จ */
.ser-cuz-image-xl img.is-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* เงาด้านล่าง */
.ser-cuz-image-xl::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -16px;
    height: 22px;

    background: radial-gradient(ellipse at center,
            rgba(11, 42, 85, 0.28) 0%,
            rgba(11, 42, 85, 0.18) 35%,
            rgba(11, 42, 85, 0.06) 60%,
            transparent 75%);

    filter: blur(14px);
    z-index: -1;
}

.ser-cuz-image-xl {
    position: relative;
    z-index: 1;
}

.ser-cuz-image-xl::after {
    z-index: -1;
    /* เงาลงไปข้างหลังจริง */
}


/* ===============================
   FEATURE INDEX FIX
================================ */

.ser-cuz-feature-image {
    position: relative;
}

.ser-cuz-index {
    position: absolute;
    top: 24px;
    left: 24px;

    z-index: 5;
    /* 🔥 สำคัญ */
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: rgba(11, 42, 85, 0.08);
    pointer-events: none;
    /* กันบัง interaction */
}

/* ===============================
   EXTRA IMAGE ROW (2 COL / 1:1)
================================ */

.ser-cuz-extra-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 🔒 2 รูปตลอด */
    gap: 16px;
    margin-top: 24px;
    max-width: 100%;
}

.ser-cuz-extra-img {
    position: relative;
    aspect-ratio: 1 / 1;
    /* 🔒 1:1 */
    overflow: hidden;
    border-radius: 14px;
    background: #f2f4f7;
}

/* image */
.ser-cuz-extra-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* blur-up */
    filter: blur(16px);
    transform: scale(1.05);
    transition:
        filter 0.7s ease,
        transform 0.7s ease;
}

/* loaded */
.ser-cuz-extra-img img.is-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* mobile — ยัง 2 รูปในแถวเดียว */
@media (max-width: 768px) {
    .ser-cuz-extra-gallery {
        gap: 12px;
    }
}

/* ===== Dark section description ===== */
.ser-cuz-dark-desc {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

/* ===== Fit image grid ===== */
.ser-cuz-fit-grid {
  margin-top: 48px;
}

.ser-cuz-fit-card {
  width: 100%;
}

/* 1:1 image wrapper */
.ser-cuz-image-1x1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
}

/* Image */
.ser-cuz-image-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shadow แบบวางบนโต๊ะ */
.ser-cuz-image-1x1::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 18px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 40%,
    transparent 70%
  );
  filter: blur(6px);
  z-index: -1;
}

/* Mobile */
@media (max-width: 768px) {
  .ser-cuz-dark-desc {
    padding: 0 12px;
    font-size: 14px;
  }
}

