@import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,400;1,700&family=Roboto:wght@300;400;700&display=swap');

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

html, body {
    font-size: 16px;
    padding: 0;
    margin: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100vh;
    position: relative;
    background-color: #080014;
    color: #fff;
    align-items: center;
}

.header-menu {
    position: fixed;
    top: 0;
    padding: 1rem;
    background-color: rgba(18, 2, 32, 0.5);
    z-index: 8;
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(0.18rem);
    box-shadow: 0 2px 4px rgba(26, 0, 41, 0.58), 0 2px 14px rgba(17, 0, 27, 0.56);

    h2 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 400;
        letter-spacing: -1px;
    }

    a, a:visited {
        color: #fff;
        display: contents;
    }

    p {
        margin: 0;
    }

    img {
        width: 3rem;
        margin-right: 1rem;
        filter: drop-shadow(0 0 .3rem rgb(255, 255, 255));
    }

    .left, .right {
        display: flex;
        align-items: center;
    }

    .right {
        justify-content: flex-end;
    }

    .socials {
        border-left: 1px solid #fff;
        padding-left: 1rem;
        margin-left: 2rem;

        img {
            width: 2.4rem;
            filter: none;
        }
    }
}

header {
    max-width: 1920px;
    background-image: radial-gradient(circle,rgba(11, 1, 24, 0.551) 12%, rgba(11, 1, 24, 0) 67%, rgba(28, 2, 51, 0.541) 100%), url(../images/vingi_bg.webp);
    background-size: cover;
    background-position: center;
    box-shadow: 0px 2px 6px #03000836, 0px 2px 12px #05000f5d, 0px 2px 24px #0a01202c;
    position: relative;
    z-index: 0;
    width: 100%;
    aspect-ratio: 3.2;
    flex-direction: column;
    display: flex;
}

section, header, footer, .header-menu {
    width: clamp(360px, 96vw, 1800px);
}

.band .header-navigation .content {
    align-items: center;
    flex-direction: row;
}

.band {
    display: flex;
    flex: 1;
    justify-content: center;
}

.band .content {
    display: flex;
    flex: 1; 
    flex-direction: column;
    padding: 1em;
    max-width: 100%;
}

.content.text {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.content h2 {
    display: inline-block;
	background: linear-gradient(90deg, #ceb5ef, #cea78b);
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

p, a {
    font-family: 'Roboto', sans-serif;
    line-height: 1.4em;
    max-width: 48rem;
    font-size: 1.1rem;
}

a, a:visited {
    color: #9b65e2;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
}

h1, h2 {
    color: #f5eefd;
    text-shadow: 0px 1px 0.7rem #9b44e298;
    font-family: "Petrona", serif;
}

h1 {
    font-size: clamp(2rem, calc(2.8vw + 1rem), 4rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 400;
}

h2 + p {
    margin-top: 0;
}

.gallery {
    display: grid;
    display: grid-lanes; /* will override grid in browsers that support */
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
    gap: 2rem;
    max-width: 100%;
    background-image: linear-gradient(43deg,#801d945b,#4c044e5f 46%,#5828dd51);
    padding: 2rem;
    box-shadow: inset 0 2px 8px rgba(26, 0, 41, 0.474), inset 0 2px 20px rgba(17, 0, 27, 0.618);
}

button {
    border: none;
    background-color: transparent;
}

.gallery-image-container {
    display: flex;
    border: 6px solid rgb(23, 0, 37);
    border-radius: 4px;
    box-shadow: 0px 2px 6px #03000849, 0px 2px 16px #05000f5b;
    cursor: pointer;
    background-color: rgb(23, 0, 37);

    img {
        border-radius: 2px;
        max-width: 100%;
    }
}

.popover-image {
    padding: 0;
    border: 6px solid rgb(23, 0, 37);
    border-radius: 4px;
    box-shadow: 0px 2px 6px #030008a1, 0px 2px 16px 3px #05000f57, 0px 2px 24px 12px #0a012044;
    transition: opacity .4s, translate .4s, overlay .4s allow-discrete, display .4s allow-discrete;
    opacity: 0;
    translate: 0 5em;
    background-color: rgb(23, 0, 37);
    content-visibility: hidden;

    &:popover-open {
        opacity: 1;
        translate: 0 0;
        content-visibility: visible;
    }

    img {
        max-width: 84vw;
        max-height: 84vh;
    }
}

@starting-style {
  .popover-image {
    &:popover-open {
      opacity: 0;
      translate: 0 5em;
    }
  }
}

.image-band {
    display: inline-flex;
    flex-direction: row;
    flex: 1;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;

    img {
        height: 320px;
        transition: all .25s ease;
        filter: saturate(0.84);

        &:hover {
            filter: saturate(1);
        }
    }
}

footer {
    background-color: #06010c;
    background-image: linear-gradient(43deg,#801d942b,#4c044e34 46%,#5828dd23);
    padding: 2rem 0;
    width: 100%;

    img {
        width: 2.4rem;
    }
}

footer p, footer a, footer a:visited {
    line-height: 2rem;
}

footer a {
    text-decoration: underline;
}

footer.band .content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.right {
    text-align: right;
}

@media (max-width: 600px) {
    .hidden-600 {
        display: none;
    }
}

@media (max-width: 800px) {
    .hidden-800 {
        display: none;
    }

    header {
        aspect-ratio: 1.8;
    }
    
    .header-menu, header {
        width: 100vw;
    }
}

@media (max-width: 700px) {
    .hidden-700 {
        display: none;
    }

    header {
        aspect-ratio: 1.6;
    }
}

@media (max-width: 600px) {
    .hidden-600 {
        display: none;
    }

    header {
        aspect-ratio: 1.2;
    }

    .gallery-image-container, .popover-image {
        border-width: 4px;
    }

    .gallery {
        max-width: initial;
        margin: 0 -1rem 0 -1rem;
        padding: 2rem;
        gap: 2rem
    }

    .popover-image img {
        max-width: 96vw;
    }

    .content.text {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    footer {
        padding: 0;

        p, a {
            font-size: 0.9rem;
        }
    }

    .header-menu {
        img {
            margin: 0;
        }

        .socials {
            margin-left: 1rem;

            img {
                width: 2rem;
            }
        }
    }
}