/* PORTOFOLIO PAGES CSS*/ 

p a {
  text-decoration: none;
  color: inherit;
}

.social-link {
  text-decoration: none;
  color: inherit;
}

* {
  box-sizing: border-box;
}



/* Section 1 Blue profile */
.sectionblue {
  background-color: #0067aa;
  padding: 0 0.5rem;
}

.sectionblue p {
  padding: 0;
}

.porto-profile {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.porto-profile-image {
  flex: 1;
  min-width: 60%;
  display: flex;
  justify-content: flex-end; /* Snap image to right */
  align-items: flex-start;
  overflow: visible; /* Allow overflow */
  position: relative;
}

.porto-profile-image img {
  width: auto;
  height: auto;
  max-height: none;
  object-fit: none; /* Disable resizing */
}

/* Section 2 Blue profile */
.porto-profile-text {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-right: 2rem;
}

.porto-profile-text h2 {
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;  
}

.porto-profile-text p {
  font-size: 1rem;
  margin: 0;
  text-align: left;
  line-height: 1.5;
  padding-top: 1rem;    
}

.porto-profile-text ul {
  padding-top: 0.5rem;
  margin: 0;
  padding-left: 1em
}

.porto-profile-text li {  
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* price range & contact info section */ 
.profile-info-sectionflex {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  align-items: center; 
  justify-content: space-between;
  align-items: stretch;
}

.profile-info-flex-box {
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*Section 3 white box price range */
.profile-info-left-box {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 100px;
  min-height: 250px; /* Adjust as needed */
  text-align: left;
  background-color: var(--bg-color-white);
  display: flex;
  position: relative;
  overflow: hidden;  
  align-items: flex-end;
  padding-right: 5%;
}

.profile-info-left-box p, h1  {
  padding-left: 0;
}

.profile-info-span {
  text-align: left;
}

.profile-info-span p {
  padding: 0.5rem 0;
}

.profile-info-left-text {  
  padding-right: 1rem;
  padding-left: 14%;
  margin: 0;
}

.profile-info-left-image {
  position: absolute;
  left: -40px;               /* Push image halfway outside to the left */
  top: 50%;
  transform: translateY(-50%); /* Vertically center */
  height: 80%;               /* Match the height of the parent box */
  width: auto;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  z-index: 0;
}

.profile-info-left-image img {
  height: 100%;              /* Fit the height of the box */
  width: auto;               /* Keep original image aspect ratio */
  object-fit: contain;
  display: block;
  padding: 0;
  margin: 0;
}

/* Section 4 yellow box contact info */
.profile-info-right-box {
  flex: 0 0 60%;
  max-width: 60%;
  min-width: 250px;
  text-align: left;
  background-color: var(--bg-color-yellow);
  padding-left: 0rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

.profile-info-right-box p, h1 {
  padding-left: 5rem;
  margin-bottom: 0;
}

.profile-info-right-box img {
  width: 2.3rem;
  height: auto;
  vertical-align: middle;
  padding-right: 0.5rem;
}


/* Section 5 blue box portfolio gallery title */
.sectionblue {
  text-align: center;
}

.profile-info-blue-center {
  display: grid;
  place-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.profile-info-blue-center p {
  font-size: 1.2rem;
  padding-top: 2rem;
}

.profile-info-blue-center h2 {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.profile-info-blue-center h2 img {
  height: 2rem;
  width: auto;
}


/* General styles for the portfolio gallery */
.porto-gallery {
  display: grid;
  grid-template-columns: 10% 80% 10%;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.porto-gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.porto-scroll-gallery {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 600px; /* or whatever fits 3 items */
  margin: auto;
}

.porto-scroll-gallery::-webkit-scrollbar {
  display: none; /* optional: hide scrollbar on Chrome/Safari */
}

.porto-gallery-row-item {
  flex: 0 0 calc((100% - 2rem) / 3); /* 3 items, subtracting 2 gaps */
  scroll-snap-align: start;
}

.porto-gallery-row-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 10%;
  cursor: pointer;
}

/* Back to Home link */
.back-home-box {
  display: block;
  text-decoration: none;
  font-size: 1.3rem;
  color: inherit;
  text-align: center;
  padding: 1rem;
}

.back-home-box img {
  vertical-align: middle;
  height: 1.5rem;
  width: auto;
  position: relative;
  z-index: 1;
}

.back-home-box span {
  vertical-align: middle;
  padding: 0 0.5rem;    
  font-family: 'BCASans Bold';
  font-weight: normal;
}

@media (min-width: 769px) and (max-width: 1300px) {
  .profile-info-left-image {
    position: absolute;
    left: -50px;               /* Push image halfway outside to the left */
    top: 50%;
    transform: translateY(-50%); /* Vertically center */
    height: 80%;               /* Match the height of the parent box */
    width: auto;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 0;
  }

  .profile-info-left-image img {
    height: 80%;              /* Fit the height of the box */
    width: auto;               /* Keep original image aspect ratio */
    object-fit: contain;
    display: block;
    padding: 0;
    margin: 0;
  }
}



@media (max-width: 768px) { 
  
  body {
  overflow-x: hidden;
  }

  .sectionblue {
    padding: 0;
  }
  
  .porto-profile,
  .profile-info-sectionflex {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  

  .porto-profile-image {
    justify-content: left;
    align-items: center;
    padding: 0;
    margin: 0;
    left: -5%;
    overflow: hidden;
  }

  .porto-profile-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
  }
  
  .porto-profile-text {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 280px;
    padding-top: 0rem;
    padding-bottom: 1.5rem; 
    padding-right: 2rem;
    padding-left: 2rem;
    display: grid;
    flex-direction: row;
    justify-content: left;
    align-items: left; /* center horizontally */
    text-align: left; /* optional: center text inside */
  }

  .porto-profile-text h2 {
    padding-left: 0rem;
  }
  
  .porto-profile-text p {
    padding-left: 0rem;
  }

  .porto-profile-text img {
    width: 1.7rem;
    vertical-align: middle;  
  }

  /* Section 3 white box price range */
  .profile-info-left-box{
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;    
    margin: 0;
    min-height: 200px; /* Adjust as needed */
  }

  .profile-info-left-image {
    left: -50px;
    padding: 0;
    margin: 0;
    align-items: left;
  }

  .profile-info-left-image img {
    height: 100%;              /* Fit the height of the box */
    width: auto;               /* Keep original image aspect ratio */
    object-fit: contain;
    display: block;
    padding: 0;
    margin: 0;
  }

  .profile-info-left-text {
    padding-right: 0rem;
    padding-left: 1rem;
  }

  .profile-info-left-box{
    align-items: flex-start; 
    padding-left: 30%;
  }

  .profile-info-left-box p,
  .profile-info-left-box h1 {
    padding-left: 1rem;
    text-align: left;
    padding-right: 1rem;
    padding-top: 0;
  }

  .profile-info-left-box h1 {
    font-size: 2rem;
  }

  /* Section 4 yellow box contact info */  
  .profile-info-right-box {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 250px;
    background-color: var(--bg-color-yellow);
    padding: 1rem 0 2rem 2rem; 
    display: grid;
    flex-direction: row;
    justify-content: center;
  }  

  .profile-info-right-box p {
    padding-left: 0;
    padding-top: 0;
    text-align: left;
  }
  
  .profile-info-communication-list {
    padding-top: 0;
    text-align: left;
    margin: 0 ; 
    padding-bottom: 1rem;
    padding-left: 0;
  }

  /* Section 5 blue box portfolio gallery title */
  .profile-info-blue-center{
    padding-top: 0;
    padding-bottom: 0;
    margin:0;
  }
  
  .profile-info-blue-center h2 {
    font-size: 1.5rem;
    gap: 0.5rem;
  }

  .profile-info-blue-center p {
    font-size: 1rem;
  }

    /* Gallery shows 2 items instead of 3 */
  .porto-scroll-gallery {
    max-width: 100%;
    padding: 0 1rem;
  }

  .porto-gallery-row-item {
    flex: 0 0 calc((100% - 1rem) / 2);
  }

}

/* iPad portrait & landscape */
@media (min-width: 768px) and (max-width: 1020px) {
  
.porto-profile-text {
  padding-left: 0;
  padding-right: 1rem;
}

.profile-info-left-box{
    align-items: flex-start;
    padding-left: 20%;
  }
  
  .profile-info-left-text {  
  padding-right: 1rem;
  padding-left: 1rem;
  margin: 0;
}

.profile-info-left-image {
  position: absolute;
  left: -60px;               /* Push image halfway outside to the left */
  top: 50%;
  transform: translateY(-50%); /* Vertically center */
  height: 80%;               /* Match the height of the parent box */
  width: auto;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}

.profile-info-left-image img {
  height: 80%;              /* Fit the height of the box */
  width: auto;               /* Keep original image aspect ratio */
  object-fit: contain;
  display: block;
  padding: 0;
  margin: 0;
}

  
}
