/* single-project.css */

#slideshowTrack:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.intro {
 padding: 6rem 4rem 0.5rem;
}

.back-link {
 display: block;
 text-transform: uppercase;
 margin-bottom: 4rem;
 font-size: 0.688rem;
 color: var(--text-color);
 text-decoration: none;
 font-weight: 200;
}

.intro h1 {
 margin: 0;
 flex: 1;
 min-width: 200px;
 font-size: 3rem;
}

.meta {
 position: relative;
 display: flex;
 justify-content: flex-end;
 margin-top: 10rem;
}

.meta-text {
 text-align: left;
 padding-left: 1rem;
 width: 15.5rem;
 border-left: 0.01rem solid var(--text-color);
}

.feature-image img {
 width: 100%;
 height: auto;
 margin: 0;
}

.section-heading {
 font-weight: 300;
 padding-bottom: 0;
 margin-bottom: 0.5rem;
 padding-top: 0;
 padding: 0;
}

.before-after-section {
 margin-left: 4rem;
 margin-top: 4rem;
}

.first-section {
  padding: 4rem;
  padding-bottom: 0;
}

.section-container {
 position: relative;
 display: flex;
 justify-content: flex-end;
 align-items: flex-start;
 padding-left: 4rem;
 padding-right: 4rem;
 padding-top: 4rem;
}

.plant-palette-text {
 margin-top: 1rem;
}


.plant-grid {
 display: grid;
 align-items: start;
 gap: 1rem;
 grid-template-columns: repeat(4, 1fr);
}

.plant-palette {
 text-align: center;
 justify-items: center;
 display: flex;
 grid-template-rows: auto auto auto;
 flex-direction: column;
 align-items: center;
 gap: 1rem;
 margin-bottom: 4rem;
}


.plant-palette .plant-symbol {
 height: 6rem;
 display: flex;
 align-items: center;
 justify-content: center;
 overflow: hidden;
}

.plant-palette .plant-image {
 width: 80%;
 aspect-ratio: 1 / 1;
 border-radius: 50%;
 overflow: hidden;
 flex-shrink: 0;
}


.plant-palette .plant-symbol img {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
 display: block;
}

.plant-palette .plant-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
}

@media screen and (min-width: 1025px) {
 .plant-grid {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, auto);
 }

 .plant-palette.shifted:nth-of-type(1) {
  grid-column: 5;
  grid-row: 1;
 }

 .plant-palette.shifted:nth-of-type(2) {
  grid-column: 6;
  grid-row: 1;
 }

 .plant-palette.shifted:nth-of-type(3) {
  grid-column: 7;
  grid-row: 1;
 }

 .plant-palette.shifted:nth-of-type(4) {
  grid-column: 8;
  grid-row: 1;
 }

 .plant-palette:not(.shifted) {
  grid-row: 2;
 }
}

.text-block {
 position: absolute;
 left: 4rem;
 max-width: 40%;
 line-height: 1.6;
 color: var(--text-color);
}

.additional-plan {
 display: flex;
 width: 100%;
 margin-bottom: 4rem;
 margin-top: 4rem;
}

.additional-plan-background {
 width: 66.66%;
 overflow: hidden;
 background-color: var(--light-mode-bg-color);
}

.additional-plan-background img {
 display: block;
 width: 100%;
 height: auto;
 opacity: 60%;
}

.additional-plan-text {
 width: 33.33%;
 padding: 2rem;
 margin-right: 2rem;
 font-size: 1rem;
 line-height: 1.6;
 color: var(--text-color);
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
}

.before-after-slider {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 4rem;
 margin: 4rem;
 margin-top: 1rem;
 background: var(--bg-color);
}

.slider-text-left,
.slider-text-right {
 flex: 1;
}

.slider-text-left {
 text-align: left;
 align-self: flex-start;
}

.slider-text-right {
 text-align: left;
 align-self: flex-end;
}

.slider-container {
 flex: 0 0 auto;
 display: flex;
 flex-direction: column;
 align-items: center;
}

.image-wrapper {
 position: relative;
 width: 25rem;
 max-height: 100vh;
 margin-bottom: 1rem;
}

.image-wrapper img {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.before-image {
 z-index: 1;
}

.after-image {
 z-index: 2;
 opacity: 0;
 transition: opacity 0.5s ease;
}

.slider-range {
 width: 100%;
 margin-top: 1rem;
}

.slider-range {
 appearance: none;
 -webkit-appearance: none;
 width: 100%;
 height: 20px;
 background: var(--bg-color);
 border: 1px solid var(--text-color);
 border-radius: 50px;
 outline: none;
 opacity: 0.9;
 transition: opacity 0.2s;
 cursor: pointer;
}

.slider-range:hover {
 opacity: 1;
}

.slider-range::-webkit-slider-thumb {
 -webkit-appearance: none;
 appearance: none;
 width: 18px;
 height: 18px;
 background: var(--text-color);
 border: 1px solid var(--bg-color);
 border-radius: 50%;
 cursor: pointer;
 transition: background 0.3s;
}

.slider-range::-moz-range-thumb {
 width: 18px;
 height: 18px;
 background: var(--text-color);
 border: 1px solid var(--bg-color);
 border-radius: 50%;
 cursor: pointer;
 transition: background 0.3s;
}

.slider-range::-ms-thumb {
 width: 18px;
 height: 18px;
 background: var(--text-color);
 border: 1px solid var(--bg-color);
 border-radius: 50%;
 cursor: pointer;
}

.project-plan {
 position: relative;
 width: 100%;
 overflow: hidden;
}

.plan-background {
 background-color: var(--light-mode-bg-color);
}

.project-plan img {
 display: block;
 width: 100%;
 height: auto;
 opacity: 60%;
}

.plan-text {
 position: absolute;
 bottom: 0.5rem;
 left: 3rem;
 max-width: 45%;
 padding: 1rem;
 font-size: 1rem;
 line-height: 1.6;
}

.text-color-plan {
 color: var(--text-color-plans);
}

@media screen and (max-width: 1024px) {
 .text-color-plan{
  color: var(--text-color);
 }
}

.featured-logos {
 text-align: center;
 padding: 4rem;
 padding-bottom: 2rem;
}

.featured-logos h2 {
 font-weight: 300;
 margin-bottom: 4rem;
 color: var(--text-color);
}

.featured-logos .logo-container {
 display: flex;
 flex-wrap: wrap;
 gap: 4rem;
 justify-content: center;
 align-items: center;
}

.featured-logos .logo-container a {
 display: block;
 opacity: 0.8;
 transition: transform 0.3s ease, opacity 0.3s ease;
}

.featured-logos .logo-container a:hover {
 transform: scale(1.05);
 opacity: 1;
}

.featured-logos .logo-container img {
 max-height: 100px;
 max-width: 300px;
 height: auto;
 width: auto;
 display: block;
}

.internal-link-cta-text {
 font-weight: 200;
 margin-bottom: 1rem;
}

.bottom-call-to-action {
 padding-top: 2rem;
}

.project-cta {
  padding-bottom: 4rem;
}

.call-to-action-button {
 background-color: var(--text-color);
 color: var(--bg-color);
 padding-top: 0.15rem;
 padding-bottom: 0.15rem;
 padding-left: 0.75rem;
 padding-right: 0.75rem;
 border-radius: 50px;
 text-transform: uppercase;
 border: none;
 font-size: 0.75rem;
 text-decoration: none;
}


.call-to-action-button:hover {
 background-color: var(--button-bg);
 color: var(--text-color);
 transition: transform 0.3s ease
}

.image-gallery {
 width: 100%;
 margin: 0 auto;
 margin-top: 4rem;
 border-bottom: 0.1px solid var(--text-color);
}

.view-container {
 margin: 0 4rem 4rem 4rem;
}

.view-container .grid-view,
.view-container .slideshow-view {
 display: none;
}

.view-container .slideshow-view {
 margin: 0 1rem;
}

.view-container.grid-active .grid-view {
 max-width: 100%;
 padding: 0;
 display: block;
 /* let Isotope manage layout */
 width: 100%;
 margin-top: 4rem;
 position: relative;
}

.single-project .grid-sizer,
.single-project .grid-item {
 width: 33.333%;
}

.single-project .grid-item {
 /*float: left;*/
 box-sizing: border-box;
 padding: 0 1rem;
 margin-bottom: 2rem;
}

.single-project .grid-item img {
 width: 100%;
 height: auto;
 display: block;
 object-fit: cover;
}

.single-project .grid-item video {
 width: 100%;
 height: auto;
 display: block;
 object-fit: cover;
}

.view-container.slideshow-active .slideshow-view {
 display: block;
}

.slide-img img {
 max-height: 600px;
 width: auto;
 object-fit: contain;
 display: block;
 margin: 0 auto;
 margin-right: 1rem;
}

.slideshow-view {
 overflow: hidden;
}

.slideshow-track {
 display: flex;
 transition: transform 1s ease;
}

.slideshow-slider-container {
 display: flex;
 gap: 1rem;
 padding-left: 4rem;
 padding-top: 1rem;
}

.slide {
 flex: 0 0 20rem;
 margin-right: 1rem;
}

.slideshow-arrows {
 display: flex;
 justify-content: space-between;
 margin-bottom: 1rem;
}

.arrow {
 background: none;
 border: none;
 font-size: 3rem;
 line-height: 3rem;
 cursor: pointer;
 user-select: none;
 color: var(--text-color);
}

.view-switch input {
 display: none;
}

.slideshow-toggle {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 padding-left: 5rem;
 margin-top: 1rem;
}

.view-switch {
 display: flex;
 align-items: center;
}

.slideshow-toggle input {
 display: none;
}

.slideshow-slider {
 width: 30px;
 height: 14px;
 outline: 1px solid var(--text-color);
 border-radius: 50px;
 display: block;
 position: relative;
 cursor: pointer;
}

.slideshow-slider::before {
 content: "";
 position: absolute;
 width: 12px;
 height: 12px;
 left: 1px;
 top: 1px;
 background: var(--text-color);
 border-radius: 50%;
 transition: 0.3s;
}

#view-toggle:checked+.slideshow-slider::before {
 transform: translateX(16px);
}

@media screen and (max-width: 1024px) {
 .back-link {
  margin-top: 2rem;
 }


 .intro {
  padding: 4rem 2rem 1rem;
 }

 .intro {
  font-size: 3rem;
 }

 .section-heading {
  margin-top: 4rem;
  padding-left: 0;
  margin-bottom: 0;
 }

 .section-container {
  margin: 0;
  padding: 2rem;
  padding-top: 0;
  padding-bottom: 0;
  flex-direction: column;
 }

 .text-block {
  position: static;
  max-width: 100%;
  margin: 0 2rem 4rem 2rem;
 }

 .view-container {
  margin: 2rem;
 }

 .single-project .grid-sizer,
 .single-project .grid-item {
  width: 50%;
 }

 .plant-grid {
  grid-template-columns: repeat(6, 1fr);
 }

 .plant-palette .plant-symbol {
  height: 4rem;
 }

 .additional-plan {
  flex-direction: column;
  margin-bottom: 0;
 }

 .additional-plan-background,
 .additional-plan-text {
  width: 100%;
 }

 .additional-plan-text {
  padding: 2rem;
  margin-bottom: 0;
  text-align: left;
  color: var(--text-color);
 }

 .before-after-section {
  margin-left: 2rem;
  margin-top: 0;
 }

 .before-after-slider {
  flex-direction: column;
  text-align: center;
  margin: 0;
  margin-left: 2rem;
  margin-right: 2rem;
  padding: 0;
 }


 .slider-text-left,
 .slider-text-right {
  align-self: flex-start;
  text-align: left;
 }

 .slider-text-left {
  margin: 0;
  padding-top: 0.5rem;
 }

 .body-text {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
 }

 .image-wrapper {
  width: 600px;
 }

 .slider-range {
  height: 30px;
 }

 .slider-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
 }

 .slider-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
 }

 .bottom-section {
  margin-bottom: 2rem;
 }

 .plan-text {
  position: static;
  padding: 0;
  margin: 2rem 2rem 0 2rem;
  max-width: 100%;
  text-align: left;
  color: var(--text-color);
 }

 .project-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
 }

 .slideshow-slider-container {
  padding-left: 2rem;
 }

 .featured-logos {
   text-align: left;
   padding: 2rem;
   padding-bottom: 0;
 }

 .featured-logos h2 {
  font-size: 1.5rem;
}

.featured-logos .logo-container {
  gap: 2rem;
}
}


@media screen and (max-width: 767px) {

 .back-link {
  margin-bottom: 2rem;
 }

 .intro {
  padding: 2rem 2rem 1rem;
 }

 .intro h1 {
  font-size: 2.25rem;
  margin-bottom: 8rem;
 }

 .meta {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4rem;
 }

 .meta-text {
  width: 100%;
  padding-left: 0;
  border-left: none;
  border-top: 0.1px solid var(--text-color);
  padding-top: 1rem;
 }

 .feature-image {
  margin-bottom: 2rem;
 }

 .plant-palette-first-p,
 .first-plan-text {
  margin-top: 1rem;
 }

 .slider-heading .section-heading {
  margin-top: 4rem;
  padding-top: 0;
 }

 .section-heading {
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 0;
  font-size: 1.4rem;
 }

 .section-container {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 0;
  padding-top: 1rem;
  margin-top: 0;
  margin-bottom: 0;

 }

 .text-block {
  margin: 0;
  margin-bottom: 4rem;
 }

 .before-after-slider {
  margin: 2rem;
  margin-top: 1rem;
 }

 .image-wrapper {
  width: 300px;
 }

 .bottom-section {
  margin-bottom: 2rem;
 }

 .plan-text {
  margin: 0;
  padding: 2rem;
 }

 .single-project .grid-sizer,
 .single-project .grid-item {
  width: 100%;
  padding: 0;
 }

 .plant-grid {
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 0;
 }

 .plant-palette {
  margin-bottom: 2rem;
 }

 .plant-palette .plant-symbol {
  height: 3rem;
 }

 .plant-palette .plant-name {
  font-size: 0.5rem;
 }

 .image-gallery {
  margin-top: 0;
  padding-top: 0;
 }

 .slideshow-toggle,
 .slideshow-view {
  display: none !important;
 }

 .view-container .grid-view {
  display: block !important;
 }

 .featured-logos {
  padding-bottom: 2rem;
 }

 .project-cta {
   padding-bottom: 2rem;
   margin-top: 0;
 }
}