#frmSearch {
    max-width: 60%;
}

h1 {
    text-align: center;
}

form {
    max-width: 90%;
    margin: auto;
}

/* label {
    font-weight: bold;
} */

input, select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}


.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-card h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
}

.project-card p {
    font-size: 1em;
    color: #555;
}

.project-card a {
    color: #007bff;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

.project-images {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-image {
    width: 48%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.project-image:hover {
    opacity: 0.8;
}

/* Style สำหรับ Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%; /* กำหนดความกว้างสูงสุดของภาพ */
    max-height: 100%; /* กำหนดความสูงสูงสุดของภาพ */
    object-fit: contain; /* ทำให้ภาพยืดหยุ่นตามขนาดที่กำหนด */
}

#caption {
    text-align: center;
    color: #ccc;
    font-size: 20px;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* ปรับการแสดงผลของปุ่มดาวน์โหลด */
a.disa {
    color: #ccc;
    pointer-events: none; /* ป้องกันการคลิก */
    cursor: not-allowed;
}

/* กำหนดสไตล์ลิงก์ */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



body {
    font-family: "Kanit", serif;
    /* margin: 20px; */
    background-color: #f4f4f9;
    margin: 0;
    height: 100vh; 
}


.search-container-bt{
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-menu {
    z-index: 1050 !important;
}
/* 
#searchForm input{
    padding: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
} */