.quisom {
    /* background gradient from top left to bottom right */
    background: linear-gradient(to bottom right, #dfd7b6, #dfd7b6, #eedb92);
    position: relative;
}

.quisom::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: var(--active-bg-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: var(--active-bg-opacity, 0);
    z-index: 0;
}

@media (min-width: 992px) {
    .quisom::before {
        background-size: contain;
        background-position: center;
        background-size: contain;
    }
}

.section {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 10vh 0;
    margin-bottom: 0;
}
.section a {
  display: inline-block;
  color: var(--link-color);
}
.section a:hover,
.section a:focus {
    border-bottom: 3px solid var(--link-color);
    margin-bottom: -3px;
}
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .3;
}
.section--adria {
    --link-color: #5c58cb;
    --bg-img: url(../media/quisom-adria.bd0e2892.png);
}
.section--marina {
    --link-color: #23930c;
    --bg-img: url(../media/quisom-marina.d5b205c3.png);
}
.section--pep {
    --bg-img: url(../media/quisom-pep.79456662.png);
}
.section--bertran {
    --link-color: #cb5858;
    --bg-img: url(../media/quisom-bertran.9da79f9f.png);
}
.section--xavi {
    --bg-img: url(../media/quisom-xavi.b2043a39.png);
}
@media (min-width: 992px) {    
    .quisom[data-active-section="xavi"]::before,
    .quisom[data-active-section="adria"]::before,
    .quisom[data-active-section="marina"]::before {
        background-position-x: right;
    }

    .quisom[data-active-section="pep"]::before,
    .quisom[data-active-section="bertran"]::before {
        background-position-x: left;
    }

    /* Content Layout */
    .section:nth-of-type(odd) .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    /* Place odd section content on the right */
    .section:nth-of-type(odd) .container > h2,
    .section:nth-of-type(odd) .container > div {
        grid-column: 1 / 2;
        text-align: left;
    }

    .section:nth-of-type(even) .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    /* Place even section content on the left */
    .section:nth-of-type(even) .container > h2,
    .section:nth-of-type(even) .container > div {
        grid-column: 2 / 3;
        text-align: left;
    }
}

/* Header override for this page: warm background on scroll for readability */
header.site-header.is-scrolled {
    background: rgba(223, 215, 182, .94);
    backdrop-filter: blur(8px);
    border-color: rgba(81, 62, 36, .14);
}

header.site-header.is-scrolled .brand,
header.site-header.is-scrolled .nav-list a,
header.site-header.is-scrolled .nav-toggle {
    color: #3f311f;
    text-shadow: none;
}

header.site-header.is-scrolled .nav-toggle {
    border-color: rgba(81, 62, 36, .22);
    background: rgba(255, 248, 230, .45);
}

header.site-header.is-scrolled .nav-list a:hover {
    background: rgba(81, 62, 36, .08);
    border-color: rgba(81, 62, 36, .14);
}
