/* Blocks CSS */

.photo-text-block{display:flex; justify-content: space-between; align-items: stretch; max-width: 1200px; margin: 30px auto}
.photo-text-block > div{width:100%; transition:all 1s ease-in-out}
.photo-text-block .photo-side{object-fit: cover; width:100%}
.photo-text-block .button{margin-top: 30px; display: inline-block}
.photo-text-block.block-order-left{flex-direction:row-reverse}
.photo-text-block .text-side{max-width: 50%; display: flex; justify-content: center; align-items: center; background: var(--pink); padding: 0; background-size: cover}
.photo-text-block .text-side > div{padding: 30px}
.photo-text-block .photo-side{overflow: hidden}
.photo-text-block .photo-side img{object-fit: cover; object-position: center; width:100%; height: 100%; display: block}
.photo-text-block.block-order-left .text-side{border-top-right-radius:15px; border-bottom-right-radius:15px}
.photo-text-block.block-order-left .photo-side{border-top-left-radius:15px; border-bottom-left-radius:15px}
.photo-text-block.block-order-right .text-side{border-top-left-radius:15px; border-bottom-left-radius:15px}
.photo-text-block.block-order-right .text-side > div{border-top-left-radius:15px; border-bottom-left-radius:15px; padding-left: 0 !important}

.photo-text-block.block-order-right .photo-side{border-top-right-radius:15px; border-bottom-right-radius:15px}
.photo-text-block.block-order-left .text-side.start{transform:translate(200px, 0); opacity: 0}
.photo-text-block.block-order-left .photo-side.start{transform:translate(-200px, 0); opacity: 0}
.photo-text-block.block-order-right .text-side.start{transform:translate(-200px, 0); opacity: 0}
.photo-text-block.block-order-right .photo-side.start{transform:translate(200px, 0); opacity: 0}


.text-content-block{ max-width: 1200px; margin: 0 auto}
.green-bg{border-radius:15px; padding: 30px 30px 15px}
.green-bg h2{padding: 0; margin: 0 0 15px}

.testimonials-block{background: var(--red); color: #FFFFFF; padding: 60px 30px; height: 500px; background-image: url("../img/quotes-bg.jpg"); background-size: cover; background-position: center; position: relative; border-radius:15px}

.testimonials-block h2{color: var(--primary); text-align: center; text-shadow:1px 1px 2px rgb(0,0,0,0.3); width:100%; position: absolute; top:15px; left:0; font-size:2.4rem}

.testimonials-block h3{font-size:1.8rem; text-shadow:1px 1px 2px rgb(0,0,0,0.7); color: #fff; text-align: center}
.testimonial-content{font-size:1.4rem; line-height: 1; font-family:var(--font-heading); position: relative; padding: 0 40px; text-shadow: 1px 1px 3px rgb(0,0,0,0.75)}

.testimonial-content::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
	font-size:2rem;
    font-weight: 900;
    margin-right: 10px;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0px;
    left: 0px;
    color: #fff;
    transform: scale(1);
    will-change: transform;
    overflow: visible;
}

.testimonial-content::after {
    content: "\f10e";
    font-family: "Font Awesome 5 Free";
	font-size:2rem;
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    bottom: 0px;
    right: 0px;
    color: #fff;
    transform: scale(1);
    will-change: transform;
    overflow: visible;
}

.testimonial-app{width:100%; height:100%; max-width: 900px; margin: 0 auto; position: relative}
.testimonial-app > div{ display: flex; justify-content: center; align-items: center; position: absolute; width:100%; top:0; left:0; height: 100%; transition:all 600ms ease-in-out; padding: 15px}

.testimonial-app > div{transform: none}
.testimonial-app > div.hidden{opacity: 0; transform:scale(0.8)}


.testimonial-list{display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; column-gap: 15px; grid-row-gap: 15px}
.testimonial-list > div{width:100%; max-width:320px; height: 100%; display: flex; justify-content: space-around; align-items: center; border-radius:15px; padding: 30px; box-shadow:1px 1px 6px rgb(0,0,0,0.2); border:2px solid #fff}
.testimonial-list > div:nth-of-type(odd){background:var(--pink)}
.testimonial-list > div:nth-of-type(even){background: #f8f8f8}
.testimonial-list h3{margin: 30px 0 0; text-align: center}
.testimonial-list h3 span{color: #fff; font-size:2rem}

.testimonial-item{padding: 0 30px; position: relative}

.testimonial-item p{line-height: 1.4}

.testimonial-item::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
	font-size:3rem;
    font-weight: 900;
    margin-right: 10px;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: -30px;
    left: -20px;
    color: #000;
    transform: scale(1);
    will-change: transform;
    overflow: visible;
}

.testimonial-item::after {
    content: "\f10e";
    font-family: "Font Awesome 5 Free";
	font-size:3rem;
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    bottom: -20px;
    right: -10px;
    color: #000;
    transform: scale(1);
    will-change: transform;
    overflow: visible;
}

.testimonial-button-wrap{ text-align: center}
.testimonials-button{background-color: var(--primary) !important; border:2px solid var(--primary)}
.testimonials-button:hover{background-color: var(--secondary) !important; }

.gallery-block {
    max-width:1200px;
    margin:30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1.4 / 1; /* Forces aspect ratio */
    transition:all 300ms ease-in-out;
    cursor:pointer;
}
.gallery-block img:hover{
    transform:scale(1.1);
    box-shadow:3px 3px 5px rgb(0,0,0,0.7);
}

.lightbox-caption{width: calc(100% - 20px); text-align: center; padding: 10px; position: absolute; left:10px; bottom: 15px; background: rgb(255,255,255,0.4); border-radius:20px; font-weight:700; color: var(--primary)}


.qr-code-block{display: flex; justify-content: space-between; align-items: stretch; column-gap: 30px; border-bottom:4px solid var(--willow); padding: 0 0 30px; margin: 0 auto 30px}
.qr-code-block > div{width:100%}
.qr-code-block > div:last-of-type{max-width: 200px; text-align: center}
.qr-code-block > div:last-of-type img{object-fit: contain; width:100%; height: 100%}

@media only screen and (max-width:599px){
	.testimonials-block{display: none}
	.qr-code-block{flex-direction: column; justify-content: center}
	.qr-code-block > div{margin:30px auto}
}