/* ================================
   AMP Fix
================================ */
amp-next-page div[footer] { display: none !important; }

/* ================================
   Dates
================================ */
/* Force consistent Post Date typography everywhere */
.wp-block-post-date,
.wp-block-post-date * {
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* ================================
   Buttons
================================ */
.wp-block-button__link,
.button,
.wp-block-button .wp-block-button__link {
  background-color: #2e6eb5 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  line-height: 1.2;
}
.wp-block-button__link:hover,
.button:hover {
  background-color: #1e4d84 !important;
  color: #ffffff !important;
}

/* Black button variant */
.black-button .wp-block-button__link,
.wp-block-button.black-button .wp-block-button__link {
  background-color: #000 !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.black-button .wp-block-button__link:hover,
.wp-block-button.black-button .wp-block-button__link:hover {
  background-color: #222 !important;
}

/* ================================
   Column Height Variants
================================ */
.news-short-column,
.news-long-column,
.home-short-column,
.home-long-column,
.lifestyle-short-column,
.school-short-column,
.school-long-column,
.sports-short-column,
.sports-long-column,
.additional-column{
  box-sizing: border-box;
  padding-right: 8px;
  overflow: hidden;
  overflow: clip;
}

/* Individual caps */
.news-short-column      { max-height: 500px; }
.lifestyle-short-column { max-height: 500px; }
.school-short-column    { max-height: 500px; }
.sports-short-column    { max-height: 800px; }

.news-long-column       { max-height: 1550px; }
.home-short-column      { max-height: 980px; }
.home-long-column       { max-height: 2100px; }
.school-long-column     { max-height: 1200px; }
.sports-long-column     { max-height: 1070px; }

/* ================================
   Top Story Column (no height cap)
================================ */
.top-story-column {
  box-sizing: border-box;
  padding-right: 8px;
  overflow: visible;
}
.top-story-column img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

/* ================================
   Uniform Image Sizing in Columns
================================ */
.news-short-column img,
.news-long-column img,
.home-short-column img,
.home-long-column img,
.lifestyle-short-column img,
.school-short-column img,
.school-long-column img,
.sports-short-column img,
.sports-long-column img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

/* Optional: prevent cropping where needed */
.no-crop img {
  object-fit: contain !important;
  background-color: #fff;
}

/* ================================
   Responsive Adjustments
================================ */
@media (max-width: 1024px) {
  .news-short-column img,
  .news-long-column img,
  .home-short-column img,
  .home-long-column img,
  .lifestyle-short-column img,
  .school-short-column img,
  .school-long-column img,
  .sports-short-column img,
  .sports-long-column img {
    height: 180px;
  }
  .top-story-column img { height: 360px; }
}

@media (max-width: 781px) {
  .news-short-column,
  .news-long-column,
  .home-short-column,
  .home-long-column,
  .top-story-column,
  .lifestyle-short-column,
  .school-short-column,
  .school-long-column,
  .sports-short-column,
  .sports-long-column {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0;
  }

  .news-short-column img,
  .news-long-column img,
  .home-short-column img,
  .home-long-column img,
  .lifestyle-short-column img,
  .school-short-column img,
  .school-long-column img,
  .sports-short-column img,
  .sports-long-column img {
    height: 150px;
  }

  .top-story-column img { height: 300px; }
}

/* ================================
   Per-column vertical spacing reset
================================ */
.wp-block-columns > .no-vert-space {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

.no-vert-space > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.no-vert-space > *:last-child  { margin-bottom: 0 !important; padding-bottom: 0 !important; }

@media (max-width: 781px) {
  .wp-block-columns:has(> .no-vert-space) {
    --wp--style--block-gap: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
  }
  .wp-block-columns:has(> .no-vert-space) > .wp-block-column {
    margin-block: 0 !important;
  }
}

/* ================================
   Footer (links + contact)
================================ */
.footer-links a,
.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links,
.footer-contact {
  text-align: center;
  margin: 0;
}

.footer-links { margin-bottom: 10px; }

.mobile-br { display: none; }

@media (max-width: 781px) {
  .footer-links,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-links a,
  .footer-contact a {
    display: block;
  }

  .mobile-br {
    display: block;
    height: 0;
    line-height: 0;
    margin: 6px 0;
  }
}

/* ================================
   SINGLE POST OVERRIDES
================================ */

/* Allow full content on single posts (without breaking child block layouts) */
.single-post .entry-content {
  overflow: visible !important;
  max-height: none !important;
}

/* If any of your column-cap classes are accidentally used on single posts,
   force them to behave normally there */
.single-post .news-short-column,
.single-post .news-long-column,
.single-post .home-short-column,
.single-post .home-long-column,
.single-post .lifestyle-short-column,
.single-post .school-short-column,
.single-post .school-long-column,
.single-post .sports-short-column,
.single-post .sports-long-column {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}

/* ================================
   SINGLE POST: Top image (robust selector)
   Slightly taller than cards so it doesn’t feel like a header
================================ */
.single-post .entry-content.single-content figure.wp-block-image:first-of-type {
  float: none !important;
  clear: both !important;
  display: block !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.single-post .entry-content.single-content figure.wp-block-image:first-of-type img {
  display: block !important;
  width: 100% !important;

  /* Taller than cards for single posts */
  /*height: 320px !important;
  object-fit: cover !important;*/
  object-position: center !important;
  border-radius: 2px;
}

.single-post .entry-content.single-content figure.wp-block-image:first-of-type + * {
  clear: both !important;
  margin-top: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .single-post .entry-content.single-content figure.wp-block-image:first-of-type img {
    height: 220px !important;
  }
}

/* Mobile */
@media (max-width: 781px) {
  .single-post .entry-content.single-content figure.wp-block-image:first-of-type img {
    height: 180px !important;
  }
}
/*New CSS by Alexander*/

/*Sanpete Happenings*/
@media (min-width: 781px) {
	.news-wrapper {
		position:relative;
	}
	.news-dynamic {
		position:relative;
		padding-right:1.5%;
	}
	.news-static {
		padding-left:1.5%;
    position: absolute;
    flex-basis:33.3%;
    width:33.3%;
    top: 0px;
    bottom: 0px;
    right: 0px;
    overflow-y: auto;
	}
	.news-mobile {
		display:none;
	}
}
@media (max-width: 781px) {
	.news-desktop {
		display:none;
	}
}

/*hidden*/
.tribe-events-c-events-bar,
.tribe-events-c-top-bar,
.tribe-events-calendar-latest-past {
	display:none !important;
}

/*TEMP*/
body{
	font-family:serif;
}