/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* CSS Global */
.brxe-text-link,
a:not([class]) {
    transition: color .2s ease-in-out;
}

.brxe-text-link:hover,
a:not([class]):hover {
    color: #214ca1 !important;
}

/* CSS hover box-image */
a.box-link {
	position: relative;
	overflow: hidden;
}

a.box-link:after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
	transform: skewX(-25deg);
	z-index: 2;
}

a.box-link:hover:after {
	opacity: 1;
	visibility: visible;
	animation: shine 1s;
}

@keyframes shine {
	100% {
		left: 125%;
	}
}

/* CSS Button */
.brxe-button.bricks-button,
.gform-theme.gform-theme--framework.gform_wrapper
    form
    .gform-footer.gform_footer
    .gform_button.button {
    background-size: 200% 100%;
    background-position: right bottom;
	background-image: linear-gradient(to right, #fff 50%, transparent 50%);
}

.brxe-button.bricks-button:hover,
.gform-theme.gform-theme--framework.gform_wrapper
    form
    .gform-footer.gform_footer
    .gform_button.button:hover {
	color: #0a113e;
	border-color: #0a113e !important;
    background-position: left bottom;
}

/* CSS Form */
.gform_wrapper .gform_confirmation_message {
    text-align: center;
}

.gform_wrapper.gform-theme--framework .gform_validation_errors {
    display: none;
}

.gform_wrapper form .gform-body .gform_fields {
    row-gap: 34px;
}

.gform_wrapper form .gfield .ginput_container input,
.gform_wrapper form .gfield .ginput_container textarea {
    padding: 20px 16px;
    min-height: 50px;
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    border: 1px solid #878787;
}

.gform_wrapper form .gfield .ginput_container input::placeholder,
.gform_wrapper form .gfield .ginput_container textarea::placeholder {
    color: #878787;
}

.gform_wrapper form .gform-footer {
    display: flex;
    justify-content: end;
    margin-top: 34px;
}

.gform-theme.gform-theme--framework.gform_wrapper
    form
    .gform-footer.gform_footer
    .gform_button.button {
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    border-radius: 20px;
	border: 1px solid #0a113e;
    background-color: #0a113e;
    transition: all .7s ease-in-out;
}

/* CSS Divider Dashed Custom */
.brxe-divider .line {
    border-image: repeating-linear-gradient(
            90deg,
            #878787 0,
            #878787 24px,
            transparent 24px,
            transparent 48px
        )
        10;
}

/* CSS Custom Module MSV Production Process */
.brxe-production-process__list {
    display: flex;
    width: 100%;
    counter-reset: process-counter;
}

.production-process__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    counter-increment: process-counter;
}

.production-process__item:nth-child(even) {
	margin-top: 80px;
}

.production-process__number {
    position: absolute;
    top: 50%;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    line-height: 1em;
    width: 45px;
    height: 45px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #214ca1;
    transform: translateY(-50%);
}

.production-process__number:before {
    content: counter(process-counter, decimal-leading-zero);
}

.production-process__img {
    position: relative;
    padding: 8px;
    width: 143px;
    height: 143px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='white' stroke-width='1' stroke-dasharray='6%2c 6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    border-radius: 50%;
}

.production-process__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.production-process__title {
	font-size: 16px;
	line-height: 1.3em;
    width: 160px;
    color: #fff;
    text-align: center;
}

@media(max-width: 767px) {
	.production-process__item:nth-child(even) {
		margin-top: 0;
	}
}

@media(max-width: 478px) {
	.production-process__title {
		width: 140px;
	}
}

/* Single Post Template */
.single-post .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 30px 20px;
}
.single-post .wp-block-gallery.has-nested-images.columns-2 {
	grid-template-columns: repeat(2,1fr);
}
.single-post .wp-block-gallery.has-nested-images > .wp-block-image {
	width: 100% !important;
	border-radius: 15px;
	overflow: hidden;
	cursor: zoom-in;
}

.single-post .wp-block-gallery.has-nested-images > .wp-block-image img {
	aspect-ratio: 356/272;
	object-fit: cover;
}

.single-post .brxe-post-content a {
	color: #169894;
}

.single-post .brxe-post-content .wp-block-heading {
	margin-bottom: 20px;
}

.single-post .pswp__img {
	object-fit: contain;
}

.single-post .wp-block-heading {
	margin-top: .5em;
}

.single-post .brxe-post-content h2:has(+p) {
    margin-top: 40px;
}

.single-post .brxe-post-content h2 {
	font-size: 32px;
}

.single-post .brxe-post-content h3 {
	font-size: 26px;
}

.single-post .brxe-post-content h4 {
	font-size: 20px;
}

.single-post .brxe-post-content h5 {
	font-size: 18px;
}

.single-post .brxe-post-content h6 {
	font-size: 16px;
}

@media (max-width: 767px) {
	.single-post .wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2,1fr);
		gap: 16px 12px;
	}
	
	.single-post .brxe-post-content h2:has(+p) {
		margin-top: 32px;
	}

	.single-post .brxe-post-content h2 {
		font-size: 26px;
	}

	.single-post .brxe-post-content h3 {
		font-size: 22px;
	}

	.single-post .brxe-post-content h4 {
		font-size: 20px;
	}
}