/*
|--------------------------------------------------------------------------
| Pojedinačna galerija
|--------------------------------------------------------------------------
*/

.msn-gallery-detail,
.msn-gallery-detail * {
    box-sizing: border-box;
}

.msn-gallery-detail {
    position: relative;
    display: block;
    clear: both;
    width: 100%;
    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.msn-gallery-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin: 0 0 32px;
    color: var(--text-2, #70776e);
    font-size: 14px;
    line-height: 1.5;
}

.msn-gallery-detail__breadcrumb a {
    color: inherit;
    transition: color 0.2s ease;
}

.msn-gallery-detail__breadcrumb a:hover {
    color: var(--primary, #506c47);
}


/*
|--------------------------------------------------------------------------
| Naslov
|--------------------------------------------------------------------------
*/

.msn-gallery-detail__header {
    display: block;
    clear: both;
    width: 100%;
    max-width: 980px;
    margin: 0 auto 34px;
    text-align: center;
}

.msn-gallery-detail__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    padding: 8px 16px;
    color: #56724e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(80, 108, 71, 0.18);
    border-radius: 999px;
    background: rgba(80, 108, 71, 0.06);
}

.msn-gallery-detail__title {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.12;
}


/*
|--------------------------------------------------------------------------
| Tekst galerije
|--------------------------------------------------------------------------
*/

.msn-gallery-detail__text {
    position: relative;
    display: block;
    clear: both;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 54px;
    padding: 30px 34px;
    color: var(--text-2, #686f67);
    text-align: left;
    border: 1px solid rgba(73, 99, 67, 0.11);
    border-radius: 20px;
    background: #fafbf8;
}

.msn-gallery-detail__text p {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    color: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    text-align: left;
}

.msn-gallery-detail__text p:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Grid fotografija
|--------------------------------------------------------------------------
*/

.msn-gallery-detail__grid {
    position: relative;
    z-index: 1;
    display: grid;
    clear: both;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.msn-gallery-detail__grid>* {
    float: none !important;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
}

.msn-gallery-detail__item {
    position: relative;
    display: block;
    float: none !important;
    overflow: hidden;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(67, 91, 59, 0.11);
    border-radius: 20px;
    background: #f2f5ee;
    box-shadow: 0 10px 30px rgba(45, 63, 40, 0.07);
}

.msn-gallery-detail__image-link {
    position: relative;
    display: block;
    float: none !important;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
    background: #f2f5ee;
}

.msn-gallery-detail__image-link img {
    display: block;
    float: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.55s ease,
        filter 0.35s ease;
}

.msn-gallery-detail__item:hover .msn-gallery-detail__image-link img {
    transform: scale(1.055);
}


/*
|--------------------------------------------------------------------------
| Hover overlay
|--------------------------------------------------------------------------
*/

.msn-gallery-detail__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(29, 46, 24, 0.34);
    transition: opacity 0.3s ease;
}

.msn-gallery-detail__item:hover .msn-gallery-detail__overlay {
    opacity: 1;
}

.msn-gallery-detail__zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #4c6745;
    font-size: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 35, 20, 0.16);
    transform: translateY(10px) scale(0.94);
    transition: transform 0.3s ease;
}

.msn-gallery-detail__item:hover .msn-gallery-detail__zoom {
    transform: translateY(0) scale(1);
}


/*
|--------------------------------------------------------------------------
| Donje dugme
|--------------------------------------------------------------------------
*/

.msn-gallery-detail__bottom {
    display: flex;
    clear: both;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 52px 0 0;
}

.msn-gallery-detail__bottom .tf-btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991px) {

    .msn-gallery-detail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .msn-gallery-detail__text {
        margin-bottom: 42px;
        padding: 26px 28px;
    }

    .msn-gallery-detail__text p {
        font-size: 16px;
        line-height: 1.8;
    }
}


/*
|--------------------------------------------------------------------------
| Mobilni uređaji
|--------------------------------------------------------------------------
*/

@media (max-width: 575px) {

    .msn-gallery-detail__breadcrumb {
        margin-bottom: 24px;
        font-size: 13px;
    }

    .msn-gallery-detail__header {
        margin-bottom: 26px;
        text-align: left;
    }

    .msn-gallery-detail__eyebrow {
        justify-content: flex-start;
    }

    .msn-gallery-detail__title {
        font-size: 36px;
    }

    .msn-gallery-detail__text {
        margin-bottom: 34px;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .msn-gallery-detail__text p {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .msn-gallery-detail__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .msn-gallery-detail__item {
        border-radius: 16px;
    }

    .msn-gallery-detail__bottom {
        margin-top: 38px;
    }
}

/*
|--------------------------------------------------------------------------
| Fancybox navigacija
|--------------------------------------------------------------------------
*/

.fancybox__nav .f-button {
    width: 52px;
    height: 52px;
    color: #3f5d38;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.fancybox__nav .f-button:hover {
    color: #ffffff;
    background: #4d6845;
    transform: scale(1.05);
}

.fancybox__nav .f-button.is-prev {
    left: 22px;
}

.fancybox__nav .f-button.is-next {
    right: 22px;
}

.fancybox__caption {
    padding: 14px 20px;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
}

.fancybox__backdrop {
    background: rgba(12, 18, 11, 0.92);
}

@media (max-width: 767px) {

    .fancybox__nav .f-button {
        width: 44px;
        height: 44px;
    }

    .fancybox__nav .f-button.is-prev {
        left: 8px;
    }

    .fancybox__nav .f-button.is-next {
        right: 8px;
    }
}