/* Block Plus module specific styles */

.left-33
{
    width: 33%;
    float: left;
}
.right-33
{
    float: right;
    width: 33%;
}
.right-66
{
    float: right;
    width: 66%;
    padding-left: 2em;
}
.left-66
{
    width: 66%;
    float: left;
    padding-right: 2em;
}
.left-66 h2, .right-66 h2{
    margin-top: 0 !important;
}

.og-details h3 {
    font-weight: 300;
    font-size: 42px;
    padding: 0px 0 10px !important;
    margin-bottom: 10px;
}



.og-grid {
    list-style: none;
    padding: 0 !important;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* .og-grid {
	list-style: none;
	padding: 20px 0;
	margin: 0 auto;
	text-align: center;
	width: 100%;
} */
.og-grid > li {
	display: inline-block;
	margin: 10px 5px 0 5px;
	vertical-align: top;
	height: 250px;
}

.og-grid > li > a,
.og-grid > li > a img,
.og-grid > li > button,
.og-grid > li > button img {
	border: none;
	background-color: transparent;
	outline: none;
	display: block;
	position: relative;
}

.og-grid > li.og-expanded > a::after,
.og-grid > li.og-expanded > button::after {
	top: auto;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-bottom-color: #ddd;
	border-width: 15px;
	left: 50%;
	margin: -8px 0 0 -15px;
}

.og-grid button {
	cursor: pointer;
}


.og-expander {
	position: absolute;
	background: #ddd;
	top: auto;
	left: 0;
	width: 100%;
	margin-top: 0px;
	text-align: left;
	height: 0;
	overflow: hidden;
}

.og-expander-inner {
    padding: 30px 0px;
    height: 100%;
    margin: auto;
    width: 80%;
}

.og-close {
	position: absolute;
	width: 40px;
	height: 40px;
	top: 20px;
	right: 20px;
	cursor: pointer;
	border: none;
	background: transparent;
}




.preview-grid .og-grid > li {
    height: auto;
    width: 300px;
}
.preview-grid .og-grid > li > button >h3 {
    font-weight: bold;
    width: 300px; 
    margin: 0 0 0.4em 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.6rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.preview-grid #og-grid img.medium-img {
    height: 200px;
    width: 300px;
    object-fit: cover;
}



.og-grid > li {
    margin: 0 20px 20px 0 !important;
    vertical-align: top;
    height: auto;
}

.og-grid > li > a, .og-grid > li > a img {
    text-align: left;
    font-weight: bold;
    width: 300px;
    margin: 0 0 0.4em 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.6rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-browsePreview .og-grid button {
    /* margin: 10px; */
    
}

.og-expander {
    position: absolute;
    background: #ddd;
    top: auto;
    left: 0;
    width: 100%;
    margin-top: 12px;
    text-align: left;
    height: 0;
    overflow: hidden;
}

.og-grid > li.og-expanded > li.og-expanded > button::after {
    top: auto;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-bottom-color: #ddd;
    border-width: 15px;
    left: 50%;
    margin: -9px 0 0 -15px;
}



/* Grid layout for BlockPlus's Asset widget for showing content in a 4-column grid on large screens and below each other on mobile */
.block-asset.assets {
    display: flex;
    flex-wrap: wrap;
}

.asset {
    align-items: center;
}

.asset .link-title {
    width: 250px;
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-title {
    margin-top: 0.5em;
    display: block;
    text-align: center;
}

.asset img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (max-width: 800px) {
    .block-asset.assets {
        grid-template-columns: 1fr;
    }

    .block-asset.assets, .og-grid {
        gap: 1em;
    }

    .asset img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
}

.og-close::before,
.og-close::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	top: 50%;
	height: 1px;
	background: #888;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	transform: rotate(45deg);
}

.og-close::after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.og-close:hover::before,
.og-close:hover::after {
	background: #333;
}

.og-fullimg
{
    width: 30%;
    float: left;
    height: 100%;
    text-align: center;
    position: relative;
}
.og-details {
	width: 70%;
	float: left;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.og-details {
	padding: 0 40px 0 20px;
}

.og-fullimg {
	text-align: center;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
}

.og-details h3 {
	font-weight: 300;
	font-size: 52px;
	padding: 40px 0 10px;
	margin-bottom: 10px;
}

.og-details p,
.og-details div {
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: #000000;
}

.og-details a {
	font-weight: 700;
	font-size: 16px;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 10px 20px;
	border: 3px solid #333;
	display: inline-block;
	margin: 30px 0 0;
	outline: none;
}

.og-details .secondary-button a {
	border: none;
	border-radius: 3px;
	background-color: #d2460f;
	color: #fff;


}
.og-details .secondary-button a:after {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    position: relative;
    margin-left: 1em;
    float: right;
    text-align: center;
    text-indent: 0;
    color: #fff;
}

.og-details .secondary-button a:hover {
	background-color: #001c3d;
	color: #fff;
	text-decoration: none;
}

/* 
.og-details a::before {
	content: '\2192';
	display: inline-block;
	margin-right: 10px;
} */

.og-details a:hover {
	border-color: #999;
	color: #999;
}

.og-loading {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ddd;
	box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -25px 0 0 -25px;
	-webkit-animation: loader 0.5s infinite ease-in-out both;
	-moz-animation: loader 0.5s infinite ease-in-out both;
	animation: loader 0.5s infinite ease-in-out both;
}

@-webkit-keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@-moz-keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@media screen and (max-width: 830px) {

	.og-expander h3 { font-size: 32px; }
	.og-expander div { font-size: 13px; }
	.og-expander p { font-size: 13px; }
	.og-expander a { font-size: 12px; }

}


.og-details {
	overflow-y: auto;
}

@media screen and (max-width: 650px) {

	.og-expander {
		overflow-y: auto;
	}
	.og-fullimg {
		/* display: none; */
		align-content: center;
		text-align: center;
	}
	.og-fullimg,
	.og-details {
		float: none;
		width: 100%;
		height: auto;
	}
}
