.portfolio-return {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0 2rem 0;
}

.portfolio-return a {
  color: var(--saphire);
  font-weight: 700;
  font-size:large;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: .5rem .25rem;
  padding: 1rem .5rem;
}

.portfolio-title {
	font-size: clamp(var(--font-md), 2vw ,var(--font-lg));
  font-weight: 600;
}

.portfolio-subtitle {
  font-size: clamp(var(--font-sm), 2vw ,var(--font-md));
  font-weight: 600;
}

.portfolio-text {
  margin: 5rem 0rem 5rem 0;
  font-size: 1.5rem;
  text-align: center;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--black);
  transition: opacity 0.3s ease, filter 0.3s ease;
  display: block;
}

.portfolio-detail {
  display: flex;
  flex-direction: column;
  justify-content: left;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--black-rgb), 0.6);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: .7rem;
  overflow: scroll;
}

.portfolio-detail h2,
.portfolio-detail h3,
.portfolio-detail a,
.portfolio-detail p {
  padding: .75rem 0;
}

.portfolio-detail a {
  text-decoration: underline;
  color: var(--white);
}



.portfolio-tag {
  display: inline-block;
  background-color: var(--saphire);
  color: var(--white);
  padding: 10px 10px;
  margin: 5px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: clamp(var(--font-xs), 2vw ,var(--font-sm));
}

.hero-text {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text span {
  color: #0D1181;
}

.hero-text p {
  font-size: 1.5rem;
}

.hero-section {
  background: #fff;
}

.twin-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/*
.hero-image-container {
  grid-column: 2 /2;
  grid-row: 1 /1;
}
  */


.twin-sections h2 {
  margin-left: 1rem;
  text-transform: none;
}

.solution-tech h2 {
  margin-left: 1rem;
  text-transform: none;
}

section p {
  padding: 1rem 1.5rem .5rem 1rem;
}

.bold-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.list-item {
  margin-left: 2rem;
}

.issues-section {
  background-image:
    linear-gradient(100deg, transparent, #000, #005aa5, #4e6ca7, transparent, #005aa5, #000),
    linear-gradient(200deg, #005aa5, #000);
  /* background: #4062A4; */
  color: white;
  padding-bottom: 2rem;
}

.solution-section {
  background-image: url(../img/portfolio/darksmoke\ 5-low.png);
  background-repeat: no-repeat;
}

.solution-text-container {
  text-align: center;
}

.solution-text-container h2 {
  text-transform: none;
}

section {  
  padding: 1rem 0;
}


.result-list {
  font-weight: 600;
  font-style: normal;
}

.results-section {
  background: #D9D9D9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
  text-transform: none;
}

.results-section h2 {
  text-transform: none;
}

.result-box-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

/*

.result-box {
  width: 200px;
  height: 200px;
}


.issues-box {
  width: 175px;
  height: 184px;
}
*/

.contact-section {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.contact-box {
  background: #4062A4;
  text-align: center;
  width: 95%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem .25rem;
}

.contact-box h2 {
  font-size: 4rem;
  text-decoration: underline;
  text-transform: none;
}

.contact-box p {
  font-size: 3rem;
  padding: 1rem 0;
  /*text-transform: capitalize;*/
}

.contact-box span {
  text-transform: lowercase;
}

.contact-btn {
  font-size: 2.25rem;
  padding: 1rem;
  background: #fff;
  color: #0D1181;
  border-radius: 6px;
  border: none;
  margin-top: 2rem;
  transition: all .4s;
  text-decoration: none;
}
/*
.issues-container {  
  display: flex;
  justify-content: space-evenly;  
  margin-top: 2rem;
  flex-direction: row;  
}
*/

.issues-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.no-dots {
  list-style: none;
}

.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .9);
  height: 100vh;
  width: 100vw;
  z-index: 100;
  display: none;
}

.popup-image span {
  position: absolute;
  top: 0;
  right: 20px;
  font-size: 60px;
  font-weight: bolder;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}

.popup-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  border-radius: 5px;
  object-fit: contain;
  width: 100vw;
  height: 100vh;
}

.contact-box h2 {
  padding: 0 20rem;
}

/* .tag-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 5rem;
}

.tag-container p {
  background: #406CD6;
  color: white;
  width: auto;
  height: auto;
  border-radius: 8px;
  padding: 10px 20px 10px 20px;
  text-align: center;
  inline-size: 14rem;
  overflow-wrap: break-word;
} */

@media (hover: hover) {
  .portfolio-detail a:hover {
    text-decoration: underline;
  }
}

@media (hover: none) {
  .portfolio-detail {
    opacity: 1;
  }

  .portfolio-item img {
    opacity: 0.7;
    /*filter: blur(5px);*/
  }

}

.portfolio-item:hover img {
  opacity: 0.5;
  filter: blur(5px);
}

.portfolio-item:active .portfolio-detail,
.portfolio-item:hover .portfolio-detail {
  opacity: 1;
}

.contact-btn:hover {
  cursor: pointer;
  color: #181fdf;
  background: #d5d5d5;
}

.container-thumbnail:hover {
  cursor: pointer;
}

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

  .issues-section {
    background-image:
      linear-gradient(2deg, transparent, #000, #005aa5, #4e6ca7, transparent, #005aa5, #000),
      linear-gradient(5deg, #005aa5, #000);
  }

  .contact-box h2 {
    padding: 0 15rem;
  }

  .wrapper {
    padding: 1rem;
  }

  video {
    width: 50vw;
    height: auto;
  }
}

@media screen and (max-width: 1030px) {
  
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: .25rem;
  }

  /*
  .portfolio-detail:hover {
    display: none;
  }
  */

  .issues-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box h2 {
    font-size: 2.5rem;
  }

  .contact-box p {
    font-size: 2rem;
  }

  .contact-btn {
    font-size: 1.5rem;
  }

  /*

  .result-box {
    width: 150px;
    height: 150px;
  }
  */

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  /*
  video {
    width: 530px;
    height: 375px;
  }
    */
}

@media screen and (max-width: 900px) {
  .twin-sections {
    display: grid;
    grid-template-columns: 1fr;
  }

  #section-1 {
    order: 2;
  }

  #section-2 {
    order: 1;
  }

  #i-section-1 {
    order: 1;
  }

  #i-section-2 {
    order: 3;
  }

  #i-section-3 {
    order: 2;
  }

  .hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .overview-text-container p {
    margin-bottom: 0;
    padding-bottom: 1rem;
  }

  .contact-box h2 {
    padding: 0;
  }

  .hero-image {
    padding: 0 1rem;
  }

  .issues-container {
    grid-template-columns: repeat(2, 1fr);
  }

  video {
    width: 95vw;
  }

}

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

  .wrapper {
    padding: .5rem 1rem;
  }

  /*

  .issues-box {
    width: 150px;
    height: 130px;
  }

  .result-box {
    width: 100%;
    height: 100%;
  }
    */
}

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

  .portfolio-container,
  .result-box-container {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: .25rem;
  } 

}

@media screen and (max-width: 430px) {
  
  .hero-text h1 {
    font-size: 1.5rem
  }

  .hero-text p {
    font-size: 1rem;
  }

  .bold-text {
    font-size: 1rem;
  }

  /*

  .issues-box {    
    width: 100%;
    height: 100%;
  }
  

  .result-box {
    width: auto;
    height: 100%;
  } 
  */

  .contact-box h2 {
    font-size: 1.2rem;
  }

  .contact-box p {
    font-size: 1rem;
  }

  .contact-btn {
    font-size: 1rem;
    margin-top: .5rem;
  }

  /*
  video {
    width: 350px;
    height: 270px;
  }
  */
}

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

  .hero-text h1 {
    font-size: 1.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  /*
  video {
    width: 300px;
    height: 245px;
  }
  */
}