.gallery-container {
    display: grid;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 1.2rem;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1440px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

main {
    position: relative;
}

body {
    background-image: url(../Resimler/bg-image.jpg);
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 1rem 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    margin: auto;
    background-color: #000;
    display: block;
    max-width: 75%;
    border-radius: 8px;
}

#caption {
    margin: 15px auto;
    text-align: center;
    color: #fff;
    font-size: 18px;          
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #8b0000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color .5s ease-in-out;
}

.close:hover {
    color: #FFD700; 
}

.gallery-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow .5s ease, border-color .5s ease;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.gallery-container img:hover {
    transform: scale(1.1);
}