/* Hero Section - Enhanced */
.vlog-hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.vlog-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.vlog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(20, 143, 118, 0.3) 50%,
        rgba(0, 123, 255, 0.3) 100%
    );
    z-index: 1;
}

.vlog-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vlog-meta-badges {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vlog-meta-badges .badge {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 25px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.vlog-meta-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vlog-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.vlog-hero-content .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 700px;
}

/* Content Section - Enhanced */
.vlog-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.vlog-main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.vlog-main-content:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Video Container - Enhanced with Loading State */
.vlog-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.vlog-video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.vlog-video-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    z-index: 3;
}

.vlog-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 2;
}

/* Video error state */
.vlog-video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 4;
    display: none;
}

.vlog-video-error.active {
    display: block;
}

.vlog-video-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.vlog-video-error p {
    font-size: 1rem;
    margin: 0;
}

/* Text Content - Enhanced with Better Typography */
.vlog-text-content {
    padding: 50px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.vlog-text-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    word-wrap: break-word;
}

.vlog-text-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    border-radius: 2px;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 100%;
}

.content-body p {
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-body ul,
.content-body ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.content-body li {
    margin-bottom: 10px;
}

.content-body blockquote {
    border-left: 4px solid rgba(20, 143, 118, 0.8);
    padding: 15px 20px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
    color: #666;
}

.content-body pre,
.content-body code {
    background: #2c3e50;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
    overflow-x: auto;
}

.content-body pre {
    padding: 15px;
    margin: 20px 0;
}

/* Handle long text without breaking layout */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.content-body table {
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-body table td,
.content-body table th {
    padding: 12px;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

.content-body table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Tags Section - Enhanced with Scrolling for Many Tags */
.vlog-text-content .mt-4 h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.vlog-text-content .d-flex.flex-wrap {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Custom scrollbar for tags */
.vlog-text-content .d-flex.flex-wrap::-webkit-scrollbar {
    width: 6px;
}

.vlog-text-content .d-flex.flex-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.vlog-text-content .d-flex.flex-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    border-radius: 10px;
}

.vlog-text-content .d-flex.flex-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(20, 143, 118, 1), rgba(0, 123, 255, 1));
}

.vlog-text-content .badge {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.vlog-text-content .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar - Enhanced with Better Overflow Handling */
.vlog-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Custom scrollbar for sidebar */
.vlog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.vlog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.vlog-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(20, 143, 118, 0.6), rgba(0, 123, 255, 0.6));
    border-radius: 10px;
}

.vlog-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
}

.vlog-info-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.vlog-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.vlog-info-box h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    word-wrap: break-word;
}

.vlog-info-box h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    border-radius: 2px;
}

.vlog-info-box strong {
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.vlog-info-box > div {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vlog-info-box > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Quick Gallery Grid - Better handling for many images */
.vlog-info-box .row.g-2 {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: -4px;
}

.vlog-info-box .row.g-2::-webkit-scrollbar {
    width: 6px;
}

.vlog-info-box .row.g-2::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.vlog-info-box .row.g-2::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(20, 143, 118, 0.6), rgba(0, 123, 255, 0.6));
    border-radius: 10px;
}

.vlog-info-box .gallery-item {
    margin-bottom: 10px;
}

.vlog-info-box .gallery-item img {
    aspect-ratio: 1;
    object-fit: cover;
    height: 100%;
}

/* Gallery Section - Enhanced with Performance Optimization */
.vlog-gallery-section {
    padding: 80px 0;
    background: white;
    overflow: hidden;
}

.vlog-gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.vlog-gallery-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    border-radius: 2px;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    padding: 0 20px;
    max-height: none;
    position: relative;
}

/* Lazy loading optimization */
.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 143, 118, 0.85), rgba(0, 123, 255, 0.85));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
    object-fit: cover;
    background: #f0f0f0;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Loading placeholder for images */
.gallery-item img[data-src] {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Load more button styling */
.gallery-load-more {
    text-align: center;
    margin-top: 40px;
}

.gallery-load-more .btn {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.9), rgba(0, 123, 255, 0.9));
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.gallery-load-more .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(90deg, rgba(20, 143, 118, 1), rgba(0, 123, 255, 1));
}

.gallery-load-more .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Gallery counter */
.gallery-counter {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

/* Related Vlogs Section - Enhanced with Grid Layout */
.related-vlogs-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.related-vlogs-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.related-vlogs-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    border-radius: 2px;
}

.related-vlogs-section .row {
    display: flex;
    flex-wrap: wrap;
}

.related-vlogs-section .col-md-4 {
    display: flex;
}

.related-vlog-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-vlog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.related-vlog-card > div:first-child {
    position: relative;
    overflow: hidden;
    height: 250px;
    flex-shrink: 0;
}

.related-vlog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-vlog-card:hover img {
    transform: scale(1.1);
}

.related-vlog-card .p-3 {
    padding: 25px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-vlog-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-vlog-card .text-muted {
    flex-grow: 1;
    margin-bottom: 20px;
}

.related-vlog-card .btn {
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.9), rgba(0, 123, 255, 0.9));
    border: none;
    align-self: flex-start;
}

.related-vlog-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(90deg, rgba(20, 143, 118, 1), rgba(0, 123, 255, 1));
}

/* Empty state styling */
.related-vlogs-section .col-12.text-center {
    padding: 60px 20px;
}

.related-vlogs-section .col-12.text-center .text-muted {
    font-size: 1.1rem;
    color: #999;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.8), rgba(0, 123, 255, 0.8));
    border-radius: 2px;
}

.related-vlog-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-vlog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.related-vlog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-vlog-card:hover img {
    transform: scale(1.1);
}

.related-vlog-card .p-3 {
    padding: 25px !important;
}

.related-vlog-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-vlog-card .btn {
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(20, 143, 118, 0.9), rgba(0, 123, 255, 0.9));
    border: none;
}

.related-vlog-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(90deg, rgba(20, 143, 118, 1), rgba(0, 123, 255, 1));
}

/* Image Modal - Enhanced */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1051;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

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

/* Performance Optimizations */
.vlog-main-content,
.vlog-info-box,
.gallery-item,
.related-vlog-card {
    contain: layout style paint;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .vlog-hero-section {
        height: auto;
        padding: 40px 0;
        background: none !important;
    }

    .vlog-hero-overlay {
        display: none;
    }

    .gallery-item,
    .related-vlog-card {
        break-inside: avoid;
    }

    .vlog-sidebar {
        position: static;
    }
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

.loading-skeleton.text {
    height: 20px;
    margin-bottom: 10px;
}

.loading-skeleton.title {
    height: 30px;
    margin-bottom: 15px;
    width: 60%;
}

.loading-skeleton.image {
    height: 250px;
    width: 100%;
}

/* Error states */
.error-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message i {
    font-size: 1.5rem;
}

.error-message.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* No content states */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #666;
}

.no-content p {
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design - Enhanced */
@media (max-width: 1400px) {
    .vlog-text-content {
        padding: 45px;
    }

    .gallery-masonry {
        column-count: 3;
    }
}

@media (max-width: 1200px) {
    .vlog-text-content {
        padding: 40px;
    }

    .vlog-hero-content h1 {
        font-size: 2.5rem;
    }

    .content-body {
        font-size: 1.05rem;
    }
}

@media (max-width: 992px) {
    .vlog-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
        max-height: none;
    }

    .gallery-masonry {
        column-count: 2;
        column-gap: 15px;
    }

    .vlog-hero-section {
        height: 60vh;
    }

    .vlog-content-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .vlog-hero-section {
        height: 50vh;
        min-height: 400px;
        background-attachment: scroll;
    }

    .vlog-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .vlog-hero-content .lead {
        font-size: 1rem;
    }

    .vlog-content-section {
        padding: 50px 0;
    }

    .vlog-text-content {
        padding: 30px 20px;
    }

    .vlog-text-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .content-body {
        font-size: 1rem;
    }

    .vlog-gallery-section,
    .related-vlogs-section {
        padding: 50px 0;
    }

    .vlog-gallery-section h2,
    .related-vlogs-section h2 {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .gallery-masonry {
        column-count: 1;
        padding: 0 10px;
        column-gap: 0;
    }

    .gallery-item {
        margin-bottom: 15px;
    }

    .modal-content {
        max-width: 95%;
    }

    .close-modal-btn {
        top: 10px;
        right: 20px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }

    .vlog-info-box {
        padding: 25px 20px;
    }

    .related-vlog-card > div:first-child {
        height: 220px;
    }

    .related-vlog-card .p-3 {
        padding: 20px !important;
    }

    .related-vlog-card h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .vlog-hero-section {
        height: 45vh;
        min-height: 350px;
    }

    .vlog-hero-content h1 {
        font-size: 1.75rem;
    }

    .vlog-meta-badges {
        margin-bottom: 15px;
    }

    .vlog-meta-badges .badge {
        padding: 6px 14px;
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .vlog-text-content {
        padding: 25px 15px;
    }

    .vlog-text-content h2 {
        font-size: 1.35rem;
    }

    .content-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .vlog-info-box {
        padding: 20px 15px;
    }

    .vlog-info-box h4 {
        font-size: 1.2rem;
    }

    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .gallery-overlay {
        font-size: 2rem;
    }

    .vlog-gallery-section h2,
    .related-vlogs-section h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .related-vlog-card > div:first-child {
        height: 200px;
    }

    .related-vlog-card .p-3 {
        padding: 18px !important;
    }

    .related-vlog-card h5 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .related-vlog-card .btn {
        padding: 8px 20px;
        font-size: 0.875rem;
    }

    .close-modal-btn {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .vlog-hero-content h1 {
        font-size: 1.5rem;
    }

    .vlog-text-content {
        padding: 20px 12px;
    }

    .vlog-info-box {
        padding: 18px 12px;
    }

    .gallery-masonry {
        padding: 0 5px;
    }

    .related-vlog-card .p-3 {
        padding: 15px !important;
    }
}

/* High resolution screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .vlog-hero-content h1 {
        font-size: 4rem;
    }

    .vlog-text-content {
        padding: 60px;
    }

    .gallery-masonry {
        column-count: 4;
    }
}

/* Tablet landscape specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .vlog-hero-section {
        height: 70vh;
    }

    .gallery-masonry {
        column-count: 3;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover,
    .related-vlog-card:hover,
    .vlog-info-box:hover {
        transform: none;
    }

    .gallery-item:active {
        transform: scale(0.98);
    }

    .related-vlog-card:active {
        transform: translateY(-5px);
    }
}
