* {
  padding: 0;
  margin: 0;
}

/* side nav */
.col-md-4 {
  position: relative;
}

.side-navbar, .browser {
  position: sticky;
  top: 0;
  padding-top: 2em;
  background: white;
  max-width: 800px;
}

#articleCategoryList {
  margin-top: 2em;
}

#articleCategoryList .list-group {
  height: 80vh;
  overflow: hidden;
  overflow-y: auto;
}

/* cover image */
.cover {
  background-image: url("../imgs/background.webp");
  background-color: #fffcf5;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.heroCover {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.scroll-gallery {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 10;
  pointer-events: none;
  opacity: 0.5;
  overflow: hidden;
}

.scroll-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-image {
  position: absolute;
  top: 100%;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes floatUp {
  0% {
    top: 100%;
  }
  100% {
    top: -250px;
  }
}

.scroll-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
  pointer-events: none;
}

.content-container {
  position: relative;
  z-index: 20;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zbonline30-globe {
  z-index: -1;
  width: 75%;
}

.zbonline30-logo {
  width: 45vw;
  padding-bottom: 3em;
}

.header {
  position: absolute;
  width: 60%;
}

.title {
  font-size: 3.5rem;
}

.standfirst {
  width: 70%;
  margin: auto;
}

.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 0;
  height: auto;
}

.intro-content {
  width: 55%;
  margin: auto;
}

figure {
  margin-bottom: 2em;
}

figure img, .article-img, .article-link-item img {
  border-radius: 0.5rem;
}

/* accordion menu */
.accordion-collapse {
  padding: 1em 1.5em;
  overflow: hidden;
}

.accordion-collapse .list-group {
  height: 40vh;
}

.accordion-item:first-of-type, .accordion-item:last-of-type {
  border-radius: 0 !important;
}

.accordion-button {
  font-weight: 600;
  color: var(--theme-ui-colors-black);
}

.accordion-button:not(.collapsed) {
  background-color: #fce6e6;
  color: var(--theme-ui-colors-black);
  border-radius: 0 !important;
}

/* category menu */
#category-buttons {
  background-color: var(--theme-ui-colors-secondary);
  padding: 0.5em;
  justify-content: center;
}

.btn {
  padding: 5px;
  flex: 0 0 auto;
}

.btn-outline-secondary, .btn:hover, .btn.active:hover, .btn.active {
  border-radius: 5px;
  width: calc(80% / 5);
  line-height: 1.2rem;
  font-size: 0.9rem;
}

.btn-outline-secondary {
  border: 1px solid var(--theme-ui-colors-white);
  color: var(--theme-ui-colors-white);
}

.btn:hover, .btn.active:hover, .btn.active {
  background-color: var(--theme-ui-colors-white);
  border-color: var(--theme-ui-colors-white);
  color: var(--theme-ui-colors-secondary);
}

/* tags */
.tag {
  margin: 2em auto;
}

/* browser frames and content */
.browser-container {
  position: relative;
  width: 100%;
}

.browserImg {
  width: 100%;
  display: block;
}

/* article content */
.embed-video div iframe {
  height: 340px !important;
  max-height: 100%;
}
.articleContent {
  padding: 2rem 4em;
  max-width: 800px;
  min-height: 600px;
  border: 2px solid var(--theme-ui-colors-light-grey);
}

.articleContent .badge {
  background-color: #f5f5f5 !important;
  color: #888888;
  border-radius: 0;
  font-size: 0.875rem;
  padding: 10px;
}

.date-print p, .text-muted.date {
  color: var(--theme-ui-colors-main) !important;
  font-size: 1rem;
  font-weight: 600;
}

body.theme-light .publish .date {
  border: none;
}

h1 {
  font-weight: 800;
  font-size: 2.5rem;
}

h3 {
  margin-bottom: 1em;
}

.date-print {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.search-icon .search {
  fill: var(--theme-ui-colors-black);
}

.date-print .btn {
  background-color: var(--theme-ui-colors-white);
  color: var(--theme-ui-colors-black);
  border-radius: 20px;
  border: 1px solid var(--theme-ui-colors-black);
  padding: 6px;
  font-size: 0.95rem;
}

.search-icon:hover .search, .search-icon:active .search {
  transition: fill 0.2s ease;
  fill: var(--theme-ui-colors-white);
}

.date-print .btn:hover, .date-print .btn:active {
  width: auto;
  font-size: 1rem;
  line-height: var(--bs-btn-line-height);
  background-color: var(--theme-ui-colors-black) !important;
  color: var(--theme-ui-colors-white) !important;
  font-size: 0.95rem;
}

.btn-primary:hover, .btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
  background-color: var(--theme-ui-colors-white);
  border: 1px solid var(--theme-ui-colors-white);
  color: var(--theme-ui-colors-secondary);
}

.btn-primary img {
  width: 23px;
  padding-right: 5px;
}

img, figure, figcaption {
  width: 100%;
}

figure {
  display: flex;
  align-items: flex-end;
  gap: 2em;
}

figure img {
  width: 70%;
}

figcaption {
  color: var(--theme-ui-colors-grey);
  font-size: 0.9rem;
}

.modal-backdrop {
  z-index: 0;
}

.link-title {
  color: var(--theme-ui-colors-black);
}

/* byline */
.articleContent a {
  color: var(--theme-ui-colors-primary);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* question */
.article-question {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  line-height: 1.3rem;
}

.article-question span {
  background-color: var(--theme-ui-colors-main);
  color: var(--theme-ui-colors-white);
  font-size: 0.9rem;
  max-width: 30px;
  width: 100%;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  align-content: center;
}

/* answer */
.article-answer {
  background-color: var(--theme-ui-colors-white);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border-radius: 5px;
  padding: 1em;
  margin-left: 2em;
}

/* quote */
.blockquote {
  border-left: 3px solid var(--theme-ui-colors-main);
  background-color: #f2f2f2;
  padding: 0.5em;
}
.article-blockquote-name {
  font-weight: 500;
  font-size: 1.2rem;
}

.article-blockquote-cite {
  font-size: 0.9rem;
  color: var(--theme-ui-colors-grey);
}

.article-blockquote-text {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.5em 1em;
}

.article-blockquote-text::before, .article-blockquote-text::after {
  content: "“";
  font-family: "Times New Roman", Times, serif;
  font-size: 3rem;
  margin: -1.4rem 0 0 -1.6rem;
  position: absolute;
  opacity: 0.5;
}

.article-blockquote-text::after {
  content: "”";
  margin: -1rem 0 0 0;
}

/* bio */
.article-bio {
  background-color: #f2f2f2;
  padding: 1em;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1em;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-list {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding-bottom: 20px;
}

.date-bio {
  font-weight: 600;
  color: var(--theme-ui-colors-main);
  width: 90px;
  flex-shrink: 0;
  text-align: left;
}

.content-bio {
  flex: 1;
}

/* author thoughts */
.authorThoughts {
  border: 2px solid var(--theme-ui-colors-mute-theme);
  border-radius: 0.5em;
  margin: 2em 0;
}
.authorTitle {
  background-color: var(--theme-ui-colors-mute-theme);
  color: var(--theme-ui-colors-black);
  padding: 1em;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.3em 0.3em 0 0;
}

.authorContent {
  display: flex;
  padding: 1em;
  gap: 2em;
}

.author {
  display: flex;
  flex-direction: column;
}

.author img {
  width: 70px;
  padding-bottom: 0.3em;
}

.authorName {
  font-weight: 600;
  margin: 0;
}

.authorDesignation {
  color: var(--theme-ui-colors-grey);
  font-size: 0.9rem;
  margin: 0;
}

h5.mb-1 {
  font-size: 1.1rem;
  line-height: 1.5rem;
  font-weight: 700;
}

/* read more articles */
.selected-article {
  padding-top: 2em;
}
#article-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.article-link-item img {
  margin-bottom: 0.5em;
}

.title {
  color: var(--theme-ui-colors-black);
}

/* keywords listing */
.list-group-item {
  border: 0;
}

@media (max-width: 768px) {
  .col-md-4 {
    position: sticky;
    top: 0;
    background: var(--theme-ui-colors-white);
    z-index: 1;
  }

  .scroll-gallery img {
    max-width: 45vw;
  }

  .content-container {
    height: 100vh;
  }

  /* headline content */
  .zbonline30-globe {
    width: 100%;
  }

  .header {
    width: 100%;
  }

  .title {
    font-size: 2rem;
  }

  .standfirst {
    width: 60%;
    margin: auto;
  }

  .intro {
    height: auto;
  }

  /* year navbar and keywords */
  .mt-4 {
    margin-top: 10px !important;
  }

  #category-buttons {
    flex-wrap: nowrap !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    height: auto;
  }

  .accordion {
    display: flex;
  }

  .accordion-item {
    flex: 1;
  }

  .accordion-button {
    gap: 0.5em;
  }

  .period-btn-mobile {
    flex: 1;
    color: var(--theme-ui-colors-black);
    border: 1px solid var(--theme-ui-colors-light-grey);
    border-radius: 0 !important;
    font-weight: 600;
    padding: 5px;
  }

  .period-btn-mobile:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: var(--theme-ui-colors-white);
    color: var(--theme-ui-colors-secondary);
    border: 1px solid var(--theme-ui-colors-white);
  }

  #articleCategoryList {
    margin-top: 1em;
  }

  #mobileArticleListContainer {
    border: 1px solid var(--theme-ui-colors-light-grey);
    padding: 1em;
    width: calc(100% - var(--bs-gutter-x));
    margin: auto;
  }

  .date-print {
    flex-wrap: wrap;
    padding-bottom: 1em;
  }

  .date-print p {
    margin: 0 0 0.5em 0;
  }

  /* article */
  .articleContent {
    padding: 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  /* photo */
  .timeline-list {
    flex-direction: column;
    gap: 0;
  }

  .date-bio {
    width: auto;
    text-align: left;
  }

  /* author thoughts */
  .authorContent {
    flex-direction: column;
    gap: 0;
  }

  .author {
    width: 100%;
    flex-direction: row;
    gap: 1em;
    align-items: center;
  }

  h5.mb-1 {
    font-size: 1rem;
    line-height: 1.4rem;
  }
}

@media (min-width: 1024px) and (orientation: portrait) {
  .zbonline30-globe {
    width: 100vw;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .header .standfirst {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  h1 {
    font-size: 2rem;
  }
}

@media (min-width: 800px) and (orientation: portrait) {
  .zbonline30-globe {
    width: 100%;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .header .standfirst {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (orientation: portrait) {
  .zbonline30-globe {
    width: 100%;
  }

  .intro-content {
    width: 70%;
  }
}

@media (max-width: 991px) {
  figure {
    flex-direction: column;
    align-items: start;
    gap: 0.5em;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .intro {
    height: auto;
  }
  
  h1 {
    font-size: 2rem;
  }

  .accordion-collapse {
    padding: 1em;
  }

  figure {
    gap: 1em;
  }

  .article-question {
    align-items: flex-start;
  }

  .view-desktop {
    display: block !important;
  }

  #category-buttons {
    flex-wrap: wrap !important;
  }

  .articleContent {
    padding: 2em;
  }
}

@media (min-width: 768px) and (max-width: 990px) and (orientation: portrait) {
  .accordion-collapse {
    padding: 1em;
    height: 300px;
    overflow: hidden;
    overflow-y: scroll;
  }

  .browser {
    display: block !important;
  }

  .browserImg {
    display: block !important;
  }

  .articleContent {
    padding: 2em !important;
  }

  /* photo */
  figure {
    flex-direction: column;
    align-items: start;
    gap: 0.5em;
  }

  figure img {
    width: 100%;
  }

  .articleContent {
    padding: 2em;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  /* .imgOne {
    width: 27% !important;
  }

  .imgTwo {
    width: 30% !important;
  }

  .imgThree {
    width: 30% !important;
  }

  .imgFour {
    width: 44% !important;
  }

  .imgFive {
    width: 24% !important;
  }

  .imgSix {
    width: 23% !important;
  }

  .imgSeven {
    width: 44% !important;
  }

  .imgEight {
    width: 30% !important;
  }

  .imgNine {
    width: 13% !important;
  }

  .imgTen {
    width: 15% !important;
  } */

  .zbonline30-globe {
    width: 100vw;
  }

  .title {
    font-size: 2.5rem !important;
  }

  .header h1 {
    font-size: 2rem;
  }

  #article-links-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  /* hero img */
  .heroCover, .intro {
    height: auto;
  }

  .standfirst {
    width: 80%;
  }

  .zbonline30-globe {
    width: 120%;
  }

  .zbonline30-logo {
    width: 65vw;
  }

  /* nav */
  .side-navbar {
    padding-top: 1em;
  }

  .period-btn-mobile:hover, .btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: #fce6e6;
    color: var(--theme-ui-colors-black);
    border: 1px solid #fce6e6;
  }

  .intro-content {
    width: 100%;
    padding: 2em;
  }

  /* keywords */
  #category-buttons {
    overflow-y: hidden;
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 1em;
  }

  .btn-outline-secondary {
    width: 30%;
  }

  .btn:hover, .btn.active:hover, .btn.active {
    width: 30%;
  }

  .scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 3em;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll-indicator 2s ease-in-out infinite;
  }

  @keyframes scroll-indicator {
    0% {
      transform: translateX(0);
      opacity: 0.5;
    }

    50% {
      transform: translateX(40px);
      opacity: 1;
    }

    100% {
      transform: translateX(0);
      opacity: 0.5;
    }
  }

  .scroll-indicator::-webkit-scrollbar {
    -webkit-appearance: none;
  }

  .scroll-indicator::-webkit-scrollbar:horizontal {
    height: 7px;
  }

  .scroll-indicator::-webkit-scrollbar-thumb {
    border-radius: 1em;
    background: var(--theme-ui-colors-primary);
    background-clip: padding-box;
  }

  .align-items-center {
    align-items: start !important;
  }

  .align-items-center img {
    width: 80px !important;
    height: auto !important;
  }

  /* question */
  .article-question {
    align-items: flex-start;
  }

  /* article content */
  figure img {
    width: 100%;
  }

  .article-blockquote-name {
    font-size: 1rem;
  }

  .article-blockquote-cite {
    font-size: 0.8rem;
  }

  .article-blockquote-text {
    font-size: 1.2rem;
    padding: 0.5em 1em 0.5em 1.4em;
  }

  .article-blockquote-text::before, .article-blockquote-text::after {
    margin: -1.4rem 0 0 -1.5rem;
    font-size: 2em;
  }

  .article-blockquote-text::after {
    margin: -1rem 0 0 -0.4rem;
  }

  #article-links-container {
    grid-template-columns: 1fr;
  }

  .article-link-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: .5em;
    align-items: center;
  }

  .article-link-item img {
    margin-bottom: 0;
  }

  .tag {
    width: 80%;
  }
}
