/* Basic Reset & Fullscreen Setup */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Instrument Sans', sans-serif;
    background-color: #111;
}

.navbar-section {
    display: none;
}

#bildeartikkel-main {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Header */
.bildeartikkel-header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.logo-flame {
    width: 30px;
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
}

/* Slide Section */
.slide-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Align content to the bottom */
    justify-content: center;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}


.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content on Slides */
.slide-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    color: white;
}

.slide-intro-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 5vh;
}

.slide-intro-card h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.slide-intro-card .ingress {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.slide-intro-card .intro-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.byline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.slide-text-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-bottom: 5vh;
}

.slide-text-box.is-quote blockquote {
    font-style: italic;
    font-size: 1.4rem;
    border-left: 3px solid #f0ad4e;
    padding-left: 15px;
    margin: 0;
}

.slide-text-box.is-quote cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    opacity: 0.8;
}

.slide-text-box .image-source {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 15px;
    text-align: right;
}

/* Navigation */
.slide-navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.slide-navigation button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.slide-navigation button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slide-dots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 0;
}

.dot.active {
    background: white;
}

/* Final Slide Specific Styles */
.final-slide {
    background: #1A1A1A;
    /* A light background for the content area */
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

.final-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.final-slide-wrapper {
    flex-grow: 1;
    /* This makes the content take up available space, pushing footer down */
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.final-slide .les-mer-wrapper {
    margin-bottom: 40px;
}

.final-slide .les-mer-header {
    color: #111;
    text-align: center;
    margin-bottom: 20px;
}

.final-slide .les-mer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.final-slide .comments-wrapper {
    margin-top: 20px;
}

#disqus_thread {
        height: 400vh;
}
/* Make the footer stick to the bottom of the final slide */
.final-slide .footer-section {
    margin-top: auto;
}