* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.gallery-page {
    position: relative;
    width: 100%;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Ensure the background image covers the area responsively */
.gallery-image {
    position: absolute;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 70%, rgb(0, 0, 0) 100%), 
    url('https://res.cloudinary.com/dgdbgblvb/image/upload/v1728126604/IMG_8994_xszefd.jpg');
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Gallery Item */
.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-form {
    position: relative;
    max-width: 600px;
    margin: 10%;
    background: white;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5a5245;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="file"] {
    padding: 10px;
    font-size: 16px;
}

button {
    background-color: #DA7B29;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d88a00;
}

@media (max-width: 600px) {
    .gallery-form {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.904);
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack image, caption, and photographer name */
}

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

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

.modal-caption {
    color: white; /* White color for the content */
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    max-width: 80%;
    opacity: 0.8;
}

/* Photographer name style */
.modal-caption.photographer {
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 200;
    color: white; /* White color for the photographer name */
    margin-top: 5px;
    padding-bottom: 4%;
}


.close:hover,
.close:focus {
    color: rgb(255, 255, 255);
    text-decoration: none;
    cursor: pointer;
}

