@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


:root {
    --corp-gray: rgb(213,220,223);
    --corp-orange: rgb(239,122,108);
}


body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .dropdown {
        transition-property: height, visibility;
        transition-duration: .35s;
    }
}

h1, h2, h3 {
    font-weight: 300;
}
p.h3.subline {
    font-weight: 300;
    font-size: 1.4rem;
}
h5.card-title {
    font-weight: 200;
}
p {
    font-weight: 200;
}


/* =============== main nav =============== */
.navbar {
    margin-bottom: 20px;
}
.navbar.navbar-light {
    background: #FFF;
}
.navbar .megamenu {
    padding: 1rem;
}
.navbar .icon-nav-link {
    font-size: 1rem;
}


.dropdown-item-user-menu {
    font-weight: 200;
}

hr.dropdown-divider-dotted {
    border-top: dashed 1px;
}

/* Sticky back top link*/
.back-to-top-wrapper {
    position: absolute;
    top: 100vh;
    right: 0.25rem;
    bottom: -5em;
    /* Required for best support in browsers not supporting `sticky` */
    width: 3em;
    /* Disable interaction with this element */
    pointer-events: none;
}
main {
    /* also see login.css */
    padding: 0 3rem;
    position: relative;
    margin: 2rem auto;
}
.back-to-top-link {
    /* `fixed` is fallback */
    position: fixed;
    position: sticky;
    /* reinstate clicks */
    pointer-events: all;
    /* positioning within the viewport relative to the top of the viewport once `sticky` takes over, or always if `fixed` fallback is used */
    top: calc(100vh - 5rem);
    /* basic styling */
    display: inline-block;
    text-decoration: none;
    font-size: 2rem;
    color: rgb(244,128,113);
    text-align: center;
    width: 3rem;
    height: 3rem;
    transition: transform 80ms ease-in;
}
.back-to-top-link:hover, .back-to-top-link:active {
    color: rgb(244,128,113);
    transform: scale(1.1);
}

/* pre-loader indicator */
/* Paste this css to your style sheet file or under head tag */
/* This only works with JavaScript,
if it's not present, don't show loader */
#loading {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.7;
    background-color: #fff;
    z-index: 99;
}
#loading-image {
    z-index: 100;
}

.fslightbox-container.fslightbox-full-dimension {
    background-color: black;
}


/* desktop view */
/*
@media all and (min-width: 992px) {
    .navbar .has-megamenu {
        position: static !important;
    }
    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border: none;
        padding-right: 20px;
        padding-left:  20px;
    }
    .dropdown-toggle::after {
        display: none;
    }
	.navbar .dropdown-menu-end {
		right:0; left: auto;
	}
	.navbar .nav-item .dropdown-menu {
		 display:block; opacity: 0;  visibility: hidden; transition:.8s; margin-top:0;
	}
	.navbar .nav-item:hover .nav-link {
		color: #fff;
	}
	.navbar .dropdown-menu.fade-down {
		top:80%; transform: rotateX(-75deg); transform-origin: 0% 0%; }
	.navbar .dropdown-menu.fade-up {
		top:180%;
	}
	.navbar .nav-item:hover .dropdown-menu {
		transition: .8s; opacity:0.9; visibility:visible; top:100%; transform: rotateX(0deg);
    }
}
*/
/* mobile view */
/*
@media(max-width: 991px) {
    .navbar-nav {
        width: 100%;
    }
    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border: none;
        padding-right: 0;
        padding-left:  0;
    }
    .user-menu {
        position: absolute;
        right: 30px;
        top: 10px;
    }
    .user-greeting {
        display: none;
    }
}
*/

/*
div#img_preload {
    display: none;
}
*/
@media screen {
	div#preloader {
		position: absolute;
		left: -9999px;
		top:  -9999px;
	}
	div#preloader img {
		display: block;
	}
}
@media print {
	div#preloader,
	div#preloader img {
		visibility: hidden;
		display: none;
	}
}

@media all and (min-width: 992px) {
    .navbar .has-megamenu {
        position: static !important;
    }
    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 40%;
        margin-top: 0;
        border: none;
        padding-right: 20px;
        padding-left:  20px;
    }
    .navbar .megamenu {
        box-shadow: 5px 5px 5px var(--corp-gray);
    }
    .dropdown-toggle::after {
        display: none;
    }
	.navbar .dropdown-menu-end {
		right:0; left: auto;
	}
	.navbar .nav-item .dropdown-menu {
		 display:block; opacity: 0;  visibility: hidden; transition:.8s; margin-top:0;
	}
	.navbar .nav-item:hover .nav-link {
		color: #fff;
	}
	.navbar .dropdown-menu.fade-down {
		top:80%; transform: rotateX(-75deg); transform-origin: 0% 0%; }
	.navbar .dropdown-menu.fade-up {
		top:180%;
	}
	.navbar .nav-item:hover .dropdown-menu {
		transition: .8s; opacity:0.9; visibility:visible; top:100%; transform: rotateX(0deg);
    }
    .icon-nav-link img.nav-icon {
        width: 30px;
        height: 30px;
        display: inline;
        margin-right: 30px;
    }
    .icon-nav-item a.icon-nav-link {
        display: inline;
        line-height: 480%
    }
}
/* mobile view */
@media(max-width: 991px) {
    .navbar-nav {
        width: 100%;
    }
    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border: none;
        padding-right: 0;
        padding-left:  0;
    }
    .icon-nav-link img.nav-icon {
        width: 30px;
        height: 30px;
        display: inline;
        margin-right: 30px;
    }
    .icon-nav-item a.icon-nav-link {
        display: inline;
        line-height: 480%
    }
    .user-menu {
        position: absolute;
        right: 30px;
        top: 10px;
    }
    .user-greeting {
        display: none;
    }
}

.navbar .branding img.platform-logo {
    max-width: 216px;
    max-height: 150px;
}
section.header {
    margin-top: 80px;
}

section.header .project-title.outer {
    margin-top: 30px;
}
section.header .project-title.inner {
    margin-top: 30px;
}
@media(max-width: 574px) {
    section.header .project-title.outer {
        margin-top: 5px;
    }
    section.header .project-title.inner {
        margin-top: 5px;
    }
}

/* =============== Supress blue highlite border at active links and form fields =============== */
.form-control:focus {
    box-shadow: none;
}
textarea:hover,
input:hover,
textarea:active,
input:active,
textarea:focus,
input:focus,
button:focus,
button:active,
button:hover,
label:focus,
.btn:active,
.btn.active {
    outline:0px !important;
    appearance:none;
    -webkit-appearance:none;
    box-shadow: none !important;
}
btn:focus, a:focus {
    outline: none;
}
.navbar- oggler:focus {
    outline: none !important;
    box-shadow: none;
}





/* ------- */
div.container-fluid div.dropdown button#dropdownMenuButton1.btn.btn-link.dropdown-toggle {
    text-decoration: none;
    color: #CDCDCD;
}






/* =============== Icon Nav Bar =============== */
.icon-nav {
    margin: 30px 0 0 0;
}
.icon-nav-link {
    display: block;
    min-width: 100px;
    text-align: center;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-size: 0.8rem;
}
a.icon-nav-link:hover {
    color: #000
}
.icon-nav-link img {
    width: 80px;
    height: 80px;
    display: block;
    text-align: center;
}
a.icon-nav-link {
    opacity: 0.4;
}
a.icon-nav-link:hover {
    opacity: 1;
}
a.icon-nav-link.active.disabled {
    opacity: 1;
}
@media (max-width: 767px) {
    .icon-nav-link {
        min-width:60px;
        font-size: 0.6rem;
    }
    .icon-nav-link img {
        width: 50px;
        height: 50px
    }
}

/* =============== hover aninmation =============== */
.hover-underline-animation-w {
    display: inline-block;
    position: relative;
    color: #FFF;
}
.hover-underline-animation-b {
    display: inline-block;
    position: relative;
    color: #000;
}
.hover-underline-animation-w:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFF;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.hover-underline-animation-b:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.hover-underline-animation-w:hover,
.hover-underline-animation-b:hover {
    cursor: pointer;
}
.hover-underline-animation-w:hover:after,
.hover-underline-animation-b:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =============== section header and branding =============== */
.project-title {
    color: var(--corp-gray);
    line-height: 1rem;
}
.project-title h1 {
    line-height: 2rem;
}




/* =============== hero menu =============== */
.hover-menu {
    position: relative;
    overflow: hidden;
/*   margin: 8px; */
/*
    min-width: 340px;
    max-width: 480px;
    max-height: 290px;
 */
    width: 100%;
    background: #000;
    text-align: center;
    box-sizing: border-box;
}
.hover-menu * {
    box-sizing: border-box;
}
.hover-menu img {
    position: relative;
    max-width: 100%;
    top: 0;
    right: 0;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
.hover-menu div {
    position: absolute;
    top: 0;
    left: -140px;
    width: 140px;
    height: 100%;
    padding: 8px 4px;
    background: rgba(0,0,0,0.6);
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hover-menu div a {
    display: block;
    line-height: 2;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    padding: 5px 15px;
    position: relative;
    transition: 0.3s ease-in-out;
}
.hover-menu div a:hover {
    text-decoration: none;
    color: #FFF
}
.hover-menu:hover div {
    left: 0;
    opacity: 1;
    z-index:99;
}
.hero .layover {
    position: absolute;
    bottom: 0;
    right: 0px;
    width: auto;
    height: 30px;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FFF;
}


/* =============== hero slider =============== */
/* .carousel-indicators-container {} */
/* .carousel-indicators-container ol {} */
/* .carousel-indicators-container ol.carousel-indicators.flex-container {
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
} */
.carousel-indicators-container ol.carousel-indicators.flex-container {
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-grid;
    display: -webkit-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, 210px);
    justify-content: space-between;
    grid-gap: 8px;
}

.carousel-indicators-container ol.carousel-indicators.flex-container.wrap {
    -webkit-flex-flow: wrap row;
    flex-flow: wrap row;
}
.carousel-indicators-container ol.carousel-indicators {
    position: relative;
    margin: 0;
}
.carousel-indicators-container ol.carousel-indicators li {
    width: 210px;
    height: auto;
    opacity: 1;
}
.carousel-indicators-container ol.carousel-indicators li .card-img-wrap {
    position: relative;
}
.carousel-indicators-container ol.carousel-indicators li .badge.active {
    background-color: red;
    font-size: 0.2rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left:194px;
}

.carousel-indicators-container ol.carousel-indicators li .card-date {
    font-size: 0.6rem;
    position: relative;
    left: 8px;
    color: #FFF;
}


.hg5-home-link:hover {
    opacity: 0.8;
    transition: 0.3s;
    text-decoration: none;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    transition-property: opacity;
    -webkit-transition-property: opacity;
}

.accordion {
    width: 80vw;
    max-width: 1300px;
}

.timelapse-video {
    width: 1296px;
    height: 864px;
}
@media(max-width: 1399px) {
    .timelapse-video {
        width: 1116px;
        height: 744px;
    }
}
@media(max-width: 1199px) {
    .timelapse-video {
        width: 936px;
        height: 624px;
    }
}
@media(max-width: 991px) {
    .timelapse-video {
        width: 694px;
        height: 463px;
    }
}
@media(max-width: 767px) {
    .timelapse-video {
        width: 516px;
        height: 344px;
    }
}
@media(max-width: 575px) {
    .timelapse-video {
        width: 90vw;
        height: calc(90vw/3*2);
    }
}
@media(max-width: 390px) {
    .timelapse-video {
        width: 86vw;
        height: calc(86vw/3*2);
    }
}

.documentary-matrix-item {
    background-image: url("/assets/img/placeholder-th.png");
    background-size: cover;
    background-position: center;
    background-color: #EBEBEB;
}

/* =============== Accordion =============== */
.accordion-header {
    background-color: #FFF !important;
}
.accordion {
    --bs-accordion-active-bg: #FFF;
}
button.accordion-button .label{
    color: var(--corp-orange);
    font-weight: 500;
    font-size: 1.2rem;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e08071'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

/* =============== Cards =============== */
.timelaps .card-title, hg-five .card-title {
    color: #FFF;
    text-align: center;
    background-color: rgba(255,255,255,0.2);
}
h2.hg-five {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--corp-gray);
    width: 250px;;
    margin-bottom: 0;
    margin-left: -8px;
    padding: 5px 10px 0px 10px;
    font-size: 2rem;
}
h2.hg-five .part-2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-style: italic;
    font-size: 3.2rem;
    padding-left: 0.2rem;
    padding-right: 0.3rem;
    position: relative;
    top: 4px;
}
h2.hg-five .part-3 {
    font-size: 1rem;
}
.hg-five .row .col .row {
    background-color: var(--corp-gray);
}
.hg-five .row .col .row .col {
    margin-top: 10px;
    margin-bottom: 10px;
}
.hg-five .archive-link {
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--corp-gray);
    margin-top: 0;
    margin-right: -8px;
    width: 120px;
    float: right;
    text-align: center;
}
.hg-five .archive-link a {
    color: #000;
    text-decoration: none;
}
.card .date-time, .file-size {
    font-size: 10px;
}
.card-img-wrap {
    background-image: url("/assets/img/placeholder-th.png");
    background-size: cover;
    background-position: center;
    background-color: #EBEBEB;
}
.card-img-wrap, .card.project-select-card {
    overflow: hidden;
    position: relative;
}
.card-img-wrap:after, .card.project-select-card:after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity .25s;
}
.card-img-wrap img, .card.project-select-card img  {
    transition: transform .25s;
    width: 100%;
}
.card-img-wrap:hover img {
    transform: scale(1.2);
}
.card.project-select-card:hover img {
    transform: scale(1.08);
}
.card-img-wrap:hover:after {
    opacity: 1;
}


ul.text-small {
    font-size: 0.7rem;
    list-style-type: none;
    padding-left: 0;
}

/* =============== date selector for project diary =============== */

/* color of the slider knobs */
.form-range::-moz-range-thumb {
    background-color: rgb(239,122,108) !important;
}


.display-date-slider {
    white-space: nowrap;
    width: 100%;
}

.display-date-slider input {
    border: none;
    font-size: 2rem;
    color: rgb(108,117,125);
}

.display-date-slider input.dayInput2 {
    width: 40px;
    text-align: right;
}

.display-date-slider input.monthInput2 {
    width: 40px;
    text-align: center;
}

.display-date-slider input.yearInput2 {
    width: 80px;
    text-align: left;
}
/* mobile view */
@media(max-width: 991px) {
    .display-date-slider input {
        color: rgb(100,100,100);
    }
    .display-date-slider input.dayInput2 {
        width: 80px;
    }

    .display-date-slider input.monthInput2 {
        width: 80px;
    }

    .display-date-slider input.yearInput2 {
        width: 120px;
    }
}





/* =============== footer =============== */
footer {
    background-color: var(--corp-gray);
    color: rgb(112,121,129);
    font-size: 0.8rem;
    min-height: 200px;
    padding-top: 30px;
    line-height: 1.8rem;
}
footer a {
    display: block;
    color: rgb(112,121,129);
    font-size: 0.8rem;
    text-decoration: none;
}
footer a:hover {
    color: #000;
}
