/*
Theme Name:   B Creative Studio | Custom Divi Child
Theme URI:    http://bcreativestudio.au/
Description:  Divi Child Theme
Author:       B Creative Design Studio
Author URI:   http://bcreativestudio.au/
Template:     Divi
Version:      2.0.0
*/

/*display empty columns*/ 

.et_pb_column.et_pb_column_empty {
  display: block!important;
}

/* change column stack order mobile*/

@media all and (max-width: 980px) {


/*** wrap row in a flex box ***/

.custom_row {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
}

/*** custom classes that will designate the order of columns in the flex box row ***/

.first-on-mobile {
-webkit-order: 1;
order: 1;
}

.second-on-mobile {
-webkit-order: 2;
order: 2;
}

.third-on-mobile {
-webkit-order: 3;
order: 3;
}

.fourth-on-mobile {
-webkit-order: 4;
order: 4;
}

}

/* Style Back to Top Button
-----------------------------------------------------*/

.et_pb_scroll_top.et-pb-icon {
  background-color: transparent !important;
  border-radius: 0px;
  border: 1px solid #000
}

.et_pb_scroll_top.et-visible {
  opacity: 1;
  -webkit-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
  -moz-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
  -o-animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
  animation: fadeInBottom 1s 1 cubic-bezier(.77,0,.175,1);
}

.et_pb_scroll_top.et-pb-icon {
  right: 15px;
  bottom: 15px;
  background: #000;
  padding: 10px;
}

.et_pb_scroll_top:before {
  content: "\32";
  color: #000;
}

/* Vertical align items center */

.bcs-v-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Vertical align items bottom of row */

.bcs-b-items {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

/* Vertical align Row center */

.bcs-v-row {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Vertical align Row at bottom */

.bcs-b-row {
  display: flex;
  align-items: flex-end; /* Aligns the row at the bottom */
  height: 100%;
}

/* Distribute items evenly */

.bcs-distribute {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Two columns on mobile */
@media only screen and (max-width: 479px) {
  .two-col .et_pb_column {
      width: 50%!important; 
  }
}

/* Three columns on mobile */
@media only screen and (max-width: 479px) {
  .three-col .et_pb_column {
      width: 33.33%!important; 
  }
}

.et_pb_portfolio_image img {
  max-width: 100%;
  height: auto;
}

/* remove shadow from homepahe hero text*/

.et_pb_bg_layout_dark .et_pb_slide_description {
    text-shadow: none;
}

 /* Marquee Banner
-----------------------------------------------------*/

.marquee {
    position: relative;
    display: flex;
    animation: moveLeft 14s linear infinite !important;
}

.track {
    color: inherit;
    text-decoration: none;
    animation: text 15s infinite linear;
    position:relative;
    white-space: nowrap;
    min-width: 100%;
}

 

@keyframes text{

0%{

left: 0%;

}

25%{

left:-10%;

}

50%{

left:-20%;

}

75%{

left:-30%;

}

100%{

left:-40%;

}}

/*add close icon accordion*/
.et_pb_accordion .et_pb_toggle_open .et_pb_toggle_title:before {
    display: block!important;
    content: "\e04f" !important;
	  font-size: 20px;
	  color: #b0aca4;
}

/* Portfolio Grid
----------------------------------------*/

/* Grid Section - remove all grid spacing */
.fbl_port_col .et_pb_portfolio_items_wrapper .et_pb_portfolio_items {
    display: grid;
    gap: 0 !important;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 !important;
    padding: 0 !important;
}

.fbl_port_col .project,
.fbl_port_col .et_pb_portfolio_item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile: one column, no spacing */
@media only screen and (max-width: 766px) {
    .fbl_port_col .et_pb_portfolio_items_wrapper .et_pb_portfolio_items {
        display: block;
        margin: 0 !important;
        padding: 0 !important;
    }
    .fbl_port_col .project {
        margin: 0 !important;
        padding: 0 !important;
    }
    .fbl_port_col .et_pb_portfolio_filters {
        margin-bottom: 20px;
    }
}

@media (min-width: 767px) and (max-width: 1024px) { 
    .fbl_port_col .et_pb_portfolio_items_wrapper .et_pb_portfolio_items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*Pagination (unchanged)*/
.fbl_port_col .et_pb_portfolio_pagination {
    position: absolute;
    bottom: -70px;
    border: none;
    text-align: center;
}

.fbl_port_col .et_pb_portfolio_pagination ul {
    display: inline-flex;
    position: relative;
    z-index: 1;
    border: none;
}

.fbl_port_col .et_pb_portfolio_pagination ul li {
    padding: 0;
}

.fbl_port_col .et_pb_portfolio_pagination ul:before {
    content: "";
    width: 100%;
    height: 2px;
    background: #e8e8e8;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.fbl_port_col .et_pb_portfolio_pagination ul li a {
    padding: 8px 15px;
    margin-right: 25px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 0px;
    box-shadow: 0 8px 6px -9px #5b5f5f;
    font-size: 17px;
    color: #686c6c;
}

.fbl_port_col .et_pb_portfolio_pagination ul li a.page-next,
.fbl_port_col .et_pb_portfolio_pagination ul li a.last-page.active {
    margin: 0;
}

.fbl_port_col .et_pb_portfolio_pagination ul li a.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/*Filterable Tabs (unchanged except mobile)*/
.fbl_port_col .et_pb_portfolio_filters ul {
    text-align: center;
    margin-bottom: 50px;
}

.fbl_port_col .et_pb_portfolio_filters ul li {
    display: inline-block;
    float: none;
}

.fbl_port_col .et_pb_portfolio_filters ul li a,
.fbl_port_col .et_pb_portfolio_filters li:last-child a {
    color: #000;
    padding: 10px 15px;
    overflow: hidden;
    z-index: 1;
    position: relative;
    transition: 0.3s;
    margin: 0 5px;
    border: solid 1px #f3efe2;
}

.fbl_port_col .et_pb_portfolio_filters ul li:last-child a {
    margin-right: 0;
}

.fbl_port_col .et_pb_portfolio_filters ul li a:hover,
.fbl_port_col .et_pb_portfolio_filters ul li a.active {
    color: #253441;
    background: transparent;
    border: solid 1px;
    border-color: #f3efe2;
}

.fbl_port_col .et_pb_portfolio_filters ul li a:before {
    content: "";
    background: #f3efe2;
    width: 105%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50% 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: 0.5s ease-out;
}

.fbl_port_col .et_pb_portfolio_filters ul li a.active:before,
.fbl_port_col .et_pb_portfolio_filters ul li a:hover:before {
    transform: scaleX(1);
    transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}

@media only screen and (max-width: 566px) {
    .fbl_port_col .et_pb_portfolio_filters ul li {
        text-align: center;
        width: 100% !important;
        margin-bottom: 15px;
    }
}

/*Design Style*/

.project_10 .project {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
}

.project_10 .project img {
    height: 100%;
    object-fit: cover;
  	aspect-ratio: 1;
}

.project_10 .project .et_portfolio_image {
    position: relative;
    height: 100%;
    width: 100%;
}

.project_10 .project span.et_portfolio_image:before {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	content: "";
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #292929 100%);
	pointer-events: none;
	z-index: 1;
	transition: all 500ms ease;
}

.project_3 .project:hover span.et_portfolio_image:after {
	height: 100%;
}
.project_3 .project span.et_portfolio_image img {
	width: 100%;
	transition: all 300ms ease;
	position: absolute;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	object-fit: cover;
}

.project_10 .project:hover .et_portfolio_image:before {
    top: 0;
    opacity: 0.8;
}

.project_10 .project .et_pb_module_header {
    position: absolute;
    bottom: 80px;
    left: 0;
    padding-bottom: 0;
    color: #fff;
    width: 100%;
    transition: all .3s ease;
    z-index: 3;
}

.project_10 .project .et_pb_module_header a {
    padding: 20px;
    margin-bottom: 8px;
    display: block;
}

.project_10 .project .post-meta {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 20px 0 !important;
    color: #fff;
    text-align: center !important;
    margin: 0;
    z-index: 3;
    border-radius: 0;
    display: block;
}

.project_10 .project .post-meta a {
    color: #fff;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Reverse Columns
----------------------------------------*/

@media screen and ( max-width: 980px ) {
    .reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Video Background Overlay
----------------------------------------*/

.video-background-section {
    position: relative
}

.video-background-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,rgba(0,0,0,.6),rgba(0,0,0,.5));
    z-index: 1;
    pointer-events: none
}

.video-background-section video {
    position: relative;
    z-index: 0
}

.video-bg2-section {
    position: relative;
}

.video-bg2-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, rgba(31, 31, 31, 0.60) 0%, rgba(31, 31, 31, 0.60) 100%),
        linear-gradient(180deg, #1F1F1F 4.81%, rgba(31, 31, 31, 0.20) 30.29%);
    z-index: 1;
    pointer-events: none;
}

.video-bg2-section video {
    position: relative;
    z-index: 0;
}