h2 {
    font-size: 2.8rem;
    margin: 0;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem;
}

p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 1rem;
}


.news-wrapper {
    width: 100%;
    display: grid;
    place-items: center;
    margin-bottom: 4rem;
    color: var(--background);
}

.news-list {
    width: 90%;
    padding: 1rem;
    display: grid;
    place-items: center;
}

.news-list>div {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    min-height: 40px;
}

.post {
    position: relative;
    color: var(--text);
    padding: 1rem;
    border-radius: .5rem;
    display: flex;
    flex-wrap: wrap;
}

@media only screen and (min-width: 1250px) {
    .post:has(.img-left) {
        flex-direction: row-reverse;
    }
}

@media only screen and (max-width: 800px) {
    .post {
        padding: 0;
    }
}

.post .img {
    width: 45%;
    margin-bottom: auto;
    border-radius: .5rem;
    position: relative;
}

.post .img img {
    width: 100%;
    border-radius: .5rem;
}

.post .open-original {
    position: absolute;
    right: 1rem;
    bottom: .4rem;
    font-size: 1rem;
    color: var(--orange);
    background-color: var(--background);
    border-radius: .5rem;
    padding: 0 .5rem .1rem .5rem;
}

.text {
    width: 55%;
    padding: 0 1rem;
    white-space: pre-line;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 800px) {
    .text {
        padding: 0;
    }
}

.text>p {
    font-size: 1.1rem;
    margin-top: 0;
}

.news-title {
    font-size: 1.1rem;
}

@media only screen and (max-width: 800px) {
    .text>p {
        margin: 0;
    }
}

.text>h2 {
    margin-bottom: 2rem;
}


.text>h3 {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.text:last-child {
    width: 100%;
}

@media only screen and (max-width: 1250px) {

    .post .img {
        width: 100%;
    }

    .text {
        width: 100%;
    }
}

div:has(.embed) {
    margin: 1rem 0;
}

.embed {
    position: relative;
    display: block;
    margin: .5rem auto;
    width: 100%;
    height: 60vh;
    max-width: 900px;
}

.embed iframe {
    height: 100%;
    width: 100%;
    border-radius: .5rem;
}

div:has(.slider) {
    padding: 1rem 0;
}

/* Force the container to take full block width so elements below stack properly */
.post-layout-container {
    display: block;
    width: 100%;
}

.slider {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow-x: scroll;
    width: 100%;
    gap: .5rem;
    cursor: grab;
    user-select: none;
    overflow-x: auto;
}

.slider.active {
    cursor: grabbing;
}

.single-img-wrapper {
    position: relative;
    display: inline-block;
}

.slider-img-item {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.single-img {
    border-radius: .5rem;
    margin: auto;
    max-height: 70vh;
    max-width: 90vw;
    display: block;
}

.slider-img-item img {
    border-radius: .5rem;
    margin: auto;
    max-height: 70vh;
    max-width: 90vw;
    display: block;
}

@media only screen and (max-width: 1000px) {

    .single-img {
        max-height: 70vh;
        max-width: 85vw;
    }

    .slider-img-item img {
        max-height: 70vh;
        max-width: 85vw;
    }
}

.single-img-wrapper .open-original,
.slider-img-item .open-original {
    position: absolute;
    right: 1rem;
    bottom: .6rem;
    font-size: 1rem;
    color: var(--orange);
    background-color: var(--background);
    border-radius: .5rem;
    padding: 0 .5rem .1rem .5rem;
    text-decoration: none;
    white-space: nowrap;
    z-index: 10;
}

/* Forces title layout clean breakout underneath images */
.news-title {
    display: block;
    clear: both;
    width: 100%;
    margin-top: .5rem;
}


.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    display: inline-block;
    padding: 0.4rem 1rem 0.5rem 1rem;
    background-color: var(--red);
    color: var(--text);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    transition: background-color 0.3s ease;
    opacity: .8;
    z-index: 2;
    filter: drop-shadow(0 0 .1px color-mix(in srgb, var(--background), var(--text) 50%));
    text-shadow: 1px 1px color-mix(in srgb, var(--background), var(--text) 50%);
}

.action-btn:hover {
    opacity: 1;
}

.action-btn.blue {
    background-color: var(--primary);
}

.action-btn.green {
    background-color: var(--green);
}

.new_id {
    background-color: var(--text);
    color: var(--background);
    border-radius: .2rem;
    padding: .2rem .3rem;
    margin-right: 2rem;
}

.new_id:last-child {
    margin-left: 2rem;
}

.delete img {
    width: 2.5rem;
}


.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    margin-top: -5rem;
}

.action-buttons a {
    filter: contrast(0.4);
    transition: filter 0.3s ease;
    z-index: 2;
}

.action-buttons a:hover {
    filter: contrast(.8);
}

.action-buttons .arrow-left,
.action-buttons .arrow-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    rotate: 90deg;
}

.btn {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--background);
    background-color: var(--text);
    padding: .2rem .8rem .3rem .8rem;
    border-radius: .5rem;
    transition: background-color 0.3s ease;
    line-height: 4rem;
}

.btn:hover {
    background-color: var(--orange);
    color: var(--text);
}