@media (max-width: 768px) {
  /* .despre {
    background: url("../img/despre.jpg") no-repeat center -25px / cover;
  } */
  .despre h2 {
    margin: 0px;
  }
  .contact h2 {
    margin: 0px;
  }
  .albume h2 {
    margin: 0px;
  }
  .portofoliu h2 {
    margin: 0px;
  }

  body {
    animation-name: main-animate;
    animation-duration: 1s;
    font-family: "Karla";
    /* line-height: 2rem; */
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    font-weight: 200;
    font-size: 1.6rem;
    min-height: 100vh;
    overflow: hidden;
    min-height: 100vh;
  }

  main {
    display: flex;
    text-align: center;
    margin: 0px;
    height: 100%;
    padding: 0px;
    width: 100%;
    overflow: auto;
  }

  @keyframes main-animate {
    from {
      /* margin-left: -1000px;
    margin-right: -1000px; */
      overflow: hidden;
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }
  * {
    -webkit-tap-highlight-color: transparent;
  }

  #gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    width: 100%;
    column-gap: 5px;
    row-gap: 5px;
    top: 0px;
    height: 100%;
    align-items: stretch;
    padding: 0px;
  }
  .image {
    display: block;
    width: 97%;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto;
  }
  .section {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    width: 100%;
    gap: 0px;
    background: url("../background/mobile/01.jpg") no-repeat center center/cover;
    grid-auto-rows: min-content;
    padding-top: 80%;
  }

  .section .category h2 {
    margin: 0px;
  }

  .category {
    display: grid;
    grid-auto-flow: column;
    justify-content: start;
    align-items: start;
    text-align: left;
    padding: 0px 10px;
    height: 100%;
    width: 100%;
    transition: 1s ease-in-out;
    cursor: pointer;
    z-index: 1;
    /* top: 100px; */
  }

  .category h2 {
    font-size: 1.9rem;
    padding: 0px;
    margin: 0px;
  }

  /* aici */
  .portofoliu .categorii p {
    display: inline;
    padding: 0px;
    line-height: 3.5rem;
    font-size: 1.4rem;
    transition: none;
    margin: 0px;
    padding: 0px;
    margin-left: 10px;
  }
  .categorii a p:hover {
    font-size: 1.4rem;
    opacity: 70%;
  }
  div.category a h2 {
    font-size: 1.4rem;
    margin: 0px;
    padding: 0px;
    padding-left: 10px;
    line-height: 3.5rem;
  }
  .categorii {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0px;
    column-gap: 0px;
    text-align: left;
    justify-items: start;
  }
  .portfolio-title {
    font-size: 2.8rem;
    line-height: 3.1rem;
  }
  .categorii a p {
    text-transform: uppercase;
    font-family: "Cinzel";
    font-weight: 300;
  }

  .category:hover h2 {
    color: white;
    font-size: 1.4rem;
    padding-bottom: 0px;
    opacity: 70%;
  }

  .category h2 {
    font-weight: 300;
    text-shadow: 1px 1px 3px black;
  }
  .category p {
    text-shadow: 1px 1px 3px black;
  }
  .gmaps {
    width: 400px;
    height: 350px;
  }
  .contact,
  .despre,
  .albume,
  .portofoliu {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
  }
  p {
    transition: none;
  }
  /* .categorii p {
    line-height: 100px;
  } */

  h2 {
    transition: all 0.3s ease-in-out;
    color: white;
    font-family: "Cinzel";
    font-size: 5rem;
    font-weight: 300;
    margin: 0px;
  }

  .description-nunta {
    margin: 0px 4%;
  }
  #navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    text-align: center;
    align-content: center;
    align-self: center;
    height: 80px;
  }
  .logo-top {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-top: 7px;
    margin-left: 15px;
  }

  .social {
    top: 30px;
  }

  .hmenu {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    /* transition: all 1s ease-in-out; */
    cursor: pointer;
    position: absolute;
    left: 10px;
  }
  .hmenu:active {
    padding-top: 5px;
  }
  .hmenu > div {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: black;
    /* transition: all 0.4s ease-in-out; */
  }

  .hmenu > div:before,
  .hmenu > div:after {
    content: "";
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 40px;
    height: 2px;
    top: -10px;
    background: inherit;
    /* transition: all 0.4s ease-in-out; */
  }
  .hmenu > div:after {
    top: 10px;
  }

  .hmenu:hover {
    background: rgba(200, 200, 200, 0.3);
  }
  .hmenu {
    transition: all 0.2s ease-in-out;
  }
  .hmenu:hover div {
    background-color: rgb(92, 92, 92);
  }

  .albume-text,
  .despre-text,
  .contact-text {
    display: none;
  }

  .portofoliu h2 {
    display: none;
  }
  .portofoliu div,
  .albume div,
  .despre div,
  .contact div,
  .albume div {
    margin: 0px;
  }

  #navbar ul {
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    align-content: center;
    align-self: center;
    flex-basis: 100vw;
    width: 100vw;
    height: 100vh;
    font-size: 3rem;
    left: 0px;
    top: 0px;
    top: 80px;
    /* transition: all 1s ease-in-out; */
    padding-bottom: 200px;
    position: fixed;
    font-family: "Cinzel";
    font-size: 4rem;
    font-weight: 200;
  }

  #navbar ul li {
    top: 7%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    align-content: center;
  }
  #navbar li {
    padding: 10px 20px;
    animation: none;
  }

  #navbar ul li:hover ul li {
    display: block;
    background-color: transparent;
  }

  #navbar ul li:hover ul {
    text-align: center;
    height: 250px;
    width: 300px;
    left: auto;
    right: auto;
    top: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    font-size: 3.5rem;
  }

  #navbar ul li ul li {
    padding: 15px 0px;
    line-height: 30px;
  }

  .menumobile {
    /* transition: all 1s ease; */
    visibility: hidden;
  }
  #navbar ul a {
    transition: all 0s ease-in-out;
  }

  .toggle {
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0%;
    cursor: pointer;
    display: block;
  }

  .toggle:checked ~ .menumobile {
    visibility: visible;
  }

  .despre-page ul li {
    margin: 0px;
    padding: 5px 0px;
    text-align: justify;
    font-size: 1.7rem;
    line-height: 2.2rem;
    font-weight: 300;
  }
  .despre-page {
    margin: 0 3%;
    /* margin-bottom: 150px; */
  }
  .despre-page p {
    font-size: 1.7rem;
    line-height: 2.2rem;
  }

  #grid-portfolio {
    grid-template-columns: 1fr;
    min-width: 5rem;
    padding: 0px;
    width: 100%;
    overflow: auto;
    padding: 0px;
    margin: 0 auto;
    justify-items: center;
  }
  .contact:hover,
  .portofoliu:hover,
  .portofoliu:hover::before,
  .despre:hover,
  .albume:hover,
  .albume:hover::before {
    animation: none;
  }

  .grid-element {
    width: 97%;
    padding: 0px;
    margin: 0 auto;
  }
  .grid-element img {
    width: 100%;
  }
  .contact-page {
    padding: 0 7%;

    overflow-y: auto;
  }
  .element {
    width: 100%;
  }
  .despre-page img {
    float: right;
    width: 80%;
    margin: 0 auto;
    margin-right: 10%;
  }

  .description {
    margin: 0px 4%;
  }
  .titletop {
    line-height: 3.5rem;
  }
  .menumobile ul li ul li a {
    font-size: 3rem;
  }
  .menumobile ul li ul {
    min-height: 280px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .social {
    top: 5px;
  }

  main {
    display: flex;
    text-align: center;
    margin: 0px;
    height: 100%;
    padding: 0px;
    width: 100%;
  }

  .despre-page img {
    width: 45rem;
  }
  #gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    width: 100%;
    column-gap: 5px;
    row-gap: 5px;
    top: 0px;
    align-items: stretch;
    padding: 0px;
  }
  #grid-portfolio {
    grid-template-columns: 1fr 1fr;
    min-width: 5rem;
    padding: 0px;
    width: 100%;
    overflow: auto;
    padding: 0px;
    margin: 0 auto;
  }
  .image {
    aspect-ratio: 0;
  }
}

@media (max-width: 1300px) and (min-width: 901px) {
  main {
    display: flex;
    text-align: center;
    margin: 0px;
    height: 100%;
    padding: 0px;
    width: 100vw;
  }

  #gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    height: 100%;
    width: 100%;
    column-gap: 5px;
    row-gap: 5px;
    top: 0px;
    align-items: stretch;
    padding: 0px;
  }
  #grid-portfolio {
    grid-template-columns: 1fr 1fr;
    min-width: 5rem;
    padding: 0px;
    width: 100%;
    overflow: auto;
    padding: 0px;
    margin: 0 auto;
  }
  .image {
    aspect-ratio: 0;
  }
}

@media (max-width: 1300px) {
  .jBox-image-container {
    background: center center no-repeat;
    position: absolute;
    width: 100%;
    opacity: 0;

    height: 100%;
  }

  form {
    line-height: 20px;
    text-align: left;
    margin-top: 30px;
  }

  input[type="submit"] {
    width: 70vw;
    height: 50px;
    padding: 5px 10px;
    background-color: #f3f3f3;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Karla", Verdana, sans-serif;
    font-size: 17px;
    transition: 0.4s ease-in-out;
  }
  input[type="submit"]:hover {
    background-color: #e7e7e7;
    font-size: 1.8rem;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 70vw;
    height: 35px;
    padding: 5px;
    border-radius: 5px;
    outline: none;
    margin: 0px;
    padding: 0px;
    margin-bottom: 7px;
    border: 1px solid #aaaaaa;
    font-family: "Karla", Verdana, sans-serif;
    font-size: 1.7rem;
  }
  input[type="text"]:active,
  input[type="text"]:focus,
  input[type="email"]:active,
  input[type="email"]:focus,
  input[type="tel"]:active,
  input[type="tel"]:focus,
  textarea:active,
  textarea:focus {
    box-shadow: inset 0 0 1px black;
  }
  textarea {
    height: 200px;
  }

  .cp {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 0px;
  }
  .cpp {
    padding: 0px;
    margin: 30px 0px 0px 0px;
    width: 100%;
  }
  form {
    margin-top: 0px;
    text-align: center;
  }
}
