/*
  Theme Name: PhotoZone
  Author: HTML Codex
  Author Website: https://htmlcodex.com
  Version: 1.0
  Template Link: https://demo.htmlcodex.com/2586/photo-studio-website-template/
  Template License: https://htmlcodex.com/license (or read the LICENSE.txt file)
*/


/********** Template CSS **********/
:root {
    --primary: #EAA636;
    --secondary: #545454;
    --light: #FDF5EB;
    --dark: #1E1916;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 60px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.fixed-top {
    display: block;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 15px;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}


/*** Facts ***/
.fact-item {
    transition: .3s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** About ***/
.img-twice::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 1rem solid var(--light);
    z-index: -1;
}


/*** Service ***/
.service-item,
.service-item * {
    transition: .3s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary) !important;
}

.service-item:hover * {
    color: var(--light);
}

.service-item .service-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-overlay {
    opacity: 1;
}


/*** Project ***/
.project-item {
    position: relative;
}

.project-item .project-title {
    position: absolute;
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 1rem;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.project-item:hover .project-title {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Team ***/
.team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: transparent transparent #FFFFFF transparent;
}

@media (min-width: 576px) {

    .flex-sm-row .team-img::after,
    .flex-lg-row-reverse .team-img::after {
        top: 50%;
        right: 0;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        border-color: transparent #FFFFFF transparent transparent;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .flex-sm-row-reverse .team-img::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0;
        transform: translateY(-50%);
        border-color: transparent transparent transparent #FFFFFF;
    }
}

@media (min-width: 992px) {

    .flex-lg-row-reverse .team-img::after,
    .flex-sm-row-reverse .team-img::after {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0;
        transform: translateY(-50%);
        border-color: transparent transparent transparent #FFFFFF;
    }

    .flex-sm-row-reverse.flex-lg-row .team-img::after {
        top: 50%;
        right: 0;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        border-color: transparent #FFFFFF transparent transparent;
    }
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 22px;
    color: var(--light);
    background: var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: var(--dark);
}


/*** Footer ***/
/* @media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--secondary);
    }
} */

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--secondary);
    transform: skew(40deg);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}


/* Added CSS */
#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important
}

.pt-5 {
    padding-top: 5rem !important;
}


/*** Updated Navbar ***/
.navbar.fixed-top {
    display: flex;
    justify-content: space-between;
    /* Align items horizontally */
    align-items: center;
    transition: .5s;
    position: fixed;
    /* Allow absolute positioning within the navbar */
}

.navbar-toggler {
    order: 1;
    /* Ensure it appears after the logo */
    position: absolute;
    /* Keep the hamburger menu in a fixed position */
    top: 0;
    right: 10px;
    /* Adjust spacing from the right edge */
    z-index: 10;
    /* Ensure it's above the dropdown menu */
}

.navbar .navbar-collapse {
    justify-content: flex-end;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 50px;
        /* Adjust logo size */
        width: auto;
        /* Maintain aspect ratio */
    }

    .navbar {
        padding: 0 15px;
        /* Add padding for mobile view */
    }

    .navbar .navbar-brand {
        display: flex;
        /* Ensures proper alignment */
    }

    .navbar .navbar-toggler {
        top: 10px;
        /* Adjust spacing from the top edge */
        right: 15px;
        /* Adjust spacing from the right edge */
        margin-right: 0;
        /* Neutralize default margins */
    }

    .navbar .navbar-nav {
        text-align: right;
        /* Align menu items in mobile view */
        margin-top: 20px;
        /* Add space between toggler and menu */
    }

    .navbar .navbar-nav .nav-link {
        display: block;
        /* Stack links vertically */
        padding: 10px 0;
        /* Adjust padding for better spacing */
    }
}

/* Center the cart icon in the hamburger menu */
.navbar-nav .nav-item.nav-link.text-center i.fa-shopping-bag {
    color: var(--dark);
    font-size: 2rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-item.nav-link.text-center i.fa-shopping-bag:hover {
    color: var(--primary);
}

/* Desktop view adjustments */
@media (min-width: 992px) {
    .navbar-nav .nav-item.nav-link.text-center {
        display: none;
        /* Hide cart in mobile menu for desktop */
    }
}


.team-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

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


/* Adopted CSS */
.yith-wcan-filter {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.yith-wcan-filter select {
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

/********** About page: story timeline (vine) **********/
.sjq-timeline {
    position: relative;
    --sjq-node: 56px;
}

/* the vine: a gently curved line tiled down the page */
.sjq-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='240' viewBox='0 0 40 240'%3E%3Cpath d='M20 0 C34 60 6 180 20 240' fill='none' stroke='%23EAA636' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y center top;
}

.sjq-tl-item {
    position: relative;
    padding: 0 0 3rem 0;
}

.sjq-tl-item:last-child {
    padding-bottom: 0;
}

.sjq-tl-node {
    position: absolute;
    top: 1.5rem;
    width: var(--sjq-node);
    height: var(--sjq-node);
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-variant-numeric: lining-nums;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px #fff;
    z-index: 1;
}

.sjq-tl-card {
    border-top: 4px solid var(--primary);
    padding: 2rem;
    background: #fff;
    border-right: 1px solid #f1e3cf;
    border-bottom: 1px solid #f1e3cf;
    border-left: 1px solid #f1e3cf;
}

.sjq-tl-card.is-tinted {
    background: var(--light);
    border-color: var(--light);
    border-top-color: var(--primary);
}

/* mobile / tablet: line on the left, cards stacked */
@media (max-width: 991.98px) {
    .sjq-timeline {
        --sjq-node: 44px;
    }

    .sjq-tl-card {
        padding: 1.25rem;
    }

    .sjq-tl-card h2 {
        font-size: 1.6rem;
    }

    .sjq-timeline::before {
        left: calc(var(--sjq-node) / 2);
    }

    .sjq-tl-item {
        padding-left: calc(var(--sjq-node) + 1rem);
    }

    .sjq-tl-node {
        left: 0;
    }
}

/* desktop: cards alternate either side of the centre line */
@media (min-width: 992px) {
    .sjq-tl-item {
        width: 50%;
    }

    .sjq-tl-item.is-left {
        padding-right: calc(var(--sjq-node) / 2 + 2rem);
    }

    .sjq-tl-item.is-right {
        margin-left: 50%;
        padding-left: calc(var(--sjq-node) / 2 + 2rem);
    }

    .sjq-tl-item.is-left .sjq-tl-node {
        right: calc(var(--sjq-node) / -2);
    }

    .sjq-tl-item.is-right .sjq-tl-node {
        left: calc(var(--sjq-node) / -2);
    }

    /* stagger: each card starts roughly mid-way down the previous one */
    .sjq-tl-item + .sjq-tl-item {
        margin-top: -15rem;
    }
}


/********** Shop page: start-here card, category chips, FAQ **********/
.sjq-start {
    background: var(--light);
    border-top: 4px solid var(--primary);
    padding: 2rem;
}

@media (min-width: 992px) {
    .sjq-start {
        padding: 3rem;
    }
}

.sjq-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.sjq-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    border: 2px solid var(--primary);
    border-radius: 2rem;
    color: var(--dark);
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.sjq-chip:hover,
.sjq-chip:focus-visible {
    background: var(--light);
    color: var(--dark);
}

.sjq-chip.is-active {
    background: var(--primary);
    color: var(--dark);
}

.sjq-chip-count {
    font-size: .8rem;
    font-weight: 600;
    opacity: .7;
}

/* Shop grid: even cover tiles, brand buttons */
.woocommerce ul.products li.product a img {
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: var(--light);
    padding: .75rem;
}

.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.product_type_simple,
.woocommerce button.single_add_to_cart_button.button.alt {
    background: var(--primary);
    color: #fff;
    border-radius: 2px;
}

.woocommerce a.button.add_to_cart_button:hover,
.woocommerce a.button.product_type_simple:hover,
.woocommerce button.single_add_to_cart_button.button.alt:hover {
    background: #d6932a;
    color: #fff;
}

/* FAQ accordion (native <details>) */
.sjq-faq-list {
    max-width: 820px;
    margin-inline: auto;
}

.sjq-faq-item {
    margin-bottom: .75rem;
}

.sjq-faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--dark);
    font-weight: 600;
    cursor: pointer;
}

.sjq-faq-item summary::-webkit-details-marker {
    display: none;
}

.sjq-faq-item summary::before {
    content: "";
    flex-shrink: 0;
    inline-size: 1em;
    block-size: 1em;
    background-color: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    rotate: -90deg;
}

.sjq-faq-item[open] > summary::before {
    rotate: 0deg;
}

.sjq-faq-item summary:focus-visible {
    outline: 3px solid var(--dark);
    outline-offset: 2px;
}

/* open question: the header fills orange, the answer sits in a light panel with the same orange outline */
.sjq-faq-item[open] > summary {
    background: var(--primary);
    color: var(--dark);
}

.sjq-faq-item[open] > summary::before {
    background-color: var(--dark);
}

.sjq-faq-item summary:hover {
    background: var(--light);
}

.sjq-faq-item[open] > summary:hover {
    background: var(--primary);
}

.sjq-faq-body {
    background: #fff;
    color: var(--secondary);
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--primary);
    border-top: 0;
}

.sjq-faq-body p {
    margin-bottom: .75rem;
}

.sjq-faq-body p:last-child {
    margin-bottom: 0;
}

.sjq-faq-body a {
    color: #9a5f08;
    text-decoration: underline;
}

.sjq-faq-body strong {
    color: var(--dark);
}

@media (prefers-reduced-motion: no-preference) {
    .sjq-faq-item summary::before {
        transition: rotate .2s;
    }

    .sjq-faq-item::details-content {
        interpolate-size: allow-keywords;
        overflow: clip;
        contain: layout;
        transition: block-size .3s ease-in-out, content-visibility .3s ease-in-out allow-discrete;
    }

    .sjq-faq-item:not([open])::details-content {
        block-size: 0;
    }
}

/* Product page */
.sjq-product-wrap {
    max-width: 1000px;
}

.sjq-answer-card {
    background: var(--light);
    border-top: 4px solid var(--primary);
    padding: 2rem;
}

.sjq-answer-icon {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.sjq-answer-card ul {
    padding-left: 1.25rem;
}

.sjq-answer-card p:last-child,
.sjq-answer-card ul:last-child {
    margin-bottom: 0;
}

/* WooCommerce floats the gallery and summary; start our sections below them */
.sjq-answers,
.sjq-product-faq {
    clear: both;
}


/********** Header cart badge **********/
.sjq-cart-icon {
    position: relative;
    display: inline-block;
}

.sjq-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 1rem;
    background: var(--dark);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
}

.sjq-cart-count.is-empty {
    display: none;
}


/********** Sticky footer: on short pages the footer sits at the very bottom of the window **********/
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > .footer {
    margin-top: auto !important; /* overrides the .mt-5 utility so spare height goes above the footer */
    /* keep the old 3rem gap above the footer as a white border, painted outside the dark background */
    border-top: 3rem solid #fff;
    background-clip: padding-box;
}


/********** Password-protected product form **********/
.sjq-password-form {
    padding: 1rem 0;
}

.sjq-password-error {
    color: #b3261e;
    font-weight: 600;
    margin-bottom: .75rem;
}


/* Shop page FAQ: plain white, same as the FAQ page */
.sjq-faq-plain {
    margin-top: 2rem;
}


/* Blog cards: every featured image fills the same 16:9 frame, cropped from the centre,
   so uploads of any size or shape look uniform. */
.blog-item .blog-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}
