/* ===== TOP ZGODBA ===== */

.nb-top-story {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.nb-top-story a {
    display: block;
    position: relative;
    text-decoration: none;
}

.nb-top-story-image {
    position: relative;
	 aspect-ratio: 4 / 2.95;
    overflow: hidden;
}

.nb-top-story-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* Temen gradient čez spodnji del slike */

.nb-top-story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.55) 30%,
        rgba(0,0,0,0.15) 60%,
        rgba(0,0,0,0) 100%
    );
}

/* Vsebina čez sliko */

.nb-top-story-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 30px;
}

/* Oznaka TOP ZGODBA */

.nb-top-story-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #e30613;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Naslov */

.nb-top-story-title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.nb-top-story-title:hover {
    color: #ffffff;
}

.nb-top-story {
    transition: all .25s ease;
}

.nb-top-story:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0,0,0,.12),
        0 16px 40px rgba(0,0,0,.18);
}

.nb-top-story a {
    display: block;
    position: relative;
    height: 100%;
}


/* Mobilni prikaz */

@media (max-width: 767px) {

	.nb-home-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
    }

    .nb-home-grid > *{
        grid-column:auto !important;
        grid-row:auto !important;
    }
	
    .nb-top-story-content {
        padding: 20px;
    }

    .nb-top-story-title {
        font-size: 24px;
    }

}



/* ======================================
   IZPOSTAVLJENA NOVICA
====================================== */

.nb-featured-story {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* box-shadow:
        0 2px 8px rgba(0,0,0,.08),
        0 8px 24px rgba(0,0,0,.12);
	*/
    transition: all .25s ease;
}

.nb-featured-story:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0,0,0,.12),
        0 16px 40px rgba(0,0,0,.18);
	
}

.nb-featured-story a {
    display: block;
    position: relative;
    text-decoration: none;
}

/* Kvadratna slika */

.nb-featured-story-image {
    position: relative;
    aspect-ratio: 16 / 9.3;
    overflow: hidden;
}

.nb-featured-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient */

.nb-featured-story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.50) 35%,
        rgba(0,0,0,.10) 70%,
        rgba(0,0,0,0) 100%
    );
}

/* Naslov čez sliko */

.nb-featured-story-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 15px;
}

.nb-featured-story-title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.nb-featured-story-title:hover {
    color: #fff;
}
