/* Default za telefon (mobile-first) */
.slider_section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0;
    max-width: 100%;
    max-height: fit-content;
    margin-top: 50px;
}

.slider_section::after {
    content: "";
    width: 100%;
    height: 103%;
    display: block;
    background-color: #f3eadd;
    position: absolute;
    top: -20px;
    z-index: -1;
}

.slider_section .header_txt {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    margin: 5px;
}

.slider_section .header_txt p {
    margin-bottom: 5px;
    font-size: 2em;
    letter-spacing: 1px;
    font-family: TheSeasonsBold;
}

.slider_section .header_txt p:nth-child(2) {
    font-size: 1em;
    font-weight: normal;
    font-family: TheSeasonsLight;
    text-transform: lowercase;
}

.ugc {
    max-height: 100vh;
    position: relative;
    padding: 0;
}

.content_branding {
    margin-top: 50px;
}

.slider_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    max-width: 350px;
    max-height: 100%;
    position: relative;
}

.pre_btn,
.nxt_btn {
    display: none;
}

.slider {
    display: flex;
    max-width: 85%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 20px;
    padding: 0;
    margin: 10px auto;
    animation: slider_appear 2s ease;
    animation-timeline: view();
    animation-range: entry -10% cover 40%;
}

.slider::-webkit-scrollbar {
    display: none;
}

/* ===== ANIMATIONS ===== */
@keyframes slider_appear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.slider_section,
.slider_section::after {
    animation: slider_section_appear 0.5s ease;
    animation-timeline: view();
    animation-range: entry -10% cover 30%;
    padding: 0;
    margin: 20px auto;
    width: 100vw;
}

@keyframes slider_section_appear {
    from { scale: 0.8; }
    to   { scale: 1; }
}

/* ===== CARD ===== */
.card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 500px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.card .video_wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.card .video_wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    padding: 0;
}

/* poster koristi isti object-fit: cover kao i video — nema potrebe za overrideom */

.card .video_wrapper button.play_button {
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    color: #e8e3de;
    z-index: 1;
    cursor: pointer;
}

/* ===== CARD BOX ===== */
.card_box {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    padding: 15px;
    color: #fff;
    font-family: CormorantGaramond;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0)   0%,
            rgba(0, 0, 0, 0.4) 30%,
            rgba(0, 0, 0, 0.9) 100%
    );
    cursor: pointer;
    z-index: 5;
    overflow: hidden;
    box-sizing: border-box;
}

.card .card_box .card_header_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.card .card_box .card_header_box .brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card .card_box .card_header_box .brand img {
    max-width: 40px;
    padding-right: 5px;
}

/* ===== DESC ===== */
.desc {
    --lh: 20px;
    --lines: 2;
    line-height: var(--lh);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lines);
    max-height: calc(var(--lh) * var(--lines));
    transition: max-height 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-expanded .desc {
    display: block;
    -webkit-line-clamp: unset;
    transition: max-height 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.desc::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .desc,
    .is-expanded .desc {
        transition: none;
    }
}

/* ===== DOTS ===== */
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #57432a59;
    border-radius: 50%;
    transition: background-color 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: #57432a;
}
/* ===== MORE ON INSTAGRAM ===== */
a.more_on_instagram {
    text-decoration: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-height: 500px;
}

a.more_on_instagram::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(/assets/insta_profile.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.45) blur(2px);
    transition: 0.3s;
}

a.more_on_instagram:hover::before {
    transform: scale(1.08);
    filter: brightness(0.3) blur(6px);
}

/* Content wrapper */
a.more_on_instagram .more_on_instagram_content {
    z-index: 5;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 30px;
    text-align: center;
    width: 100%;
}

a.more_on_instagram p.header {
    font-size: 1.7em;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* Strelica — izlazi iz teksta, pokazuje prema ikonici dole */
a.more_on_instagram .more_on_instagram_content img:nth-child(2) {
    position: absolute;
    width: 100px;
    top: 45%;   /* tik ispod teksta */
    left: 20%;  /* malo desno od centra teksta */
    transform: rotate(15deg); /* prema dole-levo ka ikonici */
    opacity: 0.85;
    transition: 0.3s all;
}

/* Instagram ikonica */
a.more_on_instagram .more_on_instagram_content img:nth-child(3) {
position: relative;
    left: 50px;
    top: -15px;
    width: 80px;
    opacity: 0.9;
    transition: 0.3s all;
}

a.more_on_instagram:hover .more_on_instagram_content img:nth-child(2) {
    opacity: 1;
    transform: scale(1.1);
}

a.more_on_instagram:hover .more_on_instagram_content img:nth-child(3) {
    opacity: 1;
    transform: scale(1.08);
}
/* ===== UTILITY ===== */
.opacity_low {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
    transition: 0.2s all;
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    .slider_wrap {
        max-width: 650px;
    }

    .pre_btn,
    .nxt_btn {
        display: none;
    }

    .slider {
        max-width: 100%;
        position: relative;
        gap: 20px;
    }

    .card {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ===== DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    .slider_section {
        max-height: 200vh;
        margin: 50px auto;
        padding: 0;
    }

    .slider_section::after {
        height: 90%;
        top: 20px;
    }

    .slider_section .header_txt p {
        font-size: 2.5em;
    }

    .slider_section .header_txt p:nth-child(2) {
        font-size: 1.5em;
    }

    .ugc {
        align-self: flex-start;
        padding: 10px;
    }

    .content_branding {
        align-self: flex-end;
        padding: 10px;
    }

    .slider_wrap {
        max-width: 1000px;
        padding: 0;
    }

    .slider {
        position: relative;
        gap: 30px;
        padding: 0;
    }

    .card {
        flex: 0 0 calc(100% / 3 - 20px);
        transition: all 0.3s ease;
    }

    .card .video_wrapper video {
        width: 100%;
        aspect-ratio: 9 / 16;
        object-fit: contain;
        display: block;
        filter: brightness(0.8) blur(0.6px);
        transition: 0.5s all;
    }

    .card .video_wrapper:hover > video {
        filter: brightness(1) opacity(1);
        transition: 0.5s all;
    }

    .card .video_wrapper button {
        transition: 0.5s all;
    }

    .card .video_wrapper:hover > button {
        font-size: 6em;
        transition: 0.5s all;
    }

    .card .card_box {
        width: 90%;
    }

    .pre_btn,
    .nxt_btn {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        z-index: 9;
        cursor: pointer;
        border: none;
        padding: 20px;
        border-radius: 50%;
        background-color: #ffffff;
        transition: 0.2s all;
    }

    .pre_btn:hover,
    .nxt_btn:hover {
        background-color: #aca8a5;
        transition: 0.2s all;
    }

    .pre_btn {
        left: -10%;
    }

    .nxt_btn {
        right: -10%;
    }

    .pre_btn img {
        transform: rotate(-90deg);
    }

    .nxt_btn img {
        transform: rotate(90deg);
    }

    .pre_btn img,
    .nxt_btn img {
        width: 30px;
    }

    .desc {
        font-size: 14pt;
        letter-spacing: 1px;
    }

    .dot {
        display: none;
    }

    /* ===== HOVER ANIMATIONS ===== */
    .hovered_card {
        z-index: 10;
        filter: brightness(1.05);
        transition: all 0.3s ease;
        transition-delay: 0.2s;
    }

    .other_cards {
        opacity: 0.8;
        filter: blur(0.3px) brightness(0.9) grayscale(0.1);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .title_animation {
        transform: translateY(-100px);
        opacity: 1;
        transition: all 0.3s ease;
    }

    .desc_animation {
        opacity: 1;
        transform: translateY(180px);
        transition: all 0.3s ease;
    }

    a.more_on_instagram p.header {
        font-size: 2em;
    }

    a.more_on_instagram .more_on_instagram_content :nth-child(2) {
        width: 60px;
    }

    a.more_on_instagram .more_on_instagram_content :nth-child(3) {
        max-width: 75px;
    }
}