.gallery-content{
    position: relative;
    top: 0px;
    max-width: 1000px;
    width: 100%;
    margin-top: o;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 5px 5px 5px;
}
.gallery-content nav{
    position: relative;
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
}
.gallery-content nav label{
    display: block;
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    color: #333333;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.gallery-content nav label:hover{
    color: #b82a17;
}

#list1:checked ~ nav label.list1,
#list2:checked ~ nav label.list2,
#list3:checked ~ nav label.list3,
#list4:checked ~ nav label.list4,
#list5:checked ~ nav label.list5{
    color: #b82a17;
    border-bottom: 1px dotted #b82a17;
}
input[type="radio"]{
    display: none;
}

section .content{
    display: none;
}
.content{ 
    padding-top: 30px;
}
#list1:checked ~ section .content-1,
#list2:checked ~ section .content-2,
#list3:checked ~ section .content-3,
#list4:checked ~ section .content-4,
#list5:checked ~ section .content-5{
    display: block;
}

.flex-gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 1rem;
}
.flex-gallery img{
    max-width: 300px;
    width: 100%;
    transition: 0.3s ease-in-out;
}
.flex1{
    overflow: hidden;
}
.flex1 img:hover{
    transform: scale(1.3);
}
@media screen and (max-width:760px) {
    .gallery-content nav label{
        display: block;
        height: 100%;
        width: 100%;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        color: #333333;
        font-size: 12px;
        text-overflow: ellipsis;
        font-weight: bold;
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }
    .flex-gallery {
        display: grid;
        grid-template-columns: repeat(1,1fr);
        grid-gap: 1rem;
    }
    .flex-gallery img{
        max-width: 300px;
        width: 100%;
        transition: 0.3s ease-in-out;
    }
    .flex1{
        overflow: hidden;
    }
    .flex1 img:hover{
        transform: scale(1.3);
    }
}
