
#register {
    position: relative;
}

#gallery-title .container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

#gallery-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    user-select: none;
}

#gallery-text h3 {
    direction: rtl;
    font-size: 35px;
    font-family: blabeloo;
    margin-top: 0;
    margin-bottom: 35px;
    margin-right: 0;
    text-align: center;
    color: #d94443;
}

#gallery-text p {
    direction: rtl;
    font-size: 16px;
    width: 25vw;
    text-align: center;
    margin: 0;
    color: #67645a;
}

#gallery-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    z-index: 2;
}

#gallery-img img {
    justify-content: center;
    width: 400px;
    height: 350px;
    -webkit-user-drag: none;
}

#gallery-bg {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#gallery-bg-top {
    display: flex;
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    -webkit-user-drag: none;
}

#gallery-bg-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #fff6e9;
}

#gallery-bg-bottom {
    display: flex;
    width: 100%;
    -webkit-user-drag: none;
    margin-bottom: 100px;
}

#gallery-image {
    margin-top: 150px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(4,320px);
    grid-auto-rows: 320px;
    gap: 10px;
}

#gallery-image img {
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

#gallery-image div:hover {
    opacity: 0.8;
    transition: all 0.2s ease-in-out;
}

.img-lg-1 {
    grid-column: 1/3;
    grid-row: 1/3;
}

.img-lg-2 {
   grid-column: 2/4;
    grid-row: 4/6;
}

#page-num {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    direction: rtl;
    font-family: iranian-sans, sans-serif;
    font-weight: bold;
    margin-bottom: 50px;
}

#page-num span {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.page-txt {
    width: 100px !important;
}

.page-txt:hover {
    color: #ef394e;
}

.f-page {
    background-color: #ef394e;
    width: 40px;
    color: #fff;
    height: 40px;
    border-radius: 100%;
}

.ac-hover:hover {
    border: 1px solid #ef394e;
    border-radius: 100%;
    color: #ef394e;
    width: 40px;
    height: 40px;
}


#dark-bg {
    width: 100%;
    height: 100%;
    z-index: 6;
    background-color: #000;
    opacity: 0.7;
    position: fixed;
    left: 0;
    top: 0;
    display: none;
}

#gallery-lg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

#slider-img {
    width: auto;
    height: auto;
    border-radius: 10px;
}

#next {
    display: flex;
    background: url(../../images/right-chevron.png) no-repeat center;
    background-size: 100% 100%;
    width: 70px;
    height: 70px;
    cursor: pointer;
}

#prev {
    display: flex;
    background: url(../../images/right-chevron.png) no-repeat center;
    background-size: 100% 100%;
    width: 70px;
    height: 70px;
    transform: scaleX(-1);
    cursor: pointer;
}

#close-slider {
    width: 50px;
    height: 50px;
    opacity: 0.9;
    cursor: pointer;
    position: fixed;
    right: 50px;
    top: 50px;
    z-index: 7;
}

@media only screen and (max-width:1330px) {


    #gallery-image {
        grid-template-columns: repeat(4, 270px);
        grid-template-rows: repeat(5, 270px);
    }

}

@media only screen and (max-width:1200px) {

    #gallery-text h3 {
        font-size: 30px;
    }

    #gallery-img {
        margin-top: 60px;
    }

    #gallery-img img {
        width: 380px;
        height: 300px;
    }

    #gallery-image {
        grid-template-columns: repeat(4, 230px);
        grid-template-rows: repeat(5, 230px);
    }

}

@media only screen and (max-width:992px) {

    #gallery-text h3 {
        font-size: 25px;
    }

    #gallery-img {
        margin-top: 60px;
    }

    #gallery-img img {
        width: 350px;
        height: 300px;
    }

    #gallery-image {
        grid-template-columns: repeat(4, 180px);
        grid-template-rows: repeat(5, 180px);
    }

}

@media only screen and (max-width:768px) {

    #gallery-title .container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #gallery-text h3 {
        margin-top: 50px;
        font-size: 25px;
    }

    #gallery-img {
        margin-top: 60px;
    }

    #gallery-img img {
        width: 300px;
        height: 250px;
    }

    #gallery-image {
        grid-template-columns: repeat(4, 130px);
        grid-template-rows: repeat(5, 130px);
    }

    #slider-img {
        width: 80vw;
        height: 60vh;
    }

    #gallery-lg {
        gap: 35px;
    }

    #close-slider {
        right: 35px;
        top: 35px;
    }

    #page-num span {
        font-size: 14px;
    }

}

@media only screen and (max-width:576px) {

    #gallery-title .container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #gallery-text h3 {
        margin-top: 50px;
        font-size: 25px;
    }

    #gallery-img {
        margin-top: 60px;
    }

    #gallery-img img {
        width: 220px;
        height: 200px;
    }

    #gallery-image {
        margin-top: 100px;
        margin-bottom: 50px;
        grid-template-columns: repeat(4, 70px);
        grid-template-rows: repeat(5, 70px);
    }

    #slider-img {
        width: 70vw;
        height: 30vh;
    }

    #gallery-lg {
        gap: 15px;
    }

    #prev {
        width: 40px;
        height: 35px;
    }

    #next {
        width: 40px;
        height: 35px;
    }

    #close-slider {
        right: 30px;
        top: 120px;
        width: 40px;
        height: 40px;
    }

    #page-num {
        gap: 0;
    }

    #page-num span {
        font-size: 12px;
        width: 30px;
        height: 30px;
    }

}