.gallery {
    margin: 0;
}

.gallery-section {
    margin: 0;
}

.gallery-header {
    margin-bottom: 20px;
}

.gallery-header h2 {
    font-size: 25px;
    margin-left: 10%;
    color: #cda377;
    font-weight: 500;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.gallery-header-line {
    margin: auto;
    margin-top: 10px;
    background-color: #cda377;
    height: 1px;
    width: 90%;
}

.gallery-grid {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    width: 1700px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    column-gap: 10px;
    row-gap: 40px;
}

article {
    position: relative;
    display: flex;
    margin: 20px;
    padding: 2%;
    background:
    linear-gradient(to right, #cda377 2px, transparent 2px) 0 0,
    linear-gradient(to left, #cda377 2px, transparent 2px) 100% 100%,
    linear-gradient(to bottom, #cda377 2px, transparent 2px) 0 0,
    linear-gradient(to top, #cda377 2px, transparent 2px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 25% 40%;
    z-index: 1;
}

article .gallery_img {
    aspect-ratio: 3 / 2;
    transition: .5s ease all;
    width: 100%;
    object-fit:cover;
}

article:hover .gallery_img {
    transform: scale(1.15);
    cursor: pointer;
}

#image-show {
    display: None;
    background-color: black;
    background-color: rgba(0,0,0,0.8);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 20;
    position: fixed;
    text-align: center;
    transition: all 500ms;
}

.showed-img-container {
    width: 100%;
    margin: 0;
    display: flex;
}

.showed-img {
    display: block;
    opacity: 0;
    margin: auto;
    width: 80%;
    height: auto;
    transition: opacity 700ms;
}

.control-button {
    z-index: 100;
    background: none;
    border: none;
    margin: auto;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
    transition: opacity 200ms;
}

.control-button img {
    width: 40px;
}

.control-button:hover {
    opacity: 0.5;
}

@media all and (max-width: 1700px) {
    .gallery-grid {
        width: 1300px;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media all and (max-width: 1300px) {
    .gallery-grid {
        width: 1000px;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media all and (max-width: 1000px) {
    .gallery-grid {
        width: 700px;
        grid-template-columns: 1fr 1fr;
    }
}

@media all and (max-width: 750px) {
    .gallery-grid {
        width: 600px;
        grid-template-columns: 1fr;
    }

    .showed-img {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }

    article:hover .gallery_img {
        transform: None;
        cursor: auto;
    }
}

@media all and (max-width: 600px) {
    .gallery-grid {
        width: 100%;
    }

    .showed-img {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }

    .control-button {
        margin-left: 0px;
        margin-right: 0px;
    }

    .control-button img {
        width: 20px;
    }
}

@media all and (max-width: 500px) {
    .gallery-header h2{
        font-size: 15px;
    }

    .gallery-header {
        margin-bottom: 5px;
    }
}