

/* Wrapper styles */
.jk-portfolio-wrapper {
    margin: 2rem 0;
    font-family: sans-serif;
}

/* Tabs */
.jk-tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}
.jk-tab-button {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: bold;
    font-size:1rem;
    border-bottom: 2px solid transparent;
    border-radius: 15px;
}
.jk-tab-button.active {
    color: var(--topbar-link-color, #fff);
    background: var(--topbar-bg, #333);
}

.jk-tab-button.active:hover {
    color: var(--topbar-link-color, #fff);
    background: var(--topbar-bg, #333);
}

.jk-tab-button:hover {
    color: var(--topbar-link-colorover, #fff);
    background: var(--topbar-bgover, #333);
}

/* Tab content */
.jk-tab-content {
    display: none;
}
.jk-tab-content.active {
    display: block;
}

.jk-tab-content {
    opacity: 0;
    transition: opacity 2.3s ease;
    height: 0;
    overflow: hidden;
}
.jk-tab-content.active {
    opacity: 1;
    height: auto;
}


/* Accordion */
.jk-accordion-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size:1rem;
    font-weight: bold;
    background: var(--outer-bg, #f1f1f1);
    color: var(--menu-link-color, #333);
    border: none;
    border-radius:15px;
    cursor: pointer;
    margin-top: 1rem;
}
.jk-accordion-content {
    padding: 1rem;
    border: 1px solid #ddd;
    border-top: none;
}
.jk-accordion-content.active {
    display: block;
}

/* Accordion content */
.jk-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-top: none;
}

/* When active */
.jk-accordion-content.active {
    max-height: 5000px; /* Large enough to fit content */
    padding: 1rem;
}


/* Grid */
.jk-grid {
    display: grid;
    gap: 1rem;
    text-align:center;
}
.jk-columns-2 { grid-template-columns: repeat(2, 1fr); }
.jk-columns-3 { grid-template-columns: repeat(3, 1fr); }
.jk-columns-4 { grid-template-columns: repeat(4, 1fr); }

.jk-item {
    border: 1px solid #ccc;
    padding: 1rem;
    background: #fff;
}
.jk-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}


.jk-meta {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}
.jk-meta p {
    margin: 0.25rem 0;
}


/* Portfolio Post */
.jk-portfolio-single {
    position:relative;
    max-width: 960px;
    width:100%;
    margin: 0 auto;
    font-size: 1.3rem;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    box-shadow: #ddd 2px 3px 125px;
}

.jk-portfolio-header-wrapper {
    padding: 1rem 2.5rem;
    background: #333;
    color:#fff;
}

.jk-portfolio-inner-wrapper {
    padding: 1rem 2.5rem;
}

.jk-portfolio-single a {
    color: #333;
    font-weight:900;
    text-decoration:none;
}

.jk-portfolio-single a:hover {
    text-decoration:underline;
}

.jk-category-label {
    font-size: 0.9rem;
}

.jk-featured-image {
    background:#333;
}

.jk-featured-image img {
    max-height:300px;
    width:auto;
    max-width:100%;
    left:50%;
    right:50%;
    border-bottom: solid 4px #333;
}
.jk-meta {
    margin-top: 2rem;
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-size: 1rem;
    color: #333;
    background: #ECE280;
}
.jk-meta p {
    margin: 0.5rem 0;
}

.fade-in {
  animation: fadeIn ease 3s;
  -webkit-animation: fadeIn ease 3s;
  -moz-animation: fadeIn ease 3s;
  -o-animation: fadeIn ease 3s;
  -ms-animation: fadeIn ease 3s;
}
@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-moz-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-o-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-ms-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

.jk-back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: var(--topbar-bg, #333);
    color: var(--topbar-link-color,#fff);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position:absolute;
    top:0.5rem;
    right:0.5rem;
}
.jk-back-button:hover {
    background-color: var(--topbar-bg,#333);
}
