/*
 * Theme Name: Glasgow City Foundation
 * Description: Built with Timber
 * Author: Chris McMahon - chris@christy.digital
*/
/* Fonts */
@font-face {
    font-family: 'noway';
    src: url('static/noway-regular-webfont.eot');
    src: url('static/noway-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('static/noway-regular-webfont.woff2') format('woff2'),
         url('static/noway-regular-webfont.woff') format('woff'),
         url('static/noway-regular-webfont.ttf') format('truetype'),
         url('static/noway-regular-webfont.svg#noway') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nowayround-bold';
    src: url('static/nowayround-bold-webfont.eot');
    src: url('static/nowayround-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('static/nowayround-bold-webfont.woff2') format('woff2'),
         url('static/nowayround-bold-webfont.woff') format('woff'),
         url('static/nowayround-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Vars */

:root {
  --tint-orange: #FFA50033;
  --dark-orange: #cc8400;
  --orange: #FFA500;
  --light-orange: #FFB732;
  --orange-gradient: linear-gradient(0deg, var(--light-orange) 0%, var(--orange) 10%, var(--dark-orange) 100%);
  --grey-text: #333333;

  --space: 4rem;
  --pad: 1.5rem;
}

.screen-reader-text {
  left:-999px;
  position:absolute;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  z-index:-999;
}

/*  Regulate spacing between main page elements */

.main-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.main-stack > * {
  margin-block: 0;
} 

.main-stack > * + * {
  margin-block-start: var(--space, 4em);
}

.mini-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mini-stack > * {
  margin-block: 0;
} 

.mini-stack > * + * {
  margin-block-start: var(--pad, 1.5em);
}

.micro-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.micro-stack > * {
  margin-block: 0;
} 

.micro-stack > * + * {
  margin-block-start: var(--pad, .75em);
}

/* Switch from grid to column layout */

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pad);
}

.switcher > * {
  flex-grow: 1;
  flex-basis: calc(( 20rem - 100%) * 999);
}

.switcher > :nth-last-child(n+ 5),
.switcher > :nth-last-child(n+ 5) ~ * {
  flex-basis: 100%;
}

.community-section .image-wrapper img {
  width: 100%;
}

.community-section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2em;
}

.testimonial {
  max-width: 36em;
  margin: 0 auto;
}

.testimonial blockquote {
  position: relative;
  z-index: 100;
}

.testimonial blockquote::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '"';
  color: #FFB73255;
  font-size: 16em;
  overflow: hidden;
  z-index: 1;
}

.testimonial cite {
  position: relative;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
  color: #00000033;
  margin-top: 2em;
  text-align: center;
}

.reverse {
  flex-direction: row-reverse;
}

.reverse .community-section-content {
  text-align: right;
}

@media screen and (max-width: 610px) {
  .reverse .community-section-content {
    text-align: left;
  }
  .community-section {
    flex-direction: column;
  }
}


body {
  margin: 0 !important;
  color: #333;
  font-family: 'noway';
  font-size: 20px;
}

em {
  font-family: 'noway-italic';
}

h1, h2, h3 {
  font-family: 'nowayround-bold';
  line-height: 1.2;
}

h2 {
  margin: 1.5em 0 .875em;
  padding: .5em 0;
  font-size: 2.5rem;
  text-align: center;
  background-image: url('static/watermark.svg');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 64px;
}

h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

a {
  color: #333;
}

a,
a:visited {
  text-decoration: none;
}

.current_page_item a,
a:active,
a:hover {
  text-decoration: underline;
}



.hdr-logo {
  margin: 0 auto;
  padding: 0.5em 0 0.125em;
  width: 90vw;
  max-width: 720px; 
  
}

.hdr-logo img {
  width: 90vw;
  max-width: 720px;
}

.sponsors-intro {
  font-size: 0.75em;
  margin: -1em auto 1em;
  text-align: center;
}

.sponsors-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-bottom: 2em;
  padding: 0 0.25em;
}

.sponsors-header > * {
  width: 30%;
  max-width: 180px;
}

#nav-main ul {
  font-family: 'nowayround-bold';
  text-transform: uppercase;
  font-size: 1.25em;
  letter-spacing: .1em;
  
  list-style-type: none;
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  justify-content: center;
  padding-inline-start: 0;
  padding: 0em 0.25em;
}

@media  screen and (max-width: 1024px) {
  #nav-main ul {
    font-size: 1em;
  }
}

@media  screen and (max-width: 840px) {
  .hide-mid-down {
    display: none;
  }
}

#nav-main ul li {
  padding: 0.5em 1em;
  white-space: nowrap;
}

@media  screen and (max-width: 710px) {
  #nav-main ul li {
    padding: 0.5em 0.5em;
  }
}

@media  screen and (max-width: 615px) {
  #nav-main ul li {
    padding: 0.5em 0.25em;
  }
}

#nav-main .dropdown a:hover,
#nav-main .dropdown a:active {
    color: var(--light-grey-highlight);
    text-decoration: none;
}

#nav-main .has-dropdown {
    position: relative;
}
#nav-main .has-dropdown::after {
    content: '↓';
}

#nav-main .has-dropdown:hover .dropdown,
#nav-main .has-dropdown .dropdown:hover {
    display: block;
    visibility: visible;
    opacity: 1;
}

#nav-main .dropdown {
    display: none;
    visibility: hidden;
    opacity: 0;

    position: absolute;

    transition-duration: 0.5s;

    background-color: var(--orange);
    border: 1px solid var(--dark-orange);
    border-radius: 3px;

    box-shadow: 0em 0 .75em .25em var(--black-shadow);

    margin-top: 2.75rem !important;
    top: 0;
    width: 320px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 200;
}

#nav-main .dropdown li {
    padding-bottom: 0.5em;
    font-size: 0.875em;
}


#nav-footer ul {
  text-transform: uppercase;

  list-style-type: none;
  padding: 0;
}

.dropdown,
#nav-slide {
  background-color: var(--light-orange);
  background: var(--light-orange);
}

/* Slide Nav Styling */
#nav-slide {
    width: 320px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    transform: translateX(100%);
    z-index: 20;
    transition: all 0.5s ease;
    overflow-y: scroll;
}

#nav-slide ul li {
    list-style: none;
    padding-left: 0;
    /* text-transform: uppercase; */
    text-align: center;
    font-size: 1.5rem;
}

#nav-slide ul {
  padding-inline-start: 0;
}

#nav-slide ul li a {
    text-decoration: none;
}

/* #nav-slide ul li a:hover, */
#nav-slide .current-menu-item a {
    text-decoration: underline;
}

#nav-slide .dropdown-mobile:before {
    content: '↓';
}

#nav-slide .dropdown-mobile li {
    margin: 0.1em 0.5em;
    text-transform: uppercase;
    font-size: 0.875em;
    padding-top: 0.125em;
    padding-bottom: 0.125em;
    display: block;
    visibility: visible;
    opacity: 1;
}

#nav-slide .dropdown-mobile li {
  background-color: var(--orange);
  padding: 0.25em 1em;
}

#nav-slide .dropdown-mobile a,
#nav-slide .dropdown-mobile a:hover,
#nav-slide .dropdown-mobile a:active {
    text-decoration: none;
}

#nav-slide .white-watermark,
#nav-slide .social-icons {
  margin: 0 auto;
  justify-content: center;
}
.toggle {
    background-color: transparent;
    border: none;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    padding-bottom: 1em;
}

.toggle:hover {
  cursor: pointer;
}

.toggle img {
    width: 48px;
    height: 48px;
}

.is-visible {
    transform: translateX(0%) !important;
    box-shadow: -.5em 0 .75em .25em var(--black-shadow);
}

.toggle-open {
    z-index: 10;
    margin: -1em auto 0em;
}

.toggle-close {
    /* z-index: 100; */
    top: 14px;
}

.dropdown-mobile .menu-item {
}

@media  screen and (max-width: 579px) {
  .toggle {
    display: block;
  }
  .nav-main {
    display: none;
  }
}

@media  screen and (min-width: 580px) {
 .toggle {
    display: none;
  }
  .nav-main {
    display: block;
  }
}
#nav-footer .dropdown {
  background-color: var(--orange);
}
#nav-footer .dropdown > * {
  /* padding-inline-start: 1em; */
}

#nav-footer .dropdown > *:before {
  content: '├';
}

#nav-footer .dropdown > *:last-of-type:before {
  content: '└';
}


/* Slide Nav END */



.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.wrapper-narrow {
  max-width: 960px;
}

.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

article {
  padding: 1.5em 0.25em 3em;
}

/* Background colours */
.bg-orange {
  background: var(--orange);
  color: white;
}

.bg-orange-stripes {
   background-image: linear-gradient(290deg, 
    var(--tint-orange) 0%,
    var(--tint-orange) 5%,
    var(--dark-orange) 5%,
    var(--dark-orange) 6%,
    var(--orange) 6%,
    var(--orange) 94%,
    var(--dark-orange) 94%,
    var(--dark-orange) 95%,
    var(--tint-orange) 95%,
    var(--tint-orange) 100%
    );
  color: white;
}

.bg-orange-gradient {
  background: var(--orange-gradient);
  color: white;
}

.bg-orange a,
.bg-orange-gradient a,
.bg-orange-stripes a {
  color: white;
}

.card {
  border-radius: 0.25em;
  border: 1px var(--dark-orange) solid;
  color: var(--orange);
  background-color: var(--tint-orange);
  padding: 1em 0.5em;
  margin: 2em auto 0;
  max-width: 60ch;
}

.white-watermark {
  display: block;
  /* margin: 0 auto; */
  width: 3.75em;
  height: 3.75em;

  background-image: url('static/watermark-white.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.card-watermark {
  display: block;
  margin: 0 auto;
  width: 3.75em;
  height: 3.75em;

  background-image: url('static/watermark.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.card h3 {
  text-align: center;
}



/* Dividers */
.top {
  clip-path: polygon(0 0,100% 0,100% calc(100% - 50px),0 100%);
}
.bottom {
  clip-path: polygon(0 50px,100% 0,100% 100%,0 100%);
  margin-top: -40px;
}

/* Home page styling */

.hero {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover !important;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  position: relative;
  min-height: 4em;
}

@media screen and (max-width: 500px) {
  .hero {
    aspect-ratio: 16 / 16;
    border-radius: 0;
  }
}

.intro .description {
  max-width: 72ch;
  margin: 0 auto;
}

.features .description {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto 2em;
}

.features-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-block .img-span {
  background: white;
  border-radius: 50%;
  padding: 1em;
  height: 3em;
  width: 3em;
  align-content: center;
  justify-content: center;
  display: grid;
  margin: 0 auto;
}

.feature-block {
  text-align: center;
  min-width: 10em;
  width: 40%;
  padding: 0.5em;
  margin: 0 1em;
}

@media  screen and (max-width: 514px) {
  .feature-block {
    width: 80%;
  }
}

.mission .description,
.reading-width {
  max-width: 60ch;
  margin: 0 auto;
}

/* Post Archive */
.post-block {
  display: flex;
  flex-direction: row;
}

.post-block > * {
  width: 50%;
}

.post-block .news-image {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.news-teaser {
  display: flex;
  flex-direction: row;
  gap: 1em;
  flex-wrap: wrap;
  text-align: center;
  justify-content: space-around;
}
.news-teaser > * {
  width: 30%;
  min-width: 240px;
  padding: 0;
}

@media screen and (max-width: 699px) {
  .news-teaser {
    flex-direction: column;
    gap: 0;
  }
  .news-teaser > * {
    width: 100%;
    min-width: 280px;
    margin: 0 auto;
  }
}

.news-block {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 0;
}

.button-link {
  padding: 0.5em 1.5em;
  border: solid 1px var(--orange);
  margin: 2em auto 0;
  background-color: var(--orange);
  color: white;
  max-width: 20em;
  text-align: center;
  text-transform: uppercase;
  display: block;
  text-decoration: none;
}

.button-link:hover {
  border: solid 1px var(--orange);
  background-color: white;
  color: var(--orange);
}

.post-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-top: 2em;
}

.post-navigation > * {
  text-align: center;
  width: 30%;
}

@media  screen and (max-width: 699px) {
  .post-block {
    flex-direction: column-reverse;
  }
  .post-block > * {
    width: 100%;
  }
  .post-block h2 {
    margin: 0.25em auto;
  }

  .post-block p {
    margin: 0 auto;
    max-width: 28em;
  }
}


/* END Post Archive */

/* Post Styling */

.hide-first-image img:first-of-type {
  display: none;
}

.tease-post img,
.article-body img,
.post-thumbnail {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.article-content p,
.article-content img {
  max-width: 64ch;
  margin: 0 auto 1em;
  display: block;
}


.thumb-image,
.image-overlay {
  display: none !important;
}



.article-heading {
  max-width: 22ch;
  margin: 1em auto 0em;
}
/* End Post Styling */

.academy-image {
  max-width: 560px;
  margin: 3em auto 0;
  display: flex;
}

.academy-content h2 {
  margin-top: 0.875em;
}

/* Who Are We */

.people-container,
.training-container,
.program-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin: 0 auto;
}

.trustee-container > * {
  max-width: 320px;
  width: 30%;
  min-width: 280px;
  background-color: var(--light-orange);
}

.staff-container > *,
.training-container > *,
.program-container > * {
  max-width: 480px;
  width: 45%;
  min-width: 280px;
  background-color: var(--light-orange);
}

.coaching-staff .age-group {
  text-align: center;
}

.people-card,
.training-card,
.program-card {
  border-radius: 0.25em;
  border: 1px var(--dark-orange) solid;
  color: var(--orange);
  background-color: var(--tint-orange);
  padding: 0.5em;
  position: relative;
}

.people-card .banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--orange);
}

.people-card .portrait {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-radius: 100px;
  height: 100px;
  width: 100px;
  border: 3px var(--dark-orange) solid;
  background-color: white;
  background-image: url('static/watermark.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 64px;
}

.byline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 0.25em;
  border: 1px var(--dark-orange) solid;
  color: var(--orange);
  background-color: var(--tint-orange);
  padding-left: 0.5em;
  position: relative;
  margin: 0 auto;
  width: 480px;
}

.byline .portrait {
  border-radius: 100px;
  height: 100px;
  width: 100px;
  aspect-ratio: 1.25;
  margin: 0.5em;
  border: 3px var(--dark-orange) solid;
  background-color: white;
  padding: 0.25em;
  background-color: white;
  background-image: url('static/sarah-crilly.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.byline .byline-info {
  width: 100%;
  height: 100%;
  padding: 1em 1em 1em 0.5em;
  z-index: 10;
}

.byline .byline-info > * {
  line-height: 1.25;
  margin: 0;
}

.byline .byline-info a {
  line-height: 1.5;
}

@media screen and (max-width: 699px) {
  .byline {
    flex-direction: column;
    max-width: 100%;
    text-align: center;
  }
}

.people-card .info {
  padding-top: 140px;
  
}
.people-card .name,
.training-card .group,
.program-card .name {
  text-transform: none;
  text-align: center;
  color: black;
  margin-block-start: 1em;
  margin-block-end: 0.5em;
}

.people-card .title,
.training-card .time {
  text-transform: uppercase;
  text-align: center;
  margin-block-start: 0em;
  margin-block-end: 0.5em;
}

.people-card .desc,
.training-card .desc {
  text-align: center;
  margin-block-start: 0em;
  margin-block-end: 1em;
  color: var(--grey-text);
}

.spacer {
  height: 3em;
}



/*
.card {
  background-color: #fff;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0px 1rem 1.5rem rgba(0,0,0,0.5);
}
.card .banner {
  background-image: url("https://images.unsplash.com/photo-1545703549-7bdb1d01b734?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 11rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}
.card .banner svg {
  background-color: #fff;
  width: 8rem;
  height: 8rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
  border-radius: 50%;
  transform: translateY(50%);
  transition: transform 200ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.card .banner svg:hover {
  transform: translateY(50%) scale(1.3);
}
.card .menu {
  width: 100%;
  height: 5.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  box-sizing: border-box;
}
.card .menu .opener {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  border-radius: 50%;
  transition: background-color 100ms ease-in-out;
}
.card .menu .opener:hover {
  background-color: #f2f2f2;
}
.card .menu .opener span {
  background-color: #404040;
  width: 0.4rem;
  height: 0.4rem;
  position: absolute;
  top: 0;
  left: calc(50% - 0.2rem);
  border-radius: 50%;
}
.card .menu .opener span:nth-child(1) {
  top: 0.45rem;
}
.card .menu .opener span:nth-child(2) {
  top: 1.05rem;
}
.card .menu .opener span:nth-child(3) {
  top: 1.65rem;
}
.card h2.name {
  text-align: center;
  padding: 0 2rem 0.5rem;
  margin: 0;
}
.card .title {
  color: #a0a0a0;
  font-size: 0.85rem;
  text-align: center;
  padding: 0 2rem 1.2rem;
}
.card .actions {
  padding: 0 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  order: 99;
}
.card .actions .follow-info {
  padding: 0 0 1rem;
  display: flex;
}
.card .actions .follow-info h2 {
  text-align: center;
  width: 50%;
  margin: 0;
  box-sizing: border-box;
}
.card .actions .follow-info h2 a {
  text-decoration: none;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  border-radius: 0.8rem;
  transition: background-color 100ms ease-in-out;
}
.card .actions .follow-info h2 a span {
  color: #1c9eff;
  font-weight: bold;
  transform-origin: bottom;
  transform: scaleY(1.3);
  transition: color 100ms ease-in-out;
}
.card .actions .follow-info h2 a small {
  color: #afafaf;
  font-size: 0.85rem;
  font-weight: normal;
}
.card .actions .follow-info h2 a:hover {
  background-color: #f2f2f2;
}
.card .actions .follow-info h2 a:hover span {
  color: #007ad6;
}
.card .actions .follow-btn button {
  color: inherit;
  font: inherit;
  font-weight: bold;
  background-color: #ffd01a;
  width: 100%;
  border: none;
  padding: 1rem;
  outline: none;
  box-sizing: border-box;
  border-radius: 1.5rem/50%;
  transition: background-color 100ms ease-in-out, transform 200ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.card .actions .follow-btn button:hover {
  background-color: #efb10a;
  transform: scale(1.1);
}
.card .actions .follow-btn button:active {
  background-color: #e8a200;
  transform: scale(1);
}
.card .desc {
  text-align: justify;
  padding: 0 2rem 2.5rem;
  order: 100;
}
*/


/* END Who Are We */

footer {
  font-size: 0.875em;
  padding: 0.5em 0.5em;
}

.footer-sections {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto 2em;
  padding: 0 0.25em;
  
}

.footer-sections > * {
  width: 30%;
  min-width: 240px;
}

.footer-sections > * h3 {
  /* text-decoration: underline; */
  text-decoration-thickness: 4px;
  text-underline-position: 1em;
}

.social-icons {
  display: flex;
  flex-direction: row;
}
.social-icons > * {
  margin-right: 0.1em;
}

.oscr-logo {
  width: 120px;
  height: 120px;
}

.copyright {
  font-size: 0.875em;
  text-align: center;
  padding-bottom: 0.5em;
}

