/* New styles to be added onto the new branding */
/* Default styles */

.flex-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 10px;
	box-sizing: border-box;
}

#main-flex-container {
	content: "";
	flex: auto;
}

.nb-card {
	position: relative;
	background-size: cover;
	background-position: center;
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 33%);
	border-radius: 3px;
	color: #333;
	border: none;
	margin-bottom: 1.7%;
	height: 150px;
	overflow: hidden;
}

.nb-card-image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 0 !important;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: all ease-in-out 250ms;
}

.nb-card-title {
	margin: 0;
}

.nb-card-action {
	position: absolute;
	right: -34px;
	bottom: 0;
	padding: 8px;
	color: #3d3935;
	background-color: #ffd900;
	border-top-left-radius: 5px;
	transition: all ease-in-out 250ms;
	z-index: 20 !important;
}

.nb-card-link {
	box-sizing: border-box;
	position: relative;
	display: flex;
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.nb-card-link a {
	z-index: 20 !important;
	font-size: 1.5em;
	font-weight: 700;
	color: #c99a2c;
	text-decoration: none;
	text-align: center;
	margin: auto;
}

.nb-card-link a::after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	content: " ";
}


/* :hover */

.nb-card:hover .nb-card-image {
	transform: translate(-50%, -50%) scale(1.1);
}

.nb-card:hover .nb-card-action {
	right: 0;
}

/* @media */

@media (min-width: 1024px) {
	.nb-flex-item {
		flex-basis: 24%;
	}
	.nb-flex-item-2col {
            flex-basis: 48.5%;
    }
    .nb-flex-item-4col {
            flex-basis: 23.5%;
    }
    .nocard-mobile{
	    display:none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.nb-flex-item {
		flex-basis: 32%;
	}
	.nocard-mobile{
	    display:none;
	}
}

@media (min-width: 640px) and (max-width: 767px) {
	.nb-flex-item {
		flex-basis: 48%;
	}
	.nocard-mobile{
	    display:block;
	}
	.nb-flex-item-2col, .nb-flex-item-4col {
            flex-basis: 47%;
    }
}

@media (max-width: 639px) {
	.nb-flex-item {
		flex-basis: 46%;
	}
	.nocard-mobile{
	    display:block;
	}
	.nb-flex-item-2col, .nb-flex-item-4col {
            flex-basis: 46%;
    }
}
