﻿.sidebar-banner {
    margin-top: 20px; /* Adds spacing between the banner and the related articles */
    text-align: center;
}

    .sidebar-banner img {
        width: 100%; /* Makes the image responsive */
        height: auto; /* Maintains aspect ratio */
        border-radius: 10px; /* Optional: Matches the rounded style of other elements */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds subtle shadow */
    }

.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

    .banner-container a {
        display: block;
        width: 100%;
        max-width: 1200px;
    }

    .banner-container img {
        width: 100%;
        height: auto;
        display: block;
        max-height: 125px;
        /*padding-bottom: 15px;*/
    }


.movie-layout {    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Maximum width for large screens */
    margin: 0 auto; /* Center horizontally */
    padding: 0 15px; /* Optional padding for smaller screens */
    color: white;
}

.movie-container {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.movie-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.movie-author-date {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.movie-image-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
    
.movie-image-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
}

    .movie-image-container img {
        max-width: 100%;
        border-radius: 10px;
    }

.movie-image-caption {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.movie-content {
    font-size: 16px;
}

.articles-container {
    padding: 15px;
    background-color: #222;
    border-radius: 5px;
}

.movie-sidebar {    
    align-self: flex-start;
}

    .movie-sidebar h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .movie-sidebar ul {
        list-style: none;
        padding: 0;
    }

        .movie-sidebar ul li {
            margin-bottom: 10px;
        }

            .movie-sidebar ul li a {
                color: #1e90ff;
                text-decoration: none;
            }

                .movie-sidebar ul li a:hover {
                    text-decoration: underline;
                }

@media (min-width: 768px) {
    
    .movie-layout {
        flex-direction: row;
    }

    .movie-container {
        flex: 3;
        margin-right: 20px;
    }

    .movie-sidebar {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .hideformobile {
        display:none;
    }

    .sidebar-banner img {
        max-width: 90%; /* Ensures the banner fits within smaller screens */
    }

    .movie-sidebar {
        width: 100%;
        margin-top: 20px;
        align-self: stretch;
    }

    .banner-container img {
        max-height: 300px;
        padding-bottom: 5px;
    }
}