/* ----------------------------------------------------------
   WRAPPER GENERAL
---------------------------------------------------------- */

.ktm-ps-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 120px;
    text-align: center;
    font-family: "Times New Roman", serif;
}

/* ----------------------------------------------------------
   TITLU MARE (fără PORTFOLIO)
   - îl coborâm un pic ca să intre peste imagini
---------------------------------------------------------- */

.ktm-ps-main-title {
    text-transform:uppercase!important;
    font-size: 80px!important;
    letter-spacing: 0.08em;
    margin: 0 0 -90px!important;          /* margin-bottom NEGATIV = intră peste imagini */
    position: relative;
    z-index: 2;                 /* peste slider */
}

/* ----------------------------------------------------------
   CATEGORII
---------------------------------------------------------- */

.ktm-ps-categories {
    position: relative;
    margin-top: 40px;           /* spațiu între titlu și slider */
}

.ktm-ps-category {
    display: none;
    position: relative;
}
.ktm-ps-category.is-active {
    display: block;
}

/* ----------------------------------------------------------
   SLIDER (Flickity)
---------------------------------------------------------- */

.ktm-ps-slider {
    width: 100%;
    overflow: visible;
}

/* ----------------------------------------------------------
   CELULE (3 imagini în viewport)
---------------------------------------------------------- */

.ktm-ps-cell {
    width: 33.3333%;
    padding: 0 12px;                /* spațiu între imagini */
    box-sizing: border-box;
    overflow: visible;
}

/* ----------------------------------------------------------
   IMAGINI – implicit laterale (mici)
---------------------------------------------------------- */

.ktm-ps-cell img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(0.8);          /* LATERALE – 0.8 */
    opacity: 1!important;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ----------------------------------------------------------
   IMAGINEA DIN MIJLOC – normală, clară
---------------------------------------------------------- */

.ktm-ps-cell.is-center img {
    transform: scale(1) !important; /* CENTRU – normal */
    opacity: 1 !important;
}

/* ----------------------------------------------------------
   SĂGEȚI (SVG)
---------------------------------------------------------- */

.ktm-ps-arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding: 0 5%;
}

.ktm-ps-arrows button {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
    color: inherit;
}

/* SVG arrow */
.ktm-ps-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.ktm-ps-arrow svg {
    width: 78px;
    height: auto;          /* viewBox cropped => se scalează corect */
    display: block;
    fill: currentColor;
    opacity: 0.9;
}

/* flip left */
.ktm-ps-arrow-left svg {
    transform: rotate(180deg);
    transform-origin: 50% 50%;
}

/* hover */
.ktm-ps-arrows button:hover,
.ktm-ps-arrows button:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    opacity: 0.75;
}


/* ----------------------------------------------------------
   NAV DE TABURI (browse: EDITORIAL / WEDDINGS / TRAVEL…)
---------------------------------------------------------- */

.ktm-ps-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    font-family: "Georgia", serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.ktm-ps-tabs-label {
    opacity: 0.6;
}

/* tab-urile doar text, fără chenare */

.ktm-ps-tab {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 0 0 0px!important;
    position: relative;
    outline: none;
}

/* fără fundal / chenar la hover */

.ktm-ps-tab:hover,
.ktm-ps-tab:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

/* underline doar pe categoria activă */

.ktm-ps-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    bottom: 0;
    margin: 0 auto;
    width: 60%;
    background: #000;
}

/* când underline este dezactivat din widget */
.ktm-ps-tabs-no-underline .ktm-ps-tab.is-active::after {
    display: none;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 1024px) {
    .ktm-ps-cell {
        width: 40%;
    }
}

@media (max-width: 767px) {
    
    .ktm-ps-wrapper {
    margin: 0!important;
}

    .ktm-ps-cell {
        width: 70%;
    }

    .ktm-ps-main-title {
        font-size: 1.5em!important;
        margin-bottom: -50px!important;
    }

    .ktm-ps-arrows {
        padding: 0 15%!important;
    }

    /* TAB-URILE una sub alta, centrate pe mobil */
    .ktm-ps-tabs-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
