@font-face {
  font-display: swap;
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/schibsted-grotesk-v7-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/schibsted-grotesk-v7-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/schibsted-grotesk-v7-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/schibsted-grotesk-v7-latin-700.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0e0e0f;
  --main:    #990700;
  --white:   #fff;
  --border:  #2a2a2e;
  --text:    #f0ede8;
  --muted:   #ffffff9a;
  --radius:  2px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  font-family: 'Schibsted Grotesk', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  background: var(--main);
  font-size: 17px;
}

.visuals{
    position: absolute;
}
body.login{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem;
    z-index: 10;
    & input{
        background: var(--main);
        text-align: center;
    }
}

.visual{
    height: 100dvh;
    width: 100dvw;
    z-index: 1;
    position: absolute;
    top: 0;
    figure{
        aspect-ratio: 3/4;
        position: relative;
        max-height: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    & img{
        height: 100%;
        width: 100%;
      object-fit: cover;
        display: block;
    }
    & figure::before{
        content:'';
        background: linear-gradient(0deg, var(--main), transparent);
        position: absolute;
        bottom: 0;
        height: 25%;
        width: 100%;
    }
}

header{
    padding: 1rem;
    overflow-x: scroll;
    background: linear-gradient(180deg, var(--main), transparent);
    & .logo{
        max-height: 2rem;
    }
    button{
        background: transparent
    }
    p{
        font-size: 0.875rem;
        text-align: center;
    }
}

h1{
    margin-bottom: 1rem;
    font-weight: 400;
}

#gallery{
    padding: 1rem;
    & .gallery-grid{
        gap: .5rem;
    }
}

#upload-zone{
    margin: 1rem;
}

button{
    padding: 1rem;
    background: var(--white);
    color: #1a120a;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    &.thumb-wrap:focus-visible{
        outline: 2px solid white;
        outline-offset: 1px;
    }
    &.icon-btn{
        width: fit-content;
        padding: 0.25rem .5rem;
        display: inline-flex;
        gap: .5rem;
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: white;
        & svg{
            opacity: .5;
        }
    }
    &.progress-cancel{
        width: 2rem;
        height: 2rem;
        padding: 0;
        background: rgba(0, 0, 0, 0.193);
    }
    &.lb-btn, &.lb-nav{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 3rem;
        width: 3rem;
        background: var(--main);
        color: #fff;
        border: none;
    }
}
button:active{
    background: var(--accent2);
}
button:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}

.video-badge{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: none;
    background: rgba(255, 255, 255, 0.231);
    display: flex;
    align-items: center;
    justify-content: center;
    & svg{
        height: 50%;
        width: 50%;
    }
}


#upload-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    padding-bottom: 1rem;
}

.progress-item{
    border-radius: var(--radius);
    background: var(--white);
    position: relative;
    animation: slideIn 0.2s ease;
    overflow: hidden;
    color: black;
    z-index: 1;
    & .inner{
        padding: 1rem;
        display: grid;
        align-items: center;
        gap: .5rem;
        grid-template-columns: minmax(0, 3fr) 1fr 2rem;
        z-index: 10;
    }
    & .progress-name{
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    & .progress-meta{
        font-size: 0.75rem;
        opacity: .5;
    }
    & .progress-status{
        white-space: pre;
        text-align: right;
    }
    & .progress-bar {
        position: absolute;
        bottom: 0; left: 0;
        height: 100%;
        width: 0%;
        background: var(--main);
        opacity: .2;
        transition: all 0.15s linear;
        z-index: -1;
        &.done{
            background: rgb(134, 255, 13) !important;
        }
        &.indeterminate{
            background: rgba(0, 0, 0, 0.5);
        }
    }
}

.confirm-sheet {
    width: fit-content;
    max-width: 90vw;
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    animation: slideUp 0.25s ease;
    color: black;
    & button{
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
.confirm-delete{
    background: var(--main);
    color: white;
}
.confirm-cancel{
    background: rgba(0, 0, 0, 0.2);
}

.confirm-actions{
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
