@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/Cairo.ttf");
}
@font-face {
    font-family: "El Messiri";
    src: url("../fonts/El_Messiri/ElMessiri.ttf");
}
body {
    --color1: #EDDCD2;
    --color2: #ccd4e7;
    --color3: #e7e2bf;
    --color4: #ddeccd;
    --color5: #e4c2a8;
    --color6: #acd6cf;
    --color7: #c29cd1;
    --color8: #d1d69f;
    --color9: #c2de99;
    --color10: #89d0ae;
    --color11: #d8cfac;
    --background: #e0e0e0;
    --border: rgba(255,255,255,0.5);
}
.cairo {
    font-family: "Cairo", sans-serif;
    font-weight: 350;
}
.el-messiri {
    font-family: "El Messiri";
    font-weight: 350;
}

body {
    font-style: normal;
    background-color: var(--background);
    font-size: 14pt;
    margin: 0;
}
h1 {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    > span {
        flex-grow: 1;
        text-align: center;
    }
    font-weight: 400;
    font-size: 22pt;
}
h2 {
    font-weight: 300;
    font-size: 18pt;
}
h1, h2 {
    margin: 0 15px;
}
.right {
    text-align: right;
    flex-grow: 1;
}
h3 {
    font-size: 20pt;
    font-weight: 500;
}
h4 {
    font-size: 16pt;
    font-weight: 400;
}
header {
    background-color: #e6f5ff;
    padding-top: 1em;
    background-image: url(../img/logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    min-height: 8em;
    display: flex;
    flex-direction: column;
    justify-content:  space-between;
    .heading {
        display: flex;
        flex-direction: row;
        justify-content:  space-between;
        flex-wrap: wrap;
    }
}
@media (width < 600px) {
    header {
        background-position: center top;
        padding-top: 8em;
        background-size: 8em;
    }
}
div.full-width img {
    width: 100%;
}
ul {
     margin: 0;
}
.tiles > section {
    margin: 0.5em 0.25em;
    border: 1px solid rgb(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    
    h4, p {
        margin: 0.5em 0 0;
    }
    p {
        margin: 0;
        margin-bottom: 0.5em;
    }
    div.head {
        padding: 0 0.5em;
        margin: 0;
    }
    div.content {
        background-color: rgba(255,255,255,0.5);
        padding: 0.5em;
        flex-grow: 1;
    }
}
.tiles {
    > section:nth-child(1) {
        background-color: var(--color1);
    }
    > section:nth-child(2) {
        background-color: var(--color2);
        /*! border: 1px solid #e7e2cc; */
    }
    > section:nth-child(3) {
        background-color: var(--color3);
    }
    > section:nth-child(4) {
        background-color: var(--color4);
    }
}
.tiles2 {
    > div:nth-child(1) {
        background-color: var(--color5);
    }
    > div:nth-child(2) {
        background-color: var(--color6);
    }
    > div:nth-child(3) {
        background-color: var(--color7);
    }
    > div:nth-child(4) {
        background-color: var(--color8);
    }
    > div:nth-child(5) {
        background-color: var(--color9);
    }
    > div:nth-child(6) {
        background-color: var(--color10)
    }
    > div:nth-child(7) {
        background-color: var(--color11);
    }
}

div.tiles {
    display: grid;
    flex-direction: row;
    flex-wrap: wrap;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, auto);
    margin: 0 0.25em;
}
@media (width < 1200px) {
    div.tiles {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, auto);
    }
}
@media (width < 600px) {
    div.tiles {
      grid-template-columns: repeat(1, 1fr);
      grid-template-rows: repeat(4, auto);
    }
}
.tiles2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
    
    margin: 0 0.25em;
    > div {
        display: flex;
        flex-direction: column;
        flex: 0 0 10em;
        margin: 0.5em 0.25em;
        border: 1px solid rgb(0,0,0,0.2);
        > div.head {
            padding: 0 0.5em;
            margin: 0;
            > img {
                max-width: 100%;
            }
        }
        > div.content {
            margin: 0;
            padding: 0.5em 0.5em;
            background-color: var(--border);
            flex-grow: 1;
        }
    }
}
div.square {
    aspect-ratio: 1;
    width: 100%;
    > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
header div.contact {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content:  space-between;
    
    clear: both;
    > div {
        margin: 0 1em;   
        display: flex;
        flex-direction: column;
        align-content: end;
        margin-top: auto;
    }
    > div:last-child {
        /*! text-align: right; */
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }
}
.tiles, .tiles2 {
    dl {
        display: grid;
        column-gap: 1em;
        grid-template-columns: max-content auto;
        margin: 0;
        padding: 0;
        padding: 0;
    }
    dd {
        padding: 0;
        margin: 0;
    }
    h3 {
        padding: 0;
        margin: 0.2em 0 0 0;
    }
    h4 {
        padding: 0;
        margin: 0;
        margin-top: 0.2em;
    }
}
span.loc {
    font-variant: small-caps;
}
span.tel {
    display: inline-block;
}
span.loc, span.tel, span.no-break {
    text-wrap: nowrap;
}
ul {
    list-style: '• ';
}
ul.no-sym {
    list-style: none;
    padding-left: 0;
}
.tel .prefix {
    width: 3em;
    display: inline-block;
    text-align: right;
    margin-right: 0.5em;
}
#overlay {
    position: fixed;
    bottom: 0;
    right: 0;
}
span.e1::before {
    content: "i";
}
span.e1::after {
    content: "d";
}
span.e2::after {
    content: ".ma";
}
span.e3::before {
    content: attr(d-before) " ";
}
span.e3::after {
    content: " " attr(d-after);
    t
}
span.link, a {
    text-decoration: none;
    color: darkblue;
    cursor: pointer;
}
.inline {
    display: inline-block;
}
.gallery .zstack {
    margin: 0 0.5em;
}
.zstack {
    position: relative;
    display: block;
    line-height: 0;
}
div.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    line-height: 1em;
    font-size: 15pt;
    display: flex;
    flex-direction: row;
    right: 0;
    left: 0;
    pointer-events: none;
}
div.overlay > div {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    position: absolute;
    margin-top: auto;
    margin-bottom: 0;
}
.hscroll {
    /*! margin: 0 0.5em; */
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    /*! height: calc(300px + 0.5em); */
    img {
       margin: 0.3em; 
       padding: 0;
       line-height: 0;
       border: 1px solid var(--border);
       height: 300px;
    }
}
div.h {
    display: flex;
    flex-direction: row;
    justify-content:  space-between;
}
div.v {
    display: flex;
    flex-direction: column;
    justify-content:  center;
}
.go-left, .go-right {
    width: 5em;
    text-align: center;
}
div.v.go-left {
    align-items: start;
}
div.v.go-right {
    align-items: end;
}
.arrows {
    .go-left, .go-right {
        pointer-events: fill;
        cursor: pointer;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 1em;
    }
    .go-left {
        background-image: url('../img/arrow.svg');
    }
    .go-right {
        background-image: url('../img/arrow-right.svg');
    }
}
.alpha-multiply {
    mix-blend-mode:  normal;
    .go-left {
        background: linear-gradient(90deg, var(--background) 0%, transparent 100%);
    }
    .go-right {
        background: linear-gradient(270deg, var(--background) 0%, transparent 100%);
    }
}
.alpha-multiply > div {
    /* background-color: transparent; */
}
body > section  {
    margin: 0;
    padding: 0;
    > h3, p {
        margin: 0 0.5em;
        padding: 0;
    }
}
p.center {
    text-align: center;
}
