/*
Theme Name: Gayborhood
Template: blankslate
*/

/* === RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { font: 16px/1.5 Georgia, serif; }
em, i { font-style: italic; }
strong, b { font-weight: bold; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; margin: 1em 0; }
ul { list-style: disc; padding-left: 40px; margin: 1em 0; }
ol { list-style: decimal; padding-left: 40px; margin: 1em 0; }
blockquote { margin: 1em 40px; font-style: italic; }
a { text-decoration: underline; color: blue; }

/* === BASE === */
body {
    background-color: var(--bg-color);
    color: var(--text-color);

    /* Privacy-first font stack - no tracking */
    font-family: 
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        sans-serif;
    
    /* Eye-strain friendly sizing */
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    min-height: 100vh;
    
    /* Prevent mobile text resizing */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.5em;
    orphans: 3;
    widows: 3;
}

/* === LINKS === */
a {
    color: var(--link-color);
    text-decoration: none;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.08em;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* === LAYOUT === */
.site-container {
    max-width: 1200px !important;
    width: 95% !important;
    margin: 0 auto !important;
}

/* === COMPONENTS === */
nav, .card, article {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

nav {
    margin-bottom: 40px;
    padding: 20px;
}

nav a {
    margin-right: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card, article {
    padding: 30px;
    margin-bottom: 24px;
}

.card:hover, article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-lg);
}

/* === FORMS === */
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px var(--shadow-lg);
}

input[type="checkbox"], 
input[type="radio"] {
    width: auto;
}

button, input[type="submit"] {
    width: auto;
    background: linear-gradient(135deg, var(--accent-primary), var(--link-color));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

/* === THEME TOGGLE === */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-accent);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px var(--shadow-lg);
}

/* === NEOCHROME TEXT === */
.neochrome, .button {
    background: linear-gradient(135deg, var(--accent-primary), var(--link-color), var(--accent-secondary));
    -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
    background-clip: text;
   color: var(--link-color);
    font-weight: 700;
}

.neochrome:hover, .button:hover {
    filter: drop-shadow(0 0 8px var(--shadow-lg));
}

.neochrome p{
    color: #e8e4e0 !important;
    -webkit-text-fill-color: #e8e4e0 !important;
}

/* === ACCESSIBILITY === */
::selection {
    background: var(--link-color);
    color: var(--bg-color);
}

:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* === SITE HEADER === */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Site Title / Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-title:hover {
    color: var(--link-color);
}

/* === MAIN NAVIGATION === */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Primary Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}
.nav-menu li{
    border-right: 1px solid var(--border-color);

}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--link-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* === META MEMBER AREA === */
.meta-member {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
}

.welcome-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-link:hover {
    color: var(--link-hover);
}

/* Theme Toggle in Header */
.meta-member .theme-toggle {
    position: static;
    background: transparent;
    border: 1px solid var(--border-accent);
    padding: 8px 12px;
    font-size: 1rem;
    box-shadow: none;
}

.meta-member .theme-toggle:hover {
    background: var(--accent-bg);
    transform: none;
}

/* === MOBILE MENU TOGGLE === */
/* === MENU TOGGLE - Fixed === */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 102;
    padding: 0;
    
    /* Center the hamburger */
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: relative;
    transition: background 0.3s;
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* === MOBILE STYLES === */
@media (max-width: 768px) {
   .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 101;
    }

    .main-navigation.active {
        transform: translateX(0);
    }
    
/* Lock body scroll ONLY when menu is active */
    body:has(.main-navigation.active) {
        overflow: hidden;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .nav-menu li{
	border-right: none;
    }

    .meta-member {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 30px 0 0 0;
        width: 100%;
        gap: 20px;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .meta-link {
        font-size: 1rem;
    }

}

/* === STICKY FOOTER SETUP === */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content area grows to push footer down */
.site-container,
#main,
[role="main"] {
    flex: 1 0 auto;
}

/* === SITE FOOTER === */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: auto; /* Pushes footer to bottom */
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Footer Menu */
.footer-navigation {
    margin-bottom: 25px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: var(--link-color);
}

/* Copyright */
.site-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-info p {
    margin: 0;
}

/* === RETURN TO TOP BUTTON === */
.return-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px var(--shadow);
}

.return-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.return-to-top:hover {
    background: var(--link-color);
    border-color: var(--link-color);
    color: white;
    transform: translateY(-3px);
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 20px;
    }

    .footer-menu {
        gap: 20px;
    }

    .footer-menu a {
        font-size: 0.85rem;
    }

    .return-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* === GALLERY GRID === */
.gallery-grid {
    display: grid;
    /* auto-fit ensures no more than 3 fit in 1200px */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 1200px; /* Constrain so 4th column can't fit */
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.gallery-title {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-image,
    .gallery-placeholder {
        height: 200px;
    }
}

/* === SINGLE POST === */
.single-post {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* === SINGLE POST FEATURED IMAGE - FULL SIZE === */
.post-featured-image {
    width: 100%;
    background: var(--accent-bg);
    padding: 40px;
    text-align: center;
}

.post-featured-image img,
.post-featured-image .full-size-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh; /* Prevent extremely tall images */
    object-fit: contain;
    box-shadow: 0 10px 40px var(--shadow-lg);
    border-radius: 8px;
    display: inline-block;
}

.post-featured-image a {
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .post-featured-image {
        padding: 20px;
    }
    
    .post-featured-image img {
        max-height: 70vh;
    }
}
/* Post Header */
.post-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta a {
    color: var(--link-color);
    text-decoration: none;
}

/* Post Content */
.post-content {
    padding: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5em;
}

/* Style Envira Gallery within content */
.post-content .envira-gallery-wrap,
.post-content .envira-gallery {
    margin: 40px -40px; /* Break out of padding */
    padding: 20px 40px;
    background: var(--accent-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content a img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content a:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

/* Image captions */
.post-content .wp-caption {
    background: var(--accent-bg);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.post-content .wp-caption-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
}

/* Post Footer */
.post-footer {
    padding: 10px 40px;
   /* border-top: 1px solid var(--border-color);*/
    background: var(--accent-bg);
}

.post-tags {
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.post-tags span {
    color: var(--text-muted);
}

.post-tags a {
    display: inline-block;
    background: var(--card-bg);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    font-size: 0.85rem;
}

.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rempx;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a:hover {
    border-color: var(--link-color);
    box-shadow: 0 4px 12px var(--shadow);
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .post-header,
    .post-content,
    .post-footer {
        padding: 25px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content .envira-gallery-wrap,
    .post-content .envira-gallery {
        margin: 30px -25px;
        padding: 15px 25px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: 4px;
    }
}

/* === STORIES CATEGORY: 40/60 Two Column === */

.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.story-card {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

/* Left Column: Image */
.story-image {
    position: relative;
    overflow: hidden;
}

.story-image a {
    display: block;
    height: 100%;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.03);
}

.story-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Right Column: Content */
.story-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.story-title a {
    color: var(--text-heading);
    text-decoration: none;
}

.story-title a:hover {
    color: var(--link-color);
}

.story-meta {
    margin-bottom: 15px;
}

.story-categories {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.story-read-more {
    display: inline-block;
    color: var(--link-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    align-self: flex-start;
}

.story-read-more::after {
    content: ' →';
    transition: transform 0.2s;
}

.story-read-more:hover::after {
    margin-left: 5px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .story-card {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        max-height: 400px;
    }
    
    .story-image img {
        object-fit: contain;
        max-height: 400px;
    }
    
    .story-content {
        padding: 25px;
    }
    
    .story-title {
        font-size: 1.3rem;
    }
}

/* === GALLERY POST: Full Width Banner === */
.post-gallery .post-featured-image {
    width: 100%;
    max-height: 375px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.post-gallery .post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* === STORY POST: Float Left with Text Wrap === */
.post-story {
    position: relative;
   /* background: transparent;*/
    border: none;
    box-shadow: none;
}

.post-story .story-featured-image {
    float: left;
    width: 40%;
    max-width: 400px;
    margin: 0 30px 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.post-story .story-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.post-story .post-content{
   padding-top: 0;
}
/* Clear float after first paragraph or on mobile */
.post-story .post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Story header full width */
.post-story .post-header {
    width: 100%;
    border-bottom: none;
    padding: 0;
    margin-bottom: 30px;
}
.post-story .post-header h1 {
    margin-top: 0;
}
/* First paragraph wraps beside image */
.post-story .post-content > p:first-of-type {
    margin-top: 0;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .post-story .story-featured-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 25px 0;
    }
    
    .post-story .story-featured-image img {
        max-height: 400px;
        margin: 0 auto;
        display: block;
    }
}

/* === DEFAULT POST (if neither category) === */
.post-default .post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.post-default .post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === RETURN TO TOP BUTTON - Fixed === */
.return-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1; /* Reset line-height */
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px var(--shadow);
    
    /* Center the content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove default padding */
}

.return-to-top span {
    display: block;
    /* Fine-tune arrow position */
    transform: translateY(-1px);
}

.return-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.return-to-top:hover {
    background: var(--link-color);
    border-color: var(--link-color);
    color: white;
    transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {
    .return-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
/* === TAG ARCHIVE === */
.tag-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.tag-post-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.tag-post-image {
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
}

.tag-post-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* was 'cover' */
    display: block;
    border-radius: 8px;
}

.tag-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-post-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.tag-post-title a {
    color: var(--text-heading);
    text-decoration: none;
}

.tag-post-title a:hover {
    color: var(--link-color);
}

/* === TAG ARCHIVE META === */
.tag-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.tag-post-meta .post-date {
    color: var(--text-muted);
}

.tag-post-meta .post-categories a {
    color: var(--link-color);
    text-decoration: none;
}

.tag-post-meta .post-categories a:hover {
    text-decoration: underline;
}

.tag-post-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.tag-post-tags {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag-post-tags a {
    color: var(--text-muted);
    text-decoration: none;
    background: var(--accent-bg);
    padding: 3px 10px;
    border-radius: 12px;
    margin: 0 3px;
}

.tag-post-tags a:hover {
    background: var(--link-color);
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .tag-post-item {
        grid-template-columns: 1fr;
    }

    .tag-post-image img {
        height: 200px;
    }
}


/* === AUTHOR ARCHIVE (same as tag) === */
.author-header .author-bio {
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
    margin: 20px auto 0;
}

.author-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.author-post-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.author-post-image {
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
}

.author-post-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.author-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-post-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.author-post-title a {
    color: var(--text-heading);
    text-decoration: none;
}

.author-post-title a:hover {
    color: var(--link-color);
}

.author-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.author-post-meta .post-date {
    color: var(--text-muted);
}

.author-post-meta .post-categories a {
    color: var(--link-color);
    text-decoration: none;
}

.author-post-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.author-post-tags {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-post-tags a {
    color: var(--text-muted);
    text-decoration: none;
    background: var(--accent-bg);
    padding: 3px 10px;
    border-radius: 12px;
    margin: 0 3px;
}

.author-post-tags a:hover {
    background: var(--link-color);
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .author-post-item {
        grid-template-columns: 1fr;
    }
    
    .author-post-image img {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }
}


/* === BLOG CATEGORY (same as tag) === */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.blog-post-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.blog-post-image {
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
}

.blog-post-image,
.blog-post-image img {
    border-radius: 8px;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.blog-post-title a {
    color: var(--text-heading);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--link-color);
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-post-meta .post-date {
    color: var(--text-muted);
}

.blog-post-meta .post-categories a {
    color: var(--link-color);
    text-decoration: none;
}

.blog-post-excerpt {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-post-tags {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-post-tags a {
    color: var(--text-muted);
    text-decoration: none;
    background: var(--accent-bg);
    padding: 3px 10px;
    border-radius: 12px;
    margin: 0 3px;
}

/* Responsive */
@media (max-width: 600px) {
    .blog-post-item {
        grid-template-columns: 1fr;
    }
    
    .blog-post-image img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
}

/* === SEARCH RESULTS === */
.search-query {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.search-post-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    align-items: center;
}

.search-post-image {
    border-radius: 8px;
    overflow: hidden;
}

.search-post-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.search-post-meta .post-type {
    color: var(--link-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .search-post-item {
        grid-template-columns: 1fr;
    }
}

/* === ARCHIVE (catch-all) === */
.archive-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
}

.archive-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.archive-post-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 25px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.archive-post-image {
    border-radius: 8px;
    overflow: hidden;
}

.archive-post-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.archive-post-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.archive-post-title a {
    color: var(--text-heading);
    text-decoration: none;
}

.archive-post-title a:hover {
    color: var(--link-color);
}

.archive-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.archive-post-excerpt {
    color: var(--text-color);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {
    .archive-post-item {
        grid-template-columns: 1fr;
    }
    
    .archive-post-image img {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }
}

.wp-block-navigation-submenu button{
    background: transparent;
}

/* Envira Lightbox - Dark theme, no white borders */
#envirabox-wrap {
    background: transparent !important;
    padding: 0 !important;
}

/* Remove white borders around image */
#envirabox-content {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove the directional background pieces (the white corners) */
.envirabox-bg {
    background: transparent !important;
    display: none !important;
}

#envirabox-outer {
    background: transparent !important;
    border-radius: 4px;
}

/* Softer transition - reduce the flash */
#envirabox-wrap,
#envirabox-content {
    transition: opacity 0.2s ease-in-out !important;
}

/* Mobile: Full width, no padding */
@media screen and (max-width: 768px) {
    #envirabox-wrap {
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        position: fixed !important;
    }
    
    #envirabox-content {
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #envirabox-img {
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Move title to bottom on mobile */
    #envirabox-title {
        left: 0 !important;
        width: 100% !important;
        bottom: 20px !important;
        top: auto !important;
    }
    
    #envirabox-title-float-wrap {
        width: 100% !important;
    }
}

/* Close button styling for dark theme */
#envirabox-close {
    color: #fff !important;
    opacity: 0.8 !important;
    z-index: 988041 !important;
    top: 0 !important;
    right: 0 !important;
}

#envirabox-close:hover {
    opacity: 1;
}

/* Navigation arrows - ensure visible on dark */
#envirabox-left-ico,
#envirabox-right-ico {
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

