@import "../variables"; .event-post { margin-bottom: $double-margin; &__head { margin-bottom: 1.25em; h3 { font-size: $big-font-size; text-align: center; } .date { text-align: center; color: #aaa; } a { color: $dark-color; border-bottom: none; } } &__body{ img { max-width: 100%; //max-height: 100%; max-height: 40em; display: block; margin: 1.25em auto $small-margin; } p { margin-bottom: 1.25em; } } } @media (max-width: $mobile-width) { .event-post { &__body { img { max-height: 20em; } } } }