/* ——— Site-wide responsive layout & images ——— */

:root {
    --site-gutter-x: clamp(20px, 6vw, 100px);
    --site-section-y: clamp(3rem, 6vw, 6rem);
    --site-section-y-tight: clamp(2rem, 4vw, 3.25rem);
    --site-content-max: 1300px;
    --site-prose-max: 42rem;
    --site-stack-xs: 0.5rem;
    --site-stack-sm: 1rem;
    --site-stack-md: 1.75rem;
    --site-stack-lg: clamp(2rem, 4vw, 3.5rem);
    --site-stack-xl: clamp(2.5rem, 5vw, 4.5rem);
    --site-radius: 12px;
    --site-radius-lg: 16px;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

.wrapper,
main.wrapper {
    max-width: 100%;
    overflow-x: clip;
}

/*
 * Page inset: pad the whole main column (works even if theme sets .container { max-width: 100% }).
 * Full-bleed heroes/map/page headings break out with negative margins.
 */
main.wrapper {
    padding-left: var(--site-gutter-x) !important;
    padding-right: var(--site-gutter-x) !important;
    box-sizing: border-box;
}

main.wrapper > .wptb-page-heading,
main.wrapper > section.wptb-slider,
main.wrapper > section.wptb-slider.style20,
main.wrapper > .gmapbox {
    margin-left: calc(-1 * var(--site-gutter-x)) !important;
    margin-right: calc(-1 * var(--site-gutter-x)) !important;
    width: calc(100% + 2 * var(--site-gutter-x)) !important;
    max-width: 100vw;
}

/*
 * Background sections:
 * - site-bg-full / .bg-image (photos): edge-to-edge background, content inset via section padding
 * - site-bg-inset / .bg-image-2 (textures): stays in page column with extra inner padding
 */
main.wrapper section.site-bg-full,
main.wrapper section.bg-image:not(.site-bg-inset),
main.wrapper section.wptb-about-two,
main.wrapper section.wptb-agency-experience,
main.wrapper section.wptb-faq-one,
main.wrapper section.wptb-testimonial-one,
main.wrapper section.wptb-blog-grid-one,
main.wrapper section.wptb-contact-form.bg-image-5,
main.wrapper section.wptb-contact-form.site-bg-full,
main.wrapper > .wptb-instagram--gallery.site-bg-full {
    margin-left: calc(-1 * var(--site-gutter-x)) !important;
    margin-right: calc(-1 * var(--site-gutter-x)) !important;
    width: calc(100% + 2 * var(--site-gutter-x)) !important;
    max-width: 100vw;
    padding: var(--site-stack-md) var(--site-gutter-x) !important;
    box-sizing: border-box;
}

main.wrapper section.site-bg-inset,
main.wrapper section.bg-image-2:not(.site-bg-full) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100%;
    padding-left: clamp(0.5rem, 2.5vw, 1.25rem) !important;
    padding-right: clamp(0.5rem, 2.5vw, 1.25rem) !important;
    box-sizing: border-box;
}

/* Text/content sections (no full-bleed photo): comfortable horizontal rhythm */
main.wrapper section.site-content-padded:not(.site-bg-full) {
    padding-left: clamp(0.25rem, 1.5vw, 0.75rem) !important;
    padding-right: clamp(0.25rem, 1.5vw, 0.75rem) !important;
}

.container {
    width: 100% !important;
    max-width: var(--site-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.wptb-item--container {
    width: 100%;
    max-width: var(--site-content-max);
    margin-left: auto;
    margin-right: auto;
}

.header .container-fluid,
.header .header-inner .container-fluid {
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

footer .container {
    max-width: var(--site-content-max) !important;
    padding-left: var(--site-gutter-x) !important;
    padding-right: var(--site-gutter-x) !important;
}

main.wrapper section:not(.wptb-slider) {
    padding-top: var(--site-section-y) !important;
    padding-bottom: var(--site-section-y) !important;
}

/* One vertical rhythm unit between back-to-back sections (avoid double gaps) */
main.wrapper section + section:not(.wptb-slider) {
    padding-top: 0 !important;
}

main.wrapper section.pb-0 + section:not(.wptb-slider),
main.wrapper section.wptb-slider + section:not(.wptb-slider) {
    padding-top: var(--site-section-y) !important;
}

main.wrapper section.corporate-films-content + section.site-section-services {
    padding-top: var(--site-stack-lg) !important;
}

main.wrapper > .container {
    padding-top: var(--site-section-y);
    padding-bottom: var(--site-section-y);
}

main.wrapper > .divider-line-hr + section,
main.wrapper > .container + .divider-line-hr {
    margin-top: 0;
}

main.wrapper section.wptb-slider,
main.wrapper section.wptb-slider.style20 {
    padding: 0 !important;
}

main.wrapper section.wptb-about-two {
    padding-bottom: clamp(6rem, 14vw, 11.5625rem);
}

main.wrapper section.pb-0 {
    padding-bottom: 0 !important;
}

main.wrapper section.pt-0 {
    padding-top: 0 !important;
}

main.wrapper > .wptb-page-heading + section,
main.wrapper > .wptb-page-heading + .container + section,
main.wrapper > .wptb-page-heading ~ section.blog-details:first-of-type {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

main.wrapper section.corporate-films-content .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Service grids: theme uses ps-0 on columns — restore inner gutter */
main.wrapper .wptb-service--inner .row > [class*="col-"].ps-0 {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
}

main.wrapper .wptb-heading {
    margin-bottom: var(--site-stack-lg);
}

main.wrapper .wptb-heading .wptb-item--inner.text-center .wptb-item--title {
    margin-bottom: var(--site-stack-sm);
}

main.wrapper .wptb-heading .wptb-item--description {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

main.wrapper .wptb-heading .wptb-item--inner > span:not([class]) {
    display: block;
    margin-top: var(--site-stack-sm);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.5;
    font-weight: var(--fw-normal, 400);
    opacity: 0.88;
}

main.wrapper .container > .row {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
}

main.wrapper .wptb-image-single {
    margin-bottom: var(--site-stack-xl);
}

main.wrapper .wptb-about--text .wptb-about--text-one {
    margin-bottom: var(--site-stack-md) !important;
    line-height: 1.65;
}

main.wrapper .wptb-about-funfact {
    margin-top: var(--site-stack-xl) !important;
}

main.wrapper .pd-bottom-100 {
    padding-bottom: var(--site-stack-xl) !important;
}

main.wrapper > .divider-line-hr {
    margin-top: var(--site-section-y);
    margin-bottom: var(--site-section-y);
}

/* Readable body copy (legal, services, blog, projects) */
main.wrapper .site-content-prose,
main.wrapper section.site-legal-content .container,
main.wrapper .blog-details-inner .post-content,
main.wrapper .blog-details-inner .intro,
main.wrapper .project-description,
main.wrapper .fulltext {
    line-height: 1.7;
    font-size: clamp(0.98rem, 1.05vw, 1.0625rem);
}

main.wrapper .site-content-prose .lead,
main.wrapper section.site-legal-content .lead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: var(--site-stack-md);
}

main.wrapper .site-content-prose h3,
main.wrapper section.site-legal-content h1 {
    margin-bottom: var(--site-stack-md);
    line-height: 1.25;
}

main.wrapper section.site-legal-content h2,
main.wrapper .site-content-prose h4 {
    margin-top: var(--site-stack-lg);
    margin-bottom: var(--site-stack-sm);
}

main.wrapper section.site-legal-content p,
main.wrapper section.site-legal-content ul,
main.wrapper .site-content-prose p {
    margin-bottom: var(--site-stack-md);
}

main.wrapper section.site-legal-content ul {
    padding-left: 1.25rem;
}

main.wrapper .site-content-prose img,
main.wrapper section.corporate-films-content img {
    border-radius: var(--site-radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

main.wrapper .blog-details-inner .post-header {
    margin-bottom: var(--site-stack-lg);
    padding-bottom: var(--site-stack-md);
    border-bottom: 1px solid rgba(var(--color-white-rgb, 255, 255, 255), 0.12);
}

main.wrapper .blog-details-inner .post-title {
    margin-bottom: var(--site-stack-sm);
    line-height: 1.2;
}

main.wrapper .blog-details-inner .wptb-item--meta {
    gap: var(--site-stack-md) !important;
    flex-wrap: wrap;
}

main.wrapper section.blog-details .col-lg-3 {
    margin-top: var(--site-stack-lg);
}

@media (min-width: 992px) {
    main.wrapper section.blog-details .col-lg-3 {
        margin-top: 0;
        padding-left: var(--site-stack-md);
    }
}

/* Grids & cards */
main.wrapper .wptb-blog--inner .row > [class*="col-"],
main.wrapper .wptb-project--inner .grid-item {
    margin-bottom: var(--site-stack-md);
}

main.wrapper .wptb-project--inner .effect-gradient.has-radius {
    border-radius: var(--site-radius-lg);
    overflow: hidden;
    padding: var(--site-stack-sm);
}

main.wrapper .wptb-icon-box6 .wptb-item--inner,
main.wrapper .wptb-icon-box5 .wptb-item--inner {
    padding: var(--site-stack-md);
    min-height: 100%;
}

main.wrapper .wptb-icon-box6 .wptb-item--description,
main.wrapper .wptb-icon-box5 .wptb-item--description {
    line-height: 1.55;
    margin-top: var(--site-stack-xs);
}

main.wrapper .wptb-icon-box5.mb-3 {
    margin-bottom: var(--site-stack-md) !important;
}

main.wrapper section.site-section-services .wptb-service--inner > .row {
    --bs-gutter-y: 1.25rem;
}

/* Services grid — equal card height & consistent title block */
main.wrapper .wptb-service--inner > .row.service-grid__row,
main.wrapper section.wptb-service-page .wptb-service--inner > .row {
    --bs-gutter-y: 1.75rem;
    align-items: stretch;
}

main.wrapper .wptb-service--inner > .row > .service-grid__col {
    display: flex;
    flex-direction: column;
}

main.wrapper .wptb-service--inner .service-grid__card {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
}

main.wrapper section.wptb-service-page .wptb-icon-box5 .wptb-item--inner,
main.wrapper section.wptb-service-page .wptb-icon-box5 .service-grid__card-link,
main.wrapper .wptb-service--inner .service-grid__card.wptb-icon-box5 .wptb-item--inner,
main.wrapper .wptb-service--inner .service-grid__card.wptb-icon-box5 .service-grid__card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: clamp(10.5rem, 24vw, 13.25rem);
}

main.wrapper .wptb-service--inner .service-grid__card .wptb-item--icon {
    flex-shrink: 0;
    min-height: 3.75rem;
    display: flex;
    align-items: flex-start;
}

main.wrapper .wptb-service--inner .service-grid__card .wptb-item--icon img {
    max-height: 3rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Service grid icons: theme (components.css) swaps default/hover — keep both imgs sized consistently */
main.wrapper .wptb-service--inner .service-grid__card .wptb-item--icon .default-icon,
main.wrapper .wptb-service--inner .service-grid__card .wptb-item--icon .hover-icon {
    max-height: 3rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Backend PNG/WebP: single asset — do not hide default on hover */
main.wrapper .wptb-icon-box5 .wptb-item--icon-uploaded .default-icon,
main.wrapper .wptb-icon-box5:hover .wptb-item--icon-uploaded .default-icon,
main.wrapper .wptb-icon-box5.active .wptb-item--icon-uploaded .default-icon,
main.wrapper .wptb-icon-box5.highlight .wptb-item--icon-uploaded .default-icon {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

main.wrapper .wptb-icon-box5 .wptb-item--icon-uploaded .hover-icon {
    display: none !important;
}

main.wrapper .wptb-service--inner .service-grid__card > .service-grid__card-link,
main.wrapper section.wptb-service-page .service-grid__card > .service-grid__card-link {
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

main.wrapper .wptb-service--inner .service-grid__card .service-grid__card-link .wptb-item--holder,
main.wrapper section.wptb-service-page .service-grid__card .service-grid__card-link .wptb-item--holder {
    margin-top: auto;
    padding-top: var(--site-stack-sm);
}

main.wrapper section.wptb-service-page .wptb-icon-box5 .wptb-item--title,
main.wrapper .wptb-service--inner .service-grid__card .wptb-item--title {
    font-size: clamp(0.9375rem, 1.45vw, 1.0625rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

main.wrapper .wptb-service--inner .service-grid__card .wptb-item--description {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    opacity: 0.75;
}

/* Gallery albums (list + detail) */
.wptb-gallery-albums .wptb-heading-sub {
    display: block;
    margin-top: var(--site-stack-sm);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.5;
    opacity: 0.88;
}

.gallery-album-grid {
    --bs-gutter-y: 1.75rem;
}

.gallery-album-card__col {
    display: flex;
}

.gallery-album-card {
    border-radius: var(--site-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.gallery-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.gallery-album-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.gallery-album-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.gallery-album-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-album-card__count {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.gallery-album-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.gallery-album-card__title {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.gallery-album-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    opacity: 0.82;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-album-detail__header {
    max-width: 40rem;
    margin: 0 auto var(--site-stack-xl);
}

.gallery-album-detail__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    opacity: 0.88;
    margin-bottom: 0;
}

.gallery-album-detail__figure {
    margin: 0;
    border-radius: var(--site-radius-lg);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.gallery-album-detail__figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: block;
}

.gallery-album-detail__caption {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

/* Forms & contact */
main.wrapper .wptb-contact-form .wptb-heading {
    margin-bottom: var(--site-stack-lg);
}

main.wrapper .wptb-contact-form .wptb-office + .wptb-office {
    margin-top: var(--site-stack-lg);
}

main.wrapper .wptb-form .form-group {
    margin-bottom: 0;
}

main.wrapper .wptb-form--inner .mb-4 {
    margin-bottom: var(--site-stack-md) !important;
}

main.wrapper .wptb-form .form-control {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

main.wrapper .wptb-form textarea.form-control {
    min-height: 9rem;
}

main.wrapper .gmapbox + section.wptb-contact-form {
    padding-top: var(--site-section-y) !important;
}

main.wrapper .wptb-video-player1 {
    border-radius: var(--site-radius-lg);
    overflow: hidden;
    margin-bottom: var(--site-stack-xl);
}

footer .footer-top {
    padding-bottom: var(--site-stack-xl);
}

/* Default: scale down oversized media without breaking layout */
img,
video,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

.site-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-img--cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.site-img--contain {
    width: 100%;
    max-height: min(70vh, 720px);
    object-fit: contain;
    object-position: center;
}

/* Rich text / CMS HTML from admin */
.project-description,
.blog-details .intro,
.fulltext {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-description img,
.blog-details .intro img,
.fulltext img,
.post-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
}

.project-description table,
.blog-details .intro table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Page headings & heroes — full width; title aligns with page content */
.wptb-page-heading {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: clamp(4.5rem, 10vw, 6.25rem) !important;
}

.wptb-page-heading .wptb-item--inner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: clamp(3.5rem, 10vw, 8.75rem) !important;
    padding-bottom: clamp(3.5rem, 10vw, 8.75rem) !important;
    padding-left: var(--site-gutter-x);
    padding-right: var(--site-gutter-x);
}

.wptb-page-heading .wptb-item--title {
    margin-right: 0;
    max-width: var(--site-content-max);
    margin-left: auto;
}

.wptb-page-heading.page-hero-heading .wptb-item--inner.project-hero {
    position: relative;
    min-height: clamp(220px, 42vw, 520px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.wptb-page-heading.page-hero-heading .project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.15) 0%, rgba(8, 12, 24, 0.72) 100%);
    pointer-events: none;
    z-index: 1;
}

.wptb-page-heading.page-hero-heading .project-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.wptb-page-heading.page-hero-heading .wptb-item--title {
    position: relative;
    z-index: 2;
    color: #fff;
    margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
    padding-left: var(--site-gutter-x);
    padding-right: var(--site-gutter-x);
    max-width: var(--site-content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wptb-page-heading .wptb-breadcrumb {
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    margin-top: clamp(0.75rem, 2vw, 1.25rem);
    font-size: clamp(13px, 2vw, 16px);
    line-height: 1.4;
    text-transform: none;
}

.wptb-page-heading .wptb-breadcrumb li a,
.wptb-page-heading .wptb-breadcrumb li span {
    color: rgba(255, 255, 255, 0.92);
}

.wptb-page-heading .wptb-breadcrumb li a:hover {
    color: var(--color-one, #c9a227);
}

.page-hero-heading .page-hero-breadcrumb {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--site-content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-gutter-x);
    padding-right: var(--site-gutter-x);
    padding-bottom: 0.35rem;
}

.page-hero-heading .page-hero-breadcrumb .wptb-breadcrumb {
    margin-top: clamp(4.5rem, 12vw, 6.5rem);
    margin-bottom: 0.75rem;
    justify-content: flex-start;
}

/* Project & blog detail — fixed header floats over full-bleed hero (no top band) */
body.page-hero-header .wptb-page-heading.page-hero-heading {
    padding-top: 0 !important;
}

body.page-hero-header .wptb-page-heading.page-hero-heading .wptb-item--inner.project-hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: clamp(260px, 52vw, 620px);
}

body.page-hero-header .header:not(.header-past-hero) {
    background-color: transparent !important;
    box-shadow: none !important;
}

body.page-hero-header .header:not(.header-past-hero).sticky {
    background-color: transparent !important;
}

.wptb-page-heading .wptb-item-layer-one img:not(.project-hero-img) {
    max-width: min(120px, 28vw);
    height: auto;
}

/* Project / portfolio cards */
.wptb-project--inner .wptb-item--image,
.wptb-item--image {
    overflow: hidden;
}

.wptb-project--inner .wptb-item--image img,
.grid-item .wptb-item--image img,
.wptb-blog-grid1 .wptb-item--image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

/* Blog cards — same layout on home and /blog */
main.wrapper .wptb-blog-grid1.wptb-blog-card {
    width: 100%;
}

main.wrapper .wptb-blog-grid1.wptb-blog-card .wptb-item--inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

main.wrapper .wptb-blog-grid1.wptb-blog-card .wptb-item--holder {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main.wrapper .wptb-blog-grid1.wptb-blog-card .wptb-item--title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    min-height: calc(1.35em * 2);
}

main.wrapper .wptb-blog-grid1.wptb-blog-card .wptb-item--title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    color: inherit;
}

main.wrapper .wptb-blog-grid1.wptb-blog-card .wptb-item--meta {
    margin-top: auto;
    padding-top: var(--site-stack-xs, 0.75rem);
}

/* Service detail — copy left, featured image right on desktop */
@media (min-width: 768px) {
    main.wrapper .service-detail-row__media {
        padding-left: var(--site-stack-md, 1.5rem);
    }

    main.wrapper .service-detail-row__media img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center;
    }
}

/* Project detail slider & gallery */
.swiper-gallery {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.swiper-gallery .block-gallery {
    margin: 0;
}

.swiper-gallery .block-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 760px);
    object-fit: cover;
    object-position: center;
    background: #0f172a;
}

.block-gallery img {
    width: 100%;
    border-radius: 10px;
}

.fulltext .block-gallery img.site-img--cover {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

/* Responsive video embeds */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Home hero YouTube background — override theme .ytvideo-bg padding-top/height:0 hack */
.wptb-slider.style20 {
    position: relative;
    padding: 0 !important;
    margin: 0;
    width: 100%;
    height: 100vh !important;
    max-height: 800px !important;
    overflow: hidden;
}

.wptb-slider.style20 .ytvideo-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: unset !important;
    max-height: none !important;
    overflow: hidden;
    background: #000;
}

.wptb-slider.style20 .ytvideo-bg iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 56.25vw !important;
    min-width: 177.78vh !important;
    min-height: 100% !important;
    max-width: none !important;
    transform: translate(-50%, -50%) !important;
    border: 0 !important;
    pointer-events: none;
}

/* Google map on contact */
.gmapbox .map,
.gmapbox iframe {
    width: 100% !important;
    max-width: 100%;
    min-height: 280px;
    height: clamp(280px, 45vw, 450px);
    display: block;
}

/* Instagram strip */
.wptb-instagram--gallery .wptb-item {
    flex: 1 1 20%;
    min-width: 120px;
    max-width: 100%;
}

.wptb-instagram--gallery .wptb-item--image {
    aspect-ratio: 1;
    overflow: hidden;
}

.wptb-instagram--gallery .wptb-item--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header layout & logo (theme sets .header .logo a img { width: 100% }) */
.theme-style--olive .header {
    padding-top: 12px;
}

.header {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: var(--site-gutter-x) !important;
    padding-right: var(--site-gutter-x) !important;
}

.header .header-inner .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.header .logo {
    min-width: 0;
    max-width: 168px;
    line-height: 0;
}

.header.sticky .logo {
    max-width: 152px;
}

.header .logo a.light_logo {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

/* Theme hides .dark_logo; do not override with display:block (was showing 404 logo-dark.png) */
.header .logo a.dark_logo {
    display: none !important;
}

.header.color-fixed .logo a.light_logo {
    display: inline-block !important;
}

.header.color-fixed .logo a.dark_logo {
    display: none !important;
}

.aside_info_wrapper .aside_logo a.dark_logo {
    display: none !important;
}

.aside_info_wrapper .aside_logo a.light_logo {
    display: inline-block;
}

.header .logo a img,
.header .logo a img.site-img {
    width: auto !important;
    max-width: min(168px, 48vw) !important;
    max-height: 48px !important;
    height: auto !important;
    object-fit: contain;
    object-position: left center;
}

.header.sticky .logo a img {
    max-width: min(152px, 44vw) !important;
    max-height: 42px !important;
}

.footer .logo img {
    width: auto;
    max-width: min(200px, 72vw);
    max-height: 56px;
    height: auto;
    object-fit: contain;
}

.aside_info_wrapper .aside_logo a img {
    min-width: 0 !important;
    width: auto !important;
    max-width: min(200px, 75vw) !important;
    max-height: 52px !important;
    height: auto !important;
    object-fit: contain;
}

#preloader .spinner img {
    max-height: 40px;
    width: auto;
    max-width: min(160px, 70vw);
    object-fit: contain;
}

/* Photo backgrounds in main content only (do not override footer texture) */
main.wrapper .bg-image,
main.wrapper [class*="bg-image"]:not(.bg-image-2) {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

main.wrapper section.site-bg-inset.bg-image-2 {
    background-size: auto !important;
    background-position: bottom center !important;
    background-repeat: no-repeat !important;
}

/* Footer: theme .footer { background-size: cover } stretches bg-5.png — reset */
footer.footer.site-footer-fixed {
    position: relative;
    overflow: hidden;
    background-color: var(--color-footer-one, #0d0f14) !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    background-size: 100% auto !important;
}

/* Decorative texture layer (above solid fill, behind content) */
footer.footer.site-footer-fixed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(320px, 42vw);
    background-image: inherit;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

footer.footer.site-footer-fixed .footer-top,
footer.footer.site-footer-fixed .footer-bottom {
    position: relative;
    z-index: 1;
}

footer.footer.site-footer-fixed.bg-image-2 {
    background-image: none !important;
}

footer.footer.site-footer-fixed.bg-image-2::after {
    background-image: url("../img/background/bg-5.png");
    opacity: 0.95;
}

footer .footer-widget .logo.mr-bottom-55 {
    margin-bottom: var(--site-stack-lg) !important;
}

/* About page: light spacing tweaks (sections unchanged) */
main.wrapper .divider-line-hr.mr-top-100 {
    margin-top: var(--site-stack-lg) !important;
    margin-bottom: 0;
}

main.wrapper section.wptb-team-one.pd-top-90 {
    padding-top: clamp(2.5rem, 5vw, 4rem) !important;
}

main.wrapper section.wptb-team-one .row.mt-5 img {
    border-radius: var(--site-radius-lg);
    max-height: min(480px, 70vw);
    object-fit: cover;
    object-position: center;
}

/* Service icon boxes */
.wptb-icon-box6 .wptb-item--icon a {
    display: inline-block;
    line-height: 0;
}

.wptb-icon-box6 .wptb-item--icon img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile spacing fixes */
@media (max-width: 991.98px) {
    .header .header_right_part .wptb-element + .wptb-element {
        margin-left: 16px;
        padding-left: 16px;
    }

    .blog-details .pe-md-5 {
        padding-right: calc(var(--bs-gutter-x, 0.75rem) * 0.5) !important;
    }

    .wptb-page-heading .wptb-item--inner {
        padding-top: clamp(2.75rem, 14vw, 5rem) !important;
        padding-bottom: clamp(2.75rem, 14vw, 5rem) !important;
    }

    .wptb-page-heading .wptb-item--title {
        font-size: clamp(1.35rem, 5vw, 2rem);
        line-height: 1.25;
    }

    .wptb-instagram--gallery .wptb-item--inner {
        gap: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header .logo a img {
        max-height: 38px !important;
        max-width: min(132px, 54vw) !important;
    }

    .wptb-project--inner .grid-item {
        width: 100%;
    }

    .col-md-6 .block-gallery {
        margin-bottom: 1rem;
    }
}

/* Services: no caret, click opens dropdown (no /services redirect) */
.header .mainnav ul.main-menu > li.menu-services-dropdown > a.services-menu-trigger::after {
    content: none !important;
    display: none !important;
}

.overlay_menu ul.main-menu > li.menu-services-dropdown > .submenu_opener {
    display: none !important;
}

.header .mainnav ul.main-menu > li.menu-services-dropdown.services-open > ul {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.header .mainnav ul.main-menu > li.menu-services-dropdown > a.services-menu-trigger {
    cursor: pointer;
}

/* ——— Existing menu tweaks ——— */
.header .mainnav ul.main-menu > li.menu-item-has-children > ul {
    min-width: 260px;
    padding: 10px 0;
}

.header .mainnav ul.main-menu > li.menu-item-has-children > ul > li > a {
    display: block;
    padding: 10px 25px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.header .mainnav ul.main-menu > li.menu-item-has-children > ul > li:first-child > a {
    font-weight: var(--fw-semibold);
    color: rgba(var(--color-white-rgb), 0.85);
    border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.overlay_menu ul.main-menu > li.menu-item-has-children > ul {
    display: none;
}

.overlay_menu ul.main-menu > li.menu-item-has-children.nav_open > ul {
    display: block;
}

.overlay_menu ul.main-menu > li.menu-item-has-children > ul > li > a {
    text-align: left;
}
