/*
Theme Name: SRA
Theme URI: https://www.dancing-dog.co.uk/
Author: Neil Wakeling
Author URI: https://www.dancing-dog.co.uk/
Description: Custom mobile friendly theme for The Scottish Rewilding Alliance
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.18
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sra
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
 a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

h2{
    text-transform: uppercase;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 0px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

b, strong { font-weight: 500; }

input, textarea, select {
    border-radius: 0px;
    line-height: normal;
    border: 1px solid #d2d2d2;
    background-color: #f8f8f8;
    margin: 2px 0 8px 0;
    padding: 16px 16px;
    width: 100%;
    font-size:1rem;
    outline: none;
}
input[type=checkbox]{
	width:auto;
	margin-right:20px;
}
input[type=submit], button[type=submit] {
	background-color: var(--wp--preset--color--tilted-pinball);
  border-width: 0;
	border-radius:8px;
  color: var(--wp--preset--color--base);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--medium);
  line-height: inherit;
  padding-top: 1rem;
  padding-right: 2.25rem;
  padding-bottom: 1rem;
  padding-left: 2.25rem;
  text-decoration: none;
    text-decoration-thickness: auto;
  text-transform: uppercase;
}
input.search-field {
    width:100% !important;
}
.mc4wp-form  button[type=submit] {
	margin: 1rem 0;
}
input[type=submit]:hover, button[type=submit]:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--tilted-pinball) 85%, transparent);
  border-color: transparent;
  color: var(--wp--preset--color--base);
}

label{
	display:block;
}
input:focus, textarea:focus {
    border: 1px solid #ccc;
    -webkit-box-shadow: 0px 1px 5px rgba(130, 140, 150, 0.75);
    -moz-box-shadow: 0px 1px 5px rgba(130, 140, 150, 0.75);
    box-shadow: 0px 1px 5px rgba(130, 140, 150, 0.75);
}

.wp-block-search.embed-search input {
    padding-top: 1rem;
  padding-right: 2.25rem;
  padding-bottom: 1rem;
  padding-left: 2.25rem;
  border: 1px solid #d2d2d2 !important;
    margin:0 !important;
}
.wp-block-search.embed-search button[type=submit] {
    padding: 0rem 3rem !important;
    margin-left:0 !important;
}

.wp-block-search.embed-search .wp-block-search__button svg {
  
}


.sticky-header{
	z-index:100;
	position:fixed;
	top:0;
	left:0;
	right:0;
	box-shadow: 0 -6px 10px 5px rgba(0,0,0,0.3);
    transition: top 0.25s ease-in-out;
}

.nav-wrapper{
    flex:1 1 auto;
}

.searchwp-modal-form-trigger-el {
    color: var(--wp--preset--color--contrast) !important;    
    align-self:center;
    flex:0 1 auto;
}

.searchwp-modal-form-trigger-el svg {
    height:18px;
    width:18px;
}

.searchwp-modal-form-default .searchwp-modal-form__container {
    align-self:flex-start;
    margin-top: 36px;
    width:100%;
    max-width:820px !important;
    max-height: calc(100vh - 56px) !important;
    overflow:hidden;
}
.searchwp-modal-form-default .searchwp-modal-form__close {
    width:100%;
    text-align:right;
    font-size:1.125rem;
    position:absolute;
    z-index:9999999;
    top: -3px;
    right:-3px;
    cursor:  pointer;
}

.searchwp-modal-form-default input.search-submit {
    width:auto;
    padding: 0.6rem 1rem;
    margin:0;
}

div.asl_r .results .item .asl_content h3, div.asl_r .results .item .asl_content h3 a {
  line-height: 135% !important;
}

.hilite {background-color: #F8C52E;}

.trp-language-switcher {
  width: 164px;
    margin-top:-4px;
margin-bottom:14px;
}
.trp-language-switcher > div {
  padding: 3px 20px 3px 13px;
  border: 1.5px solid #c4c4c4;
  border-radius: 2px;
}

body,html{
    height:100%;
}
.wp-site-blocks {
  display:flex;
    flex-direction: column;
    justify-content: space-between;
    height:100%;
}


.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.wp-block-navigation-submenu .wp-block-navigation-item) {
	border-bottom: 1px solid rgba(150,150,150,0.5);
	padding-bottom:20px;
	min-width:50vw;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: #6F6F62;
	color:#fff;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a[href="#"] {
	font-weight:400;
	cursor: default;
	pointer-events: none;
	text-transform:uppercase;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content a[href="#"]:after {
	display:inline-block;
	content:'';
	width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #fff;
  margin: 0 5px 0 24px;
}

@media (max-width:1080px){
    .wp-block-navigation.items-justified-right {
  --navigation-layout-justification-setting: flex-start;
  --navigation-layout-justify: flex-start;
}
    .site-header .sticky-header {
        max-width:100vw;
    }
    .site-header .header-top-row {
        gap: 2rem;
        justify-content: flex-end;
        margin-bottom:16px;
    }
    .search-wrapper-desktop {
        display:none;
    }
    
     .site-header .header-bottom-row {
        gap: 2rem;
        justify-content: space-between;
    }
    
    .header-bottom-row .nav-wrapper {
        order:1;
        align-items:flex-start;
        flex: 0 0 auto;
    }
    .header-bottom-row .nav-wrapper {
        
    }
    .header-bottom-row .wp-block-site-logo {
        order:2;
        flex: 1 1 auto;
        text-align:center;
    }
    .site-header .custom-logo {
        max-width:240px;
    }
    
        .header-search-wrapper-mobile {
        display: block;
        order:3;
        width:42px;
        text-align:right;
    }
    
    :root{
        --wp--preset--spacing--125: 67px;
    }
    
}

.no-padding-top-content {
	margin-top:0;
	padding-top:0;
}

.fit-screen{
	min-height:calc(100vh - 125px) !important;
}

.wp-block-cover__inner-container:has(> .hero-image-credit) {
    position:absolute;
    bottom:0px;
    left:0px;
}
.hero-image-credit {
    max-width:unset;
    display:inline-block;
    padding:8px 20px;
    background-color: rgba(33,33,33,0.3);
}

.is-layout-constrained > .alignwider {
  max-width: 1500px;
}

.wp-block-group.stretch-height{
    align-items: stretch;
  height: 100%;
}
.wp-block-group.stretch-height .wp-block-cover {
height:100%;
}

.psacp-post-overlay .psacp-post-title {
    background:transparent;
    margin-top:0;
    padding-top:0;
}


/* block spacings */
figure.wp-block-image {
	margin-block-start: 3.0rem;
	margin-block-end: 2.8rem;
}

ul.no-bullets li{
	list-style-type: none;
}
ul.has-columns {
	column-count: 3;
	font-size:1rem;
}
ul.has-columns.has-two-columns {
	column-count:2;
    			padding: 0;
}

.has-background .wp-block-button .wp-block-button__link {
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--base);
}
.has-background.has-base-background-color .wp-block-button .wp-block-button__link,
.has-background.has-fifteen-percent-green-background-color .wp-block-button .wp-block-button__link {
    background-color: var(--wp--preset--color--tilted-pinball);
    border: 0px solid;
}
.has-background .wp-block-button .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--obscure-olive);
}

.has-base-background-color .wp-block-button .wp-block-button__link:hover,
.has-fifteen-percent-green-background-color .wp-block-button .wp-block-button__link:hover,
.has-base-background-color .teaser:hover .wp-block-button .wp-block-button__link {
    background-color: color-mix(in srgb, var(--wp--preset--color--tilted-pinball) 85%, transparent);
  border-color: transparent;
  color: var(--wp--preset--color--base);
}
.teaser:hover .wp-block-button .wp-block-button__link{
    background-color: color-mix(in srgb, var(--wp--preset--color--tilted-pinball) 85%, transparent);
  border-color: transparent;
  color: var(--wp--preset--color--base);
}
.has-background.has-aqueous-background-color .wp-block-button .wp-block-button__link:hover {
    color: var(--wp--preset--color--aqueous);
}

.category-rewilding-stories .wp-block-cover__image-background.wp-post-image {
    object-position: center 15%;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.teasers{
	align-items: stretch;
}

.teasers li.wp-block-post {
	/*! height:100%; */
}

.teaser{
	position:relative;
	height: 100%;
	display:flex;
	flex-direction:column;
	justify-content: space-between;
}
.align-stretch .teaser{
    height:auto;
}
.grow-title .teaser h2, .grow-title .teaser h3 {
    flex:1 1 auto;
}
.teaser h2.wp-block-post-title {
	flex:1 0 auto;
   /*text-transform: lowercase; */
}
/*.teaser h2.wp-block-post-title::first-letter {
    text-transform: uppercase
}*/
 .teaser h3.wp-block-post-title.has-base-background-color a {
    background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--obscure-olive);
}
.teaser .post-credits, .news-teaser .wp-block-post-excerpt{
	flex: 1 0 auto;
	font-size: 1.126rem;
}
.teaser .post-credits .wp-block-mfb-meta-field-block {
	margin-top:0.6rem;
}

.teaser .wp-block-post-excerpt__more-link, .teaser .wp-block-read-more, .teaser .download-button a, .download-button a {
	background-color: var(--wp--preset--color--tilted-pinball);
  border-width: 0;
	border-radius:8px;
  color: var(--wp--preset--color--base);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--medium);
  line-height: inherit;
  padding-top: 1rem;
  padding-right: 2.25rem;
  padding-bottom: 1rem;
  padding-left: 2.25rem;
  text-decoration: none;
    text-decoration-thickness: auto;
  text-transform: uppercase;
}

.teaser .wp-block-post-excerpt__more-link:hover, .teaser .wp-block-read-more:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--tilted-pinball) 85%, transparent);
  border-color: transparent;
  color: var(--wp--preset--color--base);
}

.shadowbox {
  border: 0px;
  -webkit-box-shadow: 0 0 8px 5px rgba(0,0,0,.15);
  -moz-box-shadow: 0 0 8px 5px rgba(0,0,0,.15);
  box-shadow: 0 0 8px 5px rgba(0,0,0,.15);
  transition: box-shadow 350ms ease-in-out,transform 350ms ease-in-out;
}
.shadowbox:hover {
        -webkit-box-shadow: 0px 0px 10px 5px rgba(0,0,0,.25);
        -moz-box-shadow: 0px 0px 10px 5px rgba(0,0,0,.25);
        box-shadow: 0px 0px 10px 5px rgba(0,0,0,.25);
    }

.teaser.hoverzoom .wp-block-post-featured-image {
	overflow:hidden;
}
.teaser .wp-block-post-featured-image img{
	display:inline-block;
}
.teaser.hoverzoom .wp-block-post-featured-image img{
	transition: transform .5s ease;
}
.teaser.hoverzoom:hover .wp-block-post-featured-image img{
	transform: scale(1.035);
}

.carousel article .thumbnail img {
    height: 100%;
    transition: transform .5s ease;
}

.carousel article.hoverzoom:hover .thumbnail img {
    transform: scale(1.035);
}

.post-credits p{
	
}

.caption-z-index-5 .wp-block-media-text__content {
	z-index:5;
}

.logo-carousel  {
    padding:10px 0 40px 0;
}
.logo-carousel .swiper{
    margin-left:35px;
    margin-right:35px;
}
.swiper-pagination {
    padding-bottom:50px;
}
.swiper-pagination.hidden{
    display:none;
}
.logo-carousel .swiper-slide {
    height:auto;
    display:flex;
    flex-direction: column;
    justify-content: center;
}

.logo-carousel .swiper-slide figure{
    max-height:150px;
    max-width:200px;
    width:100%;
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
}
.logo-carousel .swiper-slide figure img{
   margin:0 auto;
    max-width:90%;
    max-height:90%;
    width:auto;
    height:auto;
}

/* SRA post slider: Slider layout styles */
.sra-swiper .swiper-slide {
  background: #fff;
  border-radius: 0;
  text-align: center;
  padding: 0px;
    margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease;
}

.wpmozo-swiper .swiper-slide:hover {
  transform: translateY(-5px);
}

.sra-swiper .swiper-slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 0px;
  margin-bottom: 0px;
}

.sra-swiper .swiper-slide .sra-slide-content {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    background:transparent;
    text-align:left;
    padding:12px 24px;
    background: -moz-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 130%);
  background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(0,0,0,0)),color-stop(130%,rgba(0,0,0,1)));
  background: -webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 130%);
  background: -o-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 130%);
  background: -ms-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 130%);
  background: linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,1) 130%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#000000',GradientType=0);
}

.sra-swiper .sra-slide-category {
    color: #fff;
    background-color: var(--wp--preset--color--tilted-pinball) !important;
  border: 0px;
    transition: all 0.5s ease-out 0s;
  font-size: 15px;
  padding: 3px 10px 5px;
  line-height: normal;
  display: inline-block;
  margin: 0 0 5px 0;
}
.sra-swiper .sra-slide-post-meta{
    color:#fff;
    font-size:15px;
}

.sra-slide-title {
  text-transform: uppercase;
  color: #fff;
  margin: 0;
    background:transparent;
}

.sra-swiper .swiper-button-next, .sra-swiper .swiper-button-prev {
    background: rgba(0,0,0,0.5);
  color: #fff;
  line-height: normal !important;
  padding: 2px 6px 4px 6px !important;
  border-radius: 0px;
  box-shadow: none;
  -moz-transition: all 0.4s ease-out 0s;
  -ms-transition: all 0.4s ease-out 0s;
  -o-transition: all 0.4s ease-out 0s;
  transition: all 0.4s ease-out 0s;
}
.sra-swiper .swiper-button-next:hover, .sra-swiper .swiper-button-prev:hover {
     background: rgba(0,0,0,0.65);
}
.swiper-navigation-icon{
    width:auto !important;
    height:20px !important;
}

.post-navigation a.wp-block-button__link {
    margin:0;
    min-width:160px;
}


.site-width {
	max-width:1440px;
}

.wp-block-embed-issuu {
	margin-left:auto !important;
	margin-right: auto !important;
}
.wp-block-embed-issuu .wp-block-embed__wrapper {
    position:relative;
    padding-top: max(60%,326px);
  height: 0;
  width: 100%;
}
.wp-block-embed-issuu iframe {
	width:100% !important;
    height:100% !important;
    position:absolute;
    top:0;
    right:0;
    left:0;
    bottom:0;
}

.dots-under.wp-block-cb-carousel-v2 {
    padding-bottom:30px;
}
.dots-under.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal .cb-pagination-bullet {
    height: var(--wp--custom--carousel-block--pagination-bullet-size,10px);
  opacity: var(--wp--custom--carousel-block--pagination-bullet-opacity,.5);
  width: var(--wp--custom--carousel-block--pagination-bullet-size,10px);
}

.ufaqsw_toggle_default .ufaqsw-toggle-title-area-default .ufaqsw-title-name-default {
    font-weight:500
}

.footer-logo-credit {
	display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}


.clickableblock, .clickableblock .value, .clickableblock a{
	position:absolute;
	width:100%;
	height:100%;
	margin:0;padding:0;
	top:0; left:0;right:0; bottom:0;
}

.clickableblock a{
	z-index:5;
}

nav.wp-block-query-pagination {
	padding-bottom: 40px;
	display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 16px;
}
nav.wp-block-query-pagination .wp-block-query-pagination-previous {
    grid-column-start: 1;
}
nav.wp-block-query-pagination .wp-block-query-pagination-numbers {
    grid-column-start: 2;
	text-align: center;
}

nav.wp-block-query-pagination .wp-block-query-pagination-next {
    grid-column-start: 3;
}
nav.wp-block-query-pagination .page-numbers {
	padding: 4px;
}
.page-numbers.current {
    color: var(--wp--preset--color--obscure-olive);
}

footer{
	margin: 0;
}

/* Change the WordPress default css to a 900px media query */
@media (min-width: 1080px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: auto;
        background-color: inherit;
    }
	
}

@media (max-width: 1079px) {
	.wp-block-navigation__responsive-container-open svg {
 height: 32px!important;
  width: 32px!important;
}
    .teasers.column-of-four{
        flex-wrap:wrap;
    }
    .teasers.column-of-four .teaser {
        flex-basis: calc(50% - 2rem);
    }
}

@media (max-width:960px){
    
    .teasers.is-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px){
    .teasers {
        flex-wrap: wrap;
    }
    .teaser {
      flex: 1 0 100%;
    }
    
    .stack-on-mobile > div {
        flex:1 0 100%;
        
    }
    
    .teasers.is-layout-grid  {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns:100%!important
  }
  .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media {
    grid-column:1;
    grid-row:1
  }
  .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
    grid-column:1;
    grid-row:2
  }
    
     .footer-main-content {
        flex-wrap: wrap;
    }
    .footer-main-content > .wp-block-group{
        flex: 1 0 100%;
        text-align:center;
    }
    .footer-main-content p{
        text-align: center;
    }
    .footer-main-content .wp-block-buttons, .footer-main-content .wp-block-social-links {
        justify-content: center;
        float:none;
        margin-left:auto;
        margin-right:auto;
    }
}


/* Remove the WordPress default for 600px */
@media (min-width: 600px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

@media (max-width: 520px){
	
}