* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    font-family: sans-serif;
    background-image: url("../img/bg02.webp");
    background-repeat: repeat;
    color: #d5c4a1;
    font-family: "Averia Serif Libre", serif;
}

a {
    color: #b16286;
}
a:hover {
    color: #d3869b;
    font-weight: bold;
}

h1 {
    margin-bottom: 0em;
    line-height: 100%;
    color: #d79921;
    filter: drop-shadow(2px 2px 2px #010101);
    font-size: 2em;
    font-family: "Rammetto One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h2 {
    margin-bottom: 0em;
    line-height: 100%;
    color: #d65d0e;
    filter: drop-shadow(2px 2px 2px #010101);
    font-size: 1.5em;
    font-family: "Rammetto One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h3 {
    margin-bottom: -0.05em;
    line-height: 100%;
    color: #458588;
    filter: drop-shadow(2px 2px 2px #010101);
    font-size: 1.25em;
    font-family: "Rammetto One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h4 {
    margin-bottom: -0.05em;
    line-height: 100%;
    color: #689d6a;
    filter: drop-shadow(2px 2px 2px #010101);
    font-size: 1em;
    font-family: "Rammetto One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h5 {
    margin-bottom: -0.05em;
    line-height: 100%;
    color: #cc241d;
    filter: drop-shadow(2px 2px 2px #010101);
    font-size: 1em;
    font-family: "Rammetto One", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h6 {
    margin-bottom: -0.05em;
    line-height: 100%;
    color: #98971a;
    filter: drop-shadow(2px 2px 2px #010101);
    font-size: 1em;
    font-family: "Rammetto One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p,ul,ol {
    color: #d5c4a1;
    font-family: "Averia Serif Libre", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.10em;
}

hr {
    background: #d5c4a1;
    height: 2px;
    border: 0px;
}

table {
    border: 0px;
}

td {
    border: 1px solid #555555;
}

tr {
  border-bottom: 1px solid #555555;
}

tr:nth-child(even) {
  background-color: #222222;
}

.full-img {
    width: 100%;
    height: auto;
}

.code-header {
    font-family: "Erica One", sans-serif;
    position: relative;
    font-size: 1.10em;
    margin-bottom: -35px;
    background-color: #050505;
    color: #458588;
    border: 1px solid #076678;
    border-radius: 6px;
    padding: 5px 55px 5px 25px;
    width: fit-content;
}

pre {
    font-family: "Libertinus Mono", monospace;
    font-size: 0.9em;
    line-height: 1.5;
    background-color: #101010;
    color: #83a598;
    border: 1px solid #076678;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1.5em 10px;
}

code {
    font-family: inherit;
}

.quote-body {
    font-family: "Montserrat", sans-serif;
    text-indent: 2em;
    font-size: 1.10em;
    line-height: 1.5;
    background-color: #101010;
    color: #665c54;
    border: 1px solid #b57614;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1.5em 10px;
}

.quote-footer {
    font-family: "Erica One", sans-serif;
    position: relative;
    font-size: 1.10em;
    margin-top: -45px;
    background-color: #050505;
    color: #fabd2f;
    border: 1px solid #b57614;
    border-radius: 6px;
    padding: 5px 55px 5px 25px;
    width: fit-content;
    margin-left: auto;
}

.band-main {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.overlay-stack {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.splash {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 1200 / 887;
    background-image: url("../img/splash.webp");
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.splashHanger{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 29%;
}

.splashHanger img {
    display: block;
    width: 100%;
    height: auto;
}

.splash-pages {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 1200 / 380;
    background-image: url("../img/splash-pages.webp");
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-top: 0;
    position: relative;
}

.splashHanger-pages{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
}

.splashHanger-pages img {
    display: block;
    width: 100%;
    height: auto;
}

.band-top {
    background-image: url("../img/curtains.webp");
    background-repeat: repeat-x;
    background-size: clamp(216px, 60vw, 900px) auto;
    height: clamp(400px, 50vw, 670px);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.band-top-pages {
    background-image: url("../img/curtains-pages.webp");
    background-repeat: repeat-x;
    height: 400px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.content-col {
    background-image: url("../img/bg03.webp");
    background-repeat: repeat;
    width: 90%;
    max-width: 1050px;
    margin-top: clamp(-50px, -10vw, -10vw);
    background-color: #35d9c8;
    padding: 2%;
    z-index: 1;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.button-full {
    grid-column: 1 / -1;
}

.button-grid img {
    display: block;
    width: 100%;
    height: auto;
}
a .img-hover {
    display: none;
    text-decoration: none;
    font-weight: normal;
}

a:hover .img-normal {
    display: none;
    text-decoration: none;
    font-weight: normal;
}

a:hover .img-hover {
    display: block;
    text-decoration: none;
    font-weight: normal;
}

.category-menu {
    display: block;
}

.category-menu a {
    font-size: 1.1em;
    padding: 1px;
    display: inline-block;
    text-decoration: none;
}

.category-element {
    display: block;
}

/* Category Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.article-card {
    min-width: 0;
    overflow: hidden;
}

.article-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 1rem 0;
}

.article-card-content h2 {
    margin-top: 0;
}

.article-card-content h2 a {
    text-decoration: none;
}

.article-card-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin-bottom: 0;
}

/* Tablets */
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styling */
html.glightbox-open {
    overflow: hidden !important;
}

body.glightbox-open {
    overflow: visible !important;
}
.hanna-images {
    display: grid;
    width: 100%;
    gap: 1rem;
}

/* Image block styling */
/* Hanna Code image blocks */
.hanna-images-1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hanna-images-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.hanna-images-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* No spacing between images */
.hanna-images-1,
.hanna-images-2,
.hanna-images-3 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Image tiles */
.hanna-images-1 > a,
.hanna-images-2 > a,
.hanna-images-3 > a {
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* Images fill their equal-height tiles */
.hanna-images-1 img,
.hanna-images-2 img,
.hanna-images-3 img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.hanna-images-1 > a:hover img,
.hanna-images-2 > a:hover img,
.hanna-images-3 > a:hover img {
    transform: scale(1.03);
}

.hanna-images a {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.hanna-images img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.hanna-images a:hover img {
    transform: scale(1.03);
}

/* image grid styling */
.hanna-images-justified {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    overflow: hidden;
}

.hanna-images-justified .hanna-image-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 0;
}

.hanna-images-justified a {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    line-height: 0;
}

.hanna-images-justified img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: 0;
}
/* Justified Hanna Code image grids */
.hanna-images-justified {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.hanna-images-justified .hanna-image-row {
    display: flex;
    flex-flow: row nowrap;
}

.hanna-images-justified .hanna-image-row > a {
    display: block;
    flex: 0 0 auto;
}

.hanna-images-justified .hanna-image-row > a > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
}
