:root {
  --radius: 4px;
}

* {
    font-family: "MS PGothic", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
html {
    overflow-x: hidden;
}
body {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: #f2e6da;
}
.container {
    padding-top: 50px;
    display: flex;
    position: relative;
    align-items: center;
    max-width: 600px;
    margin-bottom: 100px;
}
.main {
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media only screen and (max-width: 768px) {
    .main {
        padding: 10px;
    }
}
.main img {
    filter: saturate(150%);
}
.main >.header {
    max-width: 100%;
    image-rendering: pixelated;
    -webkit-filter: drop-shadow(1px 1px 4px #0000009e);
    filter: drop-shadow(1px 1px 4px #0000009e) saturate(120%) brightness(110%);
}
.container #big-picture {
    position: absolute;
    height: 530px;
    right: -160px;
    z-index: 100;
    bottom: 320px;
    pointer-events: none;
}
#star-halo {
    position: absolute;
    height: 300px;
    width: 300px;
    right: 20px;
    bottom: 580px;
    z-index: -2;
    background-color: #ff8393;
    mask-image: url(../_img/star-halo.png);
    mask-size: 100%;
    mask-repeat: no-repeat;
    transform: rotate(20deg);
}
@media only screen and (max-width: 768px) {
    .main >.header {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .container #big-picture {
        top: 0;
        right: 0;
        height: 300px;
        z-index: -1;
    }
    #star-halo {
        top: 0;
        transform: rotate(0);
        right: 40px;
    }
}
p, ul {
    margin: 0;
}
li {
    margin-left: -10px;
    list-style: "-> ";
}
.with-background-blue{
    position: relative;
}
.with-background-blue::before {
    content: "";
    width: 100%;
    height: 110%;
    position: absolute;
    left: 0;
    top: -5%;
    background-color: #b9ddff;
    clip-path: polygon(98% 92%, 8% 98%, 1% 37%, 1% 2%, 65% 2%, 98% 14%);
    z-index: -1;
}
.with-background-yellow {
    position: relative;
    display: flex;
    gap: 12px;
    flex-direction: row-reverse;
    align-items: center;
}
.with-background-yellow::before {
    content: "";
    width: 100%;
    height: 70%;
    position: absolute;
    left: -2%;
    top: 20%;
    background-color: #fff494;
    clip-path: polygon(97% 100%, 4% 87%, 1% 14%, 10% 2%, 87% 4%, 97% 36%);
    z-index: -1;
}
@media only screen and (max-width: 768px) {
    .with-background-yellow {
        flex-direction: column;
    }
    .with-background-yellow::before {
        top: auto;
        bottom: -10%;
    }
}
#back {
    text-align: end;
    text-decoration: none;
    color: inherit;
    margin-top: 16px;
}
#back:hover {
    text-decoration: underline;
}
.container .images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: max(60%, 300px);
    margin-top: 20px;
    margin-bottom: 20px;
}
@media only screen and (max-width: 768px) {
    .container .images-grid {
        padding: 0px 8px;
        max-width: 100%;
    }
}
.images-grid .image-container {
    display: flex;
    height: fit-content;
    position: relative;
    transition: transform 50ms ease-in-out;
    image-rendering: pixelated;
}
.images-grid .image-container:hover {
    z-index: 100;
    transform: scale(110%);
    image-rendering: auto;
}
.image-container div {
    display: flex;
    scale: 110%;
    position: relative;
}
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #0000009e;
    width: 100%;
    height: 100%;
    z-index: -100;
    filter: blur(4px);
    opacity: 0;
    transition: opacity 50ms ease-in-out;
}
.image-container:hover::after {
    opacity: 1;
}
.images-grid .image-container img {
    max-width: 100%;
}
.stamp-border {
    padding: 7px;
    background-image: radial-gradient(var(--radius), transparent 98%, white),linear-gradient(white 0 0);
    background-repeat: round, no-repeat;
    background-position: calc(var(--radius) * -1.5) calc(var(--radius) * -1.5), 50%;
    background-size: calc(var(--radius) * 3) calc(var(--radius) * 3), calc(100% - var(--radius) * 3) calc(100% - var(--radius) * 3);
}
.glightbox-container img {
    image-rendering: auto;
}
.glightbox-container .gdesc-inner {
    margin-top: 5px;
    color: white;
    background-color: #131211;
}
.highlight {
    padding: 0px 2px;
    background-color: #ffadb8;
    border-radius: 3px;
}
#shrine-picture {
    max-width: max(50%, 200px);
    float: right;
    border-radius: 3px;
    image-rendering: pixelated;
    clip-path: polygon(93% 97%, 3% 100%, 1% 70%, 3% 4%, 100% 0%, 99% 57%);
}
@media only screen and (max-width: 768px) {
    #shrine-picture {
        float: none;
        margin: 0 auto;
    }
}