.privategalleries, .galleries{
	display: none;
}
.container{
	display: flex;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	justify-content: space-between;
	padding: 0 1rem;
	box-sizing: border-box;
}
.left-galleries, .right-galleries{
	display: flex;
	margin-top: 2rem;
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
}
.left-galleries{
	width: 38%;
	align-self: stretch;
}
.right-galleries{
	width: 60%;
}
.galleries-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
}
.galleries-images {
	flex: 1;
}

.gall-sub-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	width: 100%;
	background: #2a2a2a;
	padding: 1rem 2rem;
	box-sizing: border-box;
	border: 1px solid #d5171b;
	margin-bottom: 0;
}
.gall-sub-bar .tja-sub-text { text-align: center; color: #ccc; }
.gall-sub-bar .tja-sub-text h4 { margin: 0 0 4px; font-size: 1rem; color: #eee; }
.gall-sub-bar .tja-sub-text p { margin: 0; font-size: 0.8rem; color: #888; }
.gall-sub-bar .tja-sub-btn { display: flex; align-items: center; }
.gall-sub-bar .tja-sub-btn img { height: 56px; width: auto; object-fit: contain; }

.gall-view-all {
	font-size: 0.8rem;
	color: white !important;
	text-decoration: none;
	background: rgba(255,255,255,0.15);
	padding: 3px 10px;
	border-radius: 4px;
	transition: background 0.2s;
}
.gall-view-all:hover { background: rgba(255,255,255,0.25); }

.gall-view-all-bottom {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px;
	background: #1a1a1a;
	color: #d5171b;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.9rem;
	border-radius: 0 0 8px 8px;
	transition: background 0.2s;
	box-sizing: border-box;
	margin-top: 4px;
}
.gall-view-all-bottom:hover { background: #252525; color: #ff3333; }

.gall-top-link {
	font-size: 0.8rem;
	color: white !important;
	text-decoration: none;
	background: rgba(255,255,255,0.15);
	padding: 3px 10px;
	border-radius: 4px;
	transition: background 0.2s;
}
.gall-top-link:hover { background: rgba(255,255,255,0.25); }

.gall-back-to-top {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px;
	background: #1a1a1a;
	color: #d5171b;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.9rem;
	border-radius: 0 0 8px 8px;
	transition: background 0.2s;
	box-sizing: border-box;
	margin-top: 4px;
}
.gall-back-to-top:hover { background: #252525; color: #ff3333; }

.galleries-container, .individual-container{
	width: 100%;
	display: flex;
	flex-direction: column;
}
.individual-artists, .galleries-images, .artists{
	width: 100%;
	background: #2a2a2a;
	border-radius: 0 0 8px 8px;
}
.galleries-images-container{
	margin: 0;
	padding: 6px;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
}
.galleries-artists-container{
	margin: 0;
	padding: 6px;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
}
.recent{
	display: flex;
	width: 100%;
	height: 160px;
	margin: 0;
	overflow: hidden;
}
.recent a{
	display: flex;
	width: 100%;
	height: 160px;
	text-decoration: none;
	overflow: hidden;
}
.recent-info{
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.2s;
}
.recent-info:hover{
	transform: scale(1.03);
}
.recent-img{
	width: 100%;
	flex: 1;
	display: flex;
	overflow: hidden;
}
.recent-img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.recent-date{
	height: auto;
	min-height: 36px;
	padding: 3px 5px;
	align-items: center;
	justify-content: center;
	display: flex;
	background: #1a1a1a;
	color: #aaa;
	font-size: 0.68rem;
	text-align: center;
	flex-direction: column;
	line-height: 1.3;
}
.recent-date b{
	color: white;
	font-size: 0.72rem;
	display: block;
	margin-bottom: 1px;
}
.galleries-container{
	margin-top: 1rem;
}
.artist{
	display: flex;
	width: 100%;
	height: 150px;
	margin: 0;
	overflow: hidden;
}
.artist a{
	display: flex;
	width: 100%;
	height: 150px;
	text-decoration: none;
	overflow: hidden;
}
.artist-info{
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.artist-avatar{
	flex: 1;
	overflow: hidden;
	min-height: 0;
	width: 100%;
}
.gallery-artist-name{
	position: static !important;
	height: auto;
	min-height: 32px;
	padding: 4px 6px;
	align-items: center;
	justify-content: center;
	display: flex !important;
	background: #d5171b;
	color: white !important;
	font-size: 0.8rem;
	text-align: center;
	flex-direction: column;
	line-height: 1.3;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100%;
	box-sizing: border-box;
	transition: none !important;
}
.artist-info .gallery-artist-name b, .recent-date b {
	color: white !important;
	font-weight: bold;
	font-size: 0.8rem;
}
/* Override any hover-only visibility from newtheme.css */
.galleries-artists-container .artist:hover .gallery-artist-name,
.galleries-artists-container .gallery-artist-name {
	opacity: 1 !important;
	visibility: visible !important;
	display: flex !important;
}
.privategalleries-hosted { display: none !important; }
.artist-avatar img, .recent-img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.artists-gallery-description{
	width: 100%;
	background: #2a2a2a;
	padding: 12px;
	display: flex;
	border-radius: 0 0 8px 8px;
	margin-bottom: 0;
}
.artists-gallery-description p{
	font-weight: normal;
	font-size: 1rem;
	width: 75%;
	color: #bbb;
	margin: 0;
	line-height: 1.6;
}
.scarlet-image-description{
	height: 180px;
	width: 25%;
	position: relative;
}
.scarlet-image-description div{
	background-image: url("/main/theme/default/img/scarletClothed.png");
	background-repeat: no-repeat;
	background-position: center;
	height: 330px;
	position: absolute;
	bottom: 0;
	left: 0;
	background-size: contain;
	width: 100%;
	transition: all .6s;
}
.scarlet-image-description:hover div{
	background-image: url("/main/theme/default/img/scarletNaked.png");
}

.privategalleries-hosted { display: none !important; }
.hosted-sites {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 1rem;
	background: #2a2a2a;
	border-radius: 0 0 8px 8px;
	justify-content: center;
}
.hosted-site { display: flex; align-items: center; justify-content: center; }
.hosted-site img { width: 160px; height: auto; object-fit: contain; transition: opacity 0.2s; }
.hosted-site:hover img { opacity: 0.8; }

.left-galleries .joinus {
	font-family: 'changeling neo', sans-serif;
	font-size: 1.2rem;
	text-transform: uppercase;
	text-align: center;
	padding: 10px 12px;
	color: #fff;
	font-weight: bold;
	width: 100%;
	box-sizing: border-box;
	background: #d5171b;
	letter-spacing: 0.05em;
}
.left-galleries .register-request {
	font-size: 0.9rem;
	text-align: center;
	padding: 8px 12px 12px;
	color: #ccc;
	width: 100%;
	box-sizing: border-box;
	text-transform: none;
	background: #1a1a1a;
	margin-bottom: 0.5rem;
}
.tja-register-btn {
	display: inline-block;
	background: #d5171b;
	color: white !important;
	padding: 4px 14px;
	border-radius: 4px;
	font-weight: bold;
	text-decoration: none !important;
	transition: background 0.2s;
	font-size: 0.9rem;
}
.tja-register-btn:hover {
	background: #a32020;
	color: white !important;
}
.left-galleries .register-request span {
	color: #aaa;
	font-size: 0.85rem;
}
.gall-search-section {
	width: 100%;
	background: #161616;
	border: 1px solid #2e2e2e;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 16px;
	box-sizing: border-box;
}
.gall-search-label {
	color: #888;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}
.gall-search-label i { color: #d5171b; margin-right: 5px; }
.gall-search-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.gall-search-input {
	flex: 1;
	min-width: 120px;
	background: #111;
	color: #ddd;
	border: 1px solid #333;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.15s;
}
.gall-search-input:focus { border-color: #d5171b; }
.gall-search-input::placeholder { color: #555; }
.gall-search-select {
	background: #111;
	color: #ddd;
	border: 1px solid #333;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 0.875rem;
	outline: none;
}
.gall-search-select:focus { border-color: #d5171b; }
.gall-search-btn {
	background: #d5171b;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 18px;
	font-size: 0.875rem;
	font-weight: bold;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}
.gall-search-btn i { margin-right: 5px; }
.gall-search-btn:hover { background: #b01015; }
.recent-date{
	height: auto;
	min-height: 44px;
	padding: 4px 6px;
	align-items: center;
	justify-content: center;
	display: flex;
	background: #1a1a1a;
	color: #888;
	font-size: 0.65rem;
	text-align: center;
	flex-direction: column;
	line-height: 1.4;
}
.recent-date b{
	color: white;
	font-size: 0.72rem;
	display: block;
	margin-bottom: 1px;
}
.recent-date span {
	color: #d5171b;
	font-size: 0.65rem;
}

@media only screen and (max-width: 1080px) {
	.container{
		flex-direction: column;
		align-items: center;
	}
	.left-galleries, .right-galleries{
		width: 95%;
	}
	.tja-sub-bar{
		margin-bottom: 1rem;
	}
	.artists-gallery-description p{
		z-index: 10;
	}
	.scarlet-image-description{
		z-index: 5;
		height: 25vh;
	}
	.scarlet-image-description div{
		width: 50vw;
		height: 35vh;
		left: -20vw;
		animation: strip 5s infinite alternate;
	}
	@keyframes strip {
		from { background-image: url("/main/theme/default/img/scarletClothed.png"); }
		to { background-image: url("/main/theme/default/img/scarletNaked.png"); }
	}
}
@media only screen and (max-width: 768px){
	.artists-gallery-container{
		overflow: hidden;
	}
	.galleries-container{
		order: 1;
		margin-bottom: 1rem;
	}
	.individual-container{
		order: 2;
	}
	.title{
		font-size: 1.2rem;
	}
	.left-galleries{
		margin-top: 2rem;
	}
}

/* =============================================
   Search Results Page
   ============================================= */

.search-page-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1.5rem;
}

/* Search bar */
.search-bar-wrap {
    background: #1a1a1a;
    border-top: 4px solid #d5171b;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 180px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 7px 12px;
    font-size: 0.9rem;
    border-radius: 3px;
}

.search-input::placeholder { color: #777; }

.search-select {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 7px 12px;
    font-size: 0.9rem;
    border-radius: 3px;
    cursor: pointer;
}

.search-btn {
    background: #d5171b;
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-btn:hover { background: #b01015; }

/* Results title bar */
.search-results-title {
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 14px;
    margin-bottom: 8px;
}

.search-results-title span {
    font-style: italic;
}

/* Results grid */
.search-results-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
}

.search-results-grid li {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #111;
}

.search-results-grid li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.search-results-grid li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
}

.search-results-grid li:hover img {
    transform: scale(1.05);
}

.search-tile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.72);
    padding: 4px 8px;
    transition: background 0.15s;
}

.search-results-grid li:hover .search-tile-info {
    background: rgba(213,23,27,0.88);
}

.search-tile-title {
    font-weight: bold;
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-tile-meta {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.75);
}

/* Pagination */
.search-pagination {
    margin: 1rem 0;
}

/* No results */
.search-no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #aaa;
}

.search-no-results-title {
    font-family: 'changeling neo', sans-serif;
    font-size: 2rem;
    color: #d5171b;
    margin-bottom: 0.5rem;
}

.search-no-results-sub {
    font-size: 0.95rem;
    color: #888;
}

.search-no-results-sub strong {
    color: #ccc;
}

@media only screen and (max-width: 500px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .search-results-grid li {
        height: 150px;
    }
}

/* =============================================
   Individual Gallery Page
   ============================================= */

.gallery-page-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1.5rem;
}

.gallery-title-bar {
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 14px;
    margin-bottom: 8px;
}

.gallery-title-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.gallery-title-bar a:hover {
    color: #fff;
    text-decoration: underline;
}

.gallery-folders-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.gallery-folders-grid li {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #111;
}

.gallery-folders-grid li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-folders-grid li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
}

.gallery-folders-grid li:hover img {
    transform: scale(1.05);
}

.gallery-folders-grid .search-tile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.72);
    padding: 4px 8px;
    transition: background 0.15s;
}

.gallery-folders-grid li:hover .search-tile-info {
    background: rgba(213,23,27,0.88);
}

/* Section divider label when a folder has both subfolders and direct posts */
.gallery-section-label {
    font-family: 'changeling neo', sans-serif;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 0 8px;
    border-top: 1px solid #222;
    margin-top: 6px;
}

/* ── Artist gallery page ──────────────────────────────────────────────────── */
.artist-gal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.82rem;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.15s;
}
.artist-gal-back:hover { color: #d5171b; }

.artist-gal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.artist-gal-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #252525;
    background: #0d0d0d;
}

.artist-gal-meta { flex: 1; min-width: 0; }

.artist-gal-name {
    font-family: 'changeling neo', sans-serif;
    font-size: 1.35rem;
    color: #e8e8e8;
    line-height: 1.2;
}

.artist-gal-username {
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 8px;
}

.artist-gal-bio {
    font-size: 0.83rem;
    color: #888;
    line-height: 1.45;
    margin-bottom: 10px;
    max-height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.artist-gal-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #666;
}
.artist-gal-stats strong { color: #bbb; }

.artist-gal-follow-wrap {
    flex-shrink: 0;
    min-width: 110px;
}

.artist-gal-section {
    font-family: 'changeling neo', sans-serif;
    font-size: 0.88rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 0 6px;
    border-bottom: 1px solid #1e1e1e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.artist-gal-section i { color: #d5171b; font-size: 0.8rem; }

/* Recent uploads strip */
.artist-gal-recent {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 5px;
}
.artist-gal-recent li {
    position: relative;
    overflow: hidden;
    height: 130px;
    background: #111;
    border-radius: 3px;
}
.artist-gal-recent li a {
    display: block;
    width: 100%;
    height: 100%;
}
.artist-gal-recent li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
}
.artist-gal-recent li:hover img { transform: scale(1.06); }

/* Folder tile badges */
.folder-post-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.72);
    color: #ccc;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
}
.folder-sub-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(213,23,27,0.82);
    color: #fff;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 10px;
    pointer-events: none;
}

@media (max-width: 576px) {
    .artist-gal-header { flex-wrap: wrap; }
    .artist-gal-follow-wrap { width: 100%; }
    .artist-gal-follow-wrap .post-artist-follow-btn { max-width: 160px; }
}

/* ── Category page artist strip ──────────────────────────────────────────── */
.category-artist-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    padding: 9px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: border-color 0.15s;
}
.category-artist-strip:hover { border-color: #d5171b; }

.cat-strip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #252525;
}

.cat-strip-name {
    font-family: 'changeling neo', sans-serif;
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.2;
}

.cat-strip-back {
    font-size: 0.75rem;
    color: #555;
    margin-top: 2px;
}
.category-artist-strip:hover .cat-strip-back { color: #d5171b; }
