/*Override of a styles for this file - text decos get overriden as needed in niches.*/
a {
    text-decoration: none;
    color: #aeb850;
    font-weight: bolder;
}

/*Wraps around both "halves" of our News page view when above 719px screen widths.*/
/*Splits the view into two columns due to Flexbox.*/
.news-splitter {
    width: 95vw;
    display: flex;
    flex-direction: row;
    margin: auto;
    margin-top: 25px;
}

/*Wrapper style for our blogposts - the boxes on the left hand side of the widescreen view.*/
/*Bottom two lines handle any potential overflow scrollbars, though there should be none.*/
.news-feed {
    width: 60%;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.news-feed a {
    text-decoration: none;
    color: #aeb850;
    font-weight: bolder;
}

.news-feed a:hover {
    text-decoration: underline;
}

.archive-button a {
    text-decoration: none !important;
    color: white;
}

/*Handles scrollbar visibility.*/
.news-feed::-webkit-scrollbar {
    display: none;
}

/*The larger "hero" post up top is wrapped in this style.*/
/*MUST KEEP RELATIVE POSITIONING FOR OVERLAY TO STAY AT BOTTOM OF POSTS*/
.mainpost {
    width: 100%;
    height: 30vw;

    cursor: pointer;

    border: 2px solid #777777;
    border-radius: 15px 15px 0 0;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    position: relative;
}

.mainpost:hover>.mainpost-overlay {
    background-color: rgb(127, 140, 25)
}

/*This is the title/date/link box that appears inside the "hero" post.*/
.mainpost-overlay {
    width: calc(100% - 4px);

    border-top: 1px solid #777777;
    border-left: 1px solid #777777;
    border-right: 1px solid #777777;

    margin-left: -1px;

    padding: 4px 0px 4px 4px;

    background-color: rgba(0, 0, 0, 0.9);

    color: white;

    position: absolute;
    bottom: 0;
}

/*This wrapper contains the four "child" blogposts that appear beneath our "hero" post.*/
.subpost-wrapper {
    width: 100%;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    padding-bottom: 8px;
}

/*Styling for each individual "child" blogpost.*/
.subpost {
    width: 25vw;
    height: 16.67vw;

    cursor: pointer;

    margin: auto;
    margin-top: 20px;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;

    border: 1px solid #777777;

    position: relative;
}

.subpost:hover>.subpost-overlay {
    background-color: rgb(127, 140, 25)
}

/*Overlay for each individual "child" blogpost.*/
/*PLEASE KEEP RELATIVE/ABSOLUTE POSITIONING IN PLACE.*/
.subpost-overlay {
    width: calc(100% - 4px);
    border: 1px solid #777777;
    border-bottom: 0px solid #777777;
    margin-left: -1px;
    padding: 4px 0px 4px 4px;
    background-color: rgba(0, 0, 0, 0.9);

    color: white;

    position: absolute;
    bottom: 0;
}

/*Wraps around the half of the widescreen view that contains our Facebook feed.*/
.fb-wrapper {
    margin-left: auto;
    width: 35%;
}

/*Button styling for the Archive link.*/
.archive-button {
    width: 98%;

    border: 2px solid #777777;
    border-radius: 40px;

    margin: auto;

    padding: 10px 0 10px 0;

    text-align: center;
    color: white;
}

/*Hover styling for the archive link.*/
.archive-button:hover {
    border-color: rgb(172, 185, 69);
    background-color: rgb(127, 140, 25);
    cursor: pointer;
    transition: background-color 0.2s;
}

/*Button Styling for the Twitter link, only appears after screen width < 720 pixels.*/
/*See relevant breakpoint for more info.*/
.twitter-button {
    display: none;

    width: 98%;

    border: 2px solid #777777;
    border-radius: 40px;

    margin: auto;
    margin-top: 6px;

    padding: 10px 0 10px 0;

    text-align: center;
    color: white;

    text-decoration: none;
}

/*Remove text decoration on Twitter button.*/
.twitter-button a {
    text-decoration: none;
}

/*Hover styling for Twitter link.*/
.twitter-button:hover {
    border-color: rgb(172, 185, 69);
    background-color: rgb(127, 140, 25);
    cursor: pointer;
    transition: background-color 0.2s;
}

.archive-table {
    margin: auto;
    margin-top: 10px;
    border-spacing: 0;
    border: 1px solid white;
}

.archive-table td {
    border: 1px solid white;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
}

.archive-table a {
    text-decoration: none;

    color: #aeb850;
}

.archive-table a:hover {
    text-decoration: underline;
}

/*Breakpoint for when screen is < 720px wide.*/
@media only screen and (max-width: 719px) {

    /*Remove Facebook view and only see blogposts.*/
    .news-feed {
        width: 100%;
    }

    /*Increase size of Hero post and center on screen.*/
    .mainpost {
        width: 80%;
        height: 51vw;
        margin: auto;
    }

    /*Child posts now the same size as Hero post.*/
    .subpost {
        width: 80%;
        height: 51vw;
        margin: auto;
        margin-top: 10px;

        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        border: 1px solid #777777;

        position: relative;
    }

    /*Remove space on screen for FB Widget*/
    .fb-wrapper {
        width: 0px;
    }

    /*Make Twitter button visible at bottom of screen.*/
    .twitter-button {
        display: block;
        text-decoration: none;
        border: 2px solid #777777 !important;
        color: white;
    }

    /*Twitter Button hover styles.*/
    .twitter-button:hover {
        border-color: rgb(172, 185, 69) !important;
    }

    /*Remove Twitter Button text deco.*/
    .twitter-button a {
        text-decoration: none;
        color: white;
    }
}