.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    justify-items: center; /* Center the items horizontally */
}

.photo-item {
    overflow: hidden;
    border-radius: 5opx;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure the photo items don't exceed the container's width */
    margin: 10%;
}

.photo-item img {
    max-width: 100%; /* Ensure the images don't exceed the photo item's width */
    height: auto;
    
}
.photo-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(251, 189, 228, 0.754);
    max-width: 100%; /* Ensure the photo items don't exceed the container's width */
    position: relative; /* Position for caption */
    transition: transform 0.3s ease; /* Add transition for smoother effect */
}

.photo-item:hover {
    transform: scale(1.05); /* Scale up the photo on hover */
}

.photo-item img {
    max-width: 100%; /* Ensure the images don't exceed the photo item's width */
    height: auto;
    transition: filter 0.3s ease; /* Add transition for smoother effect */
}

.photo-item:hover img {
    filter: brightness(70%); /* Decrease brightness of the photo on hover */
}

figcaption {
    position: absolute;
    bottom: -50px; /* Hide the description initially */
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 175, 202, 0.7);
    color: #fff;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
    transition: bottom 0.3s ease; /* Add transition for smoother effect */
}

.photo-item:hover figcaption {
    bottom: 0; /* Show the description on hover */
}
body,html {
    background-color: rgb(255, 247, 221);
}
h1{
    color:rgba(249, 166, 194, 0.83) ;
    margin: 3%;
    font-size: 40px;
}
h2{
    color:rgba(249, 166, 194, 0.83) ;
    margin: 8%;
    font-size:90px;
    text-align: center;
}
.hover-link:hover {
    color: rgb(255, 105, 183); /* Change text color to blue on hover */
    text-decoration: underline; /* Add underline on hover */
    cursor: pointer; /* Change cursor style to pointer on hover */

}
.hover-link {
    text-decoration: none; /* Remove default underline */
    color: black; /* Set default text color */
    position: relative; /* Ensure proper positioning of pseudo-element */
}

.hover-link:before {
    color: rgb(0, 0, 0); /* Change text color to blue on hover */
    text-decoration: underline; /* Add underline on hover */
    cursor: pointer; /* Change cursor style to pointer on hover */
}

h3{
    color:rgba(249, 166, 194, 0.83) ;
    margin:3%;
    font-size: 80px;
    text-align: center;
}
h4{
    color:rgba(249, 166, 194, 0.83) ;
    margin:1%;
    font-size: 30px;
    text-align: center;
}