/* ABOUT */ 

.webp #about-facts-and-studios-container {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),url(../img/angelo-pinheiro-vCQv8ARTyUs-unsplash_2500x1875.webp) center center no-repeat fixed;
  background-size: cover;
}
.no-webp #about-facts-and-studios-container {
  background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),url(../img/angelo-pinheiro-vCQv8ARTyUs-unsplash_2500x1875.jpg) center center no-repeat fixed;
  background-size: cover;
}

/* FACTS AT THE TOP OF THE PAGE */

#about-facts {
  align-items: center;
  justify-content: center;
  background: white;
  white-space: nowrap;
}

#about-facts div { flex: 1; }

#about-facts img {
  flex: 0 0 30px;
  height: 30px;
  width: 30px;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--color-blue);
}

#about-facts p { margin: 0; }
.fact-text { font-size: var(--font-size-p-large); }
.fact-value { 
  font-size: calc(1.3rem + 1vw);
  font-weight: 800;
}

@media only screen and (max-width: 649px) {
  #about-facts { display: flex; flex-flow: row wrap; }
  #about-facts img { display: none; }
  #about-facts div { padding: 10px; }
  .fact-text { font-size: 1rem; }
  .fact-value { font-size: 1.2rem; }
}
  
@media only screen and (max-width: 899px) and (min-width: 650px) {
  #about-facts { display: flex; flex-flow: row nowrap; }
  #about-facts img { height: 20px; width: 20px; flex: 0 0 20px; }
  #about-facts div { padding: 10px; }
  .fact-text { font-size: 1rem; }
  .fact-value { font-size: 1.2rem; }
}

@media only screen and (min-width: 900px) {
  #about-facts { display: flex; flex-flow: row nowrap; }
  #about-facts img { display: block; }
  #about-facts div { padding: 20px; }
}

/* studios/classrooms and location container */

#studios-classrooms-location-container { display: grid; }

@media only screen and (max-width: 1199px) {
  #studios-classrooms-location-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
      "classrooms"
      "location";
  }
}

@media only screen and (min-width: 1200px) {
  #studios-classrooms-location-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
      "classrooms location";
  }
  #studios-classrooms-pics { max-width: 800px; }
}

/* PRIVATE STUDIOS */

#about-studios-classrooms {
  grid-area: classrooms;
  background: white;
}

#studios-classrooms-pics {
  display: grid;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: auto;
}

#studio-pic1 { grid-area: pic1; }
#studio-pic2 { grid-area: pic2; }
#studio-pic3 { grid-area: pic3; }
#studio-pic4 { grid-area: pic4; }
#studio-pic5 { grid-area: pic5; }
#group-pic1 { grid-area: grp1; }
#group-pic2 { grid-area: grp2; }
#group-pic3 { grid-area: grp3; }
#classroom-details { grid-area: details;}

.studio-pic {
  box-shadow: var(--box-shadow);
}

/*
.studio-pic:hover {
  transform: scale(1.5);
}
*/

.studio-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 749px) {
  #studios-classrooms-pics {
    grid-gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "details details"
      "pic3 pic4"
      "pic1 pic1"
      "pic5 pic2"
      "grp1 grp1"
      "grp3 grp3";
  }
}

@media only screen and (min-width: 750px) {
  #studios-classrooms-pics {
    grid-gap: 20px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    grid-template-areas: 
      "pic4 pic4 pic2 pic2 pic5 pic5"
      "pic1 pic1 pic1 pic3 pic3 pic3"
      "details details details details details details"
      "grp1 grp1 grp1 grp3 grp3 grp3";
  }
}

/* LOCATION */

#about-location-container { 
  grid-area: location;
  background: white;
}

#about-location {
  background: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
}

#about-location iframe {
  width: 100%;
  height: 350px;
  max-width: 800px;
  margin: auto;
}

#about-location a { 
  text-decoration: none; 
}

#about-location a address {
  font-family: var(--font-family-body);
  font-style: normal;
  font-size: var(--font-size-p-large);
  padding: 20px 0;
  color: black;
}

#about-location a address:hover {
  text-decoration: underline;
  cursor: pointer;
}

#about-location img {
  width: 100%;
  max-width: 500px;
  object-fit: cover;
  margin: auto;
  box-shadow: var(--box-shadow);
  object-position: 20% 100%;
}

