/*
Theme Name: Victim Child Theme
Theme URI: http://demo.softhopper.net/victim/
Author: SoftHopper
Author URI: https://obesityaction.org
Template: victim
Description: SWB child theme for Victim.
Version: 1.2
Text Domain: victim-child
*/
/*HEADER*/

html {
  overflow-x: hidden;
}

header.site-header .site-navigation {justify-content: flex-start;
}
li#menu-item-1042 {
    background-color: #80BB3D;
    height: 42px;
    margin: 45px 0 0 0;
}
.blog-single-page .entry-content a {
    border-bottom: 1px dotted #004990;
    color: #80BB3D;
    text-decoration: none;
    font-weight: bold;
}
.blog-single-page .entry-content a:hover {
    border-bottom: 2px solid #004990;
    color: #004990;
}
a.imagelink { border: 0 !important; }

.border-rounded {
    border: solid 2px #004990;
    border-radius: 30px;
    padding: 10px 20px;
}
/* headings*/
.swb-header {    
    background: url(http://stopweightbias.com/wp-content/uploads/2020/11/swb-h1bg.png) no-repeat;
    background-size: contain;
    color: #004990;
    -webkit-text-stroke: 1px #FFFFFF;
    font-size: 50px !important;
    font-weight: bold;
}
.swb-cta-box {
    background-image: url(https://stopweightbias.com/wp-content/uploads/2020/11/swb-cta-bg.jpg);
    border: solid 2px #004990;
    border-radius: 30px;
    padding: 10px 20px;
}
.swb-cta-title-green {
    font-weight: 600;
    font-size: 1.75rem;
    background-color: #80BB3d;
    color: #fff;
    display: inline-block;
    padding: 0.5rem;
    margin: -17px 0 10px 0px;
}
.swb-cta-box p {
    font-weight: 500!important;
    font-size: 1.25rem!important;
    padding: 0 20px!important;
}
.square_btn{
    display: inline-block;
    padding: 7px 20px;
	border-radius: 25px;
    text-decoration: none;
    color: #FFFFFF!important;
    background-image: -webkit-linear-gradient(45deg, #80bb3d 0%, #004990 100%);
    background-image: linear-gradient(45deg, #80bb3d 0%, #004990 100%);
    transition: .4s;
}

.square_btn:hover {
    background-image: -webkit-linear-gradient(45deg, #004990 0%, #80bb3d 100%);
    background-image: linear-gradient(45deg, #004990 0%, #80bb3d 100%);
}
.yellow-highlight {
    background-color: #fff2ac;
    background-image: linear-gradient(to right, #ffe359 0%, #fff2ac 100%);
    display: initial;
}
.icon-lg {
    font-size: 5em;
    color: #80BB3d;
    padding: 10px;
}
.under-icon {
    font-size:1.5rem;
    font-weight: 600;
}
.number-lg {
    font-size: 5em;
    color: #80BB3d;
    padding: 36px 0 10px 0;
    font-weight: 800;
    display: block;
}
/* image borders */
.corner-ximg {position: absolute;
    bottom: -15px;
    right: -15px;
    z-index: 3;
}
.stories-img {
    max-height: 300px;
}

/* big quote*/
.swb-banner::after, .swb-banner::before {
    content: ""; 
    position: absolute;
    top: 0;
    left: 50%;
    transform: skew(35deg)
               translateX(-50%);
    width: 85%;
    height: 100%;
    background-image: linear-gradient(120deg,#80bb3d,#004990);
    background-color: #333;
    opacity: .7;
}
.swb-banner::before {
    transform: skew(-35deg) 
               translateX(-50%);
}
.swb-banner {
    overflow: hidden;
}
.swb-banner > * {
    z-index: 100;
}
.swb-banner {
    position: relative;
    /* min-height: 30vh; */
    background-image: url(http://stopweightbias.com/wp-content/uploads/2020/09/cropped-banner-images.jpg);
    background-size: cover;
    display: flex;
  
}
.swb-banner h1 {
    margin: auto;  
    padding: 20px 80px;
    color:#FFFFFF;
    font-size:1.85rem;
}
/* MYCONTACTFORM */
#contactForm input{
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border-radius: 25px;
    border: 2px solid #004990;
}
#contactForm textarea{
    border-radius: 25px;
    border: 2px solid #004990;
}
#contactForm select{
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border-radius: 25px;
    border: 2px solid #004990;
}
#contactForm input[type=submit] {
    display: inline-block;
	border-radius: 25px;
    text-decoration: none;
    color: #FFFFFF!important;
    background-image: -webkit-linear-gradient(45deg, #80bb3d 0%, #004990 100%);
    background-image: linear-gradient(45deg, #80bb3d 0%, #004990 100%);
    transition: .4s;
}
#contactForm input[type=submit]:hover {
    background-image: -webkit-linear-gradient(45deg, #004990 0%, #80bb3d 100%);
    background-image: linear-gradient(45deg, #004990 0%, #80bb3d 100%);
} 
/*VIRTUAL DONOR*/
.swb-donor .row > .col,
.swb-donor .row > [class^="col-"] {
  padding-top: .75rem;
  padding-bottom: .75rem;
  background-color: rgb(165 165 165 / 15%);
  border: 1px solid #cccccc;
}
.vcard {
        height: 195px;
        position: relative;
        display: inline-block;
        margin: 50px;
}
.vcard .img-top {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 99;
}
.vcard:hover .img-top {
        display: inline;
}


@media only screen and (max-width: 600px) {
    .swb-banner h1 {padding: 10px 40px;}

    li#menu-item-1042 {
    background-color: #80BB3D;
    margin: 0 0;}
}



/* Gallery vars */
html {
  --gallery-transition: 0.2s;
}

/* Gallery Page */

.gallery {
  padding-block: 110px;
}

.gallery__title {
  margin-bottom: 32px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: capitalize;
}

.gallery__subtitle {
  margin-top: 32px;
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.gallery__top-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery__categories {
  margin-top: 20px;
}

.gallery__categories-container {
  position: relative;
  overflow: hidden;
}

.gallery__categories-container:before,
.gallery__categories-container:after {
  content: '';
  width: 180px;
  height: 100%;
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/*
.gallery__categories-container:before {
  background: linear-gradient(90.32deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0) 100%);
  bottom: 0;
  left: 0;
}
*/

.gallery__categories-container:after {
  background: linear-gradient(90.32deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 1) 100%);
  bottom: 0;
  right: 0;
}

.gallery__dropdowns {
  margin-top: 20px;
}


.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 30px;
}

.gallery__no-results {
  margin-top: 64px;
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

/* Gallery Card */

.gallery-card {
  width: 100%;
  aspect-ratio: 350 / 270;
  border-radius: 30px;
  overflow: hidden;
  gap: 30px;
  position: relative;
}

.gallery-card img, 
.gallery-card .video-js {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__button {
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(49, 49, 49, 0.6);
  overflow: hidden;
  position: absolute;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  transition: var(--gallery-transition);
}

.gallery-card__button:hover,
.gallery-card__button:focus-visible {
  background-color: #80BB3D;
}

.gallery-card__button--download {
  bottom: 16px;
  right: 26px;
}

.gallery-card__button--play {
  bottom: 16px;
  left: 16px;
}


/* Gallery Pagination */
.gallery-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-pagination * {
  margin: 0 !important;
  padding: 0 !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  color: rgb(255, 255, 255);
  background-color: rgb(49, 49, 49);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.gallery-pagination .page-numbers svg {
  height: 18px;
  width: 8px;
}

.gallery-pagination .page-numbers:hover {
  color: rgb(255, 255, 255);
}

.gallery-pagination .page-numbers.current {
  background-color: rgb(128, 187, 61);
}

.gallery-pagination .prev {
  transform: rotate(180deg);
  transform-origin: center;
}



/* Filter Badge */

.filter-badge {
  height: 49px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 30px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: var(--gallery-transition);
}

.filter-badge svg {
  stroke: currentColor;
  transition: var(--gallery-transition);
}

.filter-badge:hover {
  border: 1.5px solid rgba(128, 187, 61, 1);
  color: rgba(128, 187, 61, 1);
}

.filter-badge:hover svg {
  stroke: rgba(128, 187, 61, 1);
}

.filter-badge.active {
  background-color: rgba(128, 187, 61, 1);
  border: 1.5px solid transparent;
  color: rgba(255, 255, 255, 1);
}

.filter-badge--outline {
  border: 1.5px solid rgb(49, 49, 49);
}

.filter-badge--active {
  background-color: rgb(128, 187, 61);
  color: rgb(255, 255, 255);
}


/* Filter Dropdown */
.filter-dropdown {
  position: relative;
  height: 49px;
  z-index: 5;
}

.filter-dropdown:has(.js-filter.active) summary {
  border: 1.5px solid rgba(128, 187, 61, 1);
  color: rgba(128, 187, 61, 1);
}

.filter-dropdown summary svg {
  stroke: rgb(49, 49, 49);
}

.filter-dropdown:has(.js-filter.active) summary svg {
  stroke: rgb(128, 187, 61);
}

.filter-dropdown .js-filter.active {
  color: rgb(128, 187, 61);
}

.filter-dropdown[open] svg {
  transform: rotate(180deg);
  transform-origin: center;
  transition: var(--gallery-transition);
}

.filter-dropdown__content {
  margin-top: 1rem;
  border-radius: 20px;
  background-color: rgb(255, 255, 255);
  border: 1.5px solid rgba(128, 187, 61, 0.1);
  position: relative;
  z-index: 2;
}

.filter-dropdown__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-dropdown__content a {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 16px;
  display: block;
  height: 100%;
  width: 100%;
  transition: var(--gallery-transition);
}

.filter-dropdown__content a:hover {
  color: rgba(128, 187, 61, 0.8);
}

/* Slick Slider */
.slick-slider {
  position: static;
}

.slick-initialized .slick-slide {
  display: flex;
}

.slick-track {
  display: flex;
  gap: 20px;
}

.slick-arrow {
  border: 0;
  max-width: 49px;
  min-width: 49px;
  max-height: 49px;
  min-height: 49px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background-color: rgba(128, 187, 61, 0.6);
  color: transparent;
  position: absolute;
  z-index: 2;
}

.slick-arrow:hover {
  background-color: rgba(128, 187, 61, 1)
}

.slick-arrow:after {
  content: url('assets/arrow-icon.svg');
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  object-fit: contain;
  height: 30px;
  width: 30px;
}

.slick-arrow.slick-prev {
  bottom: 0;
  left: 0;
  display: none !important;
}

.slick-arrow.slick-next {
  bottom: 0;
  right: 0;
}

.slick-arrow.slick-prev:after {
  transform: translate(-55%, -60%) rotate(180deg);
  transform-origin: center;
}

.slick-arrow.slick-next:after {
  transform: translate(-45%, -40%) rotate(0);
  transform-origin: center;
}


/*
* Utils
*/

.flex-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--flex-column-gap, 20px);
  row-gap: var(--flex-row-gap, 20px);
  width: fit-content;
}

.flex-stretch {
  display: flex;
  column-gap: var(--flex-column-gap, 20px);
  row-gap: var(--flex-row-gap, 20px);
  width: 100%;
}


@media only screen and (max-width: 992px) {
  .gallery-grid {
    margin-top: 36px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery__top-filter {
    flex-direction: column;
    justify-content: stretch;
    gap: 28px;
  }
  
  .gallery__top-filter .flex-group {
    flex-wrap: nowrap;
    width: 100%;
  }
}


@media only screen and (max-width: 600px) {
  .gallery {
    padding-block: 90px;
  }

  .gallery__title {
    margin-bottom: 28px;
  }

  .gallery__top-filter .filter-badge {
    width: 100%;
  }

  .gallery__subtitle {
    margin-top: 36px;
  }

  .gallery-grid {
    margin-top: 36px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-pagination {
    margin-top: 40px;
  }

  .filter-dropdown {
    width: 100%;
    height: auto;
  }

  .gallery__categories-container:before,
  .gallery__categories-container:after {
    width: 80px;
  }
}

.preloader {
  display: none;
}

/* HTML: <div class="gallery-loader"></div> */
/* https://css-loaders.com/dots/ */
.gallery-loader__wrapper {
  height: 30rem;
  display: grid;
  place-items: center;
}

.gallery-loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#000 0 0);
  background: 
    var(--c) 0%   50%,
    var(--c) 50%  50%,
    var(--c) 100% 50%;
  background-size: 20% 100%;
  animation: l1 1s infinite linear;
}
@keyframes l1 {
  0%  {background-size: 20% 100%,20% 100%,20% 100%}
  33% {background-size: 20% 10% ,20% 100%,20% 100%}
  50% {background-size: 20% 100%,20% 10% ,20% 100%}
  66% {background-size: 20% 100%,20% 100%,20% 10% }
  100%{background-size: 20% 100%,20% 100%,20% 100%}
}


/*
 * Video Popup
 */
.popup {
  border: 0;
  z-index: 999;
  position: fixed;
  height: 100%;
  width: 100%;
  inset: 0;
  background-color: transparent;
  display: none;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.popup[open] {
  display: block;
}

.popup__inner {
  position: fixed;
  overflow: hidden;
  aspect-ratio: 350 / 270;
  height: 80vh;
  padding: 0;
  margin: 0;
  border: 0;

  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.popup__inner img {
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.popup__button {
  stroke: #fff;
  position: absolute;
  background-color: #80BB3D;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  display: grid;
  place-items: center;
}

.popup__button svg {
  object-fit: contain;
  height: 1rem;
  width: 1rem;
}

.popup__button--close {
  right: 1.5rem;
  top: 1.5rem;
}

.popup__button--download {
  right: 1.5rem;
  top: 6rem;
}

.popup__button--download svg {
  height: 2rem;
  width: 2rem;
}

.video-js {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-js button:hover,
.video-js button:focus {
  background-color: transparent !important;
}

@media only screen and (max-width: 992px) {
  .popup__inner {
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
  }
}
