#siseviimistlus {
    padding: 75px 5% 75px;
    color: inherit;
    max-width: 1600px;
    margin: 0 auto;
	width:100%;
}

#siseviimistlus .fv-finish-intro {
    padding-bottom: clamp(40px, 6vw, 100px);
}

#siseviimistlus h1 {
    font-size: clamp(44px, 6vw, 96px);
    font-weight: 400;
    line-height: 1.05;
    margin: 15px 0 25px;
}

#siseviimistlus .fv-finish-lead {
    max-width: 760px;
    line-height: 1.7;
}

#siseviimistlus .fv-finish-layout {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.5fr);
    gap: clamp(35px, 6vw, 110px);
    align-items: start;
}

#siseviimistlus .fv-finish-group {
    margin-bottom: 52px;
}

#siseviimistlus .fv-finish-group h2 {
    font-size: clamp(23px, 2.2vw, 34px);
    font-weight: 400;
    margin: 0 0 12px;
}

#siseviimistlus .fv-finish-group p {
    line-height: 1.6;
    opacity: .7;
    margin: 0 0 26px;
}

#siseviimistlus .fv-finish-choice {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: transparent;
    color: inherit;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 19px 0;
    cursor: pointer;
    font: inherit;
    font-size: clamp(19px, 2vw, 29px);
    opacity: .55;
    transition: opacity .25s, padding .25s;
}

#siseviimistlus .fv-finish-choice:hover,
#siseviimistlus .fv-finish-choice.is-selected {
    opacity: 1;
    padding-left: 12px;
	transform: translateY(0px);
}

#siseviimistlus .fv-finish-arrow {
    font-size: 24px;
}

#siseviimistlus .fv-finish-preview {
    position: sticky;
    top: 35px;
}

#siseviimistlus .fv-finish-preview-head {
    margin-bottom: 24px;
}

#siseviimistlus .fv-finish-preview-head h2 {
    font-weight: 400;
    font-size: clamp(32px, 4vw, 64px);
    margin: 8px 0;
}

#siseviimistlus .fv-finish-preview-head p {
    line-height: 1.5;
}

#siseviimistlus .fv-finish-stage {
    position: relative;
   /* aspect-ratio: 4/3;*/
    background: #e8e5e0;
    overflow: hidden;
    display: grid;
    place-items: center;
}

#siseviimistlus .fv-finish-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#siseviimistlus .fv-finish-stage img[hidden] {
    display: none;
}

#siseviimistlus .fv-finish-stage button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, .9);
    width: 40px;
    /* height: 44px; */
    font-size: 30px;
    cursor: pointer;
    color: #3a3e48;
}

#fv-finish-prev {
    left: 12px;
}

#fv-finish-next {
    right: 12px;
}

#fv-finish-counter {
    position: absolute;
    bottom: 15px;
    right: 18px;
    background: rgba(255, 255, 255, .9);
    padding: 5px 10px;
    font-size: 12px;
}
#siseviimistlus .fv-finish-thumbs {
    overflow-x: auto;
    overflow-y: hidden;

    /* Firefox */
    scrollbar-width: none;

    /* Internet Explorer / vana Edge */
    -ms-overflow-style: none;
}

/* Chrome, Safari ja Edge */
#siseviimistlus .fv-finish-thumbs::-webkit-scrollbar {
    display: none;
}
#siseviimistlus .fv-finish-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 12px;
    height: 100px;
}

#siseviimistlus .fv-finish-thumbs button {
    flex: 0 0 90px;
    height: 65px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
}

#siseviimistlus .fv-finish-thumbs button.is-active {
    border-color: currentColor;
}

#siseviimistlus .fv-finish-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#siseviimistlus .fv-finish-note {
    font-size: 12px;
    opacity: .65;
    margin: 16px 0 25px;
}

@media (max-width: 850px) {
    #siseviimistlus .fv-finish-layout {
        grid-template-columns: 1fr;
    }

    #siseviimistlus .fv-finish-preview {
        position: static;
        grid-row: 1;
    }

    #siseviimistlus .fv-finish-options {
        grid-row: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    #siseviimistlus * {
        transition: none !important;
    }
}

@media (max-width: 850px) {

    /* Paketid enne galeriid */
    #siseviimistlus .fv-finish-options {
        grid-row: 1;
    }

    /* Galerii pakettide järel */
    #siseviimistlus .fv-finish-preview {
        grid-row: 2;
        position: static;
        scroll-margin-top: 80px;
    }

    /* Galerii toetab sõrmega libistamist */
    #siseviimistlus .fv-finish-stage {
        touch-action: pan-y;
    }

    /* Peidame pisipiltide scrolliriba */
    #siseviimistlus .fv-finish-thumbs {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #siseviimistlus .fv-finish-thumbs::-webkit-scrollbar {
        display: none;
    }

}

/* ==========================================
   FAEHLMANNI – GALERII NUPUD
========================================== */

#siseviimistlus .fv-finish-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 25px;
}

#siseviimistlus .fv-finish-back {
    display: none;
}

/* Mobiil */
@media (max-width: 850px) {

    #siseviimistlus .fv-finish-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    #siseviimistlus .fv-finish-actions .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 48px;
        padding: 12px 10px;
        margin: 0;
        box-sizing: border-box;
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
        text-decoration: none;
        white-space: normal;
    }

    #siseviimistlus .fv-finish-back {
        display: inline-flex;
        background: transparent;
        color: inherit;
        border: 1px solid currentColor;
        cursor: pointer;
    }

    #siseviimistlus .fv-finish-back span:last-child {
        font-size: 18px;
        line-height: 1;
    }

}

/* ==========================================
   FAEHLMANNI – LIGHTBOX
========================================== */

/* Suur pilt on klikitav */

#siseviimistlus #fv-finish-image {
    cursor: zoom-in;
}

/* Lightbox taust */

.fv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgb(255 255 255);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 70px;
    box-sizing: border-box;
    color: #000000;
}

.fv-lightbox[hidden] {
    display: none !important;
}

/* Pildi konteiner */

.fv-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
}

.fv-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 155px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Pildi info */

.fv-lightbox-info {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    padding-top: 18px;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.7);
}

/* Nupud */

.fv-lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: #3a3e48;
    background: transparent;
    cursor: pointer;
    transition: opacity .25s ease;
	    transition: all 0.3s ease;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgb(0 0 0 / 0%);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    display: inline-block;
}

.fv-lightbox button:hover {
    opacity: .55;
}

.fv-lightbox button[hidden] {
    display: none;
}

/* Sulgemine */

.fv-lightbox-close {
    top: 18px;
    right: 25px;
    width: 44px;
    height: 44px;
    font-size: 38px;
    font-weight: 300;
    z-index: 2;
}

/* Eelmine / järgmine */

.fv-lightbox-prev,
.fv-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    font-size: 50px;
    font-weight: 300;
}

.fv-lightbox-prev {
    left: 15px;
}

.fv-lightbox-next {
    right: 15px;
}

/* ==========================================
   MOBIIL
========================================== */

@media (max-width: 767px) {
	
.fv-lightbox button {
 	border-radius:0px;
    background-color: white;
   
}
.fv-lightbox button {
  
    display: flex !important;
  
}
    .fv-lightbox {
        padding: 65px 12px;
    }

    .fv-lightbox-image {
        max-height: calc(100dvh - 175px);
    }

    .fv-lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 34px;
    }

    .fv-lightbox-prev,
    .fv-lightbox-next {
        width: 38px;
        height: 45px;
        font-size: 36px;
        background: rgba(0,0,0,.35);
        border-radius: 50%;
    }

    .fv-lightbox-prev {
        left: 8px;
    }

    .fv-lightbox-next {
        right: 8px;
    }

    .fv-lightbox-info {
        font-size: 12px;
        padding-top: 15px;
    }
}
