/* GRID */

.ek-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ek-portfolio-grid--home {
    row-gap: 0;
    column-gap: 0;
}

@media (max-width: 1024px) {

    .ek-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .ek-portfolio-grid {
        grid-template-columns: 1fr;
    }

}

/* GRID Eelement - Job card */

.ek-job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
}

.ek-job-card--home {
    box-shadow: none;
    color: var(--base);
}

.ek-job-card--home:nth-child(1) {
    background: rgba(0,0,0,0.75);
}

.ek-job-card--home:nth-child(2) {
    background: rgba(245, 82, 0, 0.75);
}

.ek-job-card--home:nth-child(3) {
    background: rgba(51, 51, 51, 0.75);
}

/* GRID Element Header */

.ek-job-header {
    padding: 30px 20px;
    text-align: center;
}

.ek-job-card--home .ek-job-header {
    padding: 60px 20px;
}

.ek-job-title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

/* GRID Element Image */

.ek-job-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* GRID Element Footer */

.ek-job-footer {
    display: flex;
    column-gap: 20px;
    align-items: center;

    padding: 30px;
}

.ek-job-footer-section {
    display: flex;
    align-items: center;
    column-gap: 15px;

}

.ek-job-card--home .ek-job-footer {
    padding: 45px 20px 30px 20px;
}

.ek-job-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.ek-job-card--home .ek-job-line {
    background: rgba(255, 255, 255, 0.5);
}

/* FOOTER Link */

.ek-job-link {
    color: var(--contrast-2);
    text-decoration: none;

}

.ek-job-card--home .ek-job-link {
    color: var(--base);
}

/* JOB CARD Footer Bar */

.ek-job-footer-bar {
    text-align: center;
    margin-bottom: 30px;
}

.ek-job-card--home .ek-job-footer-bar {
    margin-bottom: 45px;
}

/* GRID Element Button */

.ek-gallery-open {
    margin: 0 30px;

    background: var(--contrast-2);
    border: none;

    font-size: 18px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.ek-job-card--home .ek-gallery-open {
    background: none;
    padding: 15px 30px;
    border: 1px solid #fff;
}

a.ek-gallery-open {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--base);
}

.ek-gallery-open:hover {
    background: var(--accent);
    color: #fff;
}

/* PhotoSwipe overlay background */

.pswp {
    background: rgba(10, 10, 12, 0.55) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Photoswipe caption */

.ek-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 16px 24px;

    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 1000;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.ek-caption.is-empty {
    opacity: 0;
    visibility: hidden;
}

.ek-single-gallery {
    margin: 30px 0;
}