/* HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT --- HEIGHT ---  */

@media screen and (max-height: 1080px) {

  .custom-modal-content-horizontal {
    max-width: 750px;
  }

  .miscellany-image-vertical {
    height: 82vh;
  }

  .miscellany-image-horizontal {
    width: 82vh;
  }

  .miscellany-description-title {
    font-size: clamp(24px, 3.5vh, 32px);
  }

  .miscellany-description-subtitle {
    font-size: clamp(14px, 2vh, 18px);
  }

  .home-scale-image {
    width: 70%;
  }



  .socials-image-svg {
    width: 24px;
    height: 24px;
  }

  .horizontal-project {
    padding-top: 2vw;
    padding-bottom: 2vw;
  }

  .logo-unvrs {
    width: 166px;
  }

  .logo-tmb {
    width: 150px;
  }

  .logo-rtve {
    width: 120px;
  }

  .logo-bmth {
    width: 110px;
  }

  .logo-starwars {
    width: 150px;
  }

  .softwares {
    text-align: right;
  }



  .project-structure-info {
    width: 50vw;
  }

  .project-structure-info-top {
    font-size: 14px;
    max-width: 40.6vw;
  }

  .project-structure-info-bottom-title {
    font-size: 40px;
  }

}



@media screen and (max-height: 970px) {
  .custom-modal-content-vertical {
    max-width: 750px;
  }
}



@media screen and (max-height: 720px) {
.logo-video {
    aspect-ratio: 16 / 9;
}
}

@media screen and (max-height: 650px) {
    .modal-description-vertical {
    justify-content: flex-end;
  }

  .modal-description-logo-vertical {
    display: none;
  }

  .modal-description-logo-horizontal {
    display: none;
  }

}



/* WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH --- WIDTH ---  */


@media screen and (max-width: 1250px) {
  .logo-unvrs {
    width: 13.5vw;
  }

  .logo-tmb {
    width: 13.5vw;
  }

  .logo-rtve {
    width: 12vw;
  }

  .logo-bmth {
    width: 12vw;
  }

  .logo-starwars {
    width: 13.5vw;
  }

  .home-scale-image {
    width: 82%;
  }

  .project-structure {
    display: flex;
    flex-direction: column;
    padding-right: 0;
    padding-left: 0;
    padding-top: 7em;
    gap: 5vw;
  }

  .project-structure {
    padding-top: 8em;
  }

  .project-structure-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 2.2vw;
    padding-right: 3em;
    padding-left: 3em;
  }

  .project-structure-info-bottom {
    position: relative;
    bottom: 0;
  }

  .project-structure-info-top {
    font-size: clamp(14px, 1.3vw, 16px);
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    padding-right: 0;
    max-width: 100%;
  }

  .project-structure-info-bottom-description {
    max-width: 100%;
        text-align: left;

  }

  .project-structure-images {
    width: 100%;
  }

  .horizontal-project {
    padding-top: 5vw;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 5vw;
  }

  .logo-unvrs {
    width: 166px;
  }

  .logo-tmb {
    width: 150px;
  }

  .logo-rtve {
    width: 120px;
  }

  .CV-about {
    gap: 30vw;
  }

  .logo-bmth {
    width: 110px;
  }

  .logo-starwars {
    width: 150px;
  }

  .softwares {
    text-align: right;
  }

  .separator-projects {
    padding-top: 1vw;
  }

  .footnote {
    padding-left: 1em;
  }

  .home-scale-image {
    width: 85%;
  }

}

/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


@media screen and (max-width: 1024px) {
  .title {
    padding-top: 3em;
    font-size: clamp(24px, 6vw, 32px);
  }

  .left-items {
    font-size: 16px;
  }

  .right-items {
    font-size: 16px;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

  .video-position {
    height: 36vw;
  }

  .demoreel {
    width: 64vw;
    height: 36vw;
  }

  .marquee-track {
    height: 12vw;
  }

  .miscellany-container::-webkit-scrollbar {
    height: 8px;
  }

  .socials {
    flex-direction: column;
    gap: 2vw;
  }

  .socials-image {
    font-size: clamp(16px, 2.3vw, 28px);
  }

  .about-container {
    flex-direction: column;
    height: 100%;
  }

  .about-info {
    order: 1;
    width: 100vw;
    overflow: visible;
    height: auto;
    margin-bottom: 0;
    padding-right: 1em;
  }

  .about-video-container {
    order: 2;
    width: 100vw;
  }

  .about-footer {
    display: none;
  }

  .about-footer-mobile {
    order: 3;
    display: block;
    padding-top: 3em;
    padding-bottom: clamp(1em, 3vw, 2em);
  }

  .about-socials {
    padding-bottom: 2em;
    gap: 1em;
  }

  .socials-text {
    font-size: 18px;
  }

  .socials-image-svg {
    width: 28px;
    height: 28px;
  }

  .logo-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    padding: 0;
  }

  .logo-video-tipography {
    display: none;
  }

  .home-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 2.5em;
  }

  .home-logo {
    margin: 0;
  }

  .home-logo-mobile {
    display: block;
    font-family: Grafier-Regular;
    font-size: 14px;
    color: var(--col-red);
    padding-top: 0.5em;
  }


}

/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


@media screen and (max-width: 750px) {
  .previous-next-logo-container {
    margin: 0;
  }

  .title {
    padding-top: 3em;
  }

  .marquee-track {
    left: -2em;
  }

  .custom-modal {
    padding: 0;
  }

  .custom-modal-content-vertical {
    width: 75vw;
    height: auto;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    overflow-y: auto;
    -ms-overflow-style: none;
  }

  .modal-description-logo-vertical {
    display: none;
  }

  .modal-description-logo-horizontal {
    display: none;
  }

  .custom-modal-content-vertical iframe {
    width: 75vw;
    height: auto;
  }

  .close-modal {
    padding-top: 1em;
    padding-right: 1em;
    padding-left: 1em;
  }

  .horizontal-modal-arrows-miscellany {
    padding-left: 2em;
    padding-right: 2em;
    padding-bottom: 2em;
  }

  .video-position {
    margin-right: 0;
  }
}


/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


@media screen and (max-width: 624px) {

  .about-info {
    padding-right: calc(7.5vw + 1em);
    padding-left: 7.5vw;
  }

  .about-title {
    padding-right: 0;
    padding-left: 0;
  }

  .about-description {
    padding-right: 0;
    padding-left: 0;
  }

  .project-modal-video-container-horizontal {
    padding-right: 2vw;
    padding-left: 2vw;
  }

  .previous-next-project-text-right {
    display: none;
  }

  .previous-next-project-text-left {
    display: none;
  }

  .previous-next-logo {
    margin: 0;
  }

  .previous-next-logo-container {
    margin: 0;
  }

  .previous-next-project {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
  }

  .about-socials {
    padding-left: 2vw;
  }

  .socials-text {
    font-size: 16px;
  }

  .socials-image-svg {
    width: 24px;
    height: 24px;
  }

  .socials {
    gap: 4vw;
  }

  .previous-next-logo-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .previous-next-mobile {
    display: block;
    font-family: Grafier-Regular;
    font-size: 14px;
    color: var(--col-red);
    padding-top: 1.2em;
  }

  .previous-next-logo-mobile {
    display: block;
    font-family: Grafier-Regular;
    font-size: 14px;
    color: var(--col-red);
    padding-top: 0.2em;
  }

  .left-items {
    padding-right: 16.5vw;
    font-size: 14px;
  }

  .right-items {
    font-size: 14px;
  }

  /* .project-structure {
    gap: 6vw;
  } */

  .project-structure-info {
    padding-right: 7vw;
    padding-left: 7vw;
  }

  .horizontal {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .separator-about {
    padding-left: 0;
    padding-right: 0;
  }

  .separator-projects {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .horizontal-project {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .separator-projects:not(:empty)::before {
    margin-right: 4vw;
  }

  .separator-projects:not(:empty)::after {
    margin-left: 4vw;
  }

  .project-structure-info-top-first {
    padding-bottom: 1.2vw;
  }

  .footer {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  .modal-arrow-text {
    display: none;
  }

  .modal-arrow-text-miscellany {
    display: none;
  }

  .modal-arrow {
    transition: filter 0.2s ease-in-out;

  }

  .modal-arrow:hover {
    filter: brightness(0);
  }

  .footnote {
    font-size: 12px;
  }

  /* HOME */
  .home-container-left {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 1vw;
  }

  .home-container-right {
    flex-direction: column-reverse;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 1vw;
  }

  .home-description-left {
    line-height: 9vw;
    padding-top: 0.2em;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .home-description-right {
    line-height: 9vw;
    padding-top: 0.2em;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .home-description-number {
    margin-bottom: 0;
    font-size: clamp(20px, 7vw, 36px);
  }

  .home-scale-image {
    width: 100%;
  }

  .home-scale-image .home-description-overlay {
    background: none;
  }

  .home-description {
    display: none;
  }

  .home-description-mobile {
    display: block;
    color: var(--col-red);
    font-family: Editorial Old-Regular;
    font-size: clamp(12px, 5vw, 28px);
  }

  .home-description-mobile:hover {
    color: var(--col-darkgrey);
  }

  .video-position {
    height: 43vw;
  }

  .demoreel {
    width: 80vw;
    height: 43vw;
  }

  .marquee-track {
    height: 15vw;
  }

  .marquee-item {
    font-size: clamp(16px, 5vw, 24px);
  }

  .title-text {
    font-size: clamp(9px, 3vw, 24px);
    margin-top: 6vw;
    margin-bottom: 8vw;
  }

  .separator {
    font-size: clamp(9px, 3vw, 22px);
    padding-left: 5vw;
    padding-right: 5vw;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 8vw;
    margin-top: 8vw;
  }

  .separator-white {
    font-size: clamp(9px, 3vw, 22px);
    padding-left: 6vw;
    padding-right: 6vw;
    margin-top: 1em;
    padding-bottom: 6vw;
    padding-top: 6vw;

  }

  .miscellany {
    padding-bottom: 0;
  }

  .miscellany-container {
    padding-bottom: clamp(40px, 13vw, 72px);
    padding-left: 7vw;
    padding-right: 7vw;
    gap: 5vw;
  }

  .miscellany-container::-webkit-scrollbar {
    display: none;
  }

  .miscellany-image-vertical {
    height: 55vw;
    min-height: 10em;
    max-height: 40em;
  }

  .miscellany-image-horizontal {
    width: 55vw;
    min-width: 10em;
    max-width: 40em;
  }

  .miscellany-description-overlay-horizontal {
    display: none;
  }

  .miscellany-description-overlay-vertical {
    display: none;
  }


  .paddle {
    width: 8vw;
    min-width: 40px;
    height: auto;
    top: 93%;
  }

  .paddle img {
    width: 8vw;
    min-width: 40px;
    height: auto;
  }

  .left-paddle {
    left: 30px;
  }

  .right-paddle {
    right: 30px;
  }

  .more {
    padding: clamp(1.5em, 8vw, 5em);
    padding-bottom: 8vw;
  }

  .more-text {
    font-size: clamp(32px, 13vw, 64px);
    padding-bottom: 5vw;
    padding-top: 3vw;
  }



}

/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

@media screen and (max-width: 450px) {

  .separator-about {
    font-size: clamp(12px, 6vw, 24px);
  }

  .separator-about::after {
    display: none;
  }

}


/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


@media screen and (max-width: 420px) {

  .about-title {
    font-size: clamp(18px, 9vw, 30px);
  }

  .project-structure-info-top {
    font-size: clamp(10px, 3vw, 12px);
  }

  .logo-unvrs {
    width: 35vw;
  }

  .logo-tmb {
    width: 35vw;
  }

  .logo-rtve {
    width: 25vw;
  }

  .logo-bmth {
    width: 25vw;
  }

  .logo-starwars {
    width: 32vw;
  }

  .logo {
    margin-left: 6vw;
    margin-right: 6vw;
  }

  .project-structure {
    padding-top: 7em;
  }

  .project-structure-info {
    gap: 0.75em;
  }

  .project-gallery-SOS {
    display: block;
    gap: 0;
  }

  .project-gallery-SOS-item {
    width: auto;
  }

  .project-gallery-SOS-item img {
    width: auto;
    padding-bottom: 0.2em;
  }

  .project-gallery-TMB {
    display: block;
    gap: 0;
  }

  .project-gallery-TMB-item {
    width: auto;
  }

  .project-gallery-DLV {
    display: block;
    gap: 0;
  }

  .project-gallery-DLV-item {
    width: auto;
  }

  .project-gallery-DLV-item img {
    width: auto;
    padding-bottom: 0.2em;
  }

  .project-gallery-FN {
    display: block;
    gap: 0;
  }

  .project-gallery-FN-item {
    width: auto;
  }

  .project-gallery-RTVE {
    display: block;
    gap: 0;
  }

  .project-gallery-RTVE-item {
    width: auto;
  }

  .footnote {
    font-size: 8px;
    padding-bottom: 0.7em;
  }

  .about-socials-image {
    font-size: clamp(10px, 3.6vw, 14px);
    padding-left: 0;
  }

  .title {
    padding-top: 3.5em;
  }

  .separator::before,
  .separator::after {
    border-bottom: 1px var(--col-red) solid;
  }

  .separator-white::before,
  .separator-white::after {
    border-bottom: 1px var(--col-lightgrey) solid;
  }


}


/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */


@media screen and (max-width: 350px) {

  .CV-about {
    flex-direction: column;
  }

  .about-socials {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 1em;
    padding-left: 1em;
    padding-right: 1em;
  }

  .socials-image-svg {
    width: 28px;
    height: 28px;
  }

  .socials-text {
    display: none;
  }

  .marquee-track {
    height: 14vw;
  }

  .socials {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 5vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .more {
    padding-top: 10vw;
    padding-bottom: 10vw;
  }

  .more-text {
    padding: 0;
  }

  .footer {
    padding-left: 1em;
    padding-right: 1em;
  }
}


/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

@media screen and (max-width: 300px) {

  .logo {
    display: none;
  }

  .about-container {
    padding-top: 5em;
  }

  .marquee-track {
    height: 15vw;
  }

  .title {
    padding-top: 3em;
  }

}