/* ==========================================
   Zaglavlje na tabletu i mobitelu (do 991 px), po primjeru iz T 959807:
   red 1: rotator poruka (Nazovite / Posaljite poruku)
   red 2: logo lijevo, drustvene mreze desno
   red 3: gumb ZATRAZITE PONUDU lijevo, izbornik desno
   Omotaci zaglavlja dobiju display:contents, pa njihovi dijelovi postanu
   celije jedne mreze. Desktop (od 992 px) se ne mijenja. Claude, T 959807
   ========================================== */
@media (max-width: 991.98px) {
    #header .header-column.top.justify-content-end {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "rot  rot"
            "logo soc"
            "cta  menu";
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
        align-items: center;
        column-gap: 12px;
        row-gap: 12px;
        width: 100%;
        padding: 0 15px 14px;
        background: #222;
    }
    #header .header-container > .header-row {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    #header .header-column.top.justify-content-end > .header-row,
    #header .header__social-inner,
    #header .header__wrapper-social,
    #header .header-column.top.container-xl,
    #header .header-row.logo-inner,
    #header .header-nav.down-menu {
        display: contents !important;
    }

    /* red 1: rotator, visok 52 px (toliko sticky zaglavlje sakrije pri skrolanju) */
    #header .header__wrapper-social > .desktopAndMobileClass:has(.notice-rotator) {
        grid-area: rot;
        justify-self: stretch;
        min-width: 0;
        padding: 10px 0;
        margin: 0 -15px;
        text-align: center;
        border-bottom: 1px solid #333;
    }
    #header .notice-rotator,
    #header .notice-rotatorlist {width: 100%; min-width: 0; padding: 0;}
    #header .notice-rotatoritem a {justify-content: center; padding: 0;}
    #header .notice-rotatoritem a {font-size: 14px;}

    /* red 2: logo + drustvene mreze */
    #header .header-logo {
        grid-area: logo;
        position: static;
        margin: 0;
        top: auto;
    }
    #header .header-logo a {display: block;}
    #header .header-logo img {
        display: block;
        position: static;
        top: auto;
        width: auto !important;
        height: 56px !important;
        max-width: 150px;
        object-fit: contain;
    }
    #header .header__wrapper-social > .desktopAndMobileClass:has(.header-social-icons) {
        grid-area: soc;
        justify-self: end;
    }
    #header .header-social-icons {
        display: flex !important;
        gap: 8px;
        margin: 0;
        padding: 0;
    }
    #header .header-social-icons li {margin: 0;}
    #header .header-social-icons li a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
    }

    /* red 3: gumb ponude + izbornik */
    #header .header__wrapper-social > .desktopAndMobileClass:has(.header-nav-top) {
        grid-area: cta;
        justify-self: start;
        min-width: 0;
    }
    #header .header-nav-top,
    #header .header-nav-top .nav,
    #header .header-nav-top .button-tag,
    #header .header-nav-top .button-tag .row,
    #header .header-nav-top .button-tag .col-sm-12 {
        margin: 0;
        padding: 0;
        width: auto;
        max-width: none;
    }
    #header .header-nav-top .button-tag .col-sm-12 {padding: 0 !important;}
    #header .gumb-header-ponuda {
        margin: 0 !important;
        display: inline-flex;
        align-items: center;
        height: 46px;
        padding: 0 20px;
        font-size: 16px;
        white-space: nowrap;
        line-height: 1;
    }
    #header .header-nav.down-menu > .desktopAndMobileClass {
        grid-area: menu;
        justify-self: end;
    }
    #header .header-btn-collapse-nav {
        width: 46px;
        height: 46px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #header .header-btn-collapse-nav i {color: #222;}

    /* otvoreni izbornik: tamna podloga (tema daje svijetlu #eee uz bijela slova) i pocetak ispod zaglavlja */
    #header .header-nav-main {background: #222;}
    #header .header-nav-main nav {margin-top: 195px !important;}
    #header .header-nav-main nav > ul > li > a {color: #ddd !important; text-shadow: none !important;}
    #header .header-nav-main nav > ul > li > a.active {background: transparent !important; color: #F0C268 !important;}
    #header .header-nav-main nav > ul li {border-color: #333 !important;}

    /* slider na desktopu ide pod prozirno zaglavlje (-75 px); ovdje je zaglavlje puno, pa ne */
    .slider-container {top: 0;}
}

/* uski mobiteli: manji gumb i ikone da sve stane u red */
@media (max-width: 374.98px) {
    #header .gumb-header-ponuda {font-size: 14px; padding: 0 14px;}
    #header .header-social-icons {gap: 5px;}
    #header .header-social-icons li a {width: 34px; height: 34px; line-height: 34px;}
    #header .header-logo img {height: 46px !important;}
}

/* naslov u slideru na mobitelu: tema ga drzi na 70 px, pa se u tri retka preklopi s podnaslovom */
@media (max-width: 767.98px) {
    .tp-header {font-size: 42px; line-height: 1.15; top: 22%; left: 6%; right: 6%;}
    .tp-headerbottom {font-size: 19px; line-height: 1.35; top: calc(22% + 95px); left: 6%; right: 6%;}
}

/* Video u galeriji ispod teksta: isti okvir kao fotografije (3:2, izrezano), bez pomaka 25% iz pravila .pocetna-video-box u other-css.css, i ikona play. JS je u other-js.js. Claude, T 959807 */
.glightbox-gallary li video.gal-video-thumb {display:block;aspect-ratio:3 / 2;height:auto;min-height:0;max-height:none !important;margin:0 !important;object-fit:cover;background:#111;}
.glightbox-gallary li a:has(video.gal-video-thumb)::after {content:"";position:absolute;top:50%;left:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;z-index:2;pointer-events:none;transition:background-color .3s;}
.glightbox-gallary li:hover a:has(video.gal-video-thumb)::after {background-color:rgba(0,0,0,.8);}

/* Red 1 na tabletu i mobitelu: rotator je 23.11. zamijenjen s dva fiksna linka (Nazovite / Posaljite poruku, .nav-item-anim-icon).
   Bez ovoga ih pravilo za gumb ponude (:has(.header-nav-top)) stavi u isti red ispod gumba. Linkovi jedan pored drugoga, centrirano, 52 px kao prije. Claude, T 959807 */
@media (max-width: 991.98px) {
    #header .header__wrapper-social > .desktopAndMobileClass:has(.nav-item-anim-icon) {
        grid-area: rot;
        justify-self: stretch;
        min-width: 0;
        padding: 10px 0;
        margin: 0 -15px;
        border-bottom: 1px solid #333;
    }
    #header .desktopAndMobileClass:has(.nav-item-anim-icon) .header-nav-top {width: 100%; justify-content: center;}
    #header .desktopAndMobileClass:has(.nav-item-anim-icon) .header-nav-top .nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 18px;
        width: 100%;
    }
    #header .nav-item-anim-icon {height: 32px; align-items: center; margin: 0;}
    #header .nav-item-anim-icon .nav-link {padding: 0 !important; font-size: 14px; white-space: nowrap;}
}

/* Traka „NOVO! MATEA WEDDING CONTENT…” ispod slidera na naslovnici (selektor po gumbu dok se ne deploya klasa .matea-traka, constructor #92).
   Tablet (768-1199 px): manji font, potpis ispod gumba umjesto preko njega. Mobitel (do 767 px): naslov, potpis, gumb jedno ispod drugoga, centrirano. Claude, T 959807 */
@media (max-width: 991.98px) {
    /* -75 px vrijedi samo na racunalu (slider ide pod prozirno zaglavlje); ovdje bi naslov usao pod slider */
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) {margin-top: 0 !important;}
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) {padding-bottom: 20px !important;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .container-xl {max-width: 100%;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .row {position: relative; align-items: flex-start;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .row > div {position: static;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) h2 {font-size: 24px !important; line-height: 1.3 !important; top: 0;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) h2 .text-tiny {font-size: 18px !important;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .call-to-action-content p {margin: 0;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) img {position: absolute; right: 15px; bottom: 0; width: 170px; margin: 0; float: none;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .col-sm-3 {padding-bottom: 50px; display: flex; justify-content: flex-end;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .button-tag {float: none;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .call-to-action-btn a {white-space: nowrap; padding-left: 18px; padding-right: 18px; margin-bottom: 0 !important;}
}
@media (max-width: 767.98px) {
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) {padding: 25px 0 30px 0 !important;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .container-xl {max-width: 100%;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .row > div {flex: 0 0 100%; max-width: 100%;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .call-to-action-content {text-align: center; padding: 0; margin: 0;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) h2 {font-size: 26px !important; line-height: 1.3 !important; top: 0; margin-bottom: 12px;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) h2 .text-tiny {display: block; margin-top: 8px; font-size: 18px !important; line-height: 1.35;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .call-to-action-content p {margin: 0 0 15px 0;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) img {display: block; float: none; margin: 0 auto; width: 200px; max-width: 70%;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .button-tag {float: none; text-align: center;}
    .section-parallax:has(a[href$="/matea-wedding-content-experience-creator"]) .call-to-action-btn a {margin-bottom: 0 !important;}
}

/* Icon boxovi s uslugama na naslovnici (.pocetna-boxes): na mobitelu (do 767 px) dvije usluge u redu, manji razmaci i font. Claude, T 959807 */
@media (max-width: 767.98px) {
    .pocetna-boxes .featured-boxes-full > .featured-box-full {flex: 0 0 50%; max-width: 50%; width: 50%; padding: 28px 12px;}
    .pocetna-boxes .featured-boxes-full .featured-box-full [class*="fa-"] {font-size: 2.4em; margin-bottom: 10px;}
    .pocetna-boxes .featured-boxes-full .featured-box-full h4 {font-size: 18px !important; line-height: 1.25;}
    .pocetna-boxes .featured-boxes-full .featured-box-full h4 p {padding-top: 0; font-size: inherit; line-height: inherit;}
    .pocetna-boxes .featured-boxes-full .featured-box-full p {font-size: 13px; line-height: 1.45;}
    .pocetna-boxes .featured-boxes-full .featured-box-full > p:empty {display: none;}
    .pocetna-boxes .featured-boxes-full .featured-box-full > h4 + p, .pocetna-boxes .featured-boxes-full .featured-box-full > h4 + p:empty + p {padding-top: 10px;}
}

/* Okomiti video uz „Vasa prica o ljubavi" na naslovnici (.pocetna-video-box): na mobitelu (do 767 px) centriran, u sirini ekrana.
   Tema mu daje sirinu +50 px i pomak -40 px, a other-css.css redak 145 margin-left 25 %, pa je bio pomaknut udesno i odrezan. Claude, T 959807 */
@media (max-width: 767.98px) {
    .pocetna-video-box {float: none; width: 100%;}
    .pocetna-video-box .glightbox-gallary {justify-items: center;}
    .pocetna-video-box .glightbox-gallary li {width: 100%;}
    .pocetna-video-box .glightbox-gallary video {display: block; width: 100%; max-width: 400px; height: auto; min-height: 0; max-height: none !important; margin: 0 auto !important; transform: none !important;}
}
