/* =========================================================
   MY JAT - Photo Gallery
   ========================================================= */

.myjat-gallery {

width:100%;
margin:70px 0 80px;
padding:15 0 15 0;
position:relative;
z-index:5;
border-radius: var(--myjat-radius-1);
color: black;



}

.myjat-gallery-head {
    text-align: center;
    margin-bottom: 22px;
}

.myjat-gallery-head h2 {
    margin: 0 0 7px;
    font-size: 30px;
}

.myjat-gallery-head p {
    margin: 0;
    font-size: 15px;
    opacity: .75;
}

.myjat-gallery-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.myjat-gallery-viewport {
    width: 100%;
    overflow: hidden;
}

.myjat-gallery-track {
    display: flex;
    gap: 16px;
    will-change: transform;
    transition: transform .8s ease;
}

.myjat-gallery-item {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--myjat-radius-1);
    aspect-ratio: 4 / 3;
}

.myjat-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.myjat-gallery-item:hover img {
    transform: scale(1.04);
}

.myjat-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 11px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .72)
    );
    text-align: left;
    font-size: 14px;
}

.myjat-gallery-arrow {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--myjat-radius-1);
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.myjat-gallery-arrow:hover {
    opacity: .85;
}


/* =========================================================
   Lightbox
   ========================================================= */

.myjat-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .86);
}

.myjat-gallery-lightbox.is-open {
    display: flex;
}

.myjat-gallery-lightbox-content {
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    text-align: center;
}

.myjat-gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    border-radius: var(--myjat-radius-1);
}

.myjat-gallery-lightbox-caption {
    margin: 12px 0 0;
    color: #fff;
    font-size: 15px;
}

.myjat-gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--myjat-radius-1);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}



.myjat-gallery-empty {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--myjat-radius-1);
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

.myjat-gallery-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.myjat-gallery-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.myjat-gallery-empty p {
    margin: 0;
    max-width: 550px;
    font-size: 14px;
    opacity: .75;
}


.myjat-gallery-caption-form {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.myjat-gallery-caption-form input {
    min-width: 0;
    flex: 1;
    padding: 7px 9px;
    border: 1px solid #ddd;
    border-radius: var(--myjat-radius-1);
    box-sizing: border-box;
    font-size: 12px;
}

.myjat-gallery-caption-form button {
    padding: 7px 10px;
    border: 0;
    border-radius: var(--myjat-radius-1);
    background: #222;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.myjat-gallery-caption-form button:hover {
    opacity: .85;
}