* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    height: 100vh;
    padding-top: 60px;
}

header {
    width: 100%;
    height: 60px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header h1 {
    font-size: 24px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 images per row */
    gap: 20px;
    width: 80%;
    margin: 0 auto;
    margin-top: 80px; /* Push the gallery below the header */
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.gallery-item:hover {
    transform: scale(1.05); /* Hover effect */
}

.gallery-item img {
    width: 100%; /* Make the image cover the entire box */
    height: 100%; /* Ensure the image fills the entire height */
    object-fit: cover; /* Cover the box without distorting */
}

/* Description Background (Light Grey) */
.description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(211, 211, 211, 0.9); /* Light grey background */
    color: black; /* Darker text for better contrast */
    padding: 15px;
    font-size: 18px;
    text-align: center;
    border-top: 2px solid #fff;
    box-sizing: border-box;
}

/* Modal Background Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    backdrop-filter: blur(5px); /* Adds a blur effect on the background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}


.modal-content {
    position: relative;
    text-align: center;
    padding: 20px;

    border-radius: 8px;
}

#modal-image {
    width: 400px; /* Fixed width for the modal image */
    height: 300px; /* Fixed height for the modal image */
    object-fit: cover; /* Ensure the image covers the box without distortion */
    border-radius: 8px;
}

/* Modal Description Styling */
#modal-description {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    font-weight: normal;  /* Make the text weight normal for a clean look */
    line-height: 1.6; /* Increase line spacing for better readability */
    text-align: center; /* Center align the text */
    max-width: 80%; /* Set a maximum width for better text alignment */
    margin: 20px auto; /* Center the description within the modal */
    padding: 10px;
 
 
    box-sizing: border-box; /* Include padding and border in width/height */
    font-family: 'Arial', sans-serif; /* Set a clean, readable font */
    word-wrap: break-word; /* Prevent long words from breaking the layout */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}
