/*************/
/** LANDING **/
/*************/

div.landing-hero div.hero-panel {
  background: rgba(0,0,0,0.5);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0px 4px 4px var(--bs-black);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

div.landing-hero {
  border-top: 1px solid var(--bs-primary-bg-subtle);
  border-bottom: 1px solid var(--bs-primary-bg-subtle);
  background: url("/static/img/backgrounds/sunset.webp") bottom / cover no-repeat;
  padding: 2em;
}

div.landing-hero div.hero-photo {
  padding: 2em;
}

div.hero-text h1 {
  text-shadow: 0px 2px var(--bs-black);
}

div.hero-panel div.hero-text {
  padding: 1em;
}

div.landing-hero div.hero-photo img {
  border-radius: 10px;
  border: 1px solid var(--bs-black);
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  min-width: 150px;
  transform: rotate(357deg);
}

div.hero-text p.subtitle {
  margin-top: -10px;
}

div.hero-panel div.more-about-me {
  padding-bottom: 1em;
}

section.landing div.section-header div.col {
  text-align: center;
}

section.landing div.section-see-more div.col {
  text-align: center;
  margin-bottom: 1em;
}

section.landing div.card p.badges {
  margin-bottom: 0.5em;
}

/**************/
/** PROJECTS **/
/**************/

.card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  overflow: hidden;
}

/**********/
/** BLOG **/
/**********/

/** Index card: Oneliner **/

/* Blog index: oneliner card - background and flex container*/
.card.blog-oneliner .card-body {
  background: linear-gradient(-144deg, #a01111, #14f91d 100%);
  justify-content: center!important;
  flex-direction: column!important;
  display: flex!important;
  border-radius: 5px;
}

/* Blog index: oneliner card - text box */
.card.blog-oneliner .card-body .text-box {
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  /* transform: rotate(358deg); */
}

.card.blog-oneliner .card-body .text-box {
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  /* transform: rotate(358deg); */
}

/* Blog index: oneliner card - text box title */
.card.blog-oneliner .card-body .text-box h1 {
  color: var(--bs-white);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
}

/* Blog index: oneliner card - text box subtitle */
.card.blog-oneliner .card-body .text-box h4 {
  color: var(--bs-warning);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
}

/* Blog index: oneliner card - text box badges */
.card.blog-oneliner .card-body .text-box .article-badges {
  padding-bottom: 1em;
}

.blog-photo {
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  margin-top: 1em;
  margin-bottom: 1em;
}

/** Index card: Photos **/

/* Blog index: photos card - main container */
.card.blog-photos {
  position: relative;
}

/* Blog index: photos card - Photo */
.card.blog-photos img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 5px;
}

/* Vertical flex container for card body */
.card.blog-photos .card-body {
  flex-direction: column!important;
  justify-content: space-between!important;
  display: flex!important;
}

/* Horizontal flex container for badges inside card body */
.card.blog-photos .badges {
  justify-content: space-between!important;
  flex-direction: row!important;
  display: flex!important;
}

/* Blog index: photos card - Badges */
.card.blog-photos .badges .badge {
  box-shadow: 0px 0px 5px var(--bs-body-bg), 0px 3px 5px var(--bs-black);
}

/* Blog index: photos card - Text box */
.card.blog-photos .text-box {
  padding: 1em;
  backdrop-filter: opacity(0.75);
  background: var(--bs-gray-300);
  border-radius: 10px;
  opacity: 0.85;
}

/** Index card: Long blog post **/
/* XXX No extra CSS other than the standard .card code */

/** Index card: Oneliner photos **/

/* Blog index: oneliner card - Flex container only (background handled through inline style) */
.card.blog-oneliner-photo .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Blog index: oneliner card - Text box */
.card.blog-oneliner-photo .card-body .text-box {
  backdrop-filter: blur(10px) brightness(50%);
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  /* transform: rotate(-2deg); */
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

/* Blog index: oneliner card - Text box - Title */
.card.blog-oneliner-photo .card-body .text-box p.title {
  font-weight: bold;
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  color: var(--bs-white);
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* Blog index: oneliner card - Text box - Subtitle */
.card.blog-oneliner-photo .card-body .text-box p.subtitle {
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  color: var(--bs-warning);
}


/* Blog index: oneliner card - Date box */
.card.blog-oneliner-photo .card-body p.blog-date {
  padding: 0.25em;
  text-align: center;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  opacity: 0.85;
  color: var(--bs-gray-900);
  background: var(--bs-white);
  box-shadow: 0px 1px var(--bs-gray-900);
}

/** blog post (photos) **/

.blog-single-photos .carousel-item img {
  border-radius: 10px;
  border: 1px solid var(--bs-gray-900);
}

/** Blog post (Oneliner) **/

section.blog-single-oneliner .card {
  min-height: 50vh;
  border-radius: 5px;
}

section.blog-single-oneliner div.card div.card-body {
  background: linear-gradient(-144deg, #a01111, #14f91d 100%);
  align-items: center;
  justify-content: center;
  display: flex;
  border-radius: 5px;
}

section.blog-single-oneliner div.card div.card-body div.text-box {
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  transform: rotate(-2deg);
  padding: 1em;
}

section.blog-single-oneliner div.card div.card-body div.text-box h1 {
  color: var(--bs-white);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  margin-bottom: 0;
  font-weight: bold;
  font-size: 5em;
}

section.blog-single-oneliner div.card div.card-body div.text-box h2 {
  color: var(--bs-warning);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  font-weight: bold;
  margin-bottom: 0;
}

div.nav-prev-next {
  padding-top: 1em;
  padding-bottom: 1em;
}

/**************/
/*** COMMON ***/
/**************/
/* Minimal content height for blog entries (oneliners, oneliner photos and long) */

/** Blog post (Oneliner with photo) **/

section.blog-single-oneliner-photo .card {
  min-height: 50vh;
  border-radius: 5px;
}

section.blog-single-oneliner-photo div.card div.card-body {
  align-items: end;
  justify-content: center;
  display: flex;
  border-radius: 5px;
}

section.blog-single-oneliner-photo div.card div.card-body div.text-box {
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
  box-shadow: 0px 2px 5px 2px var(--bs-black);
  transform: rotate(-0deg);
  padding: 1em;
}

section.blog-single-oneliner-photo div.card div.card-body div.text-box h1 {
  color: var(--bs-white);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  margin-bottom: 0;
  font-weight: bold;
  font-size: 5em;
}

section.blog-single-oneliner-photo div.card div.card-body div.text-box h2 {
  color: var(--bs-warning);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  font-weight: bold;
  margin-bottom: 0;
}

/* Used in long blog posts and articles */
article section {
  margin-bottom: 1.5em;
}

/** Blog post (long) **/

section.blog-single-long article div.card-body.blog-post-header {
  display: flex;
  align-items: end;
}

section.blog-single-long div.article-header-overlay {
  padding: 1em;
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
  /* transform: rotate(-1deg); */
  box-shadow: 0px 2px 5px 2px var(--bs-black);
}

section.blog-single-long div.scrollspy {
  position: sticky;
  top: 91px;
}

section.blog-single-long div.scrollspy a {
  text-decoration: none;
}

/********************/
/** Articles index **/
/********************/

section.articles-index div.badges {
  margin-bottom: 0.5em;
}

/***********************/
/** Articles (single) **/
/***********************/

section.articles-single article div.card-body.blog-post-header {
  display: flex;
  align-items: end;
}

section.articles-single div.article-header-overlay {
  padding: 1em;
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
  /* transform: rotate(-1deg); */
  box-shadow: 0px 2px 5px 2px var(--bs-black);
}

section.articles-single div.scrollspy {
  position: sticky;
  top: 91px;
}

section.articles-single div.scrollspy a {
  text-decoration: none;
}

div.card.article-series a {
  text-decoration: none;
}

/*****************/
/** PHOTOGRAPHY **/
/*****************/


/****************************/
/** Photo gallery (single) **/
/****************************/



section.photography-single-gallery div.photo-box {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

section.photography-single-gallery div.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

section.photography-single-gallery div.photo-box a:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: brightness(125%) contrast(125%);
}

section.photography-single-gallery div.photo-box a img {
  transform: scale(1.0);
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.6s ease;
  filter: brightness(100%) contrast(100%);
}

img[loading="lazy"].loaded {
  opacity: 1;
  filter: blur(0);
}

img[loading="lazy"] {
  opacity: 0;
  filter: blur(10px);
}



/**************/
/** About me **/
/**************/

section.about-me-feature img {
  border-radius: 10px;
  box-shadow: 0px 0px 5px 0px var(--bs-light);
  border: 1px solid var(--bs-warning);
}

/*****************/
/** OTHER PAGES **/
/*****************/

li.work-timeline-item {
  color: var(--bs-gray-700);
  margin-bottom: 3em;
  position: relative;
}

li.work-timeline-item h3 {
  font-weight: bold;
}

li.work-timeline-item .period {
  color: var(--bs-gray-600);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0;
}

li.work-timeline-item img {
  /*max-height: 100px;*/
  box-shadow: 0px 3px var(--bs-gray-700);
  margin-top: 1em;
  margin-bottom: 1em;
}

li.work-timeline-item:after {
  position: absolute;
  display: block;
  top: 10px;
  background-color: var(--bs-blue);
  left: -40.5px;
  height: 20px;
  width: 20px;
  content: "";
  border-radius: 50%;
}

img.flag {
  width: 50px;
}

.company-logo img {
  max-width: 50%;
}

.project-fact-sheet {
  margin-bottom: 1.5em;
}

article img {
  border-radius: 10px;
  border: 1px solid var(--bs-gray);
  box-shadow: var(--bs-box-shadow-lg);
}

.embed-responsive-item {
  border-radius: 10px;
  border: 1px solid var(--bs-gray);
  box-shadow: var(--bs-box-shadow-lg);
}

article section {
  margin-bottom: 1.5em;
}

article section h3 {
  margin-bottom: 0.5em;
  color: var(--bs-gray-900);
}

ul#article-navigation a.active {
  font-weight: bold;
}

article p {
  margin-top: 1em;
  margin-bottom: 1em;
}

section.article-header p.article-summary {
  color: var(--bs-white);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  margin-bottom: 0;
}

div.article-header-overlay {
  padding: 1em;
  -webkit-backdrop-filter: inherit;
  backdrop-filter: blur(10px) brightness(70%);
  border-radius: 10px;
}

.article-header-overlay .article-title {
  color: var(--bs-white);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  margin-bottom: 0;
}

.article-header-overlay .article-subtitle {
  font-weight: bold;
  color: var(--bs-yellow);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
}


section.article-header .article-title {
  color: var(--bs-white);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
  margin-bottom: 0;
}

section.article-header .article-subtitle {
  font-weight: bold;
  color: var(--bs-yellow);
  text-shadow: 0px 2px 3px var(--bs-gray-900);
}

/* .article-or-long-blog-post-content {
  border-radius: 10px;
  background: #eff5fb;
  border: 1px solid #dee2e6;
  box-shadow: 0px 3px 5px var(--bs-gray);
} */
