/* ========================================================================== */
/*                              IMG BOXES GENERAL                             */
/* ========================================================================== */
:root {
  --img-box-bg-color: var(--color-light-gray);
}

.site-content .wso-img-box {
  position: relative;
  text-align: left;
}

.wso-img-box .wso-image-frame {
  position: relative;
  height: 100%;
  display: block;
}

.wso-img-box .wso-image-wrapper,
.wso-img-box .wso-image-wrapper a {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 0;
  overflow: hidden;
  aspect-ratio: 1/1;
  height: 100%;
}

.wso-img-box .wso-image-wrapper a {
  display: block;
  border: 0px solid var(--color-3);
}

.wso-img-box .wso-image-wrapper a:focus-visible {
  border: 2px solid var(--color-3);
}

.wso-img-box .wso-image-wrapper img {
  transition: var(--transition-normal);
}

.wso-img-box .wso-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, .2);
  z-index: 1;
  pointer-events: none;
  transition: opacity .35s ease, background-color .35s ease;
}

.wso-img-box .wso-image-wrapper a:hover img,
.wso-img-box .wso-image-wrapper a:focus-visible img {
  scale: 1.1;
}

.wso-img-box .wp-caption-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --current-text-align: left;
  --current-justify-content: left;
  --p-hyphens-default: auto;
  --h1-hyphens-default: auto;
  --h2-hyphens-default: auto;
  --h3-hyphens-default: auto;
  --h4-hyphens-default: auto;
  --h5-hyphens-default: auto;
  --h6-hyphens-default: auto;
  border-radius: 0;
  z-index: 4;
  padding: 1.66rem 1.38rem 1.38rem 1.38rem;
  /* pointer-events: none; */
  display: flex;
  flex-direction: column;
}

.wso-img-box .wso-title {
  text-wrap: balance;
  /*
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  max-height: calc(3em * 1.6);
  */
}

.wso-img-box .wso-title span {
  margin-right: .3em;
}

.wso-img-box:not(:has(.wso-buttons)) .wp-caption-text {
  pointer-events: none;
}

.wso-img-box:not(:has(.wso-buttons)) .wp-caption-text .wso-title {
  pointer-events: all;
}

.wso-section-image-boxes.wso-img-box-layout-default .wso-column-image .wp-caption-text:empty, 
.wso-section-image-boxes.wso-img-box-layout-default .wso-column-image .wp-caption-text:not(:has(*)) {
  display: none;
}

.wso-section-image-boxes.wso-img-box-layout-default .wso-column-image .wp-caption-text p {
  margin-bottom: 0;
}

.wso-image-frame .wso-image-wrapper img,
.wso-image-frame .wso-image-wrapper .mask:after,
.wso-image-frame .wso-image-wrapper .image_links {
  transition: all var(--transition-normal) ease;
}

@media only screen and (max-width: 991px) {
  .wso-img-box .wp-caption-text {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* ===========================================
Image Box Button
=========================================== */

.wso-img-box {
  --border-radius: 2.77rem;
}

.wso-img-box .wso-buttons {
  --button-margin-top: auto;
  justify-content: flex-end;
  
}

.wso-img-box .wso-arrow-button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
}

.wso-img-box .wso-arrow-button:focus-visible .wso-arrow-button__icon {
  outline: unset !important;
}

.wso-img-box .wso-arrow-button:focus-visible::before {
  outline: 2px solid var(--color-black);
  outline-offset: 6px;
}

.wso-bg-color-2 .wso-img-box .wso-arrow-button:focus-visible::before {
  outline: 2px solid var(--color-white);
}

.wso-img-box .wso-arrow-button:hover .wso-arrow-button__icon,
.wso-img-box .wso-arrow-button:focus-visible .wso-arrow-button__icon {
  background-color: var(--color-white);
}

.wso-img-box .wso-arrow-button .wso-arrow-button__icon::after,
.wso-img-box .wso-arrow-button .wso-arrow-button__icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22.97' height='33.941' viewBox='0 0 22.97 33.941' style='fill:%23008339;'%3E%3Cpolygon points='6 33.941 22.97 16.971 6 0 6 2.828 19.112 15.942 0 15.942 0 17.942 19.17 17.942 6 31.113 6 33.941'/%3E%3C/svg%3E");
}

@media only screen and (max-width: 991px) {
  .wso-img-box {
    --border-radius: 2rem;
  }
}

/* ===========================================
Version - Default
=========================================== */

.wso-img-box .wso-image-wrapper {
  border-radius: var(--border-radius);
}

.wso-img-box-layout-default .wso-img-box .wso-image-frame:hover .wso-image-wrapper::before,
.wso-img-box-layout-default .wso-img-box .wso-image-frame:focus-within .wso-image-wrapper::before {
  background-color: var(--color-2);
  opacity: .85;
}

.wso-bg-color-2.wso-img-box-layout-default .wso-img-box .wso-image-frame:hover .wso-image-wrapper::before,
.wso-bg-color-2.wso-img-box-layout-default .wso-img-box .wso-image-frame:focus-within .wso-image-wrapper::before {
  background-color: var(--color-3);
  opacity: .85;
}

@media only screen and (max-width: 991px) {
  #content .wso-img-box-layout-default .wso-img-box .wso-title span {
    font-size: 95%;
  }
}

@media only screen and (max-width: 767px) {
  #content .wso-img-box-layout-default .wso-img-box .wso-title span {
    font-size: 90%;
  }
}

/* ===========================================
Version - Title Only
=========================================== */

.wso-img-box-layout-title-only .wso-img-box {
  --border-radius: 0; 
}

.wso-img-box-layout-title-only .wso-img-box .wp-caption-text {
  --current-text-align: center;
  --current-justify-content: center;  
}

.wso-img-box-layout-title-only .wso-arrow-button__icon {
  display: none !important;
}

.wso-img-box-layout-title-only .wso-buttons {
  margin-top: 0 !important;
  z-index: 5;
}

.wso-img-box-layout-title-only .wso-headlines {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  z-index: 4;
}

.wso-img-box-layout-title-only .wso-title {
  margin-bottom: 0 !important;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  z-index: 4;
}

.wso-img-box-layout-title-only .wso-title span {
  margin: 0 !important;
}

#content .wso-img-box-layout-title-only .wso-img-box .wso-title span {
  display: block !important;
  color: inherit !important;
  line-height: inherit !important;
  background-image: unset !important;
  box-shadow: unset !important;
  font-weight: 500% !important;
  padding: .9em 1em .6em !important;
  border-radius: 2em !important;
  color: var(--color-white) !important;
  outline: none !important;
  background-color: var(--color-2) !important;
  transition: color .35s ease, background-color .35s ease !important;
}

#content .wso-img-box-layout-title-only .wso-img-box:has(.wso-buttons) .wso-image-frame:hover .wso-title span,
#content .wso-img-box-layout-title-only .wso-img-box:has(.wso-buttons) .wso-image-frame:focus-within .wso-title span {
  color: var(--color-white) !important;
  background-color: var(--color-3) !important;
}

.wso-img-box-layout-title-only .wso-img-box .wso-arrow-button {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
}

.wso-img-box-layout-title-only .wso-img-box .wso-image-wrapper::before {
  display: none;
}

.wso-img-box-layout-title-only .wso-img-box .wso-image-frame:hover img,
.wso-img-box-layout-title-only .wso-img-box .wso-image-frame:focus-within img {
  transform: scale3d(1.075, 1.075,1);
}

@media only screen and (min-width: 992px) {
  .wso-section-image-boxes.wso-img-box-layout-title-only .wso-wrap-image-boxes .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
}

@media only screen and (max-width: 991px) {
  #content .wso-img-box-layout-title-only .wso-img-box .wso-title span {
    font-size: 85%;
    padding: .7em .75em .4em !important;
  }
}

@media only screen and (max-width: 767px) {
  #content .wso-img-box-layout-title-only .wso-img-box .wso-title span {
    font-size: 90%;
  }
}


/* ===========================================
Media Queries
=========================================== */

@media only screen and (max-width: 1599px) and (min-width: 1400px) {
  .wso-img-box {
    min-width: 20%;
    max-width: 50%;
  }
}

@media only screen and (max-width: 1399px) and (min-width: 992px) {
  .wso-img-box {
    min-width: 25%;
    max-width: 50%;
  }  
}

@media only screen and (max-width: 991px) and (min-width: 768px) {
  .wso-img-box {
    min-width: 33.33%;
    max-width: 33.33%;
  }    
}

@media only screen and (max-width: 767px) {
  .wso-img-box {
    width: 50%;
    min-width: 50%;
    max-width: 100%;
  }    
}


/* ===========================================
Version - Classic
=========================================== */

.wso-img-box-layout-classic.wso-section-image-boxes .row {
	--bs-gutter-x: .75rem;
	--bs-gutter-y: 2.5rem;
}

.wso-img-box:not(.wso-img-box-2) .wso-image-frame {
  display: flex;
  flex-direction: column;
}

.wso-img-box:not(.wso-img-box-2) .wp-caption-text {
  position: static;
  top: unset;
  left: unset;
  height: auto;
  flex-grow: 1;
  padding: 1rem 1rem 0 0;
}

.wso-img-box:not(.wso-img-box-2) .wso-title {
  margin-bottom: 1rem;
}

.wso-img-box:not(.wso-img-box-2) .wso-image-wrapper {
  order: -1;
  border-radius: 0;
  flex-grow: 0;
  flex-shrink: 0;
  aspect-ratio: 486/420;
  height: auto;
}

.wso-img-box:not(.wso-img-box-2) .wso-image-wrapper::before {
  display: none;
}

.wso-img-box:not(.wso-img-box-2) .wso-buttons {
  justify-content: flex-start;
  padding-top: 1.5rem;
}

.wso-img-box:not(.wso-img-box-2) .wso-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.wso-img-box:not(.wso-img-box-2) .wso-button:focus-visible {
  outline: none !important;
}

.wso-img-box:not(.wso-img-box-2) .wso-button:focus-visible::before {
  outline: 2px solid var(--current-color-text);
  outline-offset: 6px;
}

.wso-img-box:not(.wso-img-box-2) .wso-headlines,
.wso-img-box:not(.wso-img-box-2) .wso-text {
  z-index: 1;
}

.wso-img-box:not(.wso-img-box-2):has(.wso-button:hover) .wso-image-frame img,
.wso-img-box:not(.wso-img-box-2):has(.wso-button:focus-visible) .wso-image-frame img {
  transform: scale3d(1.075, 1.075, 1);
}

@media only screen and (max-width: 991px) {
  .wso-img-box:not(.wso-img-box-2) {
    min-width: 50%;
  }
  .wso-img-box:not(.wso-img-box-2) .wp-caption-text {
    padding: 2rem 1.5rem 0 0;
  }
}

@media only screen and (max-width: 599px) {
  .wso-img-box:not(.wso-img-box-2) {
    min-width: 100%;
  }
  .wso-img-box:not(.wso-img-box-2) .wp-caption-text {
    padding-right: 0;
  }
}