/* ===================================
   VERTICAL BLOG LAYOUT
   Stacked layout for blog.html page
   =================================== */

.blog-posts-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-posts-vertical .layalin-post-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: var(--layalin-white, #fff);
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-posts-vertical .layalin-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Image on left side - smaller fixed size with 16:9 aspect ratio */
.blog-posts-vertical .post-image {
    flex: 0 0 280px;
    height: 157.5px; /* 16:9 ratio = 280px / 16 * 9 */
    overflow: hidden;
    background: var(--bg-secondary, #f5f5f5);
}

.blog-posts-vertical .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-posts-vertical .layalin-post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Content on right side */
.blog-posts-vertical .post-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-posts-vertical .post-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted, #666);
}

.blog-posts-vertical .post-category {
    background: var(--terracotta, #D1B39E);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.blog-posts-vertical .post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-posts-vertical .post-title a {
    color: var(--text-primary, #2C3034);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-posts-vertical .post-title a:hover {
    color: var(--terracotta, #D1B39E);
}

.blog-posts-vertical .post-excerpt {
    color: var(--text-secondary, #555);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-posts-vertical .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.blog-posts-vertical .post-author {
    color: var(--text-muted, #666);
}

.blog-posts-vertical .read-more-link {
    color: var(--terracotta, #D1B39E);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.blog-posts-vertical .read-more-link:hover {
    transform: translateX(4px);
}

/* Tablet: Reduce image width */
@media (max-width: 900px) {
    .blog-posts-vertical {
        max-width: 100%;
        padding: 0 1rem;
    }

    .blog-posts-vertical .post-image {
        flex: 0 0 280px;
    }

    .blog-posts-vertical .post-content {
        padding: 1.25rem 1.5rem;
    }

    .blog-posts-vertical .post-title {
        font-size: 1.25rem;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .blog-posts-vertical {
        gap: 1.5rem;
    }

    .blog-posts-vertical .layalin-post-card {
        flex-direction: column;
    }

    .blog-posts-vertical .post-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9; /* Wider on mobile */
    }

    .blog-posts-vertical .post-content {
        padding: 1.5rem;
    }

    .blog-posts-vertical .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===================================
   VERTICAL VIDEO LAYOUT
   Stacked layout for videos.html page
   =================================== */

.videos-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.videos-vertical .layalin-video-item {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: var(--layalin-white, #fff);
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.videos-vertical .layalin-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Video thumbnail on left side - 280px width with 16:9 aspect ratio */
.videos-vertical .video-thumbnail {
    flex: 0 0 280px;
    height: 157.5px; /* 16:9 ratio = 280px / 16 * 9 */
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary, #f5f5f5);
}

.videos-vertical .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.videos-vertical .layalin-video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Play button overlay */
.videos-vertical .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.videos-vertical .layalin-video-item:hover .video-play-button {
    background: var(--terracotta, #D1B39E);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video info on right side */
.videos-vertical .video-info {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.videos-vertical .video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-primary, #2C3034);
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.videos-vertical .video-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted, #666);
    margin-bottom: 0.5rem;
}

.videos-vertical .video-meta .separator {
    opacity: 0.5;
}

.videos-vertical .video-info p {
    color: var(--text-secondary, #555);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Tablet: Reduce video thumbnail width */
@media (max-width: 900px) {
    .videos-vertical {
        max-width: 100%;
        padding: 0 1rem;
    }

    .videos-vertical .video-thumbnail {
        flex: 0 0 280px;
    }

    .videos-vertical .video-info {
        padding: 1.25rem 1.5rem;
    }

    .videos-vertical .video-info h3 {
        font-size: 1.25rem;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .videos-vertical {
        gap: 1.5rem;
    }

    .videos-vertical .layalin-video-item {
        flex-direction: column;
    }

    .videos-vertical .video-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .videos-vertical .video-info {
        padding: 1.5rem;
    }
}

/* ===================================
   CONSISTENT IMAGE ASPECT RATIOS
   =================================== */

/* Blog post images - 3:2 aspect ratio */
.post-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

/* Gallery images - 1:1 square aspect ratio */
#galleryContainer .uploaded-image-card,
.uploaded-gallery-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

#galleryContainer .uploaded-image-card img,
.uploaded-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video thumbnails already have 16:9 in main CSS - no changes needed */
