﻿/* Make region images consistent in size while keeping them responsive */
.region-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    /* fixed visual height with cover to keep aspect and center-crop */
    .region-card .region-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* ensure caption area is consistent height so cards align */
    .region-card .caption {
        text-align: center;
        padding: 12px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

/* Slightly different heights on larger screens */
@media (min-width: 768px) {
    .region-card .region-image {
        height: 180px;
    }
}

@media (min-width: 1200px) {
    .region-card .region-image {
        height: 220px;
    }
}

.container-flex {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}
