body {
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.heritage-section {
    padding: 50px 0;
}

.heritage-frame {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.heritage-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.heritage-frame:hover .heritage-img {
    transform: scale(1.1);
}

.heritage-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.heritage-frame:hover .heritage-caption {
    opacity: 1;
}

.heritage-caption h3 {
    font-size: 20px;
    margin: 0;
}

.heritage-caption p {
    font-size: 14px;
    margin: 5px 0 0;
}


/* Models new code */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.heritage-img {
    width: 100%;
    height: 250px; /* Adjust this height as needed */
    object-fit: cover; /* This ensures the image fills the space without distortion */
    border-radius: 8px; /* Optional: rounded corners */
}

.heritage-frame {
    overflow: hidden; /* To hide any overflow from the image */
    border: 1px solid #ddd; /* Optional: border around each image frame */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Optional: shadow effect */
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
