

.button-popup {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  text-transform: uppercase;
  display: inline-block;
  border-radius: 1.5rem;
  background-color: #fff;
  color: #9191E9;
  padding: 1rem 2rem;
}


.popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top:40px;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  overflow: hiden;
  transition: 0.64s ease-in-out;
}
.popup-inner {
  position: relative;
  bottom: -100vw;
  right: -100vh;
  display: flex;
  align-items: center;
  max-width: 876px;
  max-height: 600px;
  width: 60%;
  height: 80%;
  background-color: #fff;
  transform: rotate(32deg);
  transition: 0.64s ease-in-out;
}
.popup__photo {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 35%;
  height: 100%;
  overflow: hidden;
}

.popup__photos{
    
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 45%;
  height: 100%;
  overflow: hidden;
    
}




.popup__photo img {
  width: auto;
  height: 100%;
}
.popup__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 69%;
  height: 100%;
  padding: 4rem;
}



.popup__textt{
    
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;

  padding-top: 2rem;
  padding-left: 1rem;
  padding-right: 2rem;
  text-align:justify;
}




.popup:target {
  visibility: visible;
  opacity: 1;
}
.popup:target .popup-inner {
  bottom: 0;
  right: 0;
  transform: rotate(0);
}
.popup__close {
  position: absolute;
  right: -1rem;
  top: -1px;
  width: 3rem;
  height: 3rem;
  font-size: 0.875rem;
  font-weight: 300;
  border-radius: 100%;
  background-color: #0A0A0A;
  z-index: 4;
  color: #fff;
  line-height: 3rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}



@media (max-width: 1440px) {
   .popup__textt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 105%;
    height: 100%;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: justify;
    font-size: 13px;
}
}


@media (max-width: 768px) {
   .popup__textt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 105%;
    height: 100%;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: justify;
    font-size: 11px;
}


.popup-inner {
  position: relative;
  bottom: -100vw;
  right: -100vh;
  display: flex;
  align-items: center;
  max-width: 876px;
  max-height: 600px;
  width: 98%;
  height: 80%;
  background-color: #fff;
  transform: rotate(32deg);
  transition: 0.64s ease-in-out;
}
}


@media (max-width: 500px) {
    
    
    .popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top:60px;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  overflow: hiden;
  transition: 0.64s ease-in-out;
}
    
    
    .popup__photo {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 40%;
  height: 50%;
  overflow: hidden;
}
    
     .popup__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%;
    height: 100%;
    padding: 1rem;
    font-size: 10px;
 }
    
    
   .popup__textt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 120%;
    height: 100%;
    padding-top: 1rem;
    padding-left: 0rem;
    padding-right: 2rem;
    
    font-size: 9px;
}


.popup-inner {
  position: relative;
  bottom: -100vw;
  right: -100vh;
  display: flex;
  align-items: center;
  max-width: 876px;
  max-height: 600px;
  width: 98%;
  height: 70%;
  background-color: #fff;
  transform: rotate(32deg);
  transition: 0.64s ease-in-out;
}
}
@media (max-width: 500px) {
    .h1, h1 {
    font-size: 1.5rem;
}
}