.apng-header img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
    object-fit: contain;
}

.buy-section {
    text-align: center;
    margin: 40px 0;
}

.store-grid {
    display: flex;
	flex-wrap: wrap;
    gap: 20px;
	justify-content: center;
    padding: 20px;
}

.store-grid a{
	margin: 10px;
}

.store-grid img {
    height: 75px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-grid img:hover {
    transform: scale(1.1);
}

.description-section {
    text-align: center;
    margin: 30px 20px;
    padding: 0 20px;
}

.description-section h2 {
    margin-bottom: 20px;
}

.game-description {
    text-align: center;
    line-height: 1.6;
}

.game-description a {
    color: var(--accent);
    text-decoration: underline;
}

.game-description a:hover {
    color: var(--accent-hover);
}

.video-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.video-section iframe,
.video-section video {
    width: 100%;
    height: 450px;
    border-radius: 10px;
}

.screenshots{
    text-align: center;
}

.screenshot-grid {
    display: flex;
	flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 30px 20px;
    justify-items: center;
	justify-content: center;
}

.screenshot-grid img {
    width: calc(25% - 15px);
	max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshot-grid img:hover {
    transform: scale(1.03);
}

/* Fullscreen overlay */
.fullscreen-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: zoom-out;
}

.fullscreen-img img {
    max-width: 90%;
    max-height: 90%;
}

@media (max-width: 1080px) {
	.screenshot-grid img{
		flex: 0 1 calc(33.33% - 40px);
	}
}