/* ==========================================================================
   Bootstrap 5 compatibility layer
   The Porto theme CSS (css/theme*.css) and old post content were written for
   Bootstrap 4. This file restores the Bootstrap 4 defaults they rely on, so
   the site looks the same on Bootstrap 5.3.
   ========================================================================== */

/* Bootstrap 4 gutters were 30px (BS5: 24px). */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.row {
	--bs-gutter-x: 30px;
}

/* Bootstrap 4 had no 1320px "xxl" container. */
@media (min-width: 1400px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl {
		max-width: 1140px;
	}
}

/* Bootstrap 4 links were not underlined until hover. */
a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* --- Bootstrap 4 class names that were renamed or removed in 5 --------- */

.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }

.float-left { float: left !important; }
.float-right { float: right !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.font-weight-bold { font-weight: 700 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-light { font-weight: 300 !important; }
.font-italic { font-style: italic !important; }

.no-gutters { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.no-gutters > .col,
.no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; }

.form-group { margin-bottom: 1rem; }

.badge-pill { border-radius: 10rem; }

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive::before { display: block; content: ""; }
.embed-responsive-16by9::before { padding-top: 56.25%; }
.embed-responsive-4by3::before { padding-top: 75%; }
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
