div.mod-languages {
	text-align: left;
	ul.lang-block {
		li {
			display: none;
			margin-right: 0;
			&.lang-active {
				display: block;
        background: none;
				&.lang-active-padding {
					padding: 9.125px 15px;
				}
			}
			&.lang-hidden {

			}
			img {
				margin-right: 5px;
			}
			
		}
		.lang-dropdown {
			position: absolute;
			z-index: 1010;
			display: none;
			background: #ffffff;
			color: $base-text-color;
			box-shadow: 0 6px 6px rgba(0, 0, 0, 0.05);
			min-width: 120px;
			a {
				color: $base-text-color !important;
			}
			li {
				display: block;
				padding: 9.125px 15px;
				border-bottom: 1px solid $base-border-color;
				@include transition(background 0.2s);
				&:last-child {
					border-bottom: none;
				}
				&:hover {
					background: $base-element-color;
				}
			}
		}
	}
	> ul.lang-inline {
		li {
			margin-left: 0;
			margin-right: 10px;
			&:last-child {
				margin-right: 0;
			}
			a {
				line-height: 38px;
			}
		}
	}

	.btn-group {
		vertical-align: baseline;
		> .dropdown-toggle {
			padding: 9.125px 12px !important;
			border: none !important;
			color: $top-text-color !important;
			line-height: inherit !important;
			font-size: $fontsizes-body-font-size*0.9 !important;
			vertical-align: baseline !important;
			&:hover, &:focus {
				background: none !important;
			}
			.caret {
				border-top-color: $top-text-color;
				float: right;
				margin: 8px 0 0 7px;
			}
			img {
				margin-right: 5px;
				margin-top: -1px;
			}
		}
    &.open .dropdown-menu,
    .show.dropdown-menu {
      z-index: 2000;
    }
		ul.dropdown-menu {
      padding: 0;
			background: #ffffff;
			color: $base-text-color;
			box-shadow: 0 6px 6px rgba(0, 0, 0, 0.05);
			min-width: 120px;
			border: none;
			border-radius: 0;
			font-size: $fontsizes-body-font-size*0.9;
			a {
				color: $base-text-color !important;
				font-weight: bold;
			}
			li {
				margin: 0;
        padding: 0;
				display: block;
				border-bottom: 1px solid $base-border-color;
				@include transition(background 0.2s);
				&:last-child {
					border-bottom: none;
				}
				a {
					padding: 9.125px 15px;
          display: block;
					&:hover {
						background: $base-element-color;
					}
					img {
						margin-right: 5px;
						margin-top: -1px;
					}
				}
			}
		}
	}
}

// Joomla 4
div.mod-languages ul.lang-block.dropdown-menu.show {
  transform: none !important;
  top: 100% !important;
}

.falang-menu-container {
	padding: 0 !important;
}

// Fix for Gantry 5.1.17 (wrapping modules in "row-fluid")
.g-main-nav {
	.g-menu-item-container {
		&.falang-menu-container {
			.row-fluid {
				.span12 {
					float: none;
				}
			}
		}
	}
}