#primary {
    margin: 0 !important;
    border-top: 1px solid rgba(4, 31, 51, 0.1);
}

.custom-select-wrapper {
    display: flex;
}



.galery-content-wrapper {
    margin-left: 96px;
    margin-right: 96px;

    .gallery-data:not(:first-of-type) {
        margin-top: 64px;
    }

    .galeries-data-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .item {
            width: calc((100% - 64px) / 2);
            overflow: hidden;
            transition: transform 0.3s ease;
            margin-bottom: 32px;

            img {
                transition: transform 0.3s ease;
            }

            .gallery-image {
                margin-bottom: 24px;
                overflow: hidden;
            }

            .gallery-title {
                color: #000;
                font-size: 28px;
                margin-bottom: 12px;
            }

            .gallery-categories {
                margin-bottom: 12px;
            }

            .category-item {
                font-size: 14px;
                background-color: rgba(158, 121, 77, 0.10);
                padding: 5px 7px 5px 7px;
                color: #041F33;
            }

            .gallery-img-count {
                color:#000;
            }

            &:hover .gallery-title {
                text-decoration: underline;
            }

            &:hover {
                img {
                    transform: scale(1.1);
                }
            }
        }
    }

    .poster-page-title {
        display: flex;
        justify-content: space-between;
        margin-bottom: 64px;
    
        .post-title {
            h1 {
                font-size: 60px;
            }
        }
    }
    /* SELECT CATEGORY DROPDOWN */
    .custom-select-container {
        min-width: 200px;
    }
    
    .custom-select {
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: right;
    }
    
    .select-selected {
        font-size: 16px;
        margin-top: 32px;
        min-width: 200px;
        text-align: right;
        padding-top: 5px;
    
        &:before {
            content: "";
            display: inline-block; 
            width: 18px;
            height: 12px; 
            background-image: url(../icons/cat-select.svg);
            background-size: cover;
            background-repeat: no-repeat;
            margin-right: 8px;
        }
    }
    
    .add-background {
        background-color: #f2f2f2;
    }
    
    .remove-background {
        background-color: #fff;
    }
    
    .select-items {
        display: none;
        position: absolute;
        background-color: #f2f2f2;
        z-index: 99;
        font-size: 14px;
        margin-top: 53px;
        min-width: 200px;
    }
    
    .select-items div:first-child {
        padding: 20px 10px 10px 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .select-items div {
        padding: 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .select-items div:hover {
        text-decoration: underline;
    }
    
    .select-hide {
        display: none;
    }
    
    .select-show {
        display: block;
    }

    .load-galeries {
        border-top: 1px solid rgba(4, 31, 51, 0.1);
        text-align: center;
        margin-top: 48px;
    
        #load-more-galeries {
            background-color: #fff;
            border: 1px solid #000;
            border-radius: 0;
            color: #000;
            margin: 40px 0 60px 0;
    
            &:hover {
                background-color: #000;
                color: #fff;
            }
        }
    }

    .footer-move-up {
        text-align: right;
        max-width: 1120px;
        margin-left: 96px;
    
        .move-up {
            font-size: 14px;
            float: right;
            margin-top: 20px;
            margin-bottom: 40px;
    
            &:before {
                content: "";
                display: inline-block; 
                width: 12px;
                height: 6px; 
                background-image: url(../icons/arrow_up.svg);
                background-size: cover;
                background-repeat: no-repeat;
                margin-right: 8px;
                margin-bottom: 2px; 
                transition: transform 0.3s ease;
            }
    
            &:hover {
                text-decoration: underline;
                cursor: pointer;
            }
        }
    }
}

@media (max-width: 768px) {
    .galery-content-wrapper {
        margin-left: 0;
        margin-right: 0;

        & .galeries-data-items {
            .item {
                width: calc((100%) / 1);
            }
        }
    }
}
