#wrap_all{
    transition: height 0.6s ease !important;
}
.hidden-item {
    opacity: 0 !important;
    transform: translatey(200px) translate(-100px);
    height: 0;
    overflow: hidden;
        }
.d-none{
    display: none !important;
    transform: translateY(0px), translatex(0px);
}
		#picture {
			transition:transform 0.4s ease, opacity 1s ease;
            transform: translateY(0px), translatex(0px);
		}


        .btn-load-more {
            padding: 12px 30px;
            font-size: 16px;
            font-family: inherit;
            background-color: #fff;
            border: 2px solid var(--primary-color);
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            color:#000;
            transition: opacity 1s ease, margin-top 0.3s ease,transform 0.5s ease, background-color 0.3s ease, color 0.8s ease, box-shadow 0.5S ease;
            box-shadow: 0 4px 15px rgba(159, 96, 96, 0.5);
            box-shadow-color: rgba(219, 96, 96, 1) !important;
        }
        .opa-zero{
            opacity: 0 !important;
            margin-top: -100px;
        }


.btn-load-more:hover {
    background-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px #000;
    transform: translateY(-10px);
}
.btn-load-more:active {
    background-color: #200;
    box-shadow: 0 4px 15px #008;
    transform: translateY(5px);
}

        .btn-load-more i {
            transition: transform 0.3s ease;
        }

        .btn-load-more:hover i {
            transform: rotate(180deg);
        }

        /* وقتی دکمه مخفی می‌شود */
        .btn-hide {
            display: none;
        }
    #gallery-popup {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 99999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.4s ease;
        overflow: hidden;
        touch-action: none;
    }

    #gallery-popup.active {
        display: flex;
        opacity: 1;
    }

    .img-viewport {
        position: relative;
        width: 100%;
        height: 65vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.img-viewport img{
    cursor: grab;
}

.img-viewport img:active{ cursor: grabbing; }

    #gallery-img {
        max-width: 85%;
        max-height: 100%;
        object-fit: contain;
        user-select: none;
        -webkit-user-drag: none;
        border-radius: 15px;
        box-shadow: 0 10px 50px rgba(0,0,0,0.7);
        transition: transform 0.3s ease-out;
    }

    .nav-btn {
        position: absolute;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        z-index: 10;
        transition: all 0.3s ease;
    }
    .nav-btn:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
    #prev-btn { left: 30px; }
    #next-btn { right: 30px; }

    .thumbnail-strip {
        width: 90%;
        height: 65px;
        display: flex;
        overflow-x: auto;
        gap: 12px;
        margin: 15px 0;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .thumbnail-strip::-webkit-scrollbar { display: none; }

    .thumb {
        height: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        opacity: 0.4;
        transition: 0.3s;
        border: 2px solid transparent;
        flex-shrink: 0;
    }
    .thumb.active { opacity: 1; border-color: white; }

    .gallery-footer { display: flex; gap: 40px; margin-bottom: 15px; }
    .gallery-footer-icon { color: white; font-size: 28px; cursor: pointer; transition: 0.3s; }
    .gallery-footer-icon:hover { color: #ff4d4d; transform: scale(1.1); }

    #image-counter { color: rgba(255, 255, 255, 0.6); font-size: 15px; margin-bottom: 10px; }

    #custom-menu {
        position: fixed;
        display: none;
        background: rgba(15, 0, 0, 0.2);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        z-index: 100000;
        min-width: 160px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
    .menu-item-click-right { padding: 12px 20px; color: white; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
    .menu-item-click-right:hover { background: rgba(255, 0, 0, 0.3); }
    hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 5px 0; }

    #close-top-btn {
        transition: transform 0.3s ease, background 0.3s ease !important;
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        width: 40px;
        height: 40px;
        /* text-align: center; */
        text-align-last: center;
        text-justify: center;
        background: none;
        border-radius: 100vw;
        display: flex;
        flex-direction: inherit;
        align-items: stretch;
    }
#close-top-btn:hover {
    transition: all 0.5s ease !important;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    /* text-align: center; */
    text-align-last: center;
    text-justify: center;
    background: #a565;
    backdrop-filter: blur(1px) saturate(2);
    rotate:1080deg;
    border-radius: 100vw;
    display: flex;
    flex-direction: inherit;
    align-items: stretch;
}
#close-top-btn:active {
    transition: transform 0.3s ease, background 0.3s ease !important;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    /* text-align: center; */
    text-align-last: center;
    text-justify: center;
    background: #a568;
    backdrop-filter: blur(1px) saturate(2);
    rotate: 1080deg;
    transform: scale(0.6);
    border-radius: 100vw;
    display: flex;
    flex-direction: inherit;
    align-items: stretch;
}
.nav-btn{
    background: #0000 !important;
    opacity: 1 !important;
    backdrop-filter: blur(2px) saturate(2);
}