#ks-qe-event-form,
#ks-qe-notice-form{
    max-width:760px;
    margin:30px auto;
}

.ks-qe-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    margin-bottom:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.ks-qe-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.ks-qe-card label,
.ks-qe-grid label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
}

#ks-qe-event-form input,
#ks-qe-event-form textarea,
#ks-qe-event-form select,
#ks-qe-notice-form input[type="text"],
#ks-qe-notice-form input[type="date"],
#ks-qe-notice-form input[type="time"],
#ks-qe-notice-form textarea{


    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:16px;
    box-sizing:border-box;

}

#ks-image-preview{

    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:15px;

}

.ks-qe-preview-image{

    width:120px;
    height:120px;
    border-radius:14px;
    object-fit:cover;
    box-shadow:0 5px 20px rgba(0,0,0,.15);

}

.ks-qe-button{

    width:100%;
    padding:18px;
    border:none;
    border-radius:14px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    background:#2563eb;
    color:#fff;

}

.ks-qe-button:hover{

    background:#1d4ed8;

}


.ks-qe-checkbox-group {
    margin-bottom: 24px;
}

.ks-qe-group-label {
    display: block;
    margin-bottom: 0px;
    font-weight: 600;
}

.ks-qe-checkbox-list {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 10px;
}

.ks-qe-checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.ks-qe-checkbox-item:hover {
    border-color: #2271b1;
    background: #f6faff;
}

.ks-qe-checkbox-item input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.ks-qe-checkbox-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin: 0;
}

.ks-qe-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
   margin: 0 !important;
}


.ks-upload-status {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}

.ks-upload-status__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

#ks-upload-progress {
    display: block;
    width: 100%;
    height: 14px;
}

#ks-submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

#ks-image-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ks-qe-preview-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #f1f3f5;
    cursor: grab;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        opacity 0.18s ease;
}

.ks-qe-preview-item:active {
    cursor: grabbing;
}

.ks-qe-preview-item.is-dragging {
    opacity: 0.35;
    transform: scale(0.96);
}

.ks-qe-preview-item.is-drag-over {
    border-color: #2271b1;
    transform: scale(1.03);
}

.ks-qe-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-qe-preview-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.ks-qe-preview-handle,
.ks-qe-preview-remove {
    position: absolute;
    top: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.ks-qe-preview-handle {
    left: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #202124;
    font-size: 19px;
    cursor: grab;
    touch-action: none;
}

.ks-qe-preview-remove {
    right: 8px;
    background: rgba(180, 20, 20, 0.92);
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.ks-qe-preview-ghost {
    position: fixed;
    z-index: 999999;
    margin: 0;
    opacity: 0.88;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

body.ks-qe-is-sorting {
    overflow: hidden;
    user-select: none;
}

@media (max-width: 700px) {

    #ks-image-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ks-qe-preview-item {
        border-radius: 11px;
    }

    .ks-qe-preview-badge {
        font-size: 11px;
    }
}








/* galerija */


.ks-event-gallery {
    margin-top: 42px;
}

.ks-event-gallery__title {
    margin: 0 0 18px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.ks-event-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 10px;
}

.ks-event-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #eef1f4;
    cursor: zoom-in;
}

.ks-event-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.ks-event-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ks-event-gallery__item:hover .ks-event-gallery__image {
    transform: scale(1.04);
}

.ks-event-gallery__counter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 15, 28, 0.62);
    color: #fff;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    pointer-events: none;
}

.ks-event-gallery__hidden-item {
    display: none;
}

@media (max-width: 900px) {

    .ks-event-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
    }

    .ks-event-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 600px) {

    .ks-event-gallery {
        margin-top: 30px;
    }

    .ks-event-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 130px;
        gap: 7px;
    }

    .ks-event-gallery__item {
        border-radius: 10px;
    }

    .ks-event-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}








/*
 * PhotoSwipe prilagoditve.
 */

.pswp {
    --pswp-bg: rgba(5, 10, 20, 0.96);
}

.pswp__counter {
    height: 44px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 44px;
    text-shadow: none;
    opacity: 0.9;
}

.pswp__button {
    width: 48px;
    height: 48px;
}

.pswp__button--close {
    margin: 8px 8px 0 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
}

.pswp__button--arrow--prev,
.pswp__button--arrow--next {
    width: 54px;
    height: 70px;
    margin-top: -35px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 700px) {

    .pswp__button--arrow--prev,
    .pswp__button--arrow--next {
        display: none;
    }

    .pswp__button--close {
        width: 44px;
        height: 44px;
    }
}

#ks-qe-notice-form{
    max-width:760px;
    margin:30px auto;
}
#ks-qe-notice-form .ks-qe-unit-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-top:12px;
}
#ks-qe-notice-form input[type="radio"]{
    width:18px !important;
    height:18px !important;
    flex:0 0 18px;
    margin:0;
}
#ks-notice-submit-button:disabled{
    cursor:wait;
    opacity:.65;
}
@media(max-width:700px){
    #ks-qe-notice-form .ks-qe-unit-list{grid-template-columns:1fr;}
}
