#galery_section{
    padding: 20px 0;
}
.galery_container{
    width: var(--my-content-width);
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    justify-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.galery_content{
    width: 350px;
    transition: transform .2s;
}
.galery_content img{
    width: 350px;
    page-break-inside: avoid;
}
.galery_content a{
    cursor: pointer;
}

.galery_content:hover{
    -ms-transform: scale(1.1); /* IE 9 */
    -webkit-transform: scale(1.1); /* Safari 3-8 */
    transform: scale(1.1);
    z-index: 1;
}

.imageContainer {
    display: none;
  }
.imageContainer:target {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 9999;
}
.imageContainer:target img {
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.closeButton {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 80px;
    font-weight: bold;
    cursor: pointer;
}
  
.thumbnailLink {
    cursor: pointer;
}

@media print {
    #galery_section {
        padding: 5px 0 0 0;
    }
    .galery_container {
        max-width: 95%;
        gap: 20px;
    }
    .galery_content {
        padding: 50px 0 0 0;
        width: 300px;
    }
    .galery_content Img {
        width: 300px;
        height: auto;
        page-break-inside: avoid;
    }
}

@media screen and (max-width:400px){
    #galery_section img{
        width: 300px;
    }
    .galery_content:hover{
        -ms-transform: scale(1); /* IE 9 */
        -webkit-transform: scale(1); /* Safari 3-8 */
        transform: scale(1); 
    }
}
@media screen and (max-width:260px){
    #galery_section img{
        width: 200px;
    }
    .galery_content:hover{
        -ms-transform: scale(1); /* IE 9 */
        -webkit-transform: scale(1); /* Safari 3-8 */
        transform: scale(1); 
    }
}
