:root {
    --font-primary: "Metro Sans", sans-serif;
    --page-bg: #f5f2ec;
    --surface-bg: #ffffff;
    --footer-bg: #eeeeee;
    --text-color: #111111;
    --line-color: rgba(17, 17, 17, 0.1);
    --grid-gap: 20px;
    --blog-thumb-ratio: 3 / 2;
    --header-z: 20;
    --content-z: 2;
    --footer-z: 0;
}

html {
    margin: 0 !important;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 400;
}

body.about-modal-open {
    overflow: hidden;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

body,
button,
input,
select,
textarea,
a,
p,
span,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 400;
}

a {
    color: #000;
    transition: opacity 0.2s ease;
}

a:hover {
    color: #000;
    text-decoration: none;
}

.item-blog a,
.related-link {
    opacity: 1;
}

.item-blog a:hover,
.related-link:hover {
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
}
.home .footer .container-site{
    padding: 0;
}
.container-site {
    padding: 0 20px;
}
section.relate-post.single-related .container-site{
    padding: 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: var(--header-z);
    background: #fff;
    backdrop-filter: blur(16px);
    height: 78px;
    display: grid;
    align-items: center;
}

.header-menu-grid {
    display: grid;
    grid-template-columns: repeat(var(--menu-columns, 1), minmax(0, 1fr));
    gap: var(--grid-gap);
}

.header-menu-item {
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: fit-content;
    font-size: 18px;
}
.header-menu-item span, .footer-contact p, .footer-social a{
    font-weight: 200;
}
.footer-contact, .footer-social{
    display: grid;
    gap: 8px;
}
.footer-contact p{
    margin-bottom:auto;
}

.header-menu-button {
    border: 0;
    padding: 0;
    appearance: none;
    cursor: pointer;
}

.about-menu-label-close {
    display: none;
}

body.about-modal-open .about-menu-label-default {
    display: none;
}

body.about-modal-open .about-menu-label-close {
    display: inline;
}

.header-menu-item:hover {
    color: #000;
    opacity: 0.5;
    text-decoration: none;
    transform: translateY(-1px);
}

.about-modal {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    padding: 0 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.about-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.about-modal-panel {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: auto;
    max-width: 55ch;
}
.about-modal-panel p{
    margin-bottom: 0.75rem!important;
    font-weight: 300;
}


.about-modal-content {
    min-width: 0;
}

.about-modal-content > *:first-child {
    margin-top: 0;
}

.about-modal-content > *:last-child {
    margin-bottom: 0;
}

.about-modal-content p,
.about-modal-content li,
.single-summary p,
.single-summary li {
    color: rgba(17, 17, 17, 0.6);
    line-height: 1.45;
}

.about-modal-content p,
.about-modal-content ul,
.about-modal-content ol,
.about-modal-content blockquote,
.single-summary p,
.single-summary ul,
.single-summary ol,
.single-summary blockquote {
    margin: 0 0 0;
}

.about-modal-content ul,
.about-modal-content ol,
.single-summary ul,
.single-summary ol {
    padding-left: 1.25rem;
    list-style-position: outside;
}

.about-modal-content ul,
.single-summary ul {
    list-style-type: disc;
}

.about-modal-content ol,
.single-summary ol {
    list-style-type: decimal;
}

.about-modal-content li,
.single-summary li {
    display: list-item;
    margin-bottom: 0.35rem;
}

.about-modal-content ul li::marker,
.about-modal-content ol li::marker,
.single-summary ul li::marker,
.single-summary ol li::marker {
    color: rgba(17, 17, 17, 0.6);
}

.about-modal-content > *:last-child,
.single-summary > *:last-child {
    margin-bottom: 0;
}

.main-content,
.single-post,
.page-about,
.relate-post {
    position: relative;
    z-index: var(--content-z);
    background-color: var(--surface-bg);
    border-radius: 0 0 24px 24px;
}

.main-content,
.single-post,
.page-about {
    flex: 1 0 auto;
    
    box-shadow: 0 40px 40px rgba(0, 0, 0, 0.06);
}

.relate-post {
    padding-bottom: 1rem;
}

.single-post {
    box-shadow: none;
    border-radius: 0 0 24px 24px;
}

.single-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}

.single-gallery {
    display: grid;
    gap: var(--grid-gap);
    min-width: 0;
}

.single-gallery-item {
    margin: 0;
    background: #f2f2f2;
}

.single-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.single-info {
    position: sticky;
    top: calc(78px + var(--grid-gap));
    align-self: start;
    height: calc(100vh - 78px - (var(--grid-gap) * 2));
    display: flex;
    flex-direction: column;
    z-index: 0;
}
.single-footer-desktop{
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background-color: white;
    z-index: 2;
    font-size: 18px;
    padding-bottom: 2px;
}
.single-info-inner {
    position: sticky;
    bottom: var(--grid-gap);
    margin-top: auto;
    width: 100%;
    max-width: none;
    /* max-height: calc(100vh - 78px - (var(--grid-gap) * 3)); */
    overflow: auto;
    min-height: 0;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--surface-bg);
}

.single-title {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.single-authors {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 5px;
    line-height: 1.4;
}

.single-authors-label {
    color: rgba(17, 17, 17, 0.8);
    font-size: 18px;
    line-height: 1;
    font-weight: 300;
}

.single-summary {
    max-width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0;
    padding-right: 0;
    position: relative;
    z-index: 1;
}

.single-summary > *:first-child {
    margin-top: 0;
}

.single-summary > *:last-child {
    margin-bottom: 0;
}

.single-tag {
    color: rgba(17, 17, 17, 0.6);
    font-size: 18px;
    line-height: 1;
    font-weight: 300;
}

.single-related {
    padding-top: 60px;
    padding-bottom: 30px;
    background: var(--surface-bg);
}


.single-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.post-grid-wrap {
    position: relative;
    padding-bottom: 0px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    padding-bottom: 30px;
}

.post-grid-load-more {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translate(-50%, 50%);
    z-index: 12;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-grid-load-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.post-grid-load-more-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.post-grid-load-more-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translate(-50%, 8px);
    opacity: 0;
    white-space: nowrap;
    color: #111111;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.post-grid-load-more:hover .post-grid-load-more-text {
    opacity: 1;
    transform: translate(-50%, 0);
}

.post-grid-load-more:disabled {
    opacity: 0.75;
}

.item-blog {
    min-width: 0;
}

.item-blog a {
    position: relative;
    display: block;
    aspect-ratio: var(--blog-thumb-ratio);
    overflow: hidden;
    background: #f2f2f2;
}

.item-blog img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.item-blog-meta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.item-blog-tags,
.item-blog-title {
    display: block;
    color: #fff;
    line-height: 1.4;
    font-weight: 300;
}

.item-blog-tags {
    font-size: 0.875rem;
    opacity: 0.8;
}

.item-blog-title {
    font-size: 1rem;
}

.item-blog a:hover img,
.item-blog a:focus-visible img,
.item-blog a.is-touch-preview img {
    transform: scale(1.02);
    filter: brightness(0.9);
}

.item-blog a:hover .item-blog-meta,
.item-blog a:focus-visible .item-blog-meta,
.item-blog a.is-touch-preview .item-blog-meta {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    margin-top: -30px;
    position: sticky;
    bottom: 0;
    z-index: var(--footer-z);
    background-color: #eeeeee;
    padding: calc(3rem + 50px) 20px 20px;
}

.footer p,
.footer a,
.footer h4 {
    color: var(--text-color);
    text-decoration: none !important;
}

.footer .main-container {
    padding: 2rem 0 0;
}

.footer .row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.footer .row > div {
    width: 100%;
    max-width: 100%;
}
.footer-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    align-items: end;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 1 / span 2;
    justify-content: flex-end;
}

.footer-description,
.footer-description p {
    width: 100%;
    max-width: 80%;
    font-weight: 200;
}

.footer h4 {
    font-weight: 300;
    font-size: 18px;
}

.logo-footer img {
    max-width: 200px;
    height: auto;
}

.author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.author p {
    margin: 0;
    opacity: 0.5;
    transition-property: opacity;
}

.single-post-content > *:last-child {
    margin-bottom: 0;
}

.single-post img {
    width: 100%;
    height: auto;
}

.album_img_post,
.related-item {
    padding-bottom: 0;
}

.related-item {
    margin: 0;
}

.related-link {
    position: relative;
    display: block;
    aspect-ratio: var(--blog-thumb-ratio);
    background: #f2f2f2;
    overflow: hidden;
}

.related-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.related-link:hover img,
.related-link:focus-visible img,
.related-link.is-touch-preview img {
    transform: scale(1.02);
    filter: brightness(0.9);
}

.related-link:hover .item-blog-meta,
.related-link:focus-visible .item-blog-meta,
.related-link.is-touch-preview .item-blog-meta {
    opacity: 1;
    transform: translateY(0);
}
.single-summary p{
    margin-bottom: 5px;
}
.text-related{
    font-weight: 400;
    font-size: 18px;
}
.footer .container-site{
    padding-left:0;
    padding-right: 0;
}

@media (min-width: 600px) and (max-width: 1023px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .single-related-grid {
       grid-template-columns: repeat(2,1fr);
    }
    .footer{
        padding: 4rem 20px 20px!important;
    }
   
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr)!important;
        gap: 20px;
        grid-column: 1 / span 2;
    }
}

@media (max-width: 1199.98px) {
    .header-menu-grid {
        grid-template-columns: repeat(var(--menu-columns-lg, 1), minmax(0, 1fr));
    }
    .footer {
        padding: 4rem 20px 0rem;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        grid-column: 1 / span 2;
        align-items: end;
    }
    
    .footer-description, .footer-description p{
        max-width: 100%;
    }
    .footer-brand {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 600px) {
    .header-menu-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .header-menu-item {
        min-height: auto;
        padding: 0;
        font-size: 16px;
    }

    .about-modal {
        grid-template-columns: 1fr;
    }

    .about-modal-panel {
        grid-column: 1;
    }
}

@media (max-width: 599.98px) {
    .container-site {
        padding: 0 16px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .single-info, .single-summary {
        padding-bottom: 0;
    }
    .single-footer-desktop{
        padding:0;
    }

    .single-page {
        grid-template-columns: 1fr;
    }

    .single-info {
        position: static;
        display: flex;
        flex-direction: column;
        order: -1;
        padding-bottom: 1.5rem;
        height: auto;
        min-height: auto;
    }

    .single-info-inner {
        position: static;
        max-width: 100%;
        max-height: none;
        margin-top: 0;
        width: auto;
        padding-right: 0;
        box-shadow: none;
        overflow: visible;
        flex-direction: column-reverse;
    }
    

    .single-summary {
        overflow: visible;
        border-top: 0.5px solid #333333;
    }
    
    .single-gallery,
    .single-related-grid {
        grid-template-columns: 1fr;
    }
    .single-related{
        padding-bottom: 40px;
    }

    .single-title,
    .single-authors-label,
    .single-tag {
        font-size: 16px;
    }

    .about-modal {
        padding: 0 16px 16px;
    }

    .main-content,
    .single-post,
    .page-about {
        padding: 0;
        border-radius: 0 0 24px 24px;
    }
    .footer {
        margin-top: auto;
        position: sticky;
        bottom: 0;
        z-index: var(--footer-z);
        background-color: #eeeeee;
        padding: 3rem 16px 0px;
    }
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-brand{
        grid-column: 1;
    }   
    .footer-description, .footer-description p{
        max-width: 100%;
    }
    .footer .main-container{
        padding:0 0 1rem;
    }

    .footer .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .logo-footer img {
        max-width: 180px;
    }
}
