

.fancyfont,
.title, h1, h2, h3, h4, h5, h6 {
    font-family: "Fjalla One", serif;
    font-weight: 400;
    font-style: normal;

    background-image: linear-gradient(to right, #333 , #666, #333, #666, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reset-font {
    background-image: none; /* Remove the background gradient */
    -webkit-background-clip: border-box; /* Reset background clipping */
    -webkit-text-fill-color: initial; /* Revert to default text color */
}

h2 { font-size: 1.5em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1.1em; }

a:not(.reset) {color: #444; }
a:not(.reset):hover {color: #000; }

.blog, .shop {
    color: #333;
    margin-top: 1em;
    margin-bottom: 5em;
}

.blog  {
    max-width: 65em;
}
.shop {
    max-width: auto;
}

.header {
    background-color: #efefef;
}

.sidebar {
    font-size: 0.9em;
    letter-spacing: -0.02em;
    /* background-color: #fafafa; */
    padding: 0;
    width: 20em;
    /* display: none !important; */
}

.tagline {
    letter-spacing: -0.05em;
    color:#666;
}

.disabled {
    opacity: 0.5;
}

.nav-link:hover {
    background-color: #efefef;
    border-radius: 0.3em;;
}

.top-nav {
    border-bottom: 1px solid #eee;
    /* border-right-width:0;
    border-left-width:0; */
}

.post {
    position: relative;
    padding: 1em 1em 1em 0.5em;
    margin: 0 0 2em 0;
    line-height: 1.75em;
    hyphens: auto; 
    word-break: break-word; 
    overflow-wrap: break-word; 
    line-break: auto; 
}
.post .title {
    opacity: 0.75;
}
.post.single .title {
    opacity: 1;
}
/* .post:not(.single) {
    margin-bottom: 2em;
} */
.post:not(.single) .title{
    /* border-bottom: 0.2em solid #efefef; */
    /* margin-bottom: 3em;; */
}
.post time {
    position: absolute;
    margin: -1.42em 0 0 -4.2em;
    color: #e1e1e1;
    font-size: 1.7em;
    text-transform: capitalize;
    min-width: 3.4em;;
    text-align: right;
}

.post img, 
.post .wp-block-image {
    cursor: pointer;
    max-width: 95%; /* Ensures the image does not exceed the container's width */
    height: auto;    /* Maintains the aspect ratio */
    display: block;  /* Ensures proper rendering in all browsers */
    margin: 4em auto;
}
.post img[data-lazy-src][src=""] {
    /* border: 0.2em dashed #ddd;
    outline: 0.4em solid #f9f9f9; */
    /* border-radius: 0.2em;; */
    width: 90%;
    height: 40em;
    padding: 2em 5em;
    color: #999;
    background-color: #fcfcfc;
    text-align: center;
    line-height: 2em;
}
.post img[data-lazy-src][src=""]::after {
    content: "Ielādē..";
    display: block;
    color: #ccc;
    margin-top: 2em;
    letter-spacing: 0.1em;
    font-size: 1.1em;
}

.post .row img {
    margin: 0.1em;
}

.post iframe {
    margin: 1em auto;
    width:100%;
} 
.post img:hover {
    transform: scale(1.01);
}

.page.post {
    min-height: 50vh;
    text-align: justify;
    font-size: 1.1em;
}
.page.post .title {
    text-align: center;
    font-size: 2.4em;
    margin-bottom: 1em;
}

.page.post h2 { margin:3em 0 0.6em 0; }
.page.post h3 { margin:3em 0 0.6em 0; }
.page.post h4 { margin:3em 0 0.6em 0; }
.page.post h5 { margin:3em 0 0.6em 0; }
.page.post h6 { margin:3em 0 0.6em 0; }

.post.page p:first-of-type {
    /* color: #444; */
    font-weight: 500;
}

.post .tagline {
    text-align: center;
    color: #999;
    margin: 0 0 2em 0;
}


/* Fullscreen container */
#fullscreen-container {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dimmed background */
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

/* Fullscreen image */
#fullscreen-image {
    max-width: 95%;
    max-height: 95%;
}


/* Apply scaling only on small screens */
@media (max-width: 768px) {
    #fullscreen-image {
        transform: scale(1.2);
    }
}

/* Close button */
#close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.btn.social, .shop-badge {
    filter: grayscale(70);
    white-space: nowrap;
}

.btn.social:hover, .shop-badge:hover {
    filter: grayscale(0);
}

.row > div > img.img-fluid {
    aspect-ratio: 4 / 3; /* Maintain a 4:3 aspect ratio for all images */
    object-fit: cover;  /* Ensure the image fits within the aspect ratio */
    width: 100%;       /* Keep the image responsive */
    height: auto;      /* Automatically adjust height for responsiveness */
}

.row > div > img.square {
    aspect-ratio:  1 / 1; /* Maintain a 4:3 aspect ratio for all images */
    object-fit: cover;  /* Ensure the image fits within the aspect ratio */
    width: 100%;       /* Keep the image responsive */
    height: auto;      /* Automatically adjust height for responsiveness */
}

.opacity-10 { opacity: 0.1;}
.opacity-20 { opacity: 0.2;}
.opacity-30 { opacity: 0.3;}
.opacity-40 { opacity: 0.4;}
.opacity-50 { opacity: 0.5;}
.opacity-60 { opacity: 0.6;}
.opacity-70 { opacity: 0.7;}
.opacity-80 { opacity: 0.8;}
.opacity-90 { opacity: 0.9;}


.search-posts li.is-page-true {
    font-weight: bold;
    background-color: #fafafa;
}
.search-posts li.is-page-true .badge { display: none;}


.shop .amo-choose {
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
    padding: 0.2rem 0.4rem;
}
.shop input.amo-choose {
}

input[type="radio"] + label {
    opacity: 0.6;
}
input[type="radio"]:checked + label {
    opacity: 1;
    border: 0.2em solid #0d6efd55 !important;
    transform: scale(1.05);
}



.text-bordered {
    color: #fffe;
    text-shadow:
        -1px -1px 0 #0005,
        1px -1px 0 #0005,
        -1px  1px 0 #0005,
        1px  1px 0 #0005;
}

.img-zoom-wrapper {
display: inline-block;
overflow: hidden;
}

.img-zoom-wrapper img {
transition: transform 0.3s ease;
display: block;
}

.img-zoom-wrapper:hover img {
transform: scale(1.5);
}