/*
Theme Name: Library Blog Theme
Theme URI: https://github.com/gsu-library/blog-theme
Author: Web Services Unit, GSU Library
Author URI: https://github.com/gsu-library/blog-theme
Description: Blog theme for the GSU Library Blog
Version: 0.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: libblog
Tags: gsu
*/

/* ----- GSU Approved CSS Color Vars ----- */
:root {
  /* GSU Approved */
  --georgia-state-blue: #0039a6;
  --red-accent: #cc0000;
  --blue-steel: #374057;
  --cool-blue: #0071ce;
  --vibrant-blue: #00aeef;
  --light-blue: #97caeb;
  --light-gray: #eeeeee;
  --medium-gray: #cccccc;
  --dark-gray: #767679;
  --font-secondary-family: Oswald, Lato, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  /* Custom footer color */
  --dark-footer: #374057;
  --font-color: #212529;
}

/* ----- Header Top ----- */

/* Library logo */
.logo__img {
  border: 1px solid var(--light-gray);
  border-top: none;
  width: 125px;
  height: auto;
  position: fixed;
  top: 0;
  left: 5%;
  z-index: 5;
}

@media screen and (max-width: 1200px) {
  .logo__img {
    left: 0;
  }
}

@media screen and (max-width: 650px) {
  .logo__img {
    width: 75px;
    height: auto;
  }
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: white;
  height: 45px;
  border-bottom: 1px solid var(--light-gray);
  z-index: 3;
}

/* secondary navigation */
.secondary-nav {
  /* Takes bs5 .container */
  display: flex;
  justify-content: flex-end;
}

.secondary-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.secondary-nav__list-item {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 0.5em;
  margin-left: 0.5em;
}

.secondary-nav__link {
  font-size: 0.8em;
}

/* ----- Header Title ----- */

.header {
  /* Takes bs5 .container */
  margin-top: 5em;
  text-align: center;
}

.header__title {
  /* takes bs5 .display-5 */
  padding-top: 1em;
  margin-bottom: 0.5em;
}

.header__link {
  text-decoration: none;
  color: var(--wsbs-dark);
}

.header__link:hover {
  color: var(--wsbs-dark);
  text-decoration: none;
}

.header__subtitle {
  font-family: var(--font-secondary-family);
  font-size: 0.5em;
  font-weight: 400;
}

/* ----- Header Nav ----- */

.primary-nav {
  position: sticky;
  top: 45px;
  z-index: 3;
}

.primary-nav__link {
  color: white;
}

.primary-nav__link:hover,
.primary-nav__link--active,
[aria-current="page"] {
  background: var(--light-gray);
  color: var(--georgia-state-blue);
}

/* ----- Slider ----- */

.slider__image {
  /* min-height: 500px;
    max-height: 500px; */
  height: 450px;
  object-fit: cover;
}

.slide-text {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2)),
    url("/wp-content/themes/blog-theme/assets/images/fake-brick.png");
  left: 0;
  max-width: 100%;
  width: 100%;
  text-align: left;
}

.slide-text__header {
  margin-bottom: 1em;
}

.slide-text__caption {
  margin-bottom: 2em;
}

@media screen and (max-width: 550px) {
  .slide-text__header {
    font-size: 1.125em;
  }

  .slider__image {
    height: 350px;
  }
}

/* ----- Home Posts ----- */

.post-teaser {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 5px;
  padding: 1em;
  margin-bottom: 2em;
}

.post-teaser--sticky {
  border-left: 3px solid var(--cool-blue);
}

.post-teaser__img-container {
  grid-column: 10 / 13;
  grid-row: 2 / 4;
}

.post-teaser__title {
  grid-column: 1 / 13;
  grid-row: 1 / 2;
}

.post-teaser__title-link {
  text-decoration: none;
  color: var(--wsbs-dark);
}

.post-teaser__title-link:hover {
  color: var(--wsbs-dark);
}

.post-teaser__content-container {
  grid-row: 2 / 4;
  grid-column: 1 / 9;
}

.post-teaser__byline-container {
  margin-bottom: 1em;
  font-size: smaller;
  color: var(--dark-gray);
}

@media screen and (max-width: 990px) {
  .post-teaser {
    display: block;
  }

  .post-teaser__img-container {
    margin-bottom: 1em;
  }

  .post-teaser__img {
    width: 100%;
  }
}

/* Post List Pagination */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-bottom: 2rem;
}

.page-numbers {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--georgia-state-blue);
  color: white;
  background: var(--georgia-state-blue);
  transition: background 0.2s ease;
}

.page-numbers:hover {
  color: var(--georgia-state-blue);
  background: white;
}

.page-numbers.current {
  background: white;
  color: var(--georgia-state-blue);
}

.page-numbers.dots {
  border: none;
  background: white;
  color: var(--georgia-state-blue);
  padding-bottom: 0;
}

/* ----- Singular ----- */

.singular__title {
  line-height: 1;
  margin-bottom: 0.5em;
}

.singular__content {
  margin-top: 2em;
}

.singluar__byline-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--light-gray);
  font-size: smaller;
  color: var(--dark-gray);
}

.singular__posts-nav-container {
  margin: 2em 0;
  padding: 1em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  clear: both;
}

/* ----- Footer ----- */

.footer {
  margin-top: 2em;
  font-size: 0.8em;
  background: var(--dark-footer);
  color: white;
  padding: 2em 0;
}

.footer__link {
  color: white;
  font-weight: lighter;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
  color: white;
}

.footer__social-icon {
  font-size: 2em;
}

.footer__title {
  text-transform: uppercase;
  font-family: var(--font-secondary-family);
  font-size: 2em;
  font-weight: normal;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.footer__gsulinks {
  text-align: right;
}

@media screen and (max-width: 767px) {
  .footer__gsulinks {
    text-align: left;
  }
}

.footer__phone,
.footer__address,
.footer__logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0;
}

/* Styles to clean up events list */
/* Add to custom html for widget */
#api_upc_cid2352_iid1757 {
  margin: 0;
  padding: 0;
  margin-top: 2rem;
}

#api_upc_cid2352_iid1757 > ul {
  margin: 0;
  padding: 0;
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: none;
}

#api_upc_cid2352_iid1757 li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid lightgray;
}

/* Print Styles (Hides all but main content) */
@media print { 
  .logo__img, .top-bar, .header__title, .primary-nav, .search, .sidebar, .singular__posts-nav-container, .footer  {
    display: none;
  }
  
  main, .main {
    display: block;
  }
  
}
