.itp-feature-cover { position: relative; }
.itp-feature-link { position: absolute; inset: 0; display: block; z-index: 2; }
.itp-feature-link:focus-visible { outline: 3px solid #a8c0ff; outline-offset: -4px; }

@view-transition { navigation: auto; }
::view-transition { background: #000b15; }
::view-transition-group(root) { animation-duration: 200ms; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Give the preview and its caption independent rows, also while the pointer is over it. */
.elementor-130 .itp-roll-case--editor .itp-roll-case__feature > .itp-roll-case__feature-art {
    position: relative;
    overflow: hidden !important;
    flex: none;
    height: clamp(162px, 48vw, 276px) !important;
    min-height: 0 !important;
    max-height: none !important;
}
.elementor-130 .itp-roll-case--editor .itp-roll-case__feature-art > .elementor-widget-image {
    position: absolute;
    inset: clamp(10px, 2vw, 18px);
    width: auto;
    height: auto;
    margin: 0;
}
.elementor-130 .itp-roll-case--editor .itp-roll-case__feature .itp-roll-case__feature-art .elementor-widget-image img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
@media (max-width: 767px) {
    /* svh is stable while the mobile browser's address bar opens or closes. */
    .home #main-content .itp-cyber--home .itp-cyber__hero {
        min-block-size: max(0px, calc(100svh - var(--itp-hero-start, 126px) - 18px));
        align-content: space-evenly;
        --itp-hero-scene-gap: clamp(18px, 3svh, 30px);
    }
    .itp-home-plus #services.itp-hp__section { padding-block-start: 20px; }
}

@media (max-width: 720px) {
    /* Shift the hero rows upward while keeping the first screen's height. */
    .home #main-content .itp-cyber--home .itp-cyber__hero {
        --itp-hero-lift: min(16px, var(--itp-hero-padding-top));
        padding-block: calc(var(--itp-hero-padding-top) - var(--itp-hero-lift))
            calc(var(--itp-hero-padding-bottom) + var(--itp-hero-lift));
    }
}

header .itp-capsule-logo > a > .itp-header-logo,
header .itp-capsule-logo .elementor-widget-image a > .itp-header-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

header.itp-bacalar-header .itp-capsule-logo img[src$="/it-platinum-header-logo.svg"] {
    width: 100% !important;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    header img[src$="/it-platinum-header-logo.svg"] {
        content: url("it-platinum-header-logo-still.svg");
    }
}

@media (max-width: 768px) {
    body:not(.elementor-editor-active) header.itp-capsule-header.itp-p1-header {
        position: relative !important;
    }
}

/* Shared content width across the Elementor and Rhye templates. */
:root {
  --itp-layout-max: 1240px;
  --itp-layout-gutter: clamp(16px, 4.25vw, 68px);
  --itp-layout-width: min(calc(100% - 2 * var(--itp-layout-gutter)), var(--itp-layout-max));
}

@media (max-width: 767px) {
  :root { --itp-layout-gutter: 16px; }
}

body:has(.itp-home-plus) { --itp-home-grid: var(--itp-layout-width) !important; }
body:has(.itp-roll-case__wrap) { --itp-case-grid: var(--itp-layout-width) !important; }

body .elementor[data-elementor-type="wp-page"] :is(header.itp-site-header, footer.itp-site-footer),
body .elementor[data-elementor-type="wp-page"] > .e-con > :is(section, main).e-con-boxed,
body .elementor[data-elementor-type="wp-page"] > .e-con > main > section.e-con-boxed {
  padding-inline: 0 !important;
}

body .elementor[data-elementor-type="wp-page"] :is(header.itp-site-header, footer.itp-site-footer) > .e-con-inner,
body .elementor[data-elementor-type="wp-page"] > .e-con > :is(section, main).e-con-boxed > .e-con-inner,
body .elementor[data-elementor-type="wp-page"] > .e-con > main > section.e-con-boxed > .e-con-inner,
body .elementor[data-elementor-type="wp-page"] :is(header.itp-bacalar-header, footer.itp-bacalar-footer).e-con,
body .elementor[data-elementor-type="wp-page"] section.itp-services-showcase,
body .elementor .itp-roll-case .itp-roll-case__wrap,
body header.itp-capsule-fallback > .itp-capsule-grid,
body header.itp-error-header > .e-con-inner,
body footer.itp-capsule-footer > .itp-capsule-footer-panel,
body section.itp-error-page {
  width: var(--itp-layout-width) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.itp-privacy-policy { width: 100% !important; }

.itp-privacy-policy > :is(h1, h2, h3, p, ul, ol) {
  max-width: 78ch;
  margin-inline: auto !important;
}

/* Some case templates already put this card inside a boxed Elementor section. */
body .elementor .itp-roll-case__wrap .itp-next-case-card {
  width: 100%;
}

body .elementor .section-nav-projects:has(.section-nav-projects__link)::before {
  inset-inline: max(var(--itp-layout-gutter), calc((100% - var(--itp-layout-max)) / 2)) !important;
}

body .elementor .e-con-boxed > .e-con-inner .section-nav-projects:has(.section-nav-projects__link) {
  width: 100% !important;
  max-width: 100% !important;
}

body .elementor .e-con-boxed > .e-con-inner .section-nav-projects:has(.section-nav-projects__link)::before {
  inset-inline: 0 !important;
}
