html,
body {
    margin: 0px;
    /*background-image: url(https://beta.nickfigner.com/new-york.jpg)*/
}

@media (min-width: 769px) {
    body {
        margin-top: 0px;
        margin-bottom: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}


.content {
    /* height: 100vh; */
    padding-bottom: 0px;
    padding-top: 0px;
    overflow-y: auto;
}

.side-panel h4 {
    margin: 10px;
}





















/* --- SIDE PANEL TOGGLE STYLES --- */

.side-panel {
    /* Ensure flex column so header stays top */
    display: flex;
    flex-direction: column;

    /* Animation Settings */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Ensure it has a max-height so it doesn't cover the whole screen */
    max-height: 80vh;
    overflow: hidden;
    /* Hide scrollbars during animation */
    z-index: 10;
}

/* THE HEADER ROW */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;

    /* Ensure this stays visible when minimized */
    background: transparent;
    flex-shrink: 0;
}



/* THE BUTTON */
.toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--color-text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

h3 {
    margin: 0;
}



/* THE CONTENT AREA */
.panel-content-wrapper {
    overflow-y: auto;
    /* Scroll inside the content, not the whole panel */
    flex-grow: 1;

    /* Custom scrollbar to look nice */
    scrollbar-width: thin;
    padding-right: 5px;
}

/* --- THE MAGIC CLASS (MINIMIZED STATE) --- */
.side-panel.is-minimized {
    /* Calculate how far to push it down.
       We want to hide everything EXCEPT the header (approx 60-70px).
       translateY(100%) pushes it completely off.
       translateY(calc(100% - 60px)) leaves 60px showing.
    */
    transform: translateY(calc(100% - 66px));
}

/* Optional: Make the button look distinct when minimized (like the yellow in your drawing) */
.side-panel.is-minimized .toggle-btn {
    /* background: #facc15;  Uncomment for yellow background */
    /* color: #000; */
    transform: rotate(180deg);
    /* Nice spin effect */
}




















h1 {
    margin-top: 10px;
    margin-bottom: 10px;
}


h2 {
    margin-top: 10px;
    margin-bottom: 10px;
}



/* Mobile Responsive */
@media (max-width:950px) {
    .stories-container {
        flex-direction: column;
    }

    .side-panel {
        position: relative;
        height: auto;
        box-shadow: none;
        border-radius: 13px;
        padding: 13px;
        width: auto;
    }

    .side-panel.is-minimized {
        transform: translateY(0);
        /* Disable minimize on mobile */
    }

    .toggle-btn {
        display: none;
    }

    .story-viewer {
        padding: 20px;
    }

    .panel-content-wrapper {
        overflow-x: hidden;
    }

    .nmd-image-wrapper img {
        width: 80vw !important;
        height: auto;
        border-radius: 7px;
    }
}

























iframe {
    width: 80vw;
    height: 60vh;
    border: none;
    border-radius: 7px;
}

video {
    width: 85vw;
    height: auto;
    border-radius: 7px;
}

.nmd-image-wrapper img {
    width: 90vw;
    height: auto;
    border-radius: 7px;
}

p {
    max-width: 800px;
}