body {
    background: #000;
    color: #ddd;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

/* ====== LAYOUT ====== */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

.feature-media {
    margin-bottom: 15px;
    border: 1px solid #333;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain; /* IMPORTANT */
}

/* ====== SIDEBAR ====== */
.sidebar {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    background: #222;
    border: 1px solid #444;
    margin-bottom: 15px;
}

.boxart {
    width: 100%;
    border: 1px solid #444;
    margin-bottom: 5px;
}

.credit {
    font-size: 11px;
    color: #888;
    margin: 5px 0 15px 0;
    text-align: center;
}

.meta {
    background: #181818;
    border: 1px solid #333;
    padding: 6px;
    margin-bottom: 8px;
}

.meta span {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-bottom: 2px;
}

.meta .value:empty {
    display: none;
}

.meta:has(.value:empty) {
    display: none;
}

.meta img {
    display: block;
    margin: 5px auto 0 auto;
}

/* ====== MAIN CONTENT ====== */
.main {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
}

h1 {
    color: #fff;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.rating {
    display: inline-block;
    background: #222;
    border: 1px solid #555;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #0f0;
}

/* ====== TEXT CONTENT ====== */
.section {
    margin-bottom: 25px;
}

.section h2 {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    color: #ccc;
}

/* ====== SCREENSHOTS ====== */


.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start; 

}

.shot {
    background: #000;
    border: 1px solid #333;
    padding: 4px;

    display: table;      
    flex-direction: column;    
    align-items: center;         /* disabled height and width */
    max-width: 100%;
    flex: 0 1 auto;

}

.shot img {
    display: inline-block;

    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    word-wrap: break-word;
    text-wrap: wrap;

      /* dummied out width */
}
.caption {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    display: table-caption;
    caption-side: bottom;
    max-width: 100%;

    line-height: 1.3;
    min-width: 0;
    overflow-wrap: break-word;       
    

    text-align: center;     

 
}


/* ====== LINKS ====== */
a {
    color: #6cf;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ====== OPTIONAL TAG STYLE ====== */
.tag {
    display: inline-block;
    background: #222;
    border: 1px solid #444;
    padding: 3px 6px;
    margin: 2px;
    font-size: 12px;
}

/* ====== FOOTERS ====== */
.footer {
    margin-top: 40px;
    border-top: 1px solid #333;
    background: #000;
    padding: 15px 0;
    font-size: 13px;
}

.footer-inner {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #777;
}

.footer a {
    color: #6cf;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive tweak */
@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
