*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.content{
    max-width: 1140px;
    margin: 0 auto;
}

nav{
    padding: 1rem;
    background-color: #333;
}

.nav-content{
    display: flex;
    justify-content: space-between;
}

.logo a{
    font-size: 2rem;
    color: aliceblue;
    text-decoration: none;
}

.menu{
    display: flex;
    list-style: none;
    align-items:center;
}

.menu li{
    margin: 0 1rem;
}

.menu li a{
    color: aliceblue;
    text-decoration: none;
}

.maincontent{
    background-color: #cccccc;
}
.maincontent-con{
    display: flex;
    align-items: center;    
}

.maincontent-info{
    width: 100%;
    padding: 6rem;
    padding: 0rem 0rem 0rem 23rem;
}

.maincontent-info h1{
    font-size: 2rem;
}

.maincontent-info p{
    margin: 1rem 0;
    
}

.maincontent-info .maincontent-btn{
    background-color: #e99a23;
    color: aliceblue;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;   
}

.maincontent-info .maincontent-btn:hover{
    background-color: #f5ac3f;
    box-shadow: 0 0 15px 4px rgba(233, 154, 35, 0.7); 
    transform: scale(1.05);      
}

.maincontent-img{
    width: 100%;
    padding: 2rem;

}


body {
  font-family: "Kanit", sans-serif;
}

.gallery {
    background-color: #fff;
    padding: 60px 1rem;   /* ตัวนี้แหละ ควบคุมระยะห่างซ้าย-ขวา */
    width: 100%;
    box-sizing: border-box;
}

.gallery-con {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-item p {
    margin-top: 12px;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Kanit', sans-serif;
    color: #000;
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    box-shadow: 0 0 20px 5px #968772;
    transform: scale(1.03);
}