@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* CSS สำหรับการจัดแกลเลอรีรูปภาพ */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}


.gallery-wrapper {
    position: relative;
    width: 80%;
    margin: auto;
    overflow: hidden; /* ซ่อนส่วนที่เกินออกไปจากขอบ */
}

.gallery-container {
    display: flex;
    transition: transform 0.3s ease-in-out; /* เพิ่ม transition เพื่อให้เลื่อนไปอย่างนุ่มนวล */
}

.gallery-container img {
    max-height: 300px; /* กำหนดความสูงสูงสุดของรูปภาพ */
    height: auto;
    margin-right: 10px; /* ระยะห่างระหว่างรูปภาพ */
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* เปลี่ยน cursor เมื่อ hover */
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.arrow-left {
    left: 0;
}

.arrow-right {
    right: 0;
}
img{
    margin: auto;
    width: 100%;
}

/* CSS สำหรับ modal */
.modal {
    display: none; /* ซ่อน modal */
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* สีพื้นหลังเมื่อเปิด modal */
}

.modal-content {
    margin: 15% auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content img {
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}
