.zev-image-text-widget {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.zev-left {
    flex: 0 0 70%; 
    max-width: 70%;
    position: relative;
    padding: 0 40px;
}

.zev-right {
    flex: 0 0 30%; 
    max-width: 30%;
    padding-right: 60px;
    padding-top: 10px;
}

.zev-slide2 {
    display: none;
    text-align: center;
}
.zev-slide2.active {
    display: block;
    text-align: center;
}
.zev-slide2 img {
    width: auto !important;
    height: 800px !important;
}
.zev-prev2, .zev-next2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

.zev-prev2 svg,
.zev-next2 svg {
    font-size: 16px;
    width: 16px;
}


.zev-prev2 { left: -8px; }
.zev-next2 { right: -8px; }
.zev-prev2:hover,
.zev-prev2:focus,
.zev-next2:hover,
.zev-next2:focus {
    background-color: transparent !important;
}


.zev-desc-wrap {
    display: none;
}
.zev-desc-wrap.active {
    display: block;
}

.zev-desc-wrap svg{
    width: 17px;
}

p.zev-image-text-desc{
    font-size: 16px;
    font-weight: 400;
}

.zev-button-library {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    height: 45px;
    width: 100%;
    text-align: center;
    display: flex;
    color: #3f3d3d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    gap: 5px;
    font-family: 'Montserrat';
    justify-content: center;
}
.zev-button-library i {
    margin-right: 6px;
}

.zev-gallery-list {
  column-count: var(--zev-columns, 4); /* số cột */
  column-gap: 15px; /* khoảng cách giữa các cột */
}

.zev-gallery-item {
  display: inline-block; /* để item tự flow trong cột */
  margin-bottom: 15px;
  width: 100%; /* fill toàn bộ cột */
  position: relative;
  border-radius: 20px 0;
  overflow: hidden;
  cursor: pointer;
}

.zev-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.zev-gallery-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.zev-mini-post {
    background-color: #000;
    padding: 0 200px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.zev-title-mini-post {
    font-family: 'Inter';
    color: #fff;
    padding-top: 23px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.zev-gallery-item.active {
    border: 4px solid #fff;
    box-sizing: border-box;
    position: relative;
    animation: blinkBW 2s infinite; 
}

.zev-gallery-item.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3); 
    pointer-events: none;
    border-radius: inherit;
}

/* Keyframes nhấp nháy đen trắng */
@keyframes blinkBW {
    0%   { filter: grayscale(0%) brightness(100%); }
    50%  { filter: grayscale(100%) brightness(50%); }
    100% { filter: grayscale(0%) brightness(100%); }
}



.zev-scroll-button2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    top: 42%;
}


.zev-scroll-button2 a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: #ffffff3d;
    border: 2px solid #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
     backdrop-filter: blur(10px); /* hiệu ứng làm mờ nền */
    -webkit-backdrop-filter: blur(10px); /* hỗ trợ Safari */
}

.zev-down {
    height: 20px;
}


/* Tablet: 768px đến 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .zev-image-text-widget {
    flex-direction: column; /* chuyển từ ngang sang dọc */
    align-items: center;
    padding: 0 10px;
    padding-bottom: 30px;
  }

  .zev-left,
  .zev-right {
    flex:1;
    max-width: 100%;
    width: 100%;
    padding: 0; /* bỏ padding ngang */
  }

  .zev-slider2 {
    width: 100%; /* cho slider fit màn hình */
  }

  .zev-slide2 img {
    height: auto !important; /* tránh hình quá to */
    max-height: 500px;       /* giới hạn chiều cao */
    width: 100% !important;
    object-fit: contain;
  }

  .zev-mini-post {
    padding: 0 10px; /* bỏ padding 200px */
  }
  .zev-scroll-button2{
    top: 54%;
  }
}
@media (max-width: 768px) {
  /* Ảnh và mô tả xếp dọc */
  .zev-image-text-widget {
    flex-direction: column;
  }

  .zev-left, 
  .zev-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0; /* bỏ padding dư */
  }

  .zev-left {
    margin-bottom: 20px; /* cách phần ảnh với phần desc */
  }

  /* Gallery chỉ 1 cột */
  .zev-gallery-list {
    column-count: 1 !important;
  }

  /* Thu gọn padding mini-post */
  .zev-mini-post {
    padding: 0 20px;
  }
}
