

.drawings-page {
    background-color: rgba(139, 142, 63, 0.7);
    padding-top: 50px;
    padding-bottom: 50px;
}

.background-overlay {
    background-color: rgba(255, 234, 165, 1);
    padding: 20px;
}

.page-header-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

.drawings-content {
    text-align: center;
    color: rgba(88, 72, 60, 1);
    font-size: 2em;
}

.drawings-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.drawing-item {
    width: 30%;
    object-fit: cover; /* Keeps image aspect ratio but will cover the entire container */
    border-radius: 8px;
    background-color: rgba(88, 72, 60, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block; /* Ensures consistent rendering */
    overflow: hidden; /* Ensures the image does not overflow outside the box */
}

.drawing-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without spilling out */
    border-radius: inherit; /* Matches the parent's rounded corners */
}

.drawing-item:hover {
    transform: scale(1.05);
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Ensure it appears above other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dimmed background */
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays above the modal image */
}

