* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #0b0b0b;
    color: white;
    font-family: Arial;
}
.contain{
	margin: 10px;
}
.menu {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 15px 30px;
    border-bottom: 1px solid #222;
}

.menu a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

.menu a:hover {
    color: #ff3c3c;
}

.menu input {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    outline: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 12px;
    padding: 12px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
	margin-bottom: 10px;
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.3s;
}

.card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(#ff3c3c, black);
}

.card h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	color: white;
}

@media(max-width:1200px){
    .grid{grid-template-columns:repeat(4,1fr);}
}
@media(max-width:768px){
    .grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:480px){
    .grid{grid-template-columns:repeat(1,1fr);}
}
/* MOBILE */
@media(max-width:768px){
    .menu {
        flex-direction: column;
    }
	.menu-right{
		margin-top: 15px; width: 100%;
	}
	.menu-righ input{
		    width: 100%;
	}
}