/* *******************************
ROOT VARIABLES / RESETS / DEFAULTS
******************************* */
:root {
    --light: #fefeff;
    --grey: #909090;
    --dark: #191A1B;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    background: 0 0;
    text-decoration: none;
    outline: none;
    border: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

html {
    font-size: calc(0.7321428571428572rem + 0.2232142857142857vw);
}

@media screen and (max-width:1920px) {
    html {
        font-size: calc(0.7321428571428571rem + 0.22321428571428573vw);
    }
}

@media screen and (max-width:1024px) {
    html {
        font-size: calc(2.8143939393939394rem + -3.03030303030303vw);
    }
}

@media screen and (max-width:991px) {
    html {
        font-size: calc(0.44698660714285715rem + 0.8928571428571428vw);
    }
}

@media screen and (max-width:767px) {
    html {
        font-size: 0.8125rem;
    }
}

@media screen and (max-width:479px) {
    html {
        font-size: calc(0.31106171548117156rem + 2.301255230125523vw);
    }
}

html {
    width: 100%;
    min-height: -webkit-fill-available;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    margin: 0;
    padding: 0;
    background-color: var(--dark);
}

/* Enable scroll on devices */
@media all and (max-width: 1024px) {
    html {
        overflow-y: scroll;
        overflow-x: hidden;
    }
}

/* Remove overscroll behavior on devices */
@media all and (max-width: 1024px) {
    body,
    html {
        overscroll-behavior-y: none;
    }
}

body {
    font-family: 'EB Garamond', 'Times New Roman', Times, serif;
    color: var(--dark);
    min-height: 100svh;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: "liga","kern";
    text-rendering: optimizelegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* *******************************
LENIS SMOOTH SCROLL OBAVEZAN CSS UZ LENIS.JS
******************************* */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* *******************************
OVERLAY SCROLLBARS - STYLING SCROLLBARA
******************************* */
.os-scrollbar {
    --os-handle-bg: rgba(245, 245, 245, 0.4);
    --os-handle-bg-hover: rgba(245, 245, 245, 0.6);
    --os-handle-bg-active: rgba(245, 245, 245, 0.6);
}

.os-theme-custom.os-scrollbar-vertical {
    --os-size: 8px;
}

/* *******************************
STYLING NASLOVA QUOTE I FIGCAPTIONA
******************************* */
.heading-style-h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 300;
    position: relative;
    letter-spacing: -0.02em;
}

.heading-style-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: subpixel-antialiased;
}

.heading-style-h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: subpixel-antialiased;
}

.text-style-quote {
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
    margin-bottom: 0;
    padding: 0 3rem;
    font-size: 2.5rem;
    line-height: 1.25;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.015em;
}

figcaption {
    margin-top: 0.7rem;
    text-align: left;
    font-size: 1rem;
    font-family: 'Futura PT Book';
    letter-spacing: 0.03em;
    line-height: 1.5;
    opacity: 0.6;
    color: var(--dark);
    z-index: 2;
}

/* *******************************
MENU UNDERLINE ANIMACIJA
******************************* */
:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

.link-hover {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

@media (hover: none) {
    .link-hover {
        text-decoration: underline;
    }
}

@media (hover: hover) {
    .link-hover::after {
        pointer-events: none;
        background-color: currentColor;
        bottom: 0;
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        -webkit-transform: scaleX(0);
        -ms-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transform-origin: right;
        -ms-transform-origin: right;
        transform-origin: right;
        -webkit-transition: -webkit-transform 400ms var(--ease-out-expo);
        transition: -webkit-transform 400ms var(--ease-out-expo);
        -o-transition: transform 400ms var(--ease-out-expo);
        transition: transform 400ms var(--ease-out-expo);
        transition: transform 400ms var(--ease-out-expo), -webkit-transform 400ms var(--ease-out-expo);
        width: 100%;
    }

    .link-hover:hover::after {
        -webkit-transform: scaleX(1);
        -ms-transform: scaleX(1);
        transform: scaleX(1);
        -webkit-transform-origin: left;
        -ms-transform-origin: left;
        transform-origin: left;
    }
}

@media (hover: none) {
    .current-menu-item {
        text-decoration: underline;
    }
}

@media (hover: hover) {
    .current-menu-item::after {
        pointer-events: none;
        background-color: currentColor;
        bottom: 0;
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        width: 100%;
    }
}

/* *******************************
HERO IMAGE FERLAUF TOP - ISPOD NAVIGACIJE, LOGOTIPA I  NEWSLETTER BUTTONA
******************************* */
.hero-overlay {
    background: -o-linear-gradient(273deg, rgba(25, 26, 27, 0.25) 10%, rgba(14, 14, 14, 0) 36%, transparent 100%);
    background: linear-gradient(177deg, rgba(25, 26, 27, 0.25) 10%, rgba(14, 14, 14, 0) 36%, transparent 100%);
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/* *******************************
HERO I OSTALE FULLSCREEN IMAGES IMAGE FERLAUF BOTTOM
******************************* */
.ferlauf {
    background: -o-linear-gradient(bottom, rgba(25, 26, 27, 0.65) 0%, rgba(25, 26, 27, 0.17) 41%, transparent 100%);
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(25, 26, 27, 0.65)), color-stop(41%, rgba(25, 26, 27, 0.17)), to(transparent));
    background: linear-gradient(0deg, rgba(25, 26, 27, 0.65) 0%, rgba(25, 26, 27, 0.17) 41%, transparent 100%);
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/* *******************************
FEATURED VIJEST FERLAUF (HOMEPAGE STICKY VIJESTI UNUTAR SVAKE KATEGORIJE GDJE NASLOV IDE PREKO FOTKE)
******************************* */
.gradientOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: -o-linear-gradient(91deg, rgba(25, 26, 27, 0.25) 2%, rgba(25, 26, 27, 0) 49%);
    background: linear-gradient(359deg, rgba(25, 26, 27, 0.25) 2%, rgba(25, 26, 27, 0) 49%);
}

/* *******************************
PULSING VIDEO ICON
******************************* */
@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.article-video-icon {
    -webkit-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}

/* *******************************
FLOATING NAVIGACIJA
******************************* */
.floating-nav {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    padding-left: 1.2rem;
    padding-right: 1rem;
    background-color: rgba(226, 226, 223, 0.4);
    color: var(--dark);
    border-radius: 100vw;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
}


/* *******************************
FLOATING NAV - HEADER NEWSLETTER BUTTON
******************************* */
.gg-header-newsletter {
    padding: 0.5rem 1rem;
    font-family: "Futura PT Medium";
    font-size: 1rem;
    letter-spacing: 0.07em;
    border: 0px solid var(--dark);
    cursor: pointer;
    border-radius: 100vw;
    text-transform: uppercase;
    background-color: rgba(226, 226, 223, 0.45);
    -webkit-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

.gg-header-newsletter:hover {
    background-color: rgba(255, 255, 252, 0.65);
}

/* *******************************
TRI TOČKICE - LINK NA KATEGORIJU
******************************* */
.dot-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    right: -1.24rem;
    cursor: pointer;
    -ms-flex-item-align: start;
    align-self: start;
}

.dot {
    margin-right: 0.1rem;
}

/* *******************************
IMAGE HOVER - LAGANO ZATAMNJENJE FOTOGRAFIJE ON MOUSEOVER
******************************* */
.item-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0.5rem;
    left: 0;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    -webkit-transition: ease opacity 350ms;
    -o-transition: ease opacity 350ms;
    transition: ease opacity 350ms;
    z-index: 5;
}

.item-image:hover:after {
    opacity: 1;
}

/* *******************************
NEWSLETTER FORMA
******************************* */
input,
textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--light);
    -webkit-transition: border-bottom 0.3s ease-in-out;
    -o-transition: border-bottom 0.3s ease-in-out;
    transition: border-bottom 0.3s ease-in-out;
    outline: none;
    width: 100%;
    margin-bottom: 20px;
    padding: 1.4rem 0;
    color: var(--light);
}

input:focus,
textarea:focus {
    background-color: transparent;
    color: var(--light);
}

input:focus,
textarea:focus {
    opacity: 0.5;
    -webkit-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

/* Remove the curved ends in some browsers */
input[type=text],
input[type=email],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* *******************************
CUSTOM CHECKBOXES / KATEGORIJA PAGE / SELEKCIJA: NAJNOVIJE / NAJČITANIJE
******************************* */
.toggle {
    position: fixed;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    left: -100%;
    top: -100%;
    visibility: hidden;
}

.toggle + label {
    cursor: pointer;
    padding: 1rem;
    background: transparent;
    border-radius: 50%;
    padding: 8px 8px;
    color: var(--dark);
    font-size: 1rem;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    z-index: 10;
    font-family: system-ui, Arial, sans-serif;
}

.toggle + label:after {
    content: "○";
}

.toggle:checked + label:after {
    content: "●";
}

/* *******************************
HEADER NEWSLETTER BUTTON - OUTLINE
******************************* */
.gg-static-newsletter {
    font-size: 1rem;
    font-family: "Futura PT Medium";
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    -webkit-box-shadow: 0 0 1px 1px var(--light);
    box-shadow: 0 0 1px 1px var(--light);
    color: var(--light);
    cursor: pointer;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
    -o-transition: background-color 0.3s ease, color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gg-static-newsletter:hover {
    background-color: var(--light);
    color: var(--dark);
}


/* *******************************
OPACITY LINKS HOVER
******************************* */
.opacity-hover {
    transition: opacity 300ms ease;
}

.opacity-hover:hover {
    opacity: 0.5;
}

