/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styling */
header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

/* Main Container */
/* Container for the entire film section */
.film-container {
    display: flex;
    gap: 20px; /* Space between image and details */
    margin: 20px auto;
    width: 80%; /* Set the container width to 80% of the screen */
    max-width: 1200px; /* Prevent the container from growing too large */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.film-image {
    flex: 1; /* Take 50% of the container */
    max-width: 50%;
}

.film-image img {
    width: 100%; /* Ensure the image fills its space */
    height: auto;
    border-radius: 8px;
}

/* Details Section */
.film-details {
    flex: 1; /* Take 50% of the container */
    max-width: 50%;
}

/* Film Details Table */
.film-details-table {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between rows */
}

.film-details-table .row {
    display: flex;
    align-items: center; /* Ensure label and value align in the same row */
    padding: 8px 0;
    border-bottom: 1px solid #ddd; /* Add a separator between rows */
}

.film-details-table .column {
    padding: 0 10px;
}

.film-details-table .label {
    width: 40%; /* Set a fixed width for the label column */
    font-weight: bold;
    color: #555;
    text-align: right; /* Align label text to the right */
}

.film-details-table .value {
    width: 60%; /* Set a fixed width for the value column */
    text-align: left; /* Align value text to the left */
    word-wrap: break-word; /* Prevent long text from breaking layout */
    overflow-wrap: break-word;
}

/* Typography */
.film-details h1 {
    margin-bottom: 20px;
    font-size: 28px;
    text-transform: uppercase;
}

/* Mobile View Adjustment */
@media screen and (max-width: 768px) {
    .film-container {
        flex-direction: column; /* Stack image and text vertically on mobile */
        width: 90%; /* Adjust width to make it fit better on smaller screens */
    }

    .film-image, .film-details {
        max-width: 100%; /* Allow both sections to take up full width */
    }

    .film-image img {
        width: 100%; /* Ensure image fills the space */
        height: auto;
        border-radius: 8px;
    }

    .film-details-table .row {
        flex-direction: column; /* Stack label and value vertically on mobile */
        text-align: left; /* Align text to the left */
    }

    .film-details-table .label {
        width: 100%; /* Allow label to take full width on mobile */
        text-align: left; /* Align label text to the left */
    }

    .film-details-table .value {
        width: 100%; /* Allow value to take full width on mobile */
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Related Archives Section */
.related-archives {
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
    text-align: center;
}

.related-archives h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #6a6a35; /* Similar to the greenish tone in the image */
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.archive-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.archive-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.archive-title {
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.archive-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f0f0e8; /* Light greenish background */
    color: #6a6a35; /* Similar to the text color */
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.archive-link:hover {
    background: #6a6a35;
    color: #fff;
}