
/* Academy Facilities Archive — Layout, Filters, Grid, Load More (acff- prefix) */

.acff-wrap {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	font-family: 'Inter', sans-serif;
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}

.acff-wrap *,
.acff-wrap *::before,
.acff-wrap *::after {
	box-sizing: border-box;
}

/* Sidebar */
.acff-sidebar {
	flex: 0 0 270px;
	width: 270px;
	background: #F4F2F2;
	border-radius: 8px !important;
	padding: 28px 24px;
	box-shadow: 0 4px 16px rgba(11, 31, 58, 0.03);
}

.acff-filter-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.acff-filter-heading h3 {
	font-family: 'Cormorant', serif;
	font-size: 24px;
	font-weight: 600;
	color: #0b1f3a;
	margin: 0;
	letter-spacing: 0.01em;
}

.acff-filter-icon svg {
	display: block;
}

.acff-filter-group {
	border-bottom: 1px solid rgba(11, 31, 58, 0.08);
	padding-bottom: 14px;
	margin-bottom: 14px;
}

.acff-filter-group:last-of-type {
	border-bottom: none;
	margin-bottom: 6px;
	padding-bottom: 4px;
}

.acff-filter-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #0b1f3a;
	padding: 4px 0 12px;
	user-select: none;
}

.acff-toggle-arrow {
	font-size: 9px;
	color: rgba(11, 31, 58, 0.55);
	transition: transform 0.25s ease;
}

.acff-filter-group.acff-collapsed .acff-toggle-arrow {
	transform: rotate(180deg);
}

.acff-filter-group.acff-collapsed .acff-filter-list {
	display: none;
}

.acff-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
}

.acff-filter-list::-webkit-scrollbar {
	width: 5px;
}

.acff-filter-list::-webkit-scrollbar-thumb {
	background: rgba(11, 31, 58, 0.2);
	border-radius: 4px;
}

/* Inline layout used for the Workshop Area checkboxes (1-2 values) */
.acff-filter-list-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: none;
	overflow: visible;
}

.acff-filter-item {
	margin-bottom: 2px;
}

.acff-filter-item-inline {
	margin-bottom: 0;
}

/* Custom checkbox */
.acff-filter-item label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px 7px 30px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.acff-filter-item label:hover {
	background-color: rgba(11, 31, 58, 0.05);
}

.acff-filter-item input[type='checkbox'] {
	position: absolute !important;
	inset: 0 !important;
	opacity: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
	cursor: pointer !important;
	z-index: 2 !important;
}

.acff-checkbox-ui {
	position: absolute !important;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px !important;
	height: 16px !important;
	border: 1.5px solid rgba(11, 31, 58, 0.28) !important;
	border-radius: 3px !important;
	background: #ffffff !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	z-index: 1;
	flex-shrink: 0;
	pointer-events: none;
	display: block !important;
}

.acff-filter-item input:checked ~ .acff-checkbox-ui {
	background: #0b1f3a !important;
	border-color: #0b1f3a !important;
}

.acff-checkbox-ui::after {
	content: '' !important;
	position: absolute !important;
	left: 4.5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #ffffff !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s ease;
	display: block !important;
}

.acff-filter-item input:checked ~ .acff-checkbox-ui::after {
	transform: rotate(45deg) scale(1) !important;
}

.acff-checkbox-label {
	position: relative;
	z-index: 1;
	font-size: 14px;
	font-weight: 400;
	color: #0b1f3a;
	line-height: 1.3;
	white-space: nowrap;
}

/* Clear filters button */
.acff-clear-filters {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	background: transparent !important;
	border: 1.5px solid #0b1f3a !important;
	border-radius: 5px !important;
	padding: 9px 20px !important;
	margin-top: 10px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #0b1f3a !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, color 0.25s ease !important;
}

.acff-clear-filters:hover {
	background: #be9047 !important;
	border-color: #be9047 !important;
	color: #ffffff !important;
}

.acff-clear-icon {
	font-size: 14px;
	display: inline-block;
	transition: transform 0.4s ease;
}

.acff-clear-filters:hover .acff-clear-icon {
	transform: rotate(-180deg);
}

/* Content area / top bar */
.acff-content {
	flex: 1 1 auto;
	min-width: 0;
}

.acff-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px;
	margin-bottom: 22px;
}

.acff-showing-count {
	font-size: 14px;
	color: rgba(11, 31, 58, 0.65);
	white-space: nowrap;
}

.acff-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #0b1f3a;
	flex-shrink: 0;
	white-space: nowrap;
}

.acff-sort-wrap label {
	white-space: nowrap;
}

.acff-sort-wrap select {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #0b1f3a;
	border: 1px solid rgba(11, 31, 58, 0.18);
	border-radius: 6px;
	padding: 7px 12px;
	background: #ffffff;
	cursor: pointer;
	white-space: nowrap;
}

/* Grid */
.acff-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	transition: opacity 0.2s ease;
}

.acff-grid.acff-loading {
	opacity: 0.4;
	pointer-events: none;
}

.acff-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: rgba(11, 31, 58, 0.6);
	font-size: 15px;
	padding: 50px 0;
}

/* Load more */
.acff-load-more-wrap {
	text-align: center;
	margin-top: 36px;
}

.acff-load-more-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	min-width: 160px;
	border: none !important;
	border-radius: 5px !important;
	background: #0b1f3a !important;
	color: #ffffff !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	padding: 13px 28px !important;
	cursor: pointer !important;
	transition: background-color 0.25s ease, opacity 0.2s ease !important;
}

.acff-load-more-btn:hover {
	background: #be9047 !important;
	opacity: 1 !important;
}

.acff-load-more-btn:disabled {
	cursor: not-allowed !important;
	opacity: 0.75 !important;
}

.acff-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: acff-spin 0.7s linear infinite;
}

@keyframes acff-spin {
	to {
		transform: rotate(360deg);
	}
}

/* -----------------------------------------------------------
 * Academy Facility Card
 * -------------------------------------------------------- */
.acff-card {
	background: #ffffff;
	border-radius: 7px !important;
	border: 1px solid rgba(11, 31, 58, 0.08);
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	display: flex;
	flex-direction: column;
}

.acff-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08);
}

.acff-card-image {
	position: relative;
	overflow: hidden;
	background: #f2f4f7;
}

.acff-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.5s ease;
}

.acff-card:hover .acff-card-image img {
	transform: scale(1.06);
}

.acff-card-image-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #eef1f5 0%, #e6e9ee 100%);
}

.acff-card-content {
	padding: 18px !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
	text-align: left !important;
	align-items: flex-start !important;
	border-top: 3px solid #be9047 !important;
}

/* Facility type — golden uppercase, styled like the Speakers prof-title slot */
.acff-card-type {
	color: #be9047 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-align: left !important;
	margin: 0 0 6px !important;
	width: 100% !important;
}

.acff-card-title {
	color: #0b1f3a !important;
	font-family: 'Cormorant', serif !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-align: left !important;
	margin: 0 0 14px !important;
	width: 100% !important;
}

/* Workshop area + capacity, shown side by side in one row */
.acff-card-meta-row {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 18px !important;
	margin: 0 0 18px !important;
	width: 100% !important;
}

.acff-card-meta-item {
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;
}

/* Text styled the same as the Speakers card's org line */
.acff-card-meta-item span {
	color: #575a5f !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13.5px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
}

.acff-meta-icon {
	width: 16px !important;
	height: 16px !important;
	object-fit: contain !important;
	flex-shrink: 0 !important;
	display: block !important;
}

.acff-card-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	color: #0b1f3a !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	letter-spacing: 0.5px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: left !important;
	position: relative !important;
	width: fit-content !important;
	margin: auto 0 0 !important;
}

a.acff-card-link,
a .acff-card-link {
	color: #0b1f3a !important;
}

.acff-arrow {
	transition: transform 0.3s ease !important;
}

.acff-card:hover .acff-arrow {
	transform: translateX(5px) !important;
}

.acff-card-link::after {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	right: auto !important;
	margin: 0 !important;
	bottom: -4px !important;
	width: 0 !important;
	height: 2px !important;
	background: #be9047 !important;
	transition: width 0.3s ease !important;
}

.acff-card:hover .acff-card-link::after {
	width: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
	.acff-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.acff-sidebar {
		flex: 0 0 230px;
		width: 230px;
	}
}

@media (max-width: 768px) {
	.acff-wrap {
		flex-direction: column;
		padding: 20px 12px;
	}

	.acff-sidebar {
		width: 100%;
		flex: 1 1 auto;
	}

	.acff-grid {
		grid-template-columns: 1fr;
	}

	.acff-top-bar {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 10px;
	}
}




/* Equipment Repeater Styling */

h3.afe-heading {
    display: none;
}

.academy-facility-equipment {
    font-family: 'Inter', sans-serif;
    margin: 0 auto;
}

.academy-facility-equipment .afe-heading {
    font-family: 'Inter', sans-serif;
    color: #0b1f3a;
    font-weight: 600;
    margin-bottom: 16px;
}

.academy-facility-equipment .afe-columns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.academy-facility-equipment.afe-two-columns .afe-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    align-items: start;
}

.academy-facility-equipment .afe-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.academy-facility-equipment .afe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f4f2f2;
    border-radius: 8px;
    padding: 14px 18px;
    transition: background-color 0.2s ease;
}

.academy-facility-equipment .afe-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.academy-facility-equipment .afe-icon svg {
    width: 100%;
    height: 100%;
    fill: #0b1f3a;
}

.academy-facility-equipment .afe-text {
    font-family: 'Inter', sans-serif;
    color: #575a5f !important;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .academy-facility-equipment.afe-two-columns .afe-columns {
        grid-template-columns: 1fr;
    }

    .academy-facility-equipment .afe-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .academy-facility-equipment .afe-text {
        font-size: 14px;
    }
}

@media (max-width:667px)
{.elementor-widget-image-box .elementor-image-box-content {
    margin-bottom: 30px;
}}




/* Academy Facilities: Masonry gallery */
.af-gallery {
	column-count: 3;
	column-gap: 16px;
	width: 100%;
	font-family: 'Inter', sans-serif;
}

.af-gallery-item {
	position: relative;
	margin: 0 0 16px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.af-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.af-gallery-item:hover img {
	transform: scale(1.03);
}

@media (max-width: 600px) {
	.af-gallery {
		column-count: 1;
	}
}


/* Academy Facilities: hover overlay + caption on grid images */
.af-gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.af-gallery-item:hover .af-gallery-overlay {
	opacity: 1;
}

.af-gallery-overlay-text {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	text-align: center;
	line-height: 1.5;
}


/* Academy Facilities Lightbox: overlay */
.af-lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
	background: rgba(8, 9, 12, 0.94);
	font-family: 'Inter', sans-serif;
}

.af-lb-overlay.is-open {
	display: flex;
}

.af-lb-top {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	display: flex;
	justify-content: flex-end;
	padding: 0 20px;
}

.af-lb-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 2px solid transparent !important;
	border-radius: 50% !important;
	color: #fff;
	font-size: 0;
	cursor: pointer;
	outline: none;
	transition: background 0.15s ease;
}

button.af-lb-close {
	color: #fff !important;
	border-color: transparent !important;
}

.af-lb-close,
.af-lb-close:focus,
.af-lb-close:active,
.af-lb-close:hover {
	background-color: transparent !important;
	color: #fff;
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}

.af-lb-close:hover {
	background-color: rgba(255, 255, 255, 0.12) !important;
}


/* Academy Facilities Lightbox: image stage */
.af-lb-stage {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 56px;
}

.af-lb-img-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.af-lb-img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
	background: #111;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.af-lb-img.is-loaded {
	opacity: 1;
}

.af-lb-spinner {
	position: absolute;
	display: none;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: af-spin 0.7s linear infinite;
}

.af-lb-img-wrap.is-loading .af-lb-spinner {
	display: block;
}

@keyframes af-spin {
	to {
		transform: rotate(360deg);
	}
}

.af-lb-overlay .af-lb-arrow.af-lb-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	border: 2px solid transparent !important;
	border-radius: 50% !important;
	-webkit-border-radius: 50% !important;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	transform: translateY(-50%);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.af-lb-overlay .af-lb-arrow.af-lb-arrow,
.af-lb-overlay .af-lb-arrow.af-lb-arrow:focus,
.af-lb-overlay .af-lb-arrow.af-lb-arrow:active,
.af-lb-overlay .af-lb-arrow.af-lb-arrow:hover {
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}

.af-lb-overlay .af-lb-arrow.af-lb-arrow,
.af-lb-overlay .af-lb-arrow.af-lb-arrow:focus,
.af-lb-overlay .af-lb-arrow.af-lb-arrow:active {
	background-color: #dcdee221 !important;
	color: #fff !important;
}

.af-lb-overlay .af-lb-arrow.af-lb-arrow:hover {
	background-color: #ffffff !important;
	color: #111111 !important;
}

.af-lb-overlay .af-lb-arrow.af-prev {
	left: 0;
}

.af-lb-overlay .af-lb-arrow.af-next {
	right: 0;
}


/* Academy Facilities Lightbox: caption */
.af-lb-caption {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	min-height: 1.4em;
	padding: 14px 20px 0;
	color: #f1f1f1;
	font-size: 0.98rem;
	line-height: 1.5;
	text-align: center;
}

.af-lb-counter {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
	text-align: center;
}


/* Academy Facilities Lightbox: thumbnails */
.af-lb-thumbs {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 16px 20px 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

.af-lb-thumbs::-webkit-scrollbar {
	height: 6px;
}

.af-lb-thumbs::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.25);
}

.af-lb-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border: 2px solid transparent !important;
	border-radius: 5px !important;
	overflow: hidden;
	background-color: #000 !important;
	opacity: 0.55;
	cursor: pointer;
	outline: none;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.af-lb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.af-lb-thumb,
.af-lb-thumb:focus,
.af-lb-thumb:active {
	box-shadow: none;
}

.af-lb-thumb:hover {
	opacity: 0.85;
	border-color: transparent !important;
}

.af-lb-thumb.is-active,
.af-lb-thumb.is-active:hover {
	opacity: 1;
	border-color: #fff !important;
}


/* Academy Facilities Lightbox: responsive */
@media (max-width: 600px) {
	.af-lb-stage {
		padding: 0 44px;
	}

	.af-lb-img {
		max-height: 55vh;
	}

	.af-lb-overlay .af-lb-arrow.af-lb-arrow {
		width: 38px;
		height: 38px;
	}

	.af-lb-thumb {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
	}

	.af-lb-caption {
		font-size: 0.88rem;
	}
}




/* Show academy facilities on homepage using shortcode */

.afc-grid {
	display: grid;
	gap: 16px;
	width: 100%;
}

/* ===== CARD BASE ===== */
.afc-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	min-height: 0;
}

.afc-card-image {
	position: absolute !important;
	inset: 0 !important;
	z-index: 1 !important;
	width: 100% !important;
	height: 100% !important;
}

.afc-card-image img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	margin: 0 !important;
	transition: transform 0.5s ease;
}

.afc-card:hover .afc-card-image img {
	transform: scale(1.06);
}

.afc-gradient {
	position: absolute;
	inset: 0;
	z-index: 2;
	background-color: transparent;
	background-image: linear-gradient(180deg, #02010100 56%, #0b1f3a 95%);
	pointer-events: none;
}

.afc-title {
	position: absolute;
	left: 20px;
	bottom: 18px;
	z-index: 3;
	max-width: 75%;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1.35;
}

/* ===== PLAY BUTTON — locked down against theme defaults ===== */
.afc-play-btn {
	position: absolute !important;
	right: 16px !important;
	bottom: 16px !important;
	top: auto !important;
	left: auto !important;
	z-index: 4 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background-color: #c8964a !important;
	background-image: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	cursor: pointer !important;
	line-height: 1 !important;
}

.afc-play-btn:hover,
.afc-play-btn:focus,
.afc-play-btn:active {
	background-color: #b6803a !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #ffffff !important;
}

.afc-play-btn i {
	font-size: 14px !important;
	color: #ffffff !important;
}

@media (min-width: 768px) {

	.afc-grid.afc-count-1 {
		grid-template-columns: 1fr;
		height: 320px;
	}

	.afc-grid.afc-count-2 {
		grid-template-columns: repeat(2, 1fr);
		height: 320px;
	}

	.afc-grid.afc-count-3 {
		grid-template-columns: repeat(3, 1fr);
		height: 320px;
	}

	.afc-grid.afc-count-4 {
		grid-template-columns: 40% 30% 30%;
		grid-template-rows: 1fr 1fr;
		grid-template-areas:
			"a b c"
			"a d d";
		height: 360px;
	}
	.afc-grid.afc-count-4 .afc-item-1 { grid-area: a; }
	.afc-grid.afc-count-4 .afc-item-2 { grid-area: b; }
	.afc-grid.afc-count-4 .afc-item-3 { grid-area: c; }
	.afc-grid.afc-count-4 .afc-item-4 { grid-area: d; }

	.afc-grid.afc-count-5 {
		grid-template-columns: 40% 30% 30%;
		grid-template-rows: 1fr 1fr;
		grid-template-areas:
			"a b c"
			"a d e";
		height: 360px;
	}
	.afc-grid.afc-count-5 .afc-item-1 { grid-area: a; }
	.afc-grid.afc-count-5 .afc-item-2 { grid-area: b; }
	.afc-grid.afc-count-5 .afc-item-3 { grid-area: c; }
	.afc-grid.afc-count-5 .afc-item-4 { grid-area: d; }
	.afc-grid.afc-count-5 .afc-item-5 { grid-area: e; }
}

@media (max-width: 767.98px) {

	.afc-grid,
	.afc-grid.afc-count-1,
	.afc-grid.afc-count-2,
	.afc-grid.afc-count-3,
	.afc-grid.afc-count-4,
	.afc-grid.afc-count-5 {
		grid-template-columns: 1fr !important;
		grid-template-rows: none !important;
		grid-template-areas: none !important;
		height: auto !important;
	}

	.afc-grid .afc-card {
		grid-area: auto !important;
		width: 100%;
		height: 260px; /* adjust to taste */
	}

	.afc-title {
		font-size: 13px;
		left: 16px;
		bottom: 14px;
	}

	.afc-play-btn {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		right: 14px !important;
		bottom: 14px !important;
	}
}
