/*
Theme Name: Tafaseel
Theme URI: https://tafaseel.com
Author: Antigravity
Author URI: https://tafaseel.com
Description: Custom WordPress theme for Tafaseel - Premium Kitchens & Closets. Converted from static HTML.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tafaseel
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

/* 
 * Main styles are enqueued from assets/css/style.css 
 * This file is primarily for theme definition.


/* ===== Blog System Styles (Home, Archive & Single) ===== */

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

/* Blog Card Design */
.blog-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    /* Sharp luxury edges */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* Thumbnail Area */
.blog-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 65%;
    /* 3:2 Aspect Ratio */
}

.blog-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.1);
}

.blog-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: 0.4s ease;
}

.blog-card:hover .blog-thumbnail::after {
    opacity: 1;
}

/* Content Area */
.blog-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 500;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--color-secondary);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: 20px;
    font-weight: 600;
}

.blog-title a {
    color: var(--color-primary);
    background-image: linear-gradient(var(--color-secondary), var(--color-secondary));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
    padding-bottom: 2px;
}

.blog-card:hover .blog-title a {
    background-size: 100% 1px;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Single Post Specifics */
.blog-single .post-featured-image {
    margin-bottom: 50px;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
}

.post-content h2,
.post-content h3 {
    margin: 50px 0 25px;
    color: var(--color-primary);
}

.post-content p {
    margin-bottom: 25px;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    border-left: 3px solid var(--color-secondary);
    background: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-primary);
}

.post-tags {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-tags a {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    background: var(--color-bg-alt);
    font-size: 0.85rem;
    border-radius: 20px;
    transition: 0.3s;
}

.post-tags a:hover {
    background: var(--color-secondary);
    color: #fff;
}

/* Pagination Styles */
.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pagination .page-numbers {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Comment Section Styling (The Form) ===== */
.comments-area {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.comments-title,
.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 15px;
}

.comments-title::after,
.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
}

.comment-list {
    list-style: none;
    margin: 0 0 4rem;
    padding: 0;
}

.comment-body {
    background: var(--color-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

.comment-meta {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.fn {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.comment-metadata a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* The Form Itself - Premium Look */
.comment-respond {
    background: #fff;
    padding: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-notes,
.comment-form-cookies-consent {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.comment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 18px;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comment-form-submit {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.comment-form .submit {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    padding: 18px 50px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

.comment-form .submit:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* RTL Support for Form */
body.rtl .comment-form input,
body.rtl .comment-form textarea {
    text-align: right;
}

body.rtl .comments-title::after,
body.rtl .comment-reply-title::after {
    left: auto;
    right: 0;
}


/* ===== Global Reset & Scrollbar Fix ===== */
html,
body {
    overflow-y: auto !important;
    /* Force vertical scroll */
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) #f1f1f1;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #b39250;
}

/* ===== Responsive Navigation Fix (Laptop) ===== */
@media (max-width: 1440px) {
    .nav-menu li a {
        font-size: 0.9rem;
        /* Smaller font */
        padding: 0 15px;
        /* Less padding */
    }

    .logo img {
        max-width: 140px;
        /* Slightly smaller logo */
    }
}



html[lang="ar"] .hero-title,
body.rtl .hero-title {
    line-height: 1.5;
}



/* ===== Sidebar Model Design (Adapted) ===== */

/* 1. Container & Layout */
.single-post-container {
    background: #fff;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Compact Header */
.post-header {
    text-align: center;
    padding: 60px 0 40px;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.breadcrumb-nav a {
    color: #666;
    transition: 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--color-primary);
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    /* Reduced from 3.8rem max */
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 25px;
}

/* Revamped Meta Data Bar */
.post-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.meta-item i {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.meta-item time,
.meta-item span {
    position: relative;
    top: 1px;
}

/* 3. Featured Media (Premium Look) */
.media-gallery {
    margin-top: 50px;
    margin-bottom: 60px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    position: relative;
}

.gallery-main-image {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* 4. Grid Layout (Main + Sidebar) */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Content, 1/3 Sidebar */
    gap: 60px;
    margin-bottom: 80px;
}

/* Main Content */
.post-main {
    min-width: 0;
    /* Prevent grid blowout */
}

.entry-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.entry-body p {
    margin-bottom: 25px;
}

.entry-body h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #111;
    font-family: 'Playfair Display', serif;
}

.entry-body blockquote {
    background: #f9f9f9;
    padding: 30px;
    border-left: 4px solid var(--color-secondary);
    margin: 40px 0;
    font-style: italic;
    color: #444;
}

/* Tags */
.post-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    font-weight: 700;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.post-tags .tag {
    background: #f5f5f5;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #555;
    border-radius: 4px;
    transition: 0.2s;
}

.post-tags .tag:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Share Buttons */
.post-share {
    margin-top: 40px;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.post-share h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #111;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: 0.3s transform;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* 5. Sidebar Widget Styling */
.post-sidebar {
    position: sticky;
    top: 40px;
    /* Sticky sidebar */
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-secondary);
}

/* Author Widget */
.author-box-widget {
    text-align: center;
}

.author-avatar {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.author-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.author-bio-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Related Widget */
.related-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.related-post-item:last-child {
    margin-bottom: 0;
}

.related-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 1rem;
    margin: 0 0 5px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: #111;
    transition: 0.2s;
}

.related-post-content h4 a:hover {
    color: var(--color-secondary);
}

.related-date {
    font-size: 0.8rem;
    color: #999;
}

/* CTA Widget */
.cta-widget {
    background: var(--color-primary);
    /* Use primary theme color */
    color: #fff;
    text-align: center;
    border: none;
}

.cta-widget h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.cta-btn:hover {
    background: var(--color-secondary);
    color: #fff;
}

/* Comments Wrapper */
.model-comments-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* RTL Adjustments */
body.rtl .post-content-wrapper {
    /* Grid stays same (2fr 1fr), order is automatic */
}

body.rtl .entry-body blockquote {
    border-left: none;
    border-right: 4px solid var(--color-secondary);
}

body.rtl .widget-title::after {
    left: auto;
    right: 0;
}

body.rtl .tags-label {
    margin-right: 0;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
        /* Stack sidebar below */
        gap: 60px;
    }

    .post-sidebar {
        position: static;
        /* Remove sticky on mobile */
    }
}

/* ===== Post Media Gallery ===== */

/* Main Image Container */
.media-gallery .gallery-main {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
}

.media-gallery .gallery-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.media-gallery .gallery-main:hover::after {
    opacity: 1;
}

.gallery-main-image {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main-image.fading {
    opacity: 0;
    transform: scale(1.02);
}

.media-gallery .gallery-main:hover .gallery-main-image {
    transform: scale(1.015);
}

/* Image Counter Badge */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    user-select: none;
}

/* Expand Button */
.gallery-expand {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.media-gallery .gallery-main:hover .gallery-expand {
    opacity: 1;
}

.gallery-expand:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* Thumbnail Strip */
.gallery-thumbs-wrapper {
    margin-top: 14px;
    position: relative;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.6;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    border-radius: 4px;
}

.gallery-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.gallery-thumb:hover::after {
    background: transparent;
}

.gallery-thumb.active {
    border-color: var(--color-secondary, #c9a962);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
}

.gallery-thumb.active::after {
    background: transparent;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* ===== Post Lightbox ===== */
.post-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.post-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.post-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.post-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.post-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.post-lightbox-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    z-index: 3;
}

.post-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.post-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.08);
}

.post-lightbox-prev {
    left: 24px;
}

.post-lightbox-next {
    right: 24px;
}

.post-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.post-lightbox-content img.lb-fading {
    opacity: 0;
    transform: scale(0.97);
}

/* Lightbox RTL */
body.rtl .post-lightbox-prev {
    left: auto;
    right: 24px;
}

body.rtl .post-lightbox-next {
    right: auto;
    left: 24px;
}

body.rtl .gallery-counter {
    left: auto;
    right: 20px;
}

body.rtl .gallery-expand {
    right: auto;
    left: 20px;
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-main-image {
        max-height: 350px;
    }

    .gallery-expand {
        opacity: 1;
        width: 38px;
        height: 38px;
        bottom: 14px;
        right: 14px;
    }

    .gallery-counter {
        bottom: 14px;
        left: 14px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .gallery-thumb {
        width: 72px;
        height: 56px;
    }

    .post-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .post-lightbox-prev {
        left: 12px;
    }

    .post-lightbox-next {
        right: 12px;
    }

    .post-lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-main-image {
        max-height: 280px;
    }

    .gallery-thumb {
        width: 60px;
        height: 48px;
    }

    .gallery-thumbs {
        gap: 8px;
    }
}