@font-face {
    font-family: "Montez fallback";
    src: local("Arial");
    size-adjust: 73.1654%;
    ascent-override: 122.1948%;
    descent-override: 56.5927%;
    line-gap-override: 0%;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-display: swap;
    font-family: "Montez";
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/montez/v25/845ZNMk5GoGIX8lW07rf.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-display: swap;
    font-family: "Montez";
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/montez/v25/845ZNMk5GoGIX8lW3brfed8.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

::selection {
    background-color: #47166d;
}

.button {
    border: 2px solid #e8eaed;
    border-radius: 16px;
    color: #e8eaed;
    font-size: 32px;
    padding: 0 24px;
    user-select: none;
    background-color: #323032;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.button::before {
    background: radial-gradient(50% 50% at 50% 50%, #ffffff 0%, #e8eaed 100%);
    content: "";
    filter: blur(14px);
    height: 90%;
    opacity: 0;
    position: absolute;
    transition: opacity 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
    width: 90%;
    z-index: -1;
}

.button:hover::before {
    opacity: 0.8;
}

a {
    border-radius: 16px;
    color: inherit;
    display: inline-block;
    outline-color: #e8eaed;
    text-decoration: none;
}

button,
main a {
    background: transparent;
    border-radius: 28px;
    border-width: 0;
    cursor: pointer;
    display: block;
    margin: 0;
    outline: 0;
    overflow: hidden;
    padding: 0;
}

body {
    background-color: #323032;
    color: #e8eaed;
    font-family: "Montez", "Montez fallback";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    margin: 16px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

body>* {
    margin: 64px auto;
    max-width: 992px;
}

dialog {
    aspect-ratio: 1;
    background: transparent;
    border-width: 0;
    cursor: pointer;
    max-height: min(calc(100% - 32px), 768px);
    max-width: min(calc(100% - 32px), 768px);
    opacity: 0;
    overscroll-behavior: contain;
    padding: 0;
    transition: display 600ms allow-discrete, opacity 600ms cubic-bezier(0.05, 0.7, 0.1, 1.0), overlay 600ms allow-discrete;
    user-select: none;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.68) url(assets/close-icon.svg) no-repeat right 8px top 8px;
    overscroll-behavior: contain;
    overflow: hidden;
    opacity: 0;
    transition: display 600ms allow-discrete, opacity 600ms cubic-bezier(0.05, 0.7, 0.1, 1.0), overlay 600ms allow-discrete;
}

dialog:open,
dialog:open::backdrop {
    opacity: 1;
}

footer a {
    margin: 0 auto;
}

h1 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

header a {
    display: inline-block;
    font-size: 44px;
    margin: 64px auto 0;
    padding: 0 8px;
}

header h1 {
    font-size: 44px;
    margin: 0 auto;
    max-width: 500px;
}

header h1 a {
    display: inline;
    font-size: inherit;
    padding: 0;
}

img {
    border-radius: 28px;
    display: block;
    height: 100%;
    object-fit: cover;
    transition: opacity 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
    width: 100%;
    user-select: none;
}

main {
    display: grid;
    flex-wrap: wrap;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
    max-width: 992px;
}

main>a {
    background: #000000 url(assets/instagram-icon.svg) no-repeat center center;
    aspect-ratio: 1;
    background-size: 48px 48px;
}

main>button {
    background: #000000 url(assets/zoom-in-icon.svg) no-repeat center center;
    aspect-ratio: 1;
    pointer-events: none;
}

main>section {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

main>section>h2 {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    align-content: center;
    bottom: -1px;
    border: 0;
    background: rgba(0, 0, 0, 0.68);
    border-bottom: 1px solid #323032;
    margin: 0;
    position: absolute;
    font-size: 36px;
    font-weight: 400;
    left: -1px;
    right: -1px;
    min-height: 33%;
    padding: 0 8px;
    display: block;
}

main>a:active>img,
main>a:focus-visible>img,
main>a:hover>img,
main>button:active>img,
main>button:focus-visible>img,
main>button:hover>img {
    opacity: 0.32;
}

ul {
    display: flex;
    flex-direction: column;
    margin: 16px;
    padding: 0;
    align-items: center;
    list-style-image: url("assets/miylux-icon.png");
    text-align: justify;
}

p {
    margin: 32px 16px 0;
}

@media (min-width: 1024px) {

    header h1 {
        font-size: 52px;
        max-width: 800px;
    }

    main>a {
        grid-column: 2;
        grid-row: 2;
    }

    main>button {
        pointer-events: auto;
    }

}

@media print {

    .button,
    body:has(dialog:open)>header,
    body:has(dialog:open)>main>:not(dialog),
    footer {
        display: none;
    }

    body,
    dialog::backdrop,
    main>a,
    main>button,
    main>a:active>img,
    main>a:focus-visible>img,
    main>a:hover>img,
    main>button:active>img,
    main>button:focus-visible>img,
    main>button:hover>img,
    main>section>h2 {
        background: #ffffff;
        opacity: 1;
        border: 0;
        color: #000000;
    }

}

@starting-style {

    dialog::backdrop,
    dialog:open {
        opacity: 0;
    }

}