.menu #menu-item-42 ul, .menu .menu-item-42 ul {
	display: none !important;
}

.menu #menu-item-42.menu-item-has-children:after {
	display: none;
}

#main-content .lunch-news-summary .lunch .lunch-content p {
	margin: 0 !important;
}

#main-content .lunch-news-summary .lunch .lunch-content {
  color: white;
}

#main-content .lunch-news-summary .lunch .lunch-content .lunch-row {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0;
    color: #BCB050 !important;
    font-size: 17px;
}

#main-content .lunch-news-summary .lunch .lunch-content {
	  border-bottom: 1px solid #BCB050;
    padding: 20px !important;
}

#main-content .image-links a {
/*   width: calc(100% - 40px) !important; */
}
.tapahtumawrapper {
/*     display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem; */
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(600px,1fr));
  grid-auto-rows: 1rem;
  justify-items: center;
}

.tapahtumawrapper h2.main-caption {
  margin: 0 0 2rem;
  padding: 0;
}

.tapahtumacontainer {
/*  background-color: #0c1932;
  color: white; */
  text-align: center;
  width: 650px;
  padding: 1rem;
}

/* .tapahtumacontainer:nth-child(even) {
    border-left: solid 1px #bcb050;
} */

.tapahtumakuvacontainer {
  width: 100%;
  height: 300px;
  background-position: center;
  background-size: cover;
  margin-bottom: 1rem;
}

.tapahtumacontainer h3 {
    margin: 0;
    color: #BCB050;
    font-family: capitolium-2, serif;
    font-size: 1.5rem;
  }

.tapahtumacontainer h4, .tapahtumacontainer h4 > p {
  margin: 0 !important;
  font-size: 1.4rem;
}

.tapahtumacontainer p {
text-align: center !important;
}

.tapahtumafooter {
    width: 100%;
    height: 35px;
    background: url(https://upseerikerho.fi/wp-content/themes/upseerikerho/images/main-header-divider.png) center no-repeat;
    background-size: contain;
}

#main-footer .bottom:before, h2.main-caption:after {
  max-width: 640px !important;
  width: 90vw !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  background-size: contain !important;
}

@media (max-width: 1600px) {
.tapahtumawrapper {
      grid-auto-rows: auto !important;
}
}

@media (max-width: 768px) {
.tapahtumawrapper {
    grid-template-columns: repeat(auto-fill, minmax(100%,1fr));
}

.tapahtumacontainer {
  width: 100% !important;
}
}

#overlay {
  width: 100vw !important;
}

#main-header.sub:after {
  position: absolute;
  bottom: -10px;
  left: 50%;
  max-width: 300px;
  height: 17px;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  content: "";
  background: url(../images/main-header-divider.png) 50% 50% no-repeat;
  background-size: contain;
}

@media (min-width: 576px) {
  #main-header.sub:after {
    width: 576px !important;
    max-width: 600px !important;
    bottom: -20px;
    margin-left: 0 !important;
  }
}