.gallery-section {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 10px; /* Rounded corners */
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 89, 79, 0.7); /* Accent color with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
    border-radius: 10px; /* Rounded corners */
}

.gallery-item .overlay h3 {
    color: #ffffff; /* White text color */
    font-family: 'Dancing Script', cursive; /* Specified font */
    font-size: 1.5em;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.gallery-item:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000; /* Increase z-index to ensure it's above everything else */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.gallery-item .copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5px 10px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    border-bottom-left-radius: 10px; /* To match the gallery item's border radius */
}

.copyright {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 9px;
    color: #000000;
}

@media screen and (min-width: 800px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr); /* 4 pictures in one row */
    }
}
