body.post-template-default{padding:0!important;margin:0!important;width:100%!important;border:0px!important;background-color:#2d2427}
.single-post{max-width:100%!important}
#page{background-color:#2d2427}

.bar-search-form .success {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}
.bar-search-form .error {
    color: #d00;
    font-weight: bold;
    margin-bottom: 10px;
}

div.delete-bar-request h3,div.delete-worker-profile h3{margin-top:42px}
#content > div > div.delete-profile-form > form > p > input[type=submit],
#content > div > div.delete-profile-form > div > form > p.taleft > input[type=submit]
{background:darkred;margin-left:0}
#content > div > div.delete-profile-form > form > p > input[type=submit]:hover,
#content > div > div.delete-profile-form > div > form > p.taleft > input[type=submit]:hover
{background:yellow;color:black;margin-left:0}

.bar-name{text-align: right}
div.ameblo-iframe-container{border:1px solid black}

a.page-numbers-link.next,a.page-numbers-link{text-decoration: none!important}

img.gallery-image{border-bottom:1px solid #eee}

nav > div > a.page-number-link{text-decoration:none!important}

.pagination {
    display: flex;
    justify-content: center; /* Center the pagination horizontally */
    gap: 8mm; /* 8mm gap between buttons */
    margin: 20px auto 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center; /* Center text horizontally and vertically */
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #808080; /* Darker gray border for contrast */
    background-color: #d3d3d3; /* Light gray background */
    text-align: center;
    text-decoration: none;
    color: #000; /* Dark text for readability */
    font-size: 16px; /* Ensure consistent text size */
    min-width: 40px; /* Minimum width to avoid shrinking */
    box-sizing: border-box; /* Include padding and border in width */
}

a.next.page-numbers{padding:10px}
#nav-below > div.nav-links > span,#nav-below > div.nav-links > a{padding:10px}



.nav-links{
	display: flex;
	align-items: center;
	justify-content: center;
	/*padding: 11px;
	border-radius: 8px;
	border: 1px solid #808080;
	background-color: #d3d3d3;*/
	text-align: center;
	text-decoration: none;
	color: #000;
	font-size: 16px;
	min-width: 40px;
	box-sizing: border-box;
}

.nav-links a.page-numbers{margin:10px}

.page-numbers.current,
.page-numbers.current span {
    background-color:hotpink;
    font-weight: bold;
    color:white;
}

.page-numbers a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Fill the parent */
    color: #333;
    text-decoration: none;
}

.page-numbers:hover:not(.current),
.page-numbers a:hover {
    background-color: #b0b0b0; /* Slightly darker gray on hover */
}

/* Ensure no inline styles interfere */
.page-numbers span,
.page-numbers a {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.refresh-post-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.refresh-post-button.success {
    background: #28a745 !important;
    color: #fff;
}

/* Reset and Base Styles */
#lightbox, #lightboxOverlay {
    z-index: 55555 !important;
}

.bar-search-container {
    margin: 0 auto;
    padding: 20px 0;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box
}

.bar-search-form, .single-post {
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.bar-search-filter{
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.bar-stats {
    /*margin: 0px auto;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;*/
    float: inline-end;
    
}

.bar-search-container p, .bar-search-form p, .bar-search-filter p, .bar-stats p, .single-post p {
    margin: 10px 0;
}

/* Form Styles */
.bar-search-form label, .filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.bar-search-form input[type="text"],
.bar-search-form input[type="number"],
.bar-search-form input[type="email"],
.bar-search-form input[type="password"],
.bar-search-form input[type="url"],
.bar-search-form input[type="date"],
.bar-search-form textarea,
.bar-search-form select,
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.bar-search-form input[type="file"] {
    margin-bottom: 10px;
}

.bar-search-form input[type="submit"],
.refresh-post-button,
.filter-group button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
}

.bar-search-form input[type="submit"]:hover,
.refresh-post-button:hover,
.filter-group button:hover {
    background: #005177;
}

.bar-search-form .taright {
    text-align: right;
}

.bar-search-form .error {
    color: #d00;
    font-weight: bold;
}

/* Filter Form */
.bar-search-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    text-align: right;
    vertical-align: text-bottom;
}

/* Stats */
.bar-stats {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.bar-stats a {
    color: #0073aa;
    text-decoration: none;
}

.bar-stats a:hover {
    text-decoration: underline;
}

/* List and Item Styles */
.bar-search-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap:18px;
    /*justify-content: center;*/
}

.bar-search-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}



.bar-search-item {
    /*flex: 1 1 100%;*/
    max-width:202px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    /*padding: 10px;*/
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.8s, background-color 0.8s;
}

.bar-search-item:hover {
    border: 1px solid #000;
    background-color: #fffed9;
    /*transform: scale(1.02);*/
}

.bar-search-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.bar-search-item p {
    font-size: 0.9em;
    color: #666;
}

/* Image Styles */
.bar-search-image-hosts,
.bar-search-image-host-search {
    width: 150px;
    height: auto;
    overflow: hidden;
    margin:10px auto 10px;
}

.bar-search-image-bars,
.bar-search-image-bar-search {
    max-width: 200px;
    height: auto;
    overflow: hidden;
    margin: 0 auto 10px;
}

.bar-search-image-hosts img,
.bar-search-image-host-search img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 3 / 4;
}

.bar-search-image-bars img,
.bar-search-image-bar-search img {
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
}

/* Image Preview Container */
.image-preview-container {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Preview Wrapper */
.preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Preview Label */
.preview-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Full Image Preview */
.full-preview {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Thumbnail Preview */
.thumb-preview {
    width: 150px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Landscape thumbnail for bar posts */
.bar-search-image-bar-search.thumb-preview {
    width: 200px;
    height: 150px;
}

/* Prevent overrides */
.bar-search-image-host-search.full-preview,
.bar-search-image-bar-search.full-preview {
    max-width: 150px;
    height: auto;
    /*aspect-ratio: auto;*/
}

.bar-search-image-host-search.thumb-preview,
.bar-search-image-bar-search.thumb-preview {
    width: 150px;
    height: 200px;
    aspect-ratio: auto;
}

/* Single Post Styles */
.single-post {
    background: #fff;
    border: 1px solid #ddd;
    /*overflow: hidden;*/
}

.post-header {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.featured-image {
    flex: 0 0 auto;
    margin-right: 20px;
}

.post-details {
    flex: 1;
}

h1.post-title,.post-details h1 {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #333;
}

.post-details p {
    margin: 5px 0;
    color: #666;
}

.post-details a,
.features a {
    color: #0073aa;
    text-decoration: none;
}

.post-details a:hover,
.features a:hover {
    text-decoration: underline;
}

.features {
    margin: 10px 0;
}

.post-content {
    padding: 20px;
    line-height: 1.6;
    border-bottom: 1px solid #ddd;
}

/* Gallery Styles */
.gallery-section {
    padding: 20px;
    background: #333;
    color: #fff;
}

.gallery-section h4 {
    margin-bottom: 10px;
    color: #fff;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery a.lightbox-image {
    flex: 1 1 150px;
    max-width: 200px;
}

.gallery img.bar-search-image-host-search {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    aspect-ratio: auto;
}

.gallery img.bar-search-image-bar-search {
    width: 200px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
}

.gallery-masonry {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: -6px;
    margin-right: -6px;
}

.gallery-masonry a {
    display: block;
    /*flex-grow: 1;
    flex-basis: calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);*/
    margin-left: 6px;
    margin-right: 6px;
}

.gallery-img {
    height:250px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

/* Edit Profile Form */
.edit-profile-form {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

.edit-profile-form h3 {
    margin-bottom: 20px;
}

/* Custom File Upload */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.custom-file-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9em;
}

.custom-file-button:hover {
    background: #005177;
}

.file-name {
    font-size: 0.9em;
    color: #666;
}
div.filter-group.button{margin-top:calc(1em + 15px)}

/* Responsive Design */
@media (max-width: 768px) {
    h1.post-title{font-size:22px!important}
    h1{margin-bottom:0!important}
    a.bar-search-item{width:calc(50% - 10px)!important}
    .separate-containers .inside-article{padding:10px!important}
    .filter-group,#min_age,#max_age{margin:0 4px}
    .bar-search-filter-form{gap:0}
    div.bar-search-filter{padding:0}
    div.filter-group button{margin-top:10px}
    hr {margin-bottom:10px!important;
    margin-top:10px!important}
    
    #main,.single-post{margin-top:0}
    .gallery-section {
	padding: 20px;
	/*background: darkblue;*/
	color: #fff;
    
    main#main.site-main,div.single-post,div.bar-search-container{margin-top:0}
    div.post-details{width:100%}
    .bar-search-container{padding:0}
    h1,h2,h3,h4,h5,h6{font-size:1.4em!important}
    
    .post-header {
        flex-direction: column;
        text-align: center;
    }

    .featured-image {
        margin: 0 auto 20px;
    }

    .post-details h1 {
        font-size: 1.5em;
    }

    .gallery img.bar-search-image-host-search {
        width: 100px;
        height: 133px;
    }

    .gallery img.bar-search-image-bar-search {
        width: 133px;
        height: 100px;
    }

    .edit-profile-form {
        padding: 10px;
    }
        
    div.gallery-masonry a {
        flex-basis: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
    
        
        
        
    div.gallery-masonry{
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap:20px
    }
    
    div.gallery-masonry a {
        /*flex-basis: 100%;
        max-width: 100%;*/
        margin:0
    }
        
    .gallery-img {
	   height: auto;
	   width: auto;
	   object-fit: contain;
	   display: block;
	   max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1{margin-bottom:0!important}
    h1.post-title{font-size:22px!important}
    a.bar-search-item{width:calc(50% - 10px)!important}
    .separate-containers .inside-article{padding:10px!important}
    .bar-search-image-bars{width:auto}
    .filter-group,#min_age,#max_age{margin:0 4px}
    
    .bar-search-filter-form{padding:0}
    div.bar-search-filter.form{gap:0}
    div.filter-group button{margin-top:10px}
    hr {margin-bottom:10px!important;
	margin-top:10px!important}
        
        .post-header{padding-top:8px}
    #main,.single-post{margin-top:0}
    .gallery-section {
	padding: 20px;
	/*background: darkred;*/
	color: #fff;
}
    .gallery img.bar-search-image-host-search {
        width: 80px;
        height: 107px;
    }

    .gallery img.bar-search-image-bar-search {
        width: 107px;
        height: 80px;
    }

    div.gallery-masonry{
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap:20px
    }
    
    div.gallery-masonry a {
        /*flex-basis: 100%;
        max-width: 100%;*/
    }
    
    div.gallery-masonry>a {
        flex: 1 0 50%;
    }

    div.gallery-masonry>a:first-child {
        flex: 0 1 100%;
    }
    
    .bar-search-image-hosts {
	width: auto;
	height: auto;
	margin: 0 auto 10px;
}
    
    .gallery-img {
	height: auto;
	width: auto;
	object-fit: contain;
	display: block;
	max-width: 100%;
    }
    .post-header{display:block!important}
    .featured-image{width:100%;margin:0}
    .post-details{width:100%;clear:both}
}