/*
Theme Name: Kyokushin Kan
Theme URI:
Author: Amir Abolhasani, Amin Pasban
Author URI: https://namirasoft.com
Description: A custom WordPress theme for the Kyokushin Kan Karate Dojo — left sidebar layout.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyokushin-kan
Tags: custom, dojo, karate, sidebar, responsive
*/

/* ─── Variables ────────────────────────────────────────────────────── */
:root {
    --kk-bg-body: rgb(216, 216, 216);
    --kk-bg-layout: rgb(1, 69, 118);
    --kk-bg-divider: rgb(201, 201, 201);
    --kk-color-link: rgb(62, 143, 201);

    /* Typography */
    --kk-font-body: "Open Sans", sans-serif;
    --kk-font-heading: "Unica One", sans-serif;
    --kk-color-title: rgb(51, 67, 85);
    --kk-color-paragraph: rgb(107, 108, 109);

    /* Button */
    --kk-button-sticky-bg: rgb(51, 51, 51);
    --kk-button-sticky-bg-hover: rgb(85, 85, 85);

    /* Article */
    --kk-article-bg-header: rgb(178, 182, 185);

    /* Sidebar */
    --kk-sidebar-width: 320px;
    --kk-sidebar-bg-overlay: rgba(0, 0, 0, 0.5);
    --kk-sidebar-color-header: rgba(255, 255, 255);
    --kk-sidebar-border-navbar: rgba(255, 255, 255);
    --kk-sidebar-bg-link-active: rgb(255, 255, 255);
    --kk-sidebar-color-link: rgba(255, 255, 255);
    --kk-sidebar-color-link-hover: rgb(137, 182, 255);
    --kk-sidebar-color-link-active: rgb(137, 182, 255);

    /* Footer */
    --kk-footer-color: rgb(161, 161, 161);
}

/* ─── Reset ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--kk-bg-body);
    font-family: var(--kk-font-body);
}

ul,
ol {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--kk-font-heading);
}

p {
    margin: 0;
    font-size: 15px;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Layout ─────────────────────────────────────────────────────────── */
.kk-layout {
    display: flex;
    min-height: 100dvh;
    background-color: var(--kk-bg-body)
}

.kk-page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kk-main {
    flex: 1;
    width: 100%;
}

/* ─── Sticky Button ────────────────────────────────────────────────────── */
.kk-button-sticky {
    position: fixed;
    z-index: 70;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kk-button-sticky-bg);
    opacity: 0.9;
    transition: opacity .35s ease-in-out, background-color .2s ease-in-out;
    font-size: 20px;
    line-height: 20px;
    color: #ffffff;
    cursor: pointer;
}

.kk-button-sticky:hover {
    background-color: var(--kk-button-sticky-bg-hover);
}

/* ─── Divider ────────────────────────────────────────────────────── */
.kk-divider {
    width: 100%;
    height: 1px;
    background-color: var(--kk-bg-divider);
}

@media only screen and (min-width: 768px) {
    .kk-divider {
        margin: 16px 0;
    }
}

/* ─── Divider ────────────────────────────────────────────────────── */
.kk-link {
    color: var(--kk-color-link);
}

.kk-link:hover {
    text-decoration: underline;
}

/* ─── Sidebar ────────────────────────────────────────────────────────── */
.kk-sidebar {
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: var(--kk-sidebar-width);
    min-width: var(--kk-sidebar-width);
    height: 100dvh;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    background-color: var(--kk-bg-layout);
    overflow-y: auto;
    transition: transform 0.35s ease;
}

.kk-sidebar.open {
    transform: translateX(0);
}

body.kk-sidebar-open {
    overflow: hidden;
}

.kk-sidebar__overlay {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    background: var(--kk-sidebar-bg-overlay);
}

.kk-sidebar__overlay.visible {
    display: block;
}

.kk-sidebar__toggle {
    top: 16px;
    left: 16px;
}

/* Sidebar Header */
.kk-sidebar__header {
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.kk-sidebar__logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.kk-sidebar__header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: var(--kk-sidebar-color-header);
}

.kk-sidebar__header-location {
    font-size: 24px;
    font-weight: 300;
    line-height: 28px;
}

.kk-sidebar__header-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}

.kk-sidebar__header-text {
    font-weight: 300;
    line-height: 22px;
}

/* Sidebar Navbar */
.kk-sidebar__navbar {
    display: flex;
}

.kk-sidebar__navbar-list {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.kk-sidebar__navbar-list>li {
    border-bottom: 1px solid var(--kk-sidebar-border-navbar);
}

.kk-sidebar__navbar-list>li:first-child {
    border-top: 1px solid var(--kk-sidebar-border-navbar);
}

.kk-sidebar__navbar-list>li>a {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 2px;
    text-align: center;
    color: var(--kk-sidebar-color-link);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.kk-sidebar__navbar-list>li>a:hover {
    color: var(--kk-sidebar-color-link-hover);
}

.kk-sidebar__navbar-list>li.current-menu-item>a {
    background: var(--kk-sidebar-bg-link-active);
    color: var(--kk-sidebar-color-link-active);
}

@media only screen and (min-width: 992px) {
    .kk-sidebar {
        position: sticky;
        transform: translateX(0);
    }

    body.kk-sidebar-open {
        overflow: auto;
    }

    .kk-sidebar__overlay {
        display: none !important;
    }

    .kk-sidebar__toggle {
        display: none;
    }
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.kk-footer {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: var(--kk-bg-layout);
}

.kk-footer__copy {
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    color: var(--kk-footer-color);
}

.kk-footer__social-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kk-footer__social-link {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
    color: #ffffff;
}

.kk-footer__social-link:hover {
    opacity: 0.8;
}

/* ─── Back to top ─────────────────────────────────────────── */
.kk-back-to-top {
    bottom: 0;
    right: 16px;
    height: 32px;
    border-radius: 6px 6px 0 0;
    opacity: 0;
    visibility: hidden;
}

.kk-back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
}

.kk-back-to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media only screen and (min-width: 992px) {
    .kk-back-to-top {
        right: 48px;
    }
}

/* ─── Article ────────────────────────────────────────────────── */
.kk-article__header {
    padding: 24px 24px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-color: var(--kk-article-bg-header);
}

.kk-article__body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Article Typography */
.kk-article__title,
.kk-article__title-2,
.kk-article__title-3 {
    text-align: center;
    text-transform: uppercase;
    color: var(--kk-color-title);
}

.kk-article__title {
    font-size: 40px;
    font-weight: 400;
    line-height: 52px;
}

.kk-article__title-2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.kk-article__title-3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.kk-article__title-underline {
    width: 100%;
    max-width: 200px;
    height: 1px;
    background-color: var(--kk-color-title);
}

.kk-article__paragraph {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 28px;
    color: var(--kk-color-paragraph);
}

.kk-article__paragraph:last-child {
    margin-bottom: 0;
}

/* Article Section */
.kk-article__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kk-article__col {
    width: 100%;
}

.kk-article__col-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kk-article__col-img img {
    width: auto;
    max-width: 100%;
}

.kk-article__col-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Article List */
.kk-article__list {
    margin-bottom: 20px;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kk-article__list:last-child {
    margin-bottom: 0;
}

.kk-article__list li {
    font-size: 15px;
    line-height: 24px;
    color: var(--kk-color-paragraph);
}

/* Article Description */
.kk-article__desc-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--kk-bg-divider);
}

.kk-article__desc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kk-article__desc-item .kk-article__title-3 {
    text-align: left;
    margin-bottom: 8px;
}

/* Article Table */
.kk-article__table-wrapper {
    overflow-x: auto;
}

.kk-article__table {
    width: 100%;
    border-collapse: collapse;
}

.kk-article__table th {
    padding: 12px 16px;
    background-color: var(--kk-bg-layout);
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
}

.kk-article__table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--kk-bg-divider);
    vertical-align: top;
    line-height: 24px;
    font-size: 15px;
    color: var(--kk-color-paragraph);
}

.kk-article__table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    color: var(--kk-color-title);
}

.kk-article__table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}

.kk-article__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media only screen and (min-width: 768px) {
    .kk-article__header {
        padding: 40px 40px 60px;
    }

    .kk-article__body {
        padding: 0 48px 24px;
    }

    .kk-article__title {
        font-size: 60px;
        line-height: 64px;
    }

    .kk-article__title-2 {
        font-size: 36px;
        line-height: 48px;
    }

    .kk-article__title-3 {
        font-size: 20px;
        line-height: 24px;
    }

    .kk-article__col-img {
        align-items: flex-start;
    }

    .kk-article__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (min-width: 1200px) {
    .kk-article__section {
        flex-direction: row;
        gap: 48px;
    }

    .kk-article__col {
        width: 50%;
    }

    .kk-article__col-text {
        padding-top: 40px;
    }
}

/* ─── Gallery page ───────────────────────────────────────────────────────── */
.kk-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.kk-gallery__item {
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kk-gallery__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.kk-gallery__item-link {
    height: 100%;
    color: inherit;
}

.kk-gallery__item-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--kk-bg-divider);
}

.kk-gallery__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kk-gallery__item:hover .kk-gallery__item-img img {
    transform: scale(1.04);
}

.kk-gallery__item-img-placeholder {
    width: 100%;
    height: 100%;
}

.kk-gallery__item-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kk-gallery__item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    color: var(--kk-color-title);
    font-family: var(--kk-font-body);
}

.kk-gallery__item-date {
    font-size: 13px;
    color: var(--kk-color-paragraph);
}

@media only screen and (min-width: 480px) {
    .kk-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 768px) {
    .kk-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (min-width: 992px) {
    .kk-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 1200px) {
    .kk-gallery__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── Contact Form ────────────────────────────────────────────────── */
.kk-contact-form {
    max-width: 600px;
    margin-top: 32px;
}

.kk-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.kk-form-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--kk-color-title);
}

.kk-form-required {
    color: #c0392b;
}

.kk-contact-form input[type="text"],
.kk-contact-form input[type="email"],
.kk-contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--kk-bg-divider);
    border-radius: 4px;
    background-color: #ffffff;
    font-family: var(--kk-font-body);
    font-size: 15px;
    color: var(--kk-color-title);
    outline: none;
    transition: border-color 0.2s ease;
}

.kk-contact-form input[type="text"]:focus,
.kk-contact-form input[type="email"]:focus,
.kk-contact-form textarea:focus {
    border-color: var(--kk-color-link);
}

.kk-contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.kk-contact-form button[type="submit"] {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    background-color: var(--kk-bg-layout);
    font-family: var(--kk-font-body);
    font-size: 16px;
    letter-spacing: 1px;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.kk-contact-form button[type="submit"]:hover {
    opacity: 0.85;
}

.kk-form-notice {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.kk-form-notice--success {
    background-color: #eaf6ee;
    color: #27ae60;
}

.kk-form-notice--error {
    background-color: #fdf2f2;
    color: #c0392b;
}

/* ─── Single Gallery Album ───────────────────────────────────────────────── */

/* Breadcrumb */
.kk-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 4px;
    font-size: 14px;
    line-height: 20px;
}

.kk-breadcrumb__link {
    color: var(--kk-color-title);
    transition: color 0.15s ease;
}

.kk-breadcrumb__link:hover {
    color: var(--kk-color-title);
    text-decoration: underline;
}

.kk-breadcrumb__sep {
    color: var(--kk-color-title);
    opacity: 0.5;
    margin: 0 2px;
}

.kk-breadcrumb__current {
    color: var(--kk-color-title);
}

/* Album — dark background on the body area below the header */
.kk-album {
    background-color: #29292a;
}

.kk-album__header {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: var(--kk-article-bg-header);
}

.kk-album__title {
    font-size: 36px;
    font-weight: 400;
    line-height: 40px;
    text-transform: uppercase;
    text-align: center;
    color: var(--kk-color-title);
}

.kk-album__content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kk-album__content .wp-block-gallery .wp-block-image {
    margin: 0 !important;
}

.kk-album__content .wp-block-gallery .wp-block-image img,
.kk-album__content .wp-block-gallery .wp-block-image a {
    display: block;
    width: 100%;
}

.kk-album__content .wp-block-gallery .wp-block-image img {
    height: 260px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kk-album__content .wp-block-gallery .wp-block-image img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.kk-album__content .gallery {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 !important;
}

.kk-album__content .gallery-item {
    margin: 0 !important;
    overflow: hidden;
    border-radius: 3px;
}

.kk-album__content .gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kk-album__content .gallery-item img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

@media only screen and (min-width: 576px) {
    .kk-album__content .wp-block-gallery,
    .kk-album__content .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .kk-album__content .wp-block-gallery .wp-block-image img,
    .kk-album__content .gallery-item img {
        height: 300px;
    }
}

@media only screen and (min-width: 768px) {
    .kk-album__content .wp-block-gallery,
    .kk-album__content .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .kk-album__content .wp-block-gallery .wp-block-image img,
    .kk-album__content .gallery-item img {
        height: 380px;
    }
}

@media only screen and (min-width: 1200px) {
    .kk-album__header {
        padding: 124px 32px;
    }

    .kk-album__title {
        font-size: 48px;
    }

    .kk-album__content .wp-block-gallery .wp-block-image img,
    .kk-album__content .gallery-item img {
        height: 440px;
    }
}

/* Previous / Next album navigation */
.kk-album__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
}

.kk-album__nav-link {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    max-width: 46%;
    line-height: 22px;
    transition: color 0.15s ease;
}

.kk-album__nav-link:hover {
    color: #ffffff;
}

.kk-album__nav-link--next {
    margin-left: auto;
    text-align: right;
}

/* Share bar */
.kk-share {
    margin: 24px 24px 0;
    padding: 20px 24px;
    background-color: #3e3e3e;
}

.kk-share__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kk-share__label {
    font-family: var(--kk-font-heading);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255);
}

.kk-share__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kk-share__link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.kk-share__link:hover {
    opacity: 0.8;
}

.kk-share__link svg {
    width: 16px;
    height: 16px;
}

.kk-share__link {
    background-color: #4b4e4f;
    color: #919191;
}

@media only screen and (min-width: 768px) {
    .kk-share {
        margin: 24px 48px 0;
        padding: 28px 48px;
    }
}

/* Related Posts */
.kk-related {
    background-color: #29292a;
    padding: 40px 24px 48px;
}

.kk-related__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.kk-related__title {
    font-family: var(--kk-font-heading);
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 24px;
}

.kk-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.kk-related__item {
    display: block;
    color: inherit;
}

.kk-related__item-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #1a1a1b;
}

.kk-related__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.kk-related__item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 100, 180, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kk-related__item-icon {
    width: 40px;
    height: 40px;
    color: #ffffff;
    stroke-width: 1.5;
}

.kk-related__item:hover .kk-related__item-overlay {
    opacity: 1;
}

.kk-related__item:hover .kk-related__item-img img {
    transform: scale(1.04);
    opacity: 0.85;
}

.kk-related__item-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a1a1b;
}

.kk-related__item-body {
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kk-related__item-title {
    font-family: var(--kk-font-heading);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 22px;
    color: var(--kk-color-link);
    transition: color 0.15s ease;
}

.kk-related__item:hover .kk-related__item-title {
    color: #7fc4f5;
}

.kk-related__item-date {
    font-size: 14px;
    color: rgba(255, 255, 255);
}

@media only screen and (min-width: 480px) {
    .kk-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 768px) {
    .kk-related {
        padding: 48px 48px 56px;
    }
    
    .kk-related__title {
        font-size: 26px;
    }
}

@media only screen and (min-width: 1200px) {
    .kk-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Lightbox */
.kk-lightbox {
    position: fixed;
    z-index: 200;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kk-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.kk-lightbox__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 64px;
    max-width: 100%;
    max-height: 100%;
}

.kk-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}

.kk-lightbox__caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    max-width: 600px;
    min-height: 18px;
}

.kk-lightbox__close,
.kk-lightbox__prev,
.kk-lightbox__next {
    position: fixed;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s ease;
    line-height: 1;
    padding: 12px;
}

.kk-lightbox__close:hover,
.kk-lightbox__prev:hover,
.kk-lightbox__next:hover {
    opacity: 1;
}

.kk-lightbox__close {
    top: 16px;
    right: 20px;
    font-size: 40px;
}

.kk-lightbox__prev,
.kk-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

.kk-lightbox__prev {
    left: 8px;
}

.kk-lightbox__next {
    right: 8px;
}

/* ─── Default Classes ──────────────────────────────────────────────────────── */
.kk-mb-2 {
    margin-bottom: 0.5rem !important;
}

.kk-mb-4 {
    margin-bottom: 1rem !important;
}

.kk-mb-8 {
    margin-bottom: 2rem !important;
}

.kk-pt-10 {
    padding-top: 2.5rem !important;
}

.kk-pt-6 {
    padding-top: 1.5rem !important;
}

.kk-text-center {
    text-align: center !important;
}

.kk-text-left {
    text-align: left !important;
}

.kk-text-bold {
    font-weight: bold !important;
}