/* Native Cornerstone components. HTML and interaction stay with their original owners. */
.kk-home .kk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 27px 18px;
    border: 1px solid #8c000c;
    border-radius: 5px;
    color: #fff;
    background: var(--kk-color-accent);
    font-size: 21px;
    line-height: 1.3;
    text-shadow: 0 1.5px 1.5px rgb(0 0 0 / 50%);
    transition: background-color .2s;
}

.kk-home .kk-button:hover {
    color: #fff;
    background: var(--kk-color-accent-hover);
}

.kk-home .kk-button .x-anchor-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
}

.kk-home .kk-button .x-anchor-text-primary {
    color: inherit;
    font: inherit;
}

.kk-home .kk-button .x-graphic {
    display: inline-flex;
}

.kk-home .kk-button .x-graphic-primary {
    font-size: 1em;
}

.kk-home .kk-button--library {
    white-space: normal;
}

.kk-home .kk-button--showroom {
    white-space: normal;
}

.kk-home .kk-section--magazine .ivycat-post {
    margin-bottom: 36px;
}

.kk-home .kk-section--magazine .ivycat-post h2 {
    margin: 0 0 24px;
    font-size: 27px;
    font-weight: 100;
}

.kk-home .kk-section--magazine .entry-summary {
    padding: 0;
    text-align: left;
}

.kk-home .kk-section--magazine .entry-summary p+p {
    margin-top: 1.3em;
}

.kk-home .kk-section--magazine .foto img {
    display: block;
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
}

.kk-home .kk-section--magazine small {
    color: #808080;
    font-size: .8em;
}

.kk-home .kk-section--magazine .post {
    background: transparent;
    box-shadow: none;
}

/* Native MediaElement still owns playback; the existing homepage hides its controls. */
.kk-home .kk-video {
    position: relative;
    width: 100%;
    margin: 50px 0;
    border: 0;
    background: #000;
}

.kk-home .kk-video :is(.x-video-inner, .x-video-player, .x-frame-inner) {
    position: relative;
    width: 100%;
    padding: 0;
}

.kk-home .kk-video video {
    display: block;
    width: 100%;
    height: auto;
}

.kk-home .kk-video .mejs-container {
    position: relative;
    width: 100% !important;
    height: auto !important;
    background: #000;
}

.kk-home .kk-video .mejs-mediaelement {
    position: relative;
}

.kk-home .kk-video :is(.mejs-poster, .mejs-overlay, .mejs-controls) {
    display: none;
}

.kk-home .kk-counter {
    text-align: center;
}

.kk-home .kk-counter :is(.x-counter-before, .x-counter-after) {
    display: block;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
}

.kk-home .kk-counter .x-counter-number {
    display: block;
    font-size: 57px;
    font-weight: 100;
    line-height: 1.2;
}

.kk-home .kk-counter .x-counter-number-prefix,
.kk-home .kk-counter .x-counter-number-suffix {
    display: inline;
}

.kk-home .kk-heading .typed-cursor {
    opacity: 1;
}

/* Baseline required by X's existing header, which is styled in x-header.css. */
.kk-home .masthead :is(ul, ol) {
    list-style: none;
}

.kk-home .masthead a {
    text-decoration: none;
}

.kk-home .masthead .x-nav>li>a {
    text-transform: uppercase;
}

.kk-home .masthead .x-nav .sub-menu {
    display: none;
}

.kk-home .masthead .x-nav li:hover>.sub-menu,
.kk-home .masthead .x-nav li:focus-within>.sub-menu {
    display: block;
}

.kk-home .x-nav-wrap.mobile {
    transition: height .3s;
}

.kk-home .x-nav-wrap.mobile.collapse:not(.in) {
    display: none;
}

.kk-home .x-nav-wrap.mobile.collapsing {
    overflow: hidden;
}

.kk-home .x-btn-navbar {
    cursor: pointer;
}

.kk-home .x-btn-navbar .x-icon-bars {
    font-size: 22px;
}

.kk-home .x-navbar-inner>.x-container {
    margin: 0 auto;
}

/* Native icon attributes are kept. Only the font declaration lives here. */
@font-face {
    font-family: "kk-icons";
    src: url("../../../cornerstone/assets/fonts/fa-solid-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: block;
}

.kk-home [data-x-icon-s]::before,
.kk-home [data-x-icon-o]::before,
.kk-home [data-x-icon]::before {
    display: inline-block;
    font: 900 1em/1 "kk-icons";
    speak: never;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.kk-home [data-x-icon-s]::before {
    content: attr(data-x-icon-s);
}

.kk-home [data-x-icon-o]::before {
    content: attr(data-x-icon-o);
}

.kk-home [data-x-icon]::before {
    content: attr(data-x-icon);
}

/* Native modal dialog keeps focus inside the viewer and the page behind it inert. */
html.kk-gallery-open {
    overflow: hidden;
}

.kk-home .kk-gallery-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 16px clamp(12px, 3vw, 48px);
    border: 0;
    background: rgb(12 12 12 / 97%);
    color: #fff;
    font: inherit;
    overflow: hidden;
}

.kk-home .kk-gallery-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
}

.kk-home .kk-gallery-dialog::backdrop {
    background: #0c0c0c;
}

.kk-home .kk-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kk-home .kk-gallery-counter {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.kk-home .kk-gallery-control {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 50%;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    font: 300 40px/1 Arial, sans-serif;
    cursor: pointer;
}

.kk-home .kk-gallery-control:hover {
    background: var(--kk-color-accent);
}

.kk-home .kk-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    touch-action: pan-y pinch-zoom;
}

.kk-home .kk-gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kk-home .kk-gallery-status {
    padding: 0 60px;
    font-size: 16px;
}

.kk-home .kk-gallery-previous,
.kk-home .kk-gallery-next {
    position: absolute;
    top: calc(50% - 24px);
}

.kk-home .kk-gallery-previous {
    left: 0;
}

.kk-home .kk-gallery-next {
    right: 0;
}

.kk-home .kk-gallery-caption {
    min-height: 1.5em;
    max-height: 4.5em;
    overflow: auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}
