/*
Theme Name: Town Lively
Theme URI: http://underscores.me/
Author: Tower Marketing
Author URI: http://www.towermarketing.net
Description: Custum theme for the Town Lively Website.
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: town-lively
Domain Path: /languages/
Tags:

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

 Town Lively is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.

Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/

Find all styles in /assets/sass/
*/

/* Header navigation styles */
#list-more {
  margin-right: 125px;
}

.searchandfilter2 ul input[type="submit"] {
   {
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0;
    background: #7cc773 url(../images/btn-search.png) no-repeat center center;
    -webkit-transition: background-color 0.3s;
    -ms-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
    transition: background-color 0.3s;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
  }
}
#tl-search-container {
  width: 400px;
}
.search-icon-div {
  float: right;
  height: 30px;
}
#tl-search-icon {
  margin-left: auto;
  margin-right: 0px;
}

.tl-search-wrapper {
  display: none;
  padding: 25px;
  height: auto;
  background-color: rgba(39, 90, 140, 0.88);
  position: absolute;
  right: -33px;
  bottom: -102px;
  z-index: 20000;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1px solid black;
}
.tl-nav-search-background {
  position: absolute;
  width: 100%;
  right: 0;
  bottom: -109px;
  z-index: 20000;
}
.hidden-xs-show {
  display: block !important;
}
.search-open {
  background-image: url("https://www.townlively.com/wp-content/themes/town-lively/assets/images/search-btn.png");

  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: 20px 20px;
}
.search-close {
  background-image: url("https://www.townlively.com/wp-content/themes/town-lively/assets/images/x-mark-btn.png");

  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: 20px 20px;
}

/* Townlively Related Posts*/
.tl-related-header-related-events {
  border-bottom: 3px solid #aa5152;
  font-size: 2rem;
  padding-bottom: 5px;
  margin-bottom: 15px;
  margin-top: 35px;
}
.tl-related-header-related-articles {
  border-bottom: 3px solid #27578c;
  font-size: 2rem;
  padding-bottom: 5px;
  margin-bottom: 15px;
  margin-top: 35px;
}
.tl-related-posts-list {
  list-style: none;
  display: grid;
  margin-left: 0px;
  width: auto;
  grid-template-columns: 1fr 1fr 1fr;
}
.tl-related-list-item {
  max-width: 230px;
  width: auto;
  margin-right: 15px;
}

.tl-related-title {
  font-weight: 800;
  font-size: 1.5rem;
  padding-bottom: 0px;
  margin-bottom: 10px;
}
.tl-related-read-more {
  font-weight: 800;
  font-size: 1.5rem;
}

/* Header Background Styles */
#header-toggle,
#header {
  border-bottom: 5px solid #7dcb78;
  background-repeat: repeat;
  background-color: #f1eee5;
}

/* Handle click through overlapping divs */
.main-navigation {
  pointer-events: none;
}
.nav {
  width: 100%;
  pointer-events: all;
}

/* Search toggle header */
#tl-search-toggle {
  display: none;
}
/* Default Publication styles */
#tl-mid-nav-list-item-first {
  margin-right: 10px;
  margin-left: -15px;
  letter-spacing: 0.9px;
  color: #27578c;
  text-decoration: none;
}

#tl-mid-nav-list-item {
  border-left: solid 2px #27578c;
  padding-left: 15px;
  margin-right: 10px;
  letter-spacing: 0.9px;
  color: #27578c;
  text-decoration: none;
}

#tl-mid-nav-list-item-last {
  border-left: solid 2px #27578c;
  padding-left: 15px;
  margin-right: 10px;
  padding-right: 0px;
  letter-spacing: 0.9px;
  color: #27578c;
  text-decoration: none;
}
/* Default Publication Text styles */
#tl-mid-nav-a {
  padding-bottom: 0px;
  font-size: 3.37rem;
  line-height: 1;
}

#tl-search-icon {
  margin-bottom: 4px;
}
/* Mobile First Media Queriess */

@media (max-width: 500px) {
  #mc_embed_signup input.email {
    width: 73%;
  }
}

@media (max-width: 767px) {
  #tl-mid-nav-list-item-first {
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    margin-left: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item-last {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-a {
    font-size: 2.2rem;
    color: white;
  }
  #nav2 {
    display: none;
    padding-bottom: 0px;
    margin-bottom: 25px;
  }
}

@media (min-width: 768px) and (max-width: 853px) {
  .nav {
    font-size: 1.2rem;
  }
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 1.6rem;
  }
  #nav2 {
    margin-bottom: 50px;
  }
}

@media (min-width: 854px) and (max-width: 1039px) {
  .nav {
    font-size: 1.2rem;
  }
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 2rem;
  }
  #nav2 {
    margin-bottom: 50px;
  }
}

@media (min-width: 1040px) and (max-width: 1124px) {
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 2.2rem;
  }
}

@media (min-width: 1125px) and (max-width: 1200px) {
  #tl-mid-nav-list-item-first {
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    margin-left: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item-last {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 2.95rem;
  }
  #nav2 {
    margin-bottom: 53px;
  }
}
/* Customizer CSS */
/* Header Background Styles */
#header-toggle,
#header {
  border-bottom: 5px solid #7dcb78;
  background-repeat: repeat;
  background-color: #f1eee5;
}

/* Handle click through overlapping divs */
.main-navigation {
  pointer-events: none;
}
.nav {
  pointer-events: all;
}

/* Default Publication styles */
#tl-mid-nav-list-item-first {
  margin-right: 10px;
  margin-left: -15px;
  letter-spacing: 0.9px;
  color: #27578c;
  text-decoration: none;
}

#tl-mid-nav-list-item {
  border-left: solid 2px #27578c;
  padding-left: 15px;
  margin-right: 10px;
  letter-spacing: 0.9px;
  color: #27578c;
  text-decoration: none;
}

#tl-mid-nav-list-item-last {
  border-left: solid 2px #27578c;
  padding-left: 15px;
  margin-right: 10px;
  padding-right: 0px;
  letter-spacing: 0.9px;
  color: #27578c;
  text-decoration: none;
}
/* Default Publication Text styles */
#tl-mid-nav-a {
  padding-bottom: 0px;
  font-size: 3.37rem;
  line-height: 1;
}
#nav2 {
  margin-bottom: 55px;
}
.search-icon-div {
  float: right;

  padding: 15px;
  background-color: #32578c;
  border-radius: 1px;
  margin-bottom: 16px;
}

/* Mobile First Media Queriess */

@media (min-width: 425px) and (max-width: 767px) {
  ul.nav {
    display: inline;
  }

  .mobile-nav .search-form {
    margin-left: auto;
    margin-right: auto;
    width: 400px;
  }
  .mobile-nav input.search-field {
    height: 30px;
    width: 400px;
  }
}

@media (max-width: 500px) {
  /* Mobile Navigation */
  ul.nav {
    display: inline;
  }

  .mobile-nav input.search-field {
    width: 300px;
  }
  #mc_embed_signup input.email {
    width: 73%;
  }
}

@media (max-width: 335px) {
  a.article-title {
    font-size: 1.1rem;
  }

  .filter-buttons {
    width: 240px;
  }
  .mobile-menu-btn.visible-xs {
    margin-right: 7px;
  }
}

@media (max-width: 767px) {
  #tl-mid-nav-list-item-first {
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    margin-left: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item-last {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-a {
    font-size: 2.2rem;
    color: white;
  }
  #nav2 {
    display: none;
    padding-bottom: 0px;
    margin-bottom: 25px;
  }
  #tl-search-icon {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 853px) {
  .nav {
    font-size: 1.2rem;
  }
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 1.6rem;
  }
  #nav2 {
    margin-bottom: 50px;
  }
  #tl-search-icon {
    margin-left: 15px;
  }
  .tl-search-wrapper {
    right: 7px;
  }
}

@media (min-width: 854px) and (max-width: 1039px) {
  .nav {
    font-size: 1.2rem;
  }
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 2rem;
  }
  #nav2 {
    margin-bottom: 50px;
  }
  #tl-search-icon {
    margin-left: 45px;
  }
  .tl-search-wrapper {
    right: 0px;
  }
}

@media (min-width: 1040px) and (max-width: 1124px) {
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 2.2rem;
  }
  #tl-search-icon {
    margin-left: 45px;
  }
  .tl-search-wrapper {
    right: 7px;
  }
}

@media (min-width: 1125px) and (max-width: 1200px) {
  #tl-search-icon {
    margin-left: 140px;
  }
  .tl-search-wrapper {
    right: -6px;
  }

  #tl-mid-nav-list-item-first {
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    margin-left: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-list-item-last {
    border-left: solid 2px #27578c;
    padding-left: 15px;
    margin-right: 10px;
    padding-right: 0px;
    letter-spacing: 0.9px;
  }
  #tl-mid-nav-a {
    padding-bottom: 0px;
    font-size: 2.95rem;
  }
  #nav2 {
    margin-bottom: 53px;
  }
}

/* Townlively Publication Map */
.loadless {
  display: none;
}
.tl-pub-map-title-wrap {
  margin-top: 40px;
  color: #27578c;
  text-align: center;
}
.tl-pub-map-top-title {
  font-size: 4rem;
  text-transform: uppercase;
  font-weight: 100;
}
.tl-pub-map-top-subtitle {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 900;
  color: #7dcb78;
}

.tl-pub-map-mid-title-wrap {
  text-align: center;
  color: #27578c;
}
.tl-pub-map-mid-title,
.tl-pub-map-mid-subtitle {
  font-size: 2rem;
  font-weight: 700;
}

.tl-map-pub-item-arrow {
  opacity: 0.4;
  height: 100px;
  width: 175px;
  margin-bottom: 15px;
}
.tl-map-pub-list {
  list-style: none;
  display: block;
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.tl-map-pub-item {
  display: inline-flex;
  margin-right: 15px;
}
.tl-map-pub-item-image {
  height: 270px;
  overflow: hidden;
  width: 225px;
  border: 1px solid black;
}
.tl-map-pub-item-image-text {
  text-align: center;
  margin-top: 15px;
}
.tl-map-pub-item-image-text h5 {
  margin-top: 5px;
  color: #27578c;
}
.tl-map-pub-1-3rd-col {
}
.tl-pub-map-wrap {
  overflow: hidden;
}
.tl-map-pub-list-sub {
  margin-left: 15px;
}
.tl-map-pub-item-title {
  margin-top: 10px;
}
.tl-map-pub-list-sub-item-title {
  font-size: 1.3rem;
}

.tl-map-pub-list-wrapper {
  margin-bottom: 550px;
}
.tl-map-pub-footer-text-wrapper {
  width: 600px;

  margin-left: 13%;
  margin-right: 5%;
  color: #27578c;
}
.tl-map-pub-footer-button-wrapper {
  width: 300px;
  margin-top: 8px;
}
.tl-map-pub-footer-text-top h3,
.tl-map-pub-footer-text-bottom h3 {
  color: #7f8182;
}
.tl-map-pub-footer {
  text-align: center;
  display: inline-flex;
  width: 100%;
  margin-top: 30px;
}

.tl-map-pub-item-arrow {
  text-align: center;
  font-size: 92px;
  color: #7dcb78;
}

.tl-map-pub-item-arrow i {
  position: relative;
  top: -52px;
}
.tl-map-pub-footer-text-top h3,
.tl-map-pub-footer-text-bottom h3 {
  font-size: 3rem;
}
.tl-map-pub-footer-text-top,
.tl-map-pub-footer-text-bottom {
  text-align: right;
}
.tl-map-pub-footer-button {
  width: 250px;
  height: 55px;
  border-radius: 25px;
  font-size: 2.5rem;
}

.tl-map-pub-item-arrow a {
  color: green;
}
.tl-map-pub-full-width-container {
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}
.tl-map-pub-two-3rds-col {
  margin-bottom: 50px;
  width: 66%;
}
.tl-map-pub-1-3rd-col {
  width: 33%;
  display: inline-flex;
  height: 350px;
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
}
.tl-map-arrow-img {
  width: 50px;
  height: 75px;
}
.tl-map-arrow {
  padding-top: 100px;
  margin-right: 25px;
}
.tl-map-col-1-of-5 {
  width: 300px;
  margin-right: 15px;
}
.tl-map-col-1-of-5 ul {
  margin-left: 18px;
}
.tl-map-data-columns {
  display: inline-flex;
}

.tl-issuu-full-width-top {
  margin-top: 50px;
}
.tl-single-map-top {
  display: inline-flex;
  margin-top: 50px;
}
.tl-single-map-city {
  margin-top: 20px;
  font-size: 2.6rem;
  margin-bottom: 5px;
  color: #27578c;
}
.tl-single-map-pub h2 {
  margin-right: 15px;
  margin-bottom: 5px;
  font-size: 2.8rem;
}
.tl-single-map-mid {
  display: inline-flex;
}
.tl-two-third-col {
  width: 860px;
  height: 430px;
  background-color: black;
  margin-right: 25px;
}
.tl-one-third-col {
  width: 125px;
}
.tl-ad-space-square {
  padding-bottom: 75px;
  height: 200px;
  width: 200px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #27578c;
}
.tl-full-row {
  margin-top: -5px;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  color: #27578c;
}
.active-list-item-region-hover {
  padding: 4px;
  background-color: #27578c;
  border-radius: 25px;
  color: white;
}
.active-list-item-regular-hover {
  padding: 4px;
  background-color: #27578c;
  border-radius: 25px;
  color: white;
}
.active-region {
  fill: #7dcb78;
}
.unactive-region {
  fill: #f1eee5;
}
.active-list-item {
  padding: 4px;
  background-color: #27578c;
  border-radius: 25px;
  color: white;
}
.tl-map-data-columns ul li,
.tl-map-data-columns-single ul li {
  margin-bottom: 10px;
}
.tl-map-data-columns h4,
.tl-map-data-columns-single ul li {
  margin-bottom: 10px;
}
.tl-map-data-columns-mobile ul li {
  margin-bottom: 10px;
}
.tl-map-data-columns-mobile h4 {
  margin-bottom: 10px;
}
.tl-map-data-columns-mobile {
  display: none;
}
.tl-map-pub-item-image img {
  vertical-align: bottom;
}
.tl-map-data-columns,
.tl-map-data-columns-single {
  display: inline-flex;
  width: 100%;
}
/* Map Styles */
.st0 {
  fill: #e1f4fd;
}
.st1 {
  fill: none;
}
.st2 {
  fill: #f1eee5;
  stroke: #ffffff;
  stroke-width: 2;
}
.st3 {
  fill: #c7c8ca;
}
.st4 {
  fill: #c1bdb3;
}
.st5 {
  fill: #f1eee5;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-miterlimit: 10;
}
.st6 {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
}
.st7 {
  fill: #ffffff;
}
.st8 {
  fill: #33598a;
}

/* bounce effect*/

@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-20px);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-20px);
  }
}

.bounce {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-name: bounce;
  animation-name: bounce;
}

/* Media Queries */

/* smallest screens 320px */
@media screen and (min-width: 900px) and (max-width: 1160px) {
  .tl-one-third-col {
    display: inline-flex;
  }

  .tl-map-pub-footer-wrapper {
    height: 215px;
  }
  .tl-map-pub-two-3rds-col {
    width: 55%;
    margin-top: 5%;
  }
  .tl-map-data-columns,
  .tl-map-data-columns-single {
    display: inline-flex;
    width: 100%;
  }
  .tl-map-col-1-of-5 {
    font-size: 1.4rem;
  }
  .tl-map-col-1-of-5 h4 {
    padding-bottom: 10px;
  }
  /* singles map styles */
  .tl-single-map-pub h2 {
    font-size: 2.8rem;
  }
  .tl-single-map-city {
    font-size: 2.4rem;
  }
  .tl-single-map-mid {
    display: inline;
  }
  .tl-two-third-col {
    width: 100%;
    margin-bottom: 25px;
  }
  .tl-ad-space-square {
    width: 100%;
  }
  .tl-one-third-col {
    width: 100%;
  }
}
@media screen and (min-width: 900px) and (max-width: 1000px) {
  .tl-one-third-col {
    display: inline-flex;
  }
  .tl-map-col-1-of-5 h4 {
    padding-bottom: 10px;
  }

  .tl-map-pub-two-3rds-col {
    width: 45%;
    margin-top: 5%;
  }
  .tl-map-data-columns,
  .tl-map-data-columns-single {
    display: inline-flex;
    width: 100%;
  }
  .tl-map-col-1-of-5 {
    font-size: 1.3rem;
  }
  /* singles map styles */
  .tl-single-map-pub h2 {
    font-size: 2.4rem;
  }
  .tl-single-map-city {
    font-size: 2.2rem;
  }
  .tl-single-map-mid {
    display: inline;
  }
  .tl-two-third-col {
    width: 100%;
    margin-bottom: 25px;
  }
  .tl-ad-space-square {
    width: 100%;
  }
  .tl-one-third-col {
    width: 100%;
  }
}
@media screen and (min-width: 801px) and (max-width: 900px) {
  .tl-one-third-col {
    display: inline-flex;
  }
  .tl-map-pub-footer-wrapper {
    height: 215px;
  }
  .tl-map-col-1-of-5 h4 {
    padding-bottom: 10px;
  }

  .tl-map-pub-two-3rds-col {
    width: 37%;
    margin-top: 5%;
  }
  .tl-map-pub-1-3rd-col {
    height: 400px;
  }

  .tl-map-data-columns,
  .tl-map-data-columns-single {
    display: inline-flex;
    width: 100%;
  }
  .tl-map-col-1-of-5 {
    font-size: 1.2rem;
  }
  /* singles map styles */
  .tl-single-map-pub h2 {
    font-size: 2.2rem;
  }
  .tl-single-map-city {
    font-size: 2rem;
  }
  .tl-single-map-mid {
    display: inline;
  }
  .tl-two-third-col {
    width: 100%;
    margin-bottom: 25px;
  }
  .tl-ad-space-square {
    width: 100%;
  }
  .tl-one-third-col {
    width: 100%;
  }
}
@media screen and (min-width: 501px) and (max-width: 800px) {
  .tl-one-third-col {
    display: inline-flex;
  }
  .tl-map-pub-footer-wrapper {
    height: 180px;
  }
  .tl-map-col-1-of-5 h4 {
    padding-bottom: 10px;
  }

  .tl-map-pub-item-image-text h5 {
    font-size: 1.5rem;
  }
  .tl-map-pub-two-3rds-col {
    margin-bottom: 25px;
    width: 100%;
  }
  .tl-map-pub-item-image {
    height: 222px;
    width: 185px;
  }

  .loadmore {
    padding-top: 100px;
    margin-right: 25px;
    position: absolute;
    right: -80%;
    top: -10%;
  }
  .loadless {
    position: absolute;
    display: inline;
    left: -60%;
    top: -10%;

    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
  }
  .tl-map-pub-footer-text-top h3,
  .tl-map-pub-footer-text-bottom h3 {
    text-align: center;
    font-size: 2rem;
  }
  .tl-map-pub-footer-text-wrapper {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .tl-map-pub-item {
    position: relative;
    height: 300px;
    margin-bottom: 25px;
  }
  /* singles map styles */
  .tl-single-map-pub h2 {
    font-size: 2rem;
  }
  .tl-single-map-city {
    font-size: 1.8rem;
  }
  .tl-single-map-mid {
    display: inline;
  }
  .tl-two-third-col {
    width: 100%;
    margin-bottom: 25px;
  }
  .tl-ad-space-square {
    width: 100%;
  }
  .tl-one-third-col {
    width: 100%;
  }
}
@media screen and (max-width: 500px) {
  .tl-one-third-col {
    display: inline-flex;
  }

  .tl-map-data-columns-single {
    display: inline;
    width: 100%;
  }
  .tl-map-col-1-of-5 h4 {
    padding-bottom: 10px;
  }
  .tl-map-pub-item {
    position: relative;
    height: 200px;
    margin-bottom: 25px;
  }
  .tl-map-pub-item-image-text h5 {
    font-size: 2.5rem;
    margin-top: 20px;
  }
  .tl-map-pub-two-3rds-col {
    margin-bottom: 50px;
    width: 100%;
  }
  .tl-map-pub-item-image {
    height: auto;
    width: 145px;
}
.tl-map-pub-details {
  width: 145px;
}
  .loadmore {
    padding-top: 100px;
    margin-right: 25px;
    position: absolute;
    right: -80%;
    top: -20%;
  }
  .loadless {
    position: absolute;
    display: inline;
    left: -70%;
    top: -20%;

    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
  }
  .tl-map-pub-footer-text-top h3,
  .tl-map-pub-footer-text-bottom h3 {
    text-align: center;
    font-size: 1.2rem;
  }
  .tl-map-pub-footer-text-wrapper {
    width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  /* singles map styles */
  .tl-single-map-pub h2 {
    font-size: 2rem;
  }
  .tl-single-map-city {
    font-size: 1.8rem;
  }
  .tl-single-map-mid {
    display: inline;
  }
  .tl-two-third-col {
    width: 100%;
    margin-bottom: 25px;
  }
  .tl-ad-space-square {
    width: 100%;
  }
  .tl-one-third-col {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .tl-map-data-columns-mobile {
    display: inline;
    text-align: left;
  }
  .tl-map-data-columns {
    display: none;
  }

  .tl-map-pub-1-3rd-col ul {
    margin-left: 6px;
  }
  .tl-map-col-1-of-5 ul {
    margin-left: 6px;
  }
  .tl-map-col-1-of-5 {
    margin-left: auto;
    margin-right: auto;
   
  }

  .tl-map-pub-item {
    margin-right: 0px;
  }
  .tl-pub-map-top-title {
    font-size: 1.3rem;
  }
  .tl-pub-map-top-subtitle {
    font-size: 1rem;
  }
  .tl-map-pub-full-width-container {
    width: 100%;
    display: inline;
  }
  .tl-map-col-1-of-5 ul {
    list-style: none;
  }
  .tl-map-pub-footer-text-top {
    margin-top: 20px;
  }
  .tl-map-pub-footer {
    display: inline;
  }
  .tl-map-pub-footer-button-wrapper {
    width: 75%;
    margin: 20px auto 20px auto;
  }

  .tl-map-pub-two-3rds-col {
    position: relative;
  }
  .tl-map-pub-1-3rd-col {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-left: 0px;
    height: 100%;
  }
  .tl-pub-map-title-wrap {
    margin-top: 80px;
  }
}

.tl-fair-hero-image {
  position: relative;
  background-image: url("https://www.townlively.com/wp-content/uploads/2018/08/etownfair.jpg");
  width: 100%;
  height: 500px;
  background-position: center;
  /* Make the background image cover the area of the <div>, and clip the excess */
  background-size: cover;
  z-index: 1;
}

.tl-fair-hero-caption-panel {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 25px;
}
.tl-fair-hero-caption-wrap {
  position: absolute;
  top: 400px;
  left: 1020px;
  width: 250px;
  z-index: 2;
}
.tl-fair-page-title-wrap {
  text-align: center;
  border-bottom: 5px solid #aadea6;
  width: 100%;
}

.tl-fair-page-title-text {
  /*font-family: MissionGothic;*/
  color: rgba(33, 88, 141, 1);
  font-size: 4vw;
  padding: 20px;
  font-weight: 800;
}

/* controls the max width of the fair thumbails and title */
.tl-content-wrap {
  width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.tl-fair-content-holder {
  text-align: center;
  width: 100%;
}
.tl-fair-thumbnail {
  background: gray;
  position: relative;
  width: 400px;
  height: 250px;
  float: left;
  margin-bottom: 20px;
  overflow: hidden;
}
.tl-fair-text-background {
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.75);
  position: absolute;
  top: 205px;
  text-align: center;
  width: 100%;
  height: 50px;
  vertical-align: middle;
}
.tl-fair-text {
  color: white;
  font-size: 3rem;
  font-weight: 800;
}
.fair-feature_image {
  z-index: 1;
  width: 100%;
  height: 325px;
}
.tl-fair-thumbnail-wrap {
  padding-top: 20px;
  width: 100%;
}
.tl-fair-list-holder {
  margin-left: -20px;
  list-style: none;
  width: 1300px;
  display: inline-block;
}
img.tl-fair-featured-image {
  height: 100%;
  width: 100%;
}

.lSSlideOuter .lSPager.lSGallery li {
  background: black;
}

/*  townlively fair single page */
.tl-single-content-top {
  text-align: center;
  /* font-family: MissionGothic; */
  color: rgba(33, 88, 141, 1);
  font-size: 4vw;
  padding: 20px;
  font-weight: 800;
}
.tl-single-wrapper {
  max-width: 1200px;
  padding: 20px 55px;
  margin-left: auto;
  margin-right: auto;
}
.tl-single-content-date {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 2.5rem;
  padding: 20px;
}
.tl-single-content-text {
  max-width: 1000px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
.tl-main-slider-image {
  text-align: center;
  margin: 35px;
}
.tl-slider-wrapper {
  margin-left: 3%;
  margin-right: 3%;
  background-color: lightgray;
  padding-top: 10px;
  padding-left: 3%;
  padding-right: 3%;
}
#imageGallery {
  text-align: center;
}
.lSPager.lSGallery {
  margin-top: 25px;
}
.tl-img-counter-wrapper {
  display: inline-flex;
  list-style: none;
  margin-left: 0px;
}
.tl-img-counter-holder {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
}
.tl-img-counter-text {
  margin-left: 5px;
  margin-right: 5px;
}
.tl-go-back-link-wrapper {
  margin-top: 70px;
  margin-left: 16%;
}
.tl-go-back-link {
  font-size: 2rem;
}

@media screen and (min-width: 1210px) and (max-width: 1310px) {
  .tl-fair-hero-caption-wrap {
    position: absolute;
    top: 360px;
    left: 930px;
    width: 250px;
    z-index: 2;
  }
}

@media screen and (min-width: 1110px) and (max-width: 1209px) {
  .tl-fair-hero-caption-wrap {
    position: absolute;
    top: 365px;
    left: 800px;
    width: 250px;
    z-index: 2;
  }
}

@media screen and (min-width: 1010px) and (max-width: 1109px) {
  .tl-fair-hero-caption-wrap {
    position: absolute;
    top: 365px;
    left: 750px;
    width: 250px;
    z-index: 2;
  }
}

@media screen and (min-width: 910px) and (max-width: 1009px) {
  .tl-fair-hero-caption-wrap {
    position: absolute;
    top: 365px;
    left: 650px;
    width: 250px;
    z-index: 2;
  }
  .site-title {
    width: 45%;
  }
}
@media screen and (min-width: 851px) and (max-width: 986px) {
  .tl-fair-hero-caption-wrap {
    left: 500px;
  }
}
@media screen and (min-width: 851px) and (min-width: 1301px) {
  .tl-fair-thumbnail {
    margin-left: 20px;
  }
  img.tl-fair-featured-image {
    height: 100%;
    width: 100%;
    width: 500px;
  }
}
@media screen and (min-width: 851px) and (max-width: 1300px) {
  img.tl-fair-featured-image {
    height: 100%;
    width: 100%;
    width: 500px;
    max-width: 500px;
  }

  .tl-fair-content-holder {
    text-align: center;
    width: 100%;
  }

  .tl-fair-list-holder {
    width: 850px;
  }
  .tl-content-wrap {
    width: 100%;
  }
  .tl-fair-thumbnail-wrap {
    width: 100%;
  }
  .tl-fair-thumbnail {
    float: left;
    width: 400px;
    margin-left: 20px;
  }
}
#imageGallery img {
  min-width: 250px;
  /*min-height: 250px;*/
  height: auto;
  max-width: 1000px;
}
.lSPager li.active,
.lSPager li:hover {
  border-radius: 0px;
  border: 3px solid gold;
}
@media screen and (max-width: 1010px) {
  .main-navigation ul li {
    float: left;
    position: relative;
    margin: 0 0 0 0 !important;
  }
}

@media screen and (max-width: 850px) {
  .main-navigation ul li a {
    display: block;
    text-decoration: none;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .tl-fair-page-title-text {
    font-size: 2;
  }

  .fair-feature_image {
    height: auto;
  }
  img.tl-fair-featured-image {
    height: 100%;
    width: 100%;

    min-width: 500px;
  }
  .tl-fair-list-holder {
    margin-left: 0px;
  }
  .tl-fair-hero-caption-wrap {
    left: 450px;
  }
  .tl-fair-text-background {
    top: 300px;
  }
  .tl-fair-thumbnail {
    height: 350px;
  }
  /* #imageGallery img{
        min-width: 250px;
        min-height: 250px;
         height: 500px;
         max-width: 800px;
    } */
  .tl-img-counter-holder {
    width: 100%;
  }
  .lSSlideOuter .lSPager li {
    margin-left: auto;
    margin-right: auto;
  }
  .lSSlideOuter .lSPager.lSGallery img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 200px;
    max-width: 100%;
  }
  #header.site-title {
    width: 86px;
    margin-top: 11px;
    margin-left: -10px;
  }
  .tl-single-content-date {
    font-size: 2rem;
  }
  .tl-single-content-top {
    margin-top: 50px;
    font-size: 5rem;
  }
  .lSSlideOuter.lSPager img {
    height: 125px;
  }
  .lSPager li.active,
  .lSPager li:hover {
    border-radius: 0px;
    border: 3px solid gold;
  }
  .lSpager li img {
    height: 125px;
  }

  .site-title {
    width: 45%;
  }
  /* #imageGallery img{
        min-width: 250px;
        min-height: 250px;
    } */
  .tl-fair-content-holder {
    text-align: center;
    width: 100%;
  }
  .tl-content-wrap {
    width: 100%;
  }
  .tl-fair-thumbnail-wrap {
    width: 100%;
  }
  .tl-fair-list-holder {
    float: none;
    width: 100%;
  }
  .tl-fair-thumbnail {
    float: none;
    width: 100%;
  }
}
@media screen and (min-width: 661px) and (max-width: 770px) {
  .tl-fair-hero-caption-wrap {
    left: 171px;
    top: 300px;
  }
}

@media screen and (min-width: 440px) and (max-width: 667px) {
  .tl-fair-hero-caption-wrap {
    left: 300px;
    top: 350px;
  }
}
@media screen and (max-width: 552px) {
  .tl-single-content-top {
    font-size: 3rem;
    margin-top: 10%;
  }
}

@media screen and (min-width: 391px) and (max-width: 660px) {
  .lSSlideOuter .lSPager.lSGallery img {
    margin-left: auto;
    margin-right: auto;
    height: 175px;
  }
}
@media screen and (min-width: 391px) and (max-width: 660px) {
  .lSSlideOuter .lSPager.lSGallery img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 135px;
    max-width: 100%;
  }
}

@media screen and (min-width: 391px) and (max-width: 660px) {
  .lSSlideOuter .lSPager.lSGallery img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 135px;
    max-width: 100%;
  }
  .tl-fair-hero-caption-wrap {
    left: 121px;
    top: 300px;
  }
}
@media screen and (min-width: 320px) and (max-width: 410px) {
  a#goToNextSlide.lSNext.tl-slider,
  a#goToPrevSlide.lSPrev.tl-slider {
    top: 92%;
  }
}

@media screen and (min-width: 320px) and (max-width: 390px) {
  .lSSlideOuter .lSPager.lSGallery img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 64px;
    max-width: 100%;
  }
  .tl-fair-hero-caption-wrap {
    left: 28px;
    top: 300px;
  }
}
