/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* remove bottom margin on last paragraph or list in container */
.gb-container p:last-child:last-of-type,
.gb-container ul:last-child:last-of-type {
  margin-bottom: 0px;
}

/* page and post hyperlinks */
.content-area :is(p, li ) a {
  font-weight: 700;
  color: var(--accent-2);
  border: var(--accent-2);
  border-bottom-style: solid;
  border-bottom-width: 3px;
  padding-bottom: 0px;
	transition: all 0.35s ease 0s;
}
.content-area :is(p, li ) a:hover {
  color: var(--accent);
/*  border: var(--accent);*/
	border: rgba(0,0,0,0.0);
	
	transition: all 0.35s ease 0s;

  border-bottom-style: solid;
  border-bottom-width: 3px;

}

/* GB button line height override */
.gb-button {
	line-height: 1.5em;
}

/* sidebar categories list style */
.wp-block-categories {
  list-style: none;
  margin-left: unset;
}

/* drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}

.single-post :is(p, ul, ol) + :is(h2, h3, h4) {
  margin-top: 40px;
}

/* wp search block style */
.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
	transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  background-color: var(--accent-2);
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

/* footer navigation block spacing */
.wp-block-navigation {
	gap: 0;
}

/* footer navigation block link hover color */
.wp-block-navigation li:hover {
  color: var(--accent-2);
}
/*///Inline Image Stuff///*/
.tdg-image-inline {
	position: relative;
	isolation: isolate;
}
.tdg-image-inline figure{
	height: 100%;
}
.tdg-image-inline > img:first-of-type {
	position: absolute;
	inset: 0;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/*
.tdg-image-inline-position img:first-of-type {
	object-position: center;
}
.tdg-image-inline-position-t img:first-of-type {
	object-position: top;
}
.tdg-image-inline-position-b img:first-of-type {
	object-position: bottom;
}
.tdg-image-inline-position-r-t img:first-of-type {
	object-position: right;
}
.tdg-image-inline-position-r img:first-of-type {
	object-position: left;
}
*/


.content-header {
    position: relative;
}

.content-header::before {
    content: "";
    background-color: #c1ffa9;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    position: absolute;
    width: 5px;
    height: 100%;
    left: -72px;
}
.text-button {
	color: var(--accent);
}
.text-button:hover {
	color: var(--accent-2);
}
.text-button .gb-text {
	border-bottom: 4px solid var(--accent-2);
	line-height: 1.1;
	transition: all 0.5s ease 0s;
}

.text-button .gb-text:hover {
	border-bottom: 4px solid transparent;
	transition: all 0.5s ease 0s;
}
figure figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: left;
    rotate: 180deg;
    writing-mode: vertical-rl;
    padding: 8px;
    z-index: 3;
    margin: 0;
    color: #ffffff;
    font-size: 0.6875rem;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 1px -1px 1px rgba(0, 0, 0, 0.86);
    background: rgba(0, 0, 0, 0.45);
	word-spacing: 1px;
	letter-spacing: 1px;
    
}