#productGallery #lightgallery img,.productImages img{max-width:70%;margin:0 auto}

 

/*
#lightgallery.collapsed::after, .product-detail .collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
}
    */


.collapsible {
    max-height: 350px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.45s ease;
}

.collapsible.expanded {
    max-height: 20000px; /* đủ lớn để mở */
}

.collapsible::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, white);
}

.collapsible.expanded::after {
    display: none;
}




.view-more-container {
    text-align: center;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.view-more-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ccc;
    z-index: 0;
}

.view-more-btn {
    cursor: pointer;
    padding: 10px 35px  10px 20px;
    border: 1px solid #0088ff;
    border-radius: 5px;
    display: inline-block;
    background-color: white;
    position: relative;
    transition: all 0.25s ease;
    z-index: 2; /* cao hơn đường kẻ */
     box-shadow: 0 0 0 .5rem rgb(255, 255, 255);
}

.view-more-btn:hover {
    background-color: #0088ff;
    color: white;
    border-color: #0077e6;
}
 

/* mũi tên tự vẽ */
.view-more-btn:hover::after {
    border-color: white;
}


/* icon mũi tên xuống (mặc định) */
.view-more-btn::after {
    content: '';
    position: absolute;
    top: 47%;
    right: 20px;
    width: 8px;
    height: 8px;
    border: solid #444;
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg); /* mũi tên xuống */
    transition: transform .25s ease, border-color .25s ease;
}

/* icon xoay lên khi mở rộng */
.view-more-btn.expanded-btn::after {
    transform: translateY(-50%) rotate(-135deg); /* mũi tên lên */
    border-color: #444;
      top: 57%;
}

/* hover đổi màu icon */
.view-more-btn:hover::after {
    border-color: white;
}