*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
  content: '';
  display: table;
}

.clearfix:after {
  clear: both;
}

.display-inline * {
  display: inline-block;
}

.aria-hide {
  display: none;
}

#skip a {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#skip a:focus {
  position: static;
  width: auto;
  height: auto;
}

/* Variables */
:root {
  --primary-brand: #CAE0E3;
  --secondary-brand: #2B3245;
  --accent-1: #E68A63;
  --accent-2: #2D6CB7;
  --accent-3: #9AD8E2;

  --dark-grey: #3B3B3B;
  --medium-grey: #7B8591;
  --light-grey: #f6f6f6;
  --black: #2B3245;

  --serif-font: sofia-pro, sans-serif;
  --sans-serif-font: azo-sans-web, sans-serif;

  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;
  --font-extra-bold: 800;

  --dark-font-color: #2B3245;
  --light-font-color: #fff;
  --secondary-text: #fff;
  --btn-text: #2B3245;
}

/* background-colors */
.primary-brand_bg {
  background-color: var(--primary-brand);
}

.secondary-brand_bg {
  background-color: var(--secondary-brand);
}

.light-grey_bg {
  background: #EAEAEA
}

.light-blue_bg {
  background: var(--primary-brand)
}

.blue_bg {
  background: #99c5f1
}

.teal_bg {
  background: var(--accent-3)
}

/* icon links background colors */
.purple1_bg {
  background-color: #800080;
  color: #fff
}

.purple2_bg {
  background-color: #660066;
  color: #fff
}

.red_bg {
  background-color: #800000;
  color: #fff
}

.green1_bg {
  background-color: #9aed9b;
  color: var(--dark-font-color)
}

.green2_bg {
  background-color: #226600;
  color: #fff
}

.blue1_bg {
  background-color: #2C7DC1;
  color: #fff
}

.blue2_bg {
  background-color: #226699;
  color: #fff
}

.gold_bg {
  background-color: #CC9900;
  color: #fff
}

.lb_border {
  background: #9AD2DB
}

.mb_border {
  background: #2D6CB7
}

.db_border {
  background: #173178
}

/* TYPOGRAPHY
Using the Perfect Fifth factor from https://www.gridlover.net/try
*/
html {
  font-size: 16px;
  line-height: 21px;
  scroll-behavior: smooth;
}

body {
  max-width: 2560px;
  padding: 0;
  margin: 0 auto;
  font-family: var(--sans-serif-font);
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--body-font-color);
}

h1,
.h1 {
  font-family: var(--serif-font);
  font-weight: var(--font-extra-bold);
  font-style: normal;
  font-size: 3.348rem;
  margin-top: 1.3125rem;
  margin-bottom: 2.625rem;
}

h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--serif-font);
  font-weight: var(--font-extra-bold);
  font-style: normal;
}

h2,
.h2 {
  font-size: 2rem;
  margin-top: 1.3125rem;
  margin-bottom: 1.3125rem;
}

h3,
.h3 {
  font-size: 1.625rem;
  margin-top: 1.3125rem;
  margin-bottom: 0.75rem;
}

h4,
.h4 {
  font-size: 1rem;
  margin-top: 1.3125rem;
  margin-bottom: 0rem;
}

h5,
.h5 {
  font-size: 1rem;
  margin-top: 1.3125rem;
  margin-bottom: 0rem;
}


p,
ul,
ol,
pre,
blockquote {
  margin-top: 0rem;
  margin-bottom: 1.3125rem;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

h1+h2 {
  margin-top: 0;
}

p {
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.text-left {
  text-align: left;
}

/* Events */
.format-date {
  color: var(--medium-grey);
  font-weight: var(--font-medium);
}

.event-item {
  padding: 1rem;
  background: #fff;
  margin-bottom: 1.25rem;
  border-radius: 10px;
}

.event-item:last-of-type {
  margin-bottom: 0;
}

.event-date-wrapper {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  margin-bottom: .4rem;
}

.event-date-wrapper i {
  color: var(--accent-3);
}

.event-date-wrapper i.staff-icon {
  font-size: 22px;
  align-self: baseline;
  margin-left: -0.5rem;
}

.school .event-date-wrapper i {
  color: var(--medium-grey);
}

.event-name {
  color: var(--dark-font-color);
  font-size: 1.125rem;
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
}

.event-wrapper {
  background: var(--accent-3);
  padding: 2rem;
  border-radius: 10px;
}

.school .event-wrapper {
  background-color: var(--primary-brand);
}

.event-wrapper>a {
  margin-left: auto;
}

.event-item a {
  text-decoration: none;
}

/*  Main Column */
.col-xs {
  padding: 0
}

.tv-stream {
  padding: 2rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-row img {
  width: auto;
  object-fit: contain;
  max-height: 120px;
}

.current-time {
  font-size: 3.25rem;
  font-weight: 700;
}

.main-content {
  display: flex;
  gap: 1.75rem;
  height: calc(100% - 84px - 1.75rem);
}

.main-col {
  width: calc(70% - 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.side-col {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 1.75rem;
}

/* Gallery */
.gallery-wrapper {
  background: var(--secondary-brand);
  border-radius: 10px;
  color: white;
  padding: 2rem;
}

.gallery-slide-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.gallery-img {
  width: auto;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
  margin: auto;
}

.gallery-title-wrapper {
  flex: 0 0 auto;
  /* takes natural height */
}

.gallery-image-wrapper {
  flex: 1 1 auto;
  /* takes remaining space */
  overflow: hidden;
  border-radius: 10px;
}

.gallery-title {
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 80%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  min-height: 42px;
}

.swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  right: 0;
  width: fit-content;
  left: auto;
  bottom: .65rem;
  top: unset;
  transform: unset;
}

.swiper-pagination-bullet {
  background: white;
  width: 2.5rem;
  border-radius: 5px;
  height: 6px;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent-2);
}

.prayer {
  background: var(--accent-2);
  color: white;
  padding: 1.25rem 2rem;
  border-radius: 10px;
  font-size: 1.375rem;
  position: relative;
  z-index: 100;
}

/* Weather */
.weather-wrapper {
  position: relative;
  padding: 1rem;
  font-weight: 500;
  background: var(--light-grey);
  border-radius: 10px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-container {
  width: 100%;
  /* or fixed value like 600px */
  height: 100%;
  /* or a specific height */
  overflow: hidden;
  /* prevent content from spilling */
  box-sizing: border-box;
}

.weatherSwiper .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.day-tag {
  font-size: 2rem;
  margin-bottom: .5rem;
}

#today-date,
#tomorrow-date {
  font-size: 1.5rem;
}

.temp {
  font-size: 2.75rem;
  font-weight: 700;
  margin: .5rem 0;
}

.city-wrapper {
  font-size: 1.2rem;
  font-weight: 400;
}

.weather-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
}

.weather-icon {
  width: 20%;
}

.attribution,
.primary-bg .attribution {
  color: #eaeaead9;
  font-size: .5rem;
  display: block;
  position: absolute;
  bottom: .5rem;
  right: .75rem;
}

.tomorrow-low {
  margin-left: 1rem;
  color: #7a7a7a;
}

/* Ticker */
.ticker-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-wrapper {
  display: flex;
  animation: ticker-scroll 25s linear infinite;
  animation-delay: .5s;
}

.ticker-text {
  white-space: nowrap;
  padding-right: 2rem;
  /* spacing between duplicates */
  margin-bottom: 0;
}

/* Scroll from left to right (change direction if needed) */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 99em) {
  .top-row img {
    max-height: 80px;
  }

  .current-time {
    font-size: 3rem;
  }

  .tv-stream {
    padding: 1rem;
    gap: 1rem;
  }

  .gallery-wrapper {
    padding: 1rem;
  }

  .prayer {
    padding: 1rem;
    font-size: 1rem;
  }

  .day-tag {
    font-size: 1.375rem;
  }

  #today-date,
  #tomorrow-date {
    font-size: 1.2rem;
  }

  .temp {
    font-size: 1.75rem;
    margin: .5rem 0;
  }

  .city-wrapper {
    font-size: 1rem;
  }

  .side-col {
    row-gap: 1rem;
  }

  .event-wrapper {
    padding: .75rem;
  }

  .event-item {
    padding: .75rem;
    margin-bottom: .5rem;
  }

  .event-name {
    font-size: 1rem;
  }

  .event-date-wrapper {
    font-size: .9rem;
  }

  .event-date-wrapper i {
    font-size: 1.2rem;
  }

  .main-content {
    gap: 1rem;
  }

  .main-col {
    width: calc(70% - 1rem);
  }

  .gallery-title {
    font-size: 1.5rem;
  }
}
