/* Camera Section Styles */

/* Camera Grid Container */
.cameras-container {
    background-color: #f2f2f2;
    min-height: 400px;
    clear: both;
    width: 100%;
    overflow: hidden;
}

.cameras-container:after {
    content: " ";
    display: block;
    clear: both;
}

/* Camera Wrapper */
.wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    float: left;
}

.wrapper img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: fill;
    display: block;
}

/* Camera Header */
.header {
    line-height: 30px;
    background-color: #2c3e50;
    text-align: center;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'BPreplayRegular', Arial, sans-serif;
    font-size: 80%;
    height: 30px;
}

/* Responsive Grid for Camera Layout */
@media (min-width: 640px) {
    .wrapper {
        width: 50%;
        float: left;
    }
}

@media (min-width: 960px) {
    .wrapper {
        width: calc(100%/3);
        float: left;
    }
}

@media (min-width: 1600px) {
    .wrapper {
        width: 25%;
        float: left;
    }
}

/* Camera Cards (Bootstrap style) */
.camera-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none !important;
    background-color: white !important;
}

.camera-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

.camera-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: fill;
    border-radius: 0.375rem 0.375rem 0 0;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.card-body {
    padding: 0.75rem !important;
    background-color: #2c3e50 !important;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: white !important;
}

/* Region Section */
.region-section {
    margin: 2rem 0 1rem 0;
}

.region-title {
    color: #2c3e50 !important;
    font-weight: 300 !important;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .camera-img {
        aspect-ratio: 4/3;
    }
}