.sermon-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sermon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.sermon-item {
    flex: 1;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sermon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.sermon-item-thumbnail {
    position: relative;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 5px;
    flex-shrink: 0;
}

.sermon-item-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sermon-item-thumbnail::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sermon-item:hover .sermon-item-thumbnail::before {
    opacity: 1;
}

.sermon-item:hover .sermon-item-thumbnail::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sermon-item:hover .sermon-item-thumbnail img {
    transform: scale(1.05);
}

.sermon-item-info {
    flex: 1;
    min-width: 0;
}

.sermon-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sermon-item-info p {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sermon-item-info span {
    font-size: 14px;
    color: #999;
    display: block;
}

.lat_youtube {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}


.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    width: 100%;
    align-items: start;
}

@media (max-width: 768px) {   
    .lat_youtube {
        margin-bottom:150px;
    }


    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .sermon-list {
        height: auto;
        max-height: none;
    }
    
    .video-wrapper {
        height: 250px;
    }
    
    .sermon-item {
        height: auto;
        min-height: 100px;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.sermon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
}

.sermon-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: calc((100% - 5px) / 3);
}

.sermon-item:hover {
    transform: translateX(5px);
}

.sermon-item-thumbnail {
    flex: 0 0 140px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.sermon-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sermon-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sermon-item-info p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.sermon-item-info span {
    font-size: 12px;
    color: #999;
}