
.promo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.promo-item {
    width: 45%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer; /* ← เปลี่ยนเคอร์เซอร์เป็นรูปมือ */
}

.promo-item:hover {
    transform: scale(1.02);
}

.promo-item img {
    width: 100%;
    display: block;
}

/* Responsive สำหรับหน้าจอเล็ก (มือถือ) */
@media (max-width: 768px) {
    .promo-item {
        width: 100%;
    }
}

/* Popup พื้นหลัง */
.modal {
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
position: fixed;
z-index: 1000;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.8);
transition: opacity 0.3s ease;
}

.modal.show {
opacity: 1;
pointer-events: auto;
}

.modal-image-wrapper {
position: relative;
width: fit-content;
margin: auto;
}

.modal-content {
display: block;
max-width: 80vw;
max-height: 80vh;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(255,255,255,0.3);
transform: scale(0.95);
transition: transform 0.3s ease;
}

.modal.show .modal-content {
transform: scale(1);
}

.modal-close {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
width: 48px;
height: 48px;
line-height: 41px; /* ✅ ตามที่คุณแจ้งว่าใช้แล้วตรงกลาง */
text-align: center;
background-color: rgba(0, 0, 0, 0.6);
color: white;
font-size: 24px;
font-weight: bold;
cursor: pointer;
border-radius: 50%;
transition: background-color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
.modal-content {
max-width: 90vw;
max-height: 90vh;
}

.promo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0px;
}
}
