#cameras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}
.all_sky{
    width: 300px;
    margin: 0 auto;
}

.camera {
    margin-top: 1em;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    width: 100%; /* Let the grid determine the width */
}


.camera:hover {
    box-shadow: 0 8px 32px rgba(36, 120, 37, 0.18);
    transform: translateY(-4px) scale(1.03);
    cursor: pointer;
    transition: 0.2s;
}

.camera_thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Keeps cameras square; change to 16/9 if preferred */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.camera_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Adjust the title header inside the card */
.camera_title {
    background: #1e293b; /* #247825; */
    color: white;
    padding: 8px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    font-variant: small-caps;
}


