/* 
 Theme Name:   TYC
 Theme URI:    
 Description:  Child theme for TYC. Version 1.1 fixes footer link. 
 Author:       The Thomas Young Centre
 Author URI:   https://thomasyoungcentre.org/about-tyc/
 Template:     blocksy
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/


body{
	font-size: 18px;
}
h1, #tribe-events-pg-template .tribe-events-content h1, .tribe-events-after-html h1, .tribe-events-before-html h1 {
	font-size:3em;
	line-height: 1.2em;
}
h2 {
	font-size:2em;
	line-height: 120%
}
h3 {
	font-size:1em;
}
h4 {
	font-size:1em;
}
a {
	text-decoration: none;
}

/** Other headings **/
h1.page-title {
    line-height: 1.2em;
}

.tribe-block__venue .tribe-block__venue__meta .tribe-block__venue__name h3, .tribe-block.tribe-block__event-website h3, .tribe-block__organizer__details h3, .tribe-block.tribe-block__events-link h3 {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 4px;
    width: 100%;
	color:inherit;
}

 .wp-block-column[style*="flex-basis:33.33%"] h2 {
    font-size: 1.4em;
}
.home  .wp-block-column[style*="flex-basis:33.33%"] h2 {
    font-size: 2em;
}

/** 33.33% column styles **/
.wp-block-media-text {
    margin-bottom: 20px;
    line-height: 120%;
}
/** Site title **/
.site-description:not(:only-child) {
    margin-top: 0;
}

/** Breadcrumbs **/
.yoast-breadcrumbs > span {
    background-color: var(--paletteColor6);
    padding: 3px 10px;
    font-size: 15px;
}
/** Page layout syles **/
.entry-content {
    margin-bottom: 50px;
}

/** Homepage highlight slider **/
.wp-block-getwid-images-slider.has-arrows-inside .slick-prev, .wp-block-getwid-media-text-slider.has-arrows-inside .slick-prev, .wp-block-getwid-post-slider.has-arrows-inside .slick-prev, .wp-block-getwid-post-carousel.has-arrows-inside .slick-prev {
    left: 15px;
}
.wp-block-getwid-images-slider.has-arrows-inside .slick-next, .wp-block-getwid-media-text-slider.has-arrows-inside .slick-next, .wp-block-getwid-post-slider.has-arrows-inside .slick-next, .wp-block-getwid-post-carousel.has-arrows-inside .slick-next {
    right: 15px;
}

/**  Columns **/

@media screen and (max-width: 764px) {
  .wp-block-columns.has-3-columns {
    flex-flow: row wrap;
  }
  
  .has-3-columns .wp-block-column:first-child {
    flex-basis: 100%;
  }
}
@media screen and (max-width: 782px) {
  .wp-block-columns {
    flex-flow: column;
  }
}
@media (min-width: 600px) and (max-width: 782px){
.wp-block-column:nth-child(2n) {
    margin-left: 0;
}
}
@media (max-width: 564px) {
.home ul.ecs-event-list  li.ecs-event h4.entry-title.summary {
    clear: both;
}
	img {
		width:100%;
		margin-bottom: 30px;
		margin-top:10px;
	}
}



/* Block styles*/
.wp-block-group.has-background {
    margin-bottom: 30px;
}


/** Button styles**/
.btn, button {
	padding:5px 8px;
	background-color: lightgray;
}



/** Image styles **/
/*.type-page.has-post-thumbnail .ct-featured-image:not(.alignwide):not(.alignfull) {
    height: 350px;
}
.tribe-events-event-image img {
	width: 100%;
	height: 350px; 
	object-fit: cover;
}*/
/*.ct-image-container img, .ct-image-container picture {
    height: inherit;
}*/
.ct-featured-image {
    margin-bottom: 25px;
}
.ct-featured-image figcaption {
	display:none;
}
.home ul.ecs-event-list  li.ecs-event 
	img {
		margin-bottom: 10px;
	}



/* Hompage */
/** Homepage background image **/
.home .entry-content > .wp-block-group.alignfull:first-of-type {
	background-image: url("https://www.thomasyoungcentre.org/wp-content/uploads/2021/06/iStock-864501518-cropped-e1623144008703.jpg");
	background-repeat: no-repeat;
	background-size: cover;
}

/** homepage events list **/
.home ul.ecs-event-list {
    list-style: none;
	padding-left:0;
}
.home .ecs-event-list img {
	float:left;
	margin-right:30px;
}
.home .ecs-event-list  .duration.time {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 5px;
    display: inline-block;
}
.home .ecs-event-list p.ecs-excerpt {
	font-size:16px;
}
/** homepage twitter timeline **/
.home #twitter-widget-0 {
	background-color: var(--paletteColor5);
	padding:15px!important;
	
}
/** Homepage highlights section **/
.wp-block-getwid-section.alignfull.getwid-margin-top-none.getwid-margin-bottom-none.getwid-section-content-full-width.getwid-init {
    height: -webkit-fill-available;
}

/**Research highlight list right column**/
.research-highlights-list.has-cropped-images p {
    font-size: 16px;
    line-height: 120%;
}
.research-highlights-list .wp-block-getwid-recent-posts__post {
	    margin-bottom: 1rem;
}
.research-highlights-list .wp-block-getwid-recent-posts__post:last-of-type {
	    margin-bottom: 1.5rem;
}
.wp-block-getwid-section.has-inner-blocks-gap-small>.wp-block-getwid-section__wrapper>.wp-block-getwid-section__inner-wrapper>.wp-block-getwid-section__content>.wp-block-getwid-section__inner-content> .wp-block-getwid-recent-posts.alignfull.has-layout-list.research-highlights-list.has-cropped-images {
    margin-top: 20px;
}
/** Footer **/

[data-footer*="type-1"] footer.ct-footer {
    background-color: var(--paletteColor4);
	color: white;
}

/** Events **/
/* Layout adjustments to match theme */
.tribe-common .tribe-common-l-container {
    max-width: 1024px;
}
.tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container {
    /*padding-left: 0;
    padding-right: 0;*/
}
#tribe-events-pg-template, .tribe-events-pg-template {
    margin: 0 auto;
    max-width: 1024px;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-header {
    margin-top: 40px;
}


/* Single event page  adjustments */
.single-tribe_events .tribe-events-single-event-title  {
    color: rgba(41,99,158,1.00);
    line-height: 1.2;
}
.tribe-block__events-link .tribe-block__btn--link img {
    width: inherit;
}
li.tribe-events-nav-previous a, li.tribe-events-nav-next a {
    background: #666;
    color: #fff;
    display: block;
    padding: 10px 20px;
    position: relative;
    white-space: normal;
}
button.tribe-events-back.btn {
    background-color: red;
}
button.tribe-events-back.btn a {
    color: white;
}
/* Event list page adjustments */

.tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container {
    padding-left: 0;
	padding-right: 0;
	padding-top:var(--content-vertical-spacing);
	width:var(--container-width);
}
.tribe-common .tribe-common-l-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    width: var(--container-width);
}
.tribe-events .tribe-events-l-container {
    padding-top: var(--content-vertical-spacing);;
}

.tribe-events header.tribe-events-header {
	display:none;
}
.home li.ecs-event {
	border-bottom:1px solid lightgray;
}
.tribe-events-calendar-list {
	margin-top:40px !important;
    padding: 20px !important;
    background-color: aliceblue;
}
.tribe-common a, .tribe-common a:active, .tribe-common a:focus, .tribe-common a:hover, .tribe-common a:visited {
    color: rgba(41,99,158,1.00);
	line-height: 1.15em;
}
.tribe-common .tribe-common-anchor-thin, .tribe-common .tribe-common-anchor-thin:active, .tribe-common .tribe-common-anchor-thin:focus, .tribe-common .tribe-common-anchor-thin:hover {
    border-bottom: none;
}
.tribe-common--breakpoint-medium.tribe-common .tribe-common-h4--min-medium {
    line-height: 1.3em;
}

.tribe-events-c-breadcrumbs__list-item:first-of-type {
	display:none;
}
.tribe-events-c-ical.tribe-common-b2.tribe-common-b3--min-medium {
	display:none;
}

.tribe-block__event-website a {
    -webkit-box-align: center;
    align-items: center;
    border: none;
    background-color: inherit;
    color: red;
    display: -webkit-inline-box;
    display: inline-block;
    font-size: inherit;
    -webkit-box-pack: center;
    justify-content: center;
    min-height: none;
    padding: 0 ;
	margin-left:10px;
    max-width: 100%;
}

/* Event single detail box styles */
.tribe-block__venue .tribe-block__venue__meta .tribe-block__venue__name {
    display: block;
}
.tribe-block__event-website a {
   margin-left: 0px;
}
.tribe-block__event-website a {
    min-height: 0;
}
.tribe-block.tribe-block__venue {
    margin-bottom: 5px;
}
.tribe-block__events-link {
    display: block;
}

/** Portfolio (People) **/
.vp-portfolio__items-style-default .vp-portfolio__item-meta-excerpt {
    font-weight: 600;
}

.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category {
    display: block;
}
.single-portfolio .meta-author, .single-portfolio .meta-date, .single-portfolio .meta-categories, .single-portfolio .page-description  {
	display:none;
}
.vp-portfolio__filter-wrap {
    padding: 20px 0;
    background-color: var(--paletteColor6);
}
.single-portfolio .ct-image-container {
    width: 250px;
    height: 250px;
	object-fit: cover;
	margin-right:20px;
}
.ct-featured-image {
    padding-bottom: 0px;
}
.type-portfolio .ct-image-container .ct-ratio {
    padding-bottom: 100% !important;
}
.vp-portfolio__items-style-default .vp-portfolio__item-meta {
	padding-left:5px;
	padding-right:5px;
}
.vp-filter__style-minimal .vp-filter__item>a:hover {
	color: var(--paletteColor7);
}

.vp-filter__style-minimal .vp-filter__item>a:focus, .vp-filter__style-minimal .vp-filter__item>* {
    color: var(--vp-items-style-default--meta__color);
}
.vp-filter__style-minimal .vp-filter__item.vp-filter__item-active {
    --vp-filter-minimal--items__color: var(--paletteColor7);
    --vp-filter-minimal--items-hover__color: var(--paletteColor7);
}
.vp-portfolio__items-style-default .vp-portfolio__item a:hover, .vp-portfolio__items-style-default .vp-portfolio__item a:focus {
    color: var(--paletteColor7);
}
.vp-portfolio__items-wrap, .vp-portfolio__thumbnails-wrap, .vp-portfolio__layout-elements {
	margin-bottom:30px;
}


/* Hide filters (Tags) on People page 
.vp-filter__style-minimal .vp-filter__item> a[data-vp-filter^="ig-"], .vp-filter__style-minimal .vp-filter__item> a[data-vp-filter^="gov-"] {
	display:none;
}
*/