.topheader {
    display: flex;
    justify-content: space-between;
}

@media(min-width: 768px) {
    #trendzbox {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.trend {
    padding: 10px;
    /* max-height: 60vw; */
    overflow: hidden;
    /* border: 0.5px solid chartreuse; */
    background: linear-gradient(to top,honeydew, white);
    border-radius: 5px;
    margin: 5px;
    position: relative;
}

/* Phones have small width screens but are really tall */
@media(max-width: 480px) {
    .trend {
        height: 100vw;
    }
    .trendpictures, .trendpicture {
        height: 62vw;
     }
    .trenddetails {
        height: 38vw;
    }
}
@media(max-width: 768px) and (min-width: 481px) {
    .trend {
        height: 80vw;
    }
    .trendpictures, .trendpicture {
        height: 60vw;
    }
    .trenddetails {
        height: 20vw;
    }
}
@media(min-width: 768px) {
    .trend {
        height: 42vw;
    }
    .trendpictures, .trendpicture {
        height: 27vw;
     }
    .trenddetails {
        height: 15vw;
    }
}
@media(min-width: 1080px) {
    .trend {
        height: 38vw;
    }
    .trendpictures, .trendpicture {
        height: 28vw;
     }
    .trenddetails {
        height: 10vw;
    }
}

.trendpictures {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.trendpicture {
    display: grid;
    place-items: center;
    height:100%;
    width: 100%;
}

.trendpicture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* aspect-ratio: preserve; */
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.trendorpicture {
    position: absolute;
    left: 1px;
    bottom: 1px;
    height: 5vw;
    width: 5vw;
}

.trendorpicture img {
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    border-radius: 50%;
    /* border: 0.4px solid chartreuse; */
}
.trenddetails {
    /* max-height: 22vw; */
    position: relative;
    overflow: hidden;
}
/* .trendtext {
    padding-bottom: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
} */
.trendauthor {
    /* font-weight: bold; */
    color: purple;
}
.spacer {
    padding-bottom: 10px;
}
option {
    padding: 10px;
}
.trendreadmore {
    position: absolute;
    bottom: 10px;
    left: 0px;
    background-color: black;
    color: white;
    width: 100%;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    text-align: center;
    padding: 10px;
    transition: background-color 0.4s ease-in-out;
}
.trendreadmore .link {
    color: white;
}
.trendreadmore:hover .link {
    color: rgba(255, 0, 102, 1);
}
.trendreadmore:hover {
    background-color: white;
    color: rgba(255, 0, 102, 1);
    box-shadow: inset 0 0 0 1px black;
}

/* on index page */
.indexpagetrends .trend:hover {
    background: linear-gradient(to top,white, honeydew);
}
.trendmetas {
    font-size: small;
}
/* end of on index page */

/* **************showtrend styles****************** */
@media (min-width: 768px) {
    .flex-content {
        display: flex;  
      }
    .main-content {
        flex: 8;
        margin-right: 0.5vw;
        padding-right: 0.5vw;
        border-right: 0.4px solid rgba(128,128,128,0.8);
    }
    .side-content {
        flex: 3;
    }
}

.smallauthorpic {
    width: 5vw;
    height: 5vw;
}
.smallauthorpic img {
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    border-radius: 50%;
}
.trendmetadata {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 0.3vw 0;
}
.trendmets {
    display: flex;
}
.trendmets div {
    border-right: 1px solid black;
    padding: 0px 0.8vw;
}
.trendmets div:last-child {
    border-right: none;
}
.trendtop {
    background-color: white;
}
.trendviews {
    color: green;
    font-weight: bold;
    background: white;
    padding: 5px;
    border-radius: 3px;
}
.trendimage {
    max-width: 480px;
    overflow: auto;
}
.trendimage img {
    width: 100%;
}
.trendimageandcontent {
    /* min-height: 64vh; */
    overflow: hidden; /*coz the image floats*/
    
}
.trendimageandcontent img {
    max-width: 100%;
    max-height: 64vh;
    float: left;
    padding-right: 5px;
    padding-bottom: 5px;
}
.trendcontent::first-letter {
    font-size: x-large;
    font-weight: bold;
}
.authortag {
    text-align: center;
    background: linear-gradient(to right, chartreuse, aquamarine);
    padding: 10px;
}
.trendcatch {
    display: flex;
}
.authorpic {
    display: flex;
    justify-content: center;
}

.authorpic img {
    width: 10vw;
    height: 10vw;
    object-fit: cover;
    border-radius: 50%;
}
.authorname {
    font-weight: bold;
    text-align: center;
}
