body.single-balloon .balloon-container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (min-width: 1200px) {
  body.single-balloon.ast-right-sidebar .site-content > .ast-container {
    display: block !important;
  }
}

.related-balloon-posts {
    justify-content: flex-start;
    gap: 20px;
    margin: 0;
}

.related-balloon-posts .child-post {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin: 0;
}

.single-balloon .entry-content p,
.post-type-archive-balloon .entry-content p {
    margin-bottom: 1%;
}

.balloon-word, .balloon-year, .balloon-location {
	font-size: 20px;
}

.child-post .custom-fields .balloon-word {
    font-style: italic;
}

.balloon-popup .leaflet-popup-content-wrapper {
    width: 300px;
	 	box-shadow: none;
    border-radius: 0px;
}

nav, .single-balloon .entry-content p, .balloon-popup .leaflet-popup-content, .single-balloon #secondary {
	font-size: 20px;
}

.balloon-popup .leaflet-popup-content .popup-text {   padding: 10px;
}

@media (max-width: 768px) {
    .balloon-popup .leaflet-popup-content {
        width: 300px !important;
    }
}

.balloons_city_country {
	font-weight: 600;
}

.balloons_word {
	font-style: italic !important;
}

.balloons_word, .balloons_year {
    display: inline-block;
}

.balloons_word:after {
    content: ",";
    margin-right: 5px;
}

.center-balloon-locations {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;   padding: 0 20px;
}

.center-balloon-locations details {
  width: 100%;
  text-align: left;
	margin-bottom: 10px;
}

.center-balloon-locations summary {
  text-align: center;
  width: 100%;
  cursor: pointer;
}

.center-balloon-locations strong {
  font-size: 120%;
}

.center-balloon-locations summary {
  font-size: 1.5em;
}

@media (min-width: 800px) {
  .center-balloon-locations {
    width: 800px;
  }
}

.balloon-tooltip {
    display: none;
    position: absolute;
    color: black;
    font-size: 20px;
    max-width: 300px;
    background: white;
    overflow: hidden;
    padding: 0px 10px 0px 0;     box-sizing: border-box;
}

.balloon-tooltip p {
    margin-left: 10px;
    margin-bottom: 0;
}

.balloon-cities {
    text-align: center;
  	margin-bottom: 30px !important;
}

.balloon-title {
    text-align: center;
	  margin-top: 30px;
    margin-bottom: 20px;
		    font-size: 2.3rem !important;
    line-height: 1.2em !important;
}

.balloon-featured-image {
    text-align: center;
}

.balloon-meta {
	margin-top: 15px !important;
	margin-bottom: 50px !important;
}

.balloon-meta p {
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.1em;
}

.balloon-meta i {
    font-style: italic;
}

.balloon-featured-image img {
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;     width: 100%;
}

@media (max-width: 1200px) {
    .balloon-featured-image img {
        max-width: 100%;     }
}

.related-balloon-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: -15px;
}

.ast-right-sidebar #primary, .ast-right-sidebar #secondary {
	border: 0px;
}

@media (prefers-color-scheme: dark) {
	.balloons_city_country, .balloons_word, .balloons_year, .balloons_location {
	color: white;
}
	
	.balloon-popup .leaflet-popup-content-wrapper {
		background: black;
	}
}

.breadcrumb a {
    padding: 2px 4px;
	border-bottom: 2px solid;
}

@media (prefers-color-scheme: dark) {
    .breadcrumb a:hover {
        background: inherit !important;
        color: inherit !important;
    }
}

@media (min-width: 1200px) {
  body.single-balloon.ast-right-sidebar .balloon-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 60px;
    align-items: start;
  }
}

@media (max-width: 1199px) {
  body.single-balloon #secondary {
    display: block !important;
  }
}

@media (max-width: 1199px) {
  body.single-balloon #secondary {
    margin-top: 40px;
  }
}

@media (max-width: 922px) {
    .single-balloon #primary,
    .single-balloon #secondary {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .related-balloon-posts .child-post {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (min-width: 922px) {
    .single-balloon #primary {
        width: calc(100% - 380px) !important;
        margin-right: 40px !important;
    }
    
    .single-balloon #secondary {
        width: 340px !important;
    }
}

@media (max-width: 922px) {
    .single-balloon #primary,
    .single-balloon #secondary {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .related-balloon-posts .child-post {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* hard-fix: only country link may be clickable in caption */
.single-balloon .balloon-meta a:not(.balloon-country-link) {
  pointer-events: none;
  border: 0 !important;
}

/* kill Astra sidebar width ONLY when stacked */
@media (max-width: 1199px) {
  body.single-balloon #secondary {
    width: auto !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* parent page */

@media (min-width: 1200px) {
  body.post-type-archive-balloon .balloon-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 60px;
    align-items: start;
  }
}

/* Parent balloon pages: stacked layout fix */
@media (max-width: 1199px) {
  body.post-type-archive-balloon #primary {
    width: 100% !important;
    margin-right: 0 !important;
  }

  body.post-type-archive-balloon #secondary {
    width: auto !important;
    max-width: 640px;
    margin: 40px auto 0;
  }
}

@media (max-width: 1199px) {
  body.single-balloon .balloon-container,
  body.post-type-archive-balloon .balloon-container {
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
  }
}

/* Default (above 900px): 2-up */
@media (min-width: 901px) {
  .single-balloon .related-balloon-posts .child-post {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .single-balloon .related-balloon-posts .child-post {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}