.gallery-button-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px; /* space between buttons */
    z-index: 1000;
    padding: 0 10px;
}

.gallery-button {
    border-radius: 10px;
    height: 50px;
    border: 2px solid white;
    background: black;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    max-width: 220px;
    flex: 1;
}

.gallery-button:hover {
    background: #333;
}

/* Legacy styles for backward compatibility */
.personal-gallery,
.multi-share,
.full-gallery {
    position: static !important;
    margin: 0 !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
}

div#content {
    padding: 25px;
    margin: 0 auto;
    min-height: 75vh;
    padding-bottom: 100px; /* Make space for the fixed bottom buttons */
}

* { box-sizing: border-box; }

/* force scrollbar */
html { overflow-y: scroll; }

body { font-family: sans-serif; }

.gif_video
{
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.pagination>.active>a, .pagination>.active>a:focus,
.pagination>.active>a:hover, .pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
    z-index: 2;
    color: #fff;
    cursor: default;
    background-color: rgba(68, 77, 88, .8);
    border-color: #444d58;
}

.pagination>li>a, .pagination>li>span {
    color: #444d58;
    margin: 0 2px;
    background-color: rgba(255,255,255,.8);
}

footer,
header{
    margin: 0 auto 20px auto;
    clear: both;
}

a#load_more {
    text-shadow: none;
    background: rgba(68, 77, 88, .8);
    border: 0;
    color: #fff;
    border-radius: 0;
    padding: 10px 40px;
    box-shadow: none;
    margin: 25px 0;
    text-transform: uppercase;
    font-weight: 100;
}

.pagination>.disabled>a,
.pagination>.disabled>a:focus,
.pagination>.disabled>a:hover,
.pagination>.disabled>span,
.pagination>.disabled>span:focus,
.pagination>.disabled>span:hover {
    background-color: rgba(255, 255, 255, .8);
}

.pagination>li:first-child>a, .pagination>li:first-child>span {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pagination>li:last-child>a, .pagination>li:last-child>span {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.navigation
{
    text-align: center;
}

div#content img,
div#content .gif_video{
    vertical-align: middle;
    -webkit-box-shadow: 1px 1px 5px 0 rgba(0,0,0,0.5);
    -moz-box-shadow: 1px 1px 5px 0 rgba(0,0,0,0.5);
    box-shadow: 1px 1px 5px 0 rgba(0,0,0,0.5);
}
/* ---- grid ---- */

.grid-sizer,
.grid-item { width: 25%; padding:5px}
/* 2 columns */
.grid-sizer,
.grid-item--width2 { width: 12.5%;}

.grid-item img,
.grid-sizer img,
.grid-item .gif_video,
.grid-sizer .gif_video{
    max-width: 100%
}

@media(min-width: 1500px)
{

    .grid-sizer,
    .grid-item {
        width: 20% !important;
        padding:5px
    }
    .grid-sizer,
    .grid-item--width2 {
        width: 10% !important;
    }

}


@media(min-width: 992px){
    div#content{
        padding: 25px 120px
    }
}

@media(max-width: 991px)
{

    .grid-sizer,
    .grid-item {
        width: 25% !important;
        padding:5px
    }
    .grid-sizer,
    .grid-item--width2 {
        width: 12.5% !important;
    }

}

@media(max-width: 767px)
{
    .page-title{
        width: 100%;
    }
    .grid-sizer,
    .grid-item {
        width: 33.333% !important;
        padding:5px
    }
    .grid-sizer,
    .grid-item--width2 {
        width: 16.67% !important;
    }

}


@media(max-width: 520px)
{
    .grid-sizer,
    .grid-item {
        width: 50% !important;
        padding:5px
    }

    .grid-sizer,
    .grid-item--width2 {
        width: 25% !important;
    }
    
    .gallery-button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-button {
        margin-bottom: 10px;
    }
}

@media(max-width: 360px)
{
    div#content {
        padding: 15px;
    }
}