  body {
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    
}

.h1 {
    font-size: 60px;
    text-align: center;
    z-index: 1;
    margin: 0;
    position: absolute;
    top: 10%;
    left: 41%;
    align-items: center;
}

.h2 {
    font-size: 30px;
    text-align: left;
    margin-left: 5px;
    position: relative; 
    top: 150px;
    align-items: left;
}

.background-image {
    position: fixed; 
    top: 0;
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: -1; 
    background-image: url("Paintings1.jpg"); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}


 
.navbar {
    position: absolute; 
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: flex-start;

}


.navbar a {
    float: left; 
    display: block; 
    color: #000000; 
    text-align: center; 
    padding: 14px 16px;
    text-decoration: none; 
    border: 1px solid rgb(0, 0, 0); 
    border-radius: 7px; 
    margin-right: 20px;
    font-family: playfair display;
    margin-top: 5px;
    margin-left: 7px;
}


.navbar a:hover {
    background-color: rgba(206, 206, 206, 0.5); 
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.navbar a:last-child {
    margin-right: 0;
}
  
  
.container {
    margin-top: 160px; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    gap: 20px; 
    justify-items: center; 
    padding-bottom: 20px; 
    padding-right: 7px; 
    margin-bottom: 0px;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    height: auto;
    width: auto;
}

.item img {
    width: 400px;
    height:400px;
    border-radius: 25px;
    padding: 10px;
}

.item:nth-of-type(1) img {
    width: 400px;
    height: 599px;
    border-radius: 25px;
    padding: 10px;
}

.item:nth-of-type(2) img {
    width: 500px;
    height: 332px;
    border-radius: 25px;
    padding: 10px;
}

.item:nth-of-type(3) img {
    width: 350px;
    height: 632px;
    border-radius: 25px;
    padding: 10px;
}

.item:nth-of-type(4) img {
    width: 400px;
    height: 565px;
    border-radius: 25px;
    padding: 10px;
}



.item h3 {
    margin: 10px;
    font-style: italic;
    font-size: 20px;
    
}

.item p {
    margin: 0;
    font-size: 16px;
    font-weight: 700

}

.item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.end {
    width: 100%;
    height: 75px;
    margin: 0;
    margin-top: 370px;
    background-color: #3D5F68;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
