html, body {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: white;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
   font-family: "Roboto", sans-serif;
   color: #33312E;
   -webkit-user-select: none;
   user-select: none;
}

a, button, p, div, span, img, select, label,
a:focus, button:focus, select:focus, [tabindex]:focus {
    outline: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

textarea, button, input, select {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

select{
    width: 50%;
    height: 100%;
    font-size: 1em;
    padding: 0.5em;
    border-radius: 10px;
    border: 2px solid #8E6D56;
    background-color: white;
    color: #8E6D56;
}

textarea{
    width: 80%;
    height: 100%;
    font-size: 1em;
    padding: 0.5em;
    border-radius: 10px;
    border: 2px solid #8E6D56;
    background-color: white;
    color: black;
    user-select: none;
    outline: none;
    align-self: center;
}

.homeContainer {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
}

.homeContainer.slide-out-left {
    transform: translateX(-100%);
}

.pageShell {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.pageShell.slide-in-right {
    transform: translateX(0);
    opacity: 1;
}

.horizontalContainer {
    display: flex;
    width: 100%;
}

.homeContainer > .horizontalContainer,
.pageShell > .horizontalContainer {
    height: 100%;
    overflow: hidden;
    overflow: clip;
}

#pageImages {
    position: relative;
    overflow: hidden;
}

#pageRight {
    overflow: hidden;
    overflow: clip;
}

#pageImages .pageImage {
    width: 100%;
    height: 100%;
}

#pageImages .pageImage.hidden {
    display: none;
}

#pageContent {
    display: block;
    position: relative;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin-left: 2%;
    margin-right: 2%;
}

.pageSection {
    display: none;
}

.pageSection.active {
    display: block;
}

.horizontalContainer > div {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
}

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

.verticalContainer > div {
    display: flex;
    justify-content: center;
    flex: 1;
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
}

.flexEndColumn{
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.worksCollectionRow{
    padding: 1%;
    padding-top: 0%;
    margin-top: 0%;
    display: flex;
}


.carouselTrack::-webkit-scrollbar {
    display: none;
}

.worksDetailRow {
    flex: 0 0 240px;
    scroll-snap-align: start;
    cursor: pointer;
    margin-right: 2%;
}

.worksDetailRow .workMiniature {
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
    width: 100%;
}

#worksMainFrame {
    position: relative;
}

#worksMainImage {
    width: 100%;
    height: 100%;
}

#worksMainImageWrap {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

#worksClickHint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 1.6rem;
    color: white;
    pointer-events: none;
    z-index: 2;
    display: none;
}

@media (max-width: 768px) {
    #worksClickHint {
        display: block;
    }
}

#imageLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    cursor: default;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

#imageLightbox.open {
    display: flex;
}

#imageLightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transform-origin: center center;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-user-drag: none;
}

#imageLightbox.zoomed img {
    cursor: grab;
}

#imageLightbox .lightboxNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #fff;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    width: 28px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    margin: 0 4px;
    z-index: 1;
}

#imageLightbox .lightboxNavprev {
    left: 0;
}

#imageLightbox .lightboxNavnext {
    right: 0;
}

#imageLightbox .lightboxNav:disabled {
    opacity: 0.35;
    cursor: default;
}

#imageLightbox.single .lightboxNav {
    display: none;
}

/* Reserva el espacio de los botones para que nunca tapen la obra */
#imageLightbox:not(.single) {
    padding-left: 36px;
    padding-right: 36px;
}

#worksCaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12.5%;
    padding: 1.5% 2%;
    background-color: #8E6D56BF;
    color: black;
}

#worksCaptionInfoLayout{
    display: flex;
    align-items: first baseline;
    overflow: hidden;
}

#worksCaptionDescription{
    text-align: justify;
}

#worksCaptionPriceInfo{
    align-items: flex-end;
    color: white;
}

#worksCaptionTitle{
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    font-size: 1.5em;
    padding-top: 1%;
}

#worksCaptionTitle.long-title{
    font-size: 1.2em;
}

#worksCaptionTitle.very-long-title{
    font-size: 1em;
}

#worksCaptionPrice{
    font-weight: bold;
    font-size: 2em;
    color: black;
}

#worksCaptionSold{
    font-size: 1.25em;
}

#worksCaptionContactMe{
    color: black;
}

#worksCaption > .verticalContainer {
    justify-content: flex-start;
}

#worksCaption .horizontalContainer > .verticalContainer {
    justify-content: center;
}

#worksCaption .horizontalContainer > .verticalContainer:first-child {
    justify-content: space-evenly;
}

#worksCaptionPriceInfoLayout{
    align-items: flex-end;
    justify-content: center;
    flex: 0 1 auto;
    overflow: hidden;
    white-space: nowrap;
}

#worksCaptionContactMeLayout{
    flex: 0 0 auto;
    margin-top: 2% !important;
    cursor: pointer;
    justify-content: flex-end;
}

#worksCaption h3,
#worksCaption p {
    margin: 0;
}

#worksCaption p + p,
#worksCaption h3 + p {
    margin-top: 0.3em;
}

/* Buttons */
.carouselButton {
    flex: 0 0 auto;
    border: none;
    background: #8E6D56;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 8px;
}

#contactMethodButtons{
    position: relative;
    align-self: center;
    width: 80%;
    max-width: 320px;
    height: 2.8em;
    background-color: white;
    border: 2px solid #8E6D56;
    border-radius: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

#contactMethodButtons::before{
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background-color: #8E6D56;
    border-radius: 40px;
    transition: transform 0.3s ease;
}

#contactMethodButtons[data-method="1"]::before{
    transform: translateX(100%);
}

.contactMethodBt{
    position: relative;
    z-index: 1;
    height: 100%;
    width: 50%;
    background-color: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

#contactMethodButtons{
    -webkit-tap-highlight-color: transparent;
}

.contactMethodBt:focus,
.contactMethodBt:focus-visible,
.contactMethodBt:active{
    outline: none;
    background-color: transparent;
}

.contactMethodBt{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #8E6D56;
    transition: color 0.3s ease;
}

.contactMethodBt i{
    font-size: 1.2em;
    color: inherit;
}

#homeMainTextLayout{
    margin-top: 2%;
}

/* Recolors the transparent black logo with the brand color */
.homeContainer .flexEndColumn img {
    background-color: #8E6D56;
    -webkit-mask: url('../images/logo.webp') center / contain no-repeat;
    mask: url('../images/logo.webp') center / contain no-repeat;
    object-fit: none;
    object-position: -9999px 0;
}

#homeMainTextLayout p{
    color: #8E6D56;
    padding: 2%;
    cursor: pointer;
    transform-origin: 50% 79.5%;
    transition: transform 0.4s ease, text-shadow 0.3s ease;
}

#homeMainTextLayout p:hover{
    transform: scale(1.012);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#aboutMeBiography{
    padding: 2%;
    line-height: 1.75;
    text-align: justify;
}

/* Navbar */

#navbarContainer{
    box-sizing: border-box;
    align-items: baseline;
    justify-content: center;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    padding: 1% 1%;
    background-color: #8E6D56;
    color: white;
    position: relative;
    order: 0;
    font-size: 10px;
}

#navbarUnderline{
    position: absolute;
    left: 0;
    height: 2px;
    width: 1px;
    transform-origin: 0 0;
    will-change: transform;
    background: white;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.4s ease;
}

#navbarContainer p{
    font-family: "Roboto Slab", serif;
    margin: 0.5em 2%;
    font-size: 2.75em;
    cursor: pointer;
    transform: scale(0.625);
    transform-origin: 50% 79.5%;
    transition: transform 0.4s ease, text-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

#navbarContainer p:hover{
    transform: scale(0.632);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#navbarContainer p.navbarCurrent{
    cursor: default;
    text-shadow: none;
    transform: none;
}

.worksCarousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carouselTrack {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.seriesHeader {
    margin: 0;
    font-size: 1em;
}

.seriesToggleIcon{
    color: #8E6D56;
    margin-right: 1%;
    font-size: 0.9em;
}

.seriesToggleIcon::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.4em 0 0.4em 0.7em;
    border-color: transparent transparent transparent currentColor;
    transition: transform 0.2s;
}

.contactSectionInputMethod{
    margin-top: 2em;
}

.contactSectionHeader::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.4em 0 0.4em 0.7em;
    border-color: transparent transparent transparent #8E6D56;
    margin-right: 0.7em;
}

.worksSeries.expanded .seriesToggleIcon::before {
    transform: rotate(90deg);
}

.worksSeries .seriesBody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 0fr;
    justify-content: stretch;
    flex: 0 0 auto;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    transition: grid-template-rows 0.6s ease, opacity 0.6s ease, visibility 0.6s;
}

.worksSeries.expanded .seriesBody {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.seriesBodyInner {
    min-height: 0;
    overflow: hidden;
}

.seriesDescription {
    margin-top: 1.5%;
    text-align: justify;
    line-height: 1.5;
}


.worksList {
    justify-content: flex-start;
}

.verticalContainer > .worksSeries {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}

.worksSeries > .verticalContainer {
    justify-content: flex-start;
    height: auto;
}

.worksSeries .worksCarousel {
    flex: 0 0 auto;
}

.pageSection[data-page="CONTACTO"].active {
    height: 100%;
}

.pageSection[data-page="CONTACTO"] > .verticalContainer {
    height: 100%;
}

#contactInfoLayout {
    flex: 1;
    min-height: 0;
    justify-content: space-evenly;
}

#contactInfoLayout > .verticalContainer {
    flex: 0 0 auto;
    height: auto;
}

.pageSection[data-page="CONTACTO"].active {
    box-sizing: border-box;
    overflow: hidden;
}

.pageSection[data-page="CONTACTO"] > .verticalContainer {
    box-sizing: border-box;
    overflow: hidden;
}

#contactInfoLayout {
    overflow: hidden;
}

#contactInfoLayout > .verticalContainer {
    flex: 0 1 auto;
    min-height: 0;
}

#contactMessageLayout #contactMessage {
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
    resize: none;
}

#contactMethodSelector{
    height: 15% !important;
}

#sendContactBt{
    height: 3.5em;
    width: 80%;
    background-color: #8E6D56;
    color: white;
    border: 3px solid #8E6D56;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-self: center;
    justify-content: center;
}

.pageSection[data-page="CONTACTO"].active {
    position: static;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pageSection[data-page="CONTACTO"] > .verticalContainer {
    flex: 1;
    min-height: 0;
    height: auto;
}

.pageSection[data-page="CONTACTO"] h3 {
    flex: 0 0 auto;
    margin: 1% 0;
}

.pageSection[data-page="CONTACTO"] > .verticalContainer {
    justify-content: flex-start;
}

.pageSection[data-page="CONTACTO"] h3 {
    margin-bottom: 0;
}

#contactInfoLayout {
    justify-content: flex-start;
}

#contactInfoLayout > .verticalContainer {
   margin-top: 5%;
}

.contactMethodBt{
    cursor: pointer;
}

.contactMethodBt.selected{
    color: white;
}

.revealBlock{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.6s ease, opacity 0.6s ease, visibility 0.6s;
}

.revealBlock.visible{
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.revealInner{
    min-height: 0;
    overflow: hidden;
}

#contactInfoLayout > .revealBlock{
    flex: 0 1 auto;
    min-height: 0;
    margin-top: 0;
    transition: grid-template-rows 0.6s ease, opacity 0.6s ease, visibility 0.6s, margin-top 0.6s ease;
}

#contactInfoLayout > .revealBlock.visible{
    margin-top: 5%;
}

#contactMessageLayout{
    flex: 1 1 0;
}

.revealInner{
    height: auto;
}

#contactSubjectSelector select{
    height: auto;
    flex: 0 0 auto;
    align-self: center;
    width: 80%;
}

#contactMessageLayout #contactMessage{
    flex: 0 0 80%;
    width: 80%;
    height: auto;
    min-height: 0;
    margin-bottom: 5%;
}

/* Margen superior uniforme respecto al navbar */
#pageContent {
    --contentTopGap: 1.5rem;
    box-sizing: border-box;
    padding-top: var(--contentTopGap);
    padding-left: 2%;
    padding-right: 2%;
}

#aboutMeBiography {
    padding-top: 0;
}

#aboutMeBiography h2{
    color: #8E6D56;
}

#aboutMeBiography h2,
.worksSeries:first-child .seriesHeader,
.pageSection[data-page="CONTACTO"] h3 {
    margin-top: 0;
}

.worksSeries .seriesHeaderContainer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    padding-top: 4%;
    cursor: pointer;
    user-select: none;
}

/* Mobile layout */
@media (max-width: 768px) {
    /* Home */
    .homeContainer > .horizontalContainer {
        flex-direction: column;
    }

    .homeContainer > .horizontalContainer > .verticalContainer {
        flex: 0 0 auto;
        height: auto;
        padding-top: 4%;
    }

    .homeContainer .flexEndColumn {
        flex: 0 0 auto;
    }

    .homeContainer .flexEndColumn img {
        max-width: 60% !important;
        max-height: 18vh !important;
    }

    #navbarContainer p{
        font-size: 2em;
    }

    #homeMainTextLayout {
        flex: 0 0 auto !important;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin-top: 3%;
        overflow: visible !important;
    }

    #homeMainTextLayout p {
        margin: 0;
        padding: 3% 2%;
        font-size: 1em;
        white-space: nowrap;
    }

    .homeContainer > .horizontalContainer > div:last-child {
        flex: 1 1 0;
        min-height: 0;
    }

    .homeContainer > .horizontalContainer > div:last-child img {
        width: 100%;
        height: 100%;
    }

    /* Inner pages: navbar, image, content */
    .pageShell > .horizontalContainer {
        flex-direction: column;
    }

    #pageRight {
        display: contents;
    }

    .pageShell .horizontalContainer > #pageImages {
        order: 1;
        flex: 0 0 auto;
        height: 35vh;
    }

    .pageShell[data-page="CONTACTO"] .horizontalContainer > #pageImages {
        display: none;
    }

    #pageContent {
        order: 2;
        flex: 1 1 0;
        min-height: 0;
        margin: 0;
        padding-left: 4%;
        padding-right: 4%;
        --contentTopGap: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Works */
    #pageImages #worksMainFrame {
        width: 100%;
        height: auto;
        background-color: white;
    }

    #worksMainImageWrap {
        height: auto;
        flex: 0 1 auto;
    }

    #worksMainImage {
        width: 100%;
        height: auto;
        flex: 0 1 auto;
        min-height: 0;
        object-fit: cover;
    }

    #worksCaption {
        position: static;
        height: auto;
        background-color: white;
        padding-left: 4%;
        padding-right: 4%;
        font-size: 0.85em;
    }

    #worksCaptionPrice {
        font-size: 1.2em;
    }

    .worksCollectionRow {
        padding: 0;
    }

    .carouselButton {
        display: none;
    }

    .carouselTrack {
        scroll-behavior: auto;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .worksDetailRow {
        flex: 0 0 50%;
        margin-right: 5%;
    }

    .seriesHeaderContainer{
        margin-bottom: 3%;
    }

    .seriesDescription {
        font-size: 14px;
    }

    /* Contact */
    .pageSection[data-page="CONTACTO"].active,
    .pageSection[data-page="CONTACTO"] > .verticalContainer,
    #contactInfoLayout {
        height: 100%;
        justify-content: space-around;
    }
    
    #contactInfoLayout {
        flex: 0 0 auto;
    }

    #contactMethodSelector {
        height: auto !important;
    }

    #contactMessageLayout {
        flex: 0 0 auto;
    }

    #contactMessageLayout #contactMessage {
        flex: 0 0 auto;
        height: 8em;
    }

    #worksCaptionTitle{
        font-size: 1.4em;
        padding-bottom: 2%;
        color: #8E6D56;
    }

    #worksCaptionPrice {
        font-weight: bold;
    }

    #worksCaption .horizontalContainer > .verticalContainer:first-child {
        flex: 0 0 75%;
        width: 75%;
        max-width: 75%;
        min-width: 0;
    }

    #worksCaption .horizontalContainer > #worksCaptionPriceInfo {
        flex: 0 0 25%;
        width: 25%;
        max-width: 25%;
        min-width: 0;
    }

    .worksList {
        border-top: 2px solid #8E6D56;
    }

    #pageImages #worksMainFrame:not(.hidden) {
        display: flex;
        flex-direction: column;
        max-height: 50vh;
        overflow: hidden;
    }

    #worksCaption {
        flex: 0 0 auto;
    }

    #worksCaptionDescription{
        margin-top: 3% !important;
        margin-bottom: 2% !important;
        font-size: 1.1em !important;
    }

    #worksCaptionContactMeLayout{
        margin-top: 5% !important;
    }

    .homeContainer > .horizontalContainer > .verticalContainer {
        flex: 1 1 0;
        min-height: 0;
        justify-content: center;
        padding-top: 0;
    }

    .homeContainer > .horizontalContainer > div:last-child {
        flex: 0 0 60%;
    }

    /* Recolors the transparent black logo with the brand color */
    .homeContainer .flexEndColumn img {
        background-color: #8E6D56;
        -webkit-mask: url('../images/logo.webp') center / contain no-repeat;
        mask: url('../images/logo.webp') center / contain no-repeat;
        object-fit: none;
        object-position: -9999px 0;
    }


    #homeMainTextLayout {
        justify-content: center;
        gap: 8%;
    }

    #homeMainTextLayout p {
        color: #8E6D56;
    }

    #aboutMeBiography h2 {
        font-size: 1.2em;
    }

    .pageShell[data-page="OBRA"] {
        /* Proportions of the space left below the navbar; they only need to be relative to each other */
        --obraImagesShare: 55;
        --obraContentShare: 45;
    }

    .pageShell[data-page="OBRA"] .horizontalContainer > #pageImages {
        flex: var(--obraImagesShare) 1 0;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .pageShell[data-page="OBRA"] #pageImages #worksMainFrame:not(.hidden) {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
    }

    /* Fixed 70/30 split between image and caption */
    .pageShell[data-page="OBRA"] #worksMainImageWrap {
        flex: 0 0 75%;
        height: 75%;
        min-height: 0;
    }

    .pageShell[data-page="OBRA"] #worksMainImage {
        flex: 1 1 0;
        height: 100%;
        min-height: 0;
    }

    .pageShell[data-page="OBRA"] #worksCaption {
        flex: 0 0 30%;
        height: 30%;
        min-height: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
    }

    .pageShell[data-page="OBRA"] #worksCaption .verticalContainer,
    .pageShell[data-page="OBRA"] #worksCaption .horizontalContainer,
    .pageShell[data-page="OBRA"] #worksCaption .verticalContainer > div {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .pageShell[data-page="OBRA"] #pageContent {
        flex: var(--obraContentShare) 1 0;
        min-height: 0;
        overflow: hidden;
    }

    /* Border stays fixed; scrolling happens inside the list */
    .pageShell[data-page="OBRA"] .pageSection[data-page="OBRA"].active {
        height: 100%;
    }

    .pageShell[data-page="OBRA"] .worksList {
        height: 100%;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pageShell[data-page="OBRA"] .worksList::-webkit-scrollbar {
        display: none;
    }

    .pageShell[data-page="CONTACTO"] #pageContent {
        padding-left: 6%;
        padding-right: 6%;
    }

    #contactInfoLayout > #contactMethodSelector {
        margin-top: 0;
    }
}

/* Contact page: compact layout when the mobile keyboard shrinks the viewport */
@media (max-width: 768px) and (max-height: 650px) {
    #navbarContainer p {
        font-size: 1.2em;
        margin: 0.2em 0;
    }

    .pageShell[data-page="CONTACTO"] #pageContent {
        --contentTopGap: 0.6rem;
        overflow-y: auto;
    }

    .pageShell[data-page="CONTACTO"] .pageSection[data-page="CONTACTO"].active,
    .pageShell[data-page="CONTACTO"] .pageSection[data-page="CONTACTO"] > .verticalContainer,
    .pageShell[data-page="CONTACTO"] #contactInfoLayout {
        justify-content: flex-start;
    }

    .pageShell[data-page="CONTACTO"] #contactInfoLayout > .verticalContainer,
    .pageShell[data-page="CONTACTO"] #contactInfoLayout > .revealBlock,
    .pageShell[data-page="CONTACTO"] #contactInfoLayout > .revealBlock.visible,
    .pageShell[data-page="CONTACTO"] #contactInfoLayout > #contactMethodSelector {
        margin-top: 0.5em;
    }

    .pageShell[data-page="CONTACTO"] .pageSection[data-page="CONTACTO"] h3 {
        margin: 0;
    }

    .pageShell[data-page="CONTACTO"] .contactSectionInputMethod {
        margin-top: 0.4em;
    }

    .pageShell[data-page="CONTACTO"] .pageSection[data-page="CONTACTO"] h3 {
        font-size: 0.9em;
    }

    .pageShell[data-page="CONTACTO"] #contactMethodButtons {
        height: 2.4em;
    }

    .pageShell[data-page="CONTACTO"] #contactMessageLayout #contactMessage {
        height: 4em;
        margin-bottom: 2%;
    }

    .pageShell[data-page="CONTACTO"] #sendContactBt {
        height: 2.5em;
    }

    #worksCaptionDescription, #worksCaptionPrice, #worksCaptionSold, #worksCaptionContactMe {
        font-size: 0.9em !important;
    }

    #worksCaptionTitle{
        font-size: 1.1em;
    }


}

@media (max-height: 689px) {
    #worksCaptionDescription, #worksCaptionPrice, #worksCaptionSold, #worksCaptionContactMe {
        font-size: 1em !important;
    }

    #worksCaptionTitle{
        font-size: 1.2em;
    }
}
