/* ================================================== VARIABLES */

:root {
    --nav-height: 110px;
    --nav-padding: 2.5vw;
    --footer-height: 190px;

    --body-padding-lr: 7.5vw;
    --body-padding-tb: 30px;

    --aside-content: 42vw;
    --aside-padding: 60px;

    --main-width: calc(100vw - var(--aside-content) - var(--body-padding-lr));
    --content-top-space: 100px;

    --col-padding: 20px;

    --main-color: #a1b388;
    --light-color: #e3e8dd;
    --grey: #888;
    --medium-grey: #a8a8a8;
    --light-grey: #f8f8f8;
    --transparent-black: rgba(0, 0, 0, .6);

    --text-font: "Mulish";
    --title-font: "Lora";
    
    --spacing: 25px;

    --shadow: 1px 1px 5px 3px rgba(0, 0, 0, .2);
    --shadow-bottom: 0 3px 3px 1px rgba(0, 0, 0, .1);
}

/* ================================================== GLOBAL ELEMENTS */

* {
    box-sizing: border-box;
    scroll-margin-top: var(--nav-height);
}

html {
    line-height: 1.4;
}

body {
    padding: var(--nav-height) var(--body-padding-lr) var(--body-padding-tb) var(--body-padding-lr);
    color: #000;
    font-family: var(--text-font);
}

main {
    width: var(--main-width);
    margin-top: var(--content-top-space);
}

/* ================================================== ANCHORS AND BUTTONS */

a,
button {
    text-decoration: none;
    transition: .4s;
    cursor: pointer;
}

a svg,
button svg
{fill: currentColor}

/* ================================================== INPUTS AND FORMS */

input {transition: .4s}
input[type="checkbox"],
input[type="submit"]
{cursor: pointer}

textarea {
    min-width: 180px;
    max-width: 100%;
    min-height: 100px;
}

/* ---------- Switch toggle */

.switch-container {display: flex}

.switch-container input {
    width: 0;
    height: 0;
    opacity: 0;
}

.switch {
    width: 50px;
    height: 28px;
    border: 1px solid #fff;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: .4s;
}
input:checked + .switch {
    background-color: #fff;
}

.switch::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 100%;
    position: absolute;
    top: 3px; left: 3px;
    transition: inherit;
}

input:checked + .switch::before {
    left: 25px;
    background-color: var(--main-color);
}

/* ================================================== TEXT */

p,
b,
span {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--title-font);
}

/* ================================================== LIST ELEMENTS */

ul,
ol
{margin: 10px 0}

/* ================================================== GLOBAL CLASSES */

.full {width: 100%}

body.scroll .scroll-not {display: none}

.cards {
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.main-content {transition: .4s}
.main-content.cards {padding: var(--col-padding)}
.main-content.fade-in {
    padding-top: 100px;
    opacity: 0;
}

/* ---------- Aside elements */

.aside-scroll {
    overflow-y: hidden;
    scrollbar-width: thin; /* Firefox only */
    padding-bottom: var(--spacing);
}
.aside-scroll::-webkit-scrollbar {width: 9px}
/* .aside-scroll::-webkit-scrollbar-track {background: transparent} */
.aside-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border: transparent;
}
.aside-scroll.must-scroll,
.aside-scroll.can-scroll {overflow-y: scroll}

/* ---------- Toggle list elements */

.toggle-list-button {position: relative}
.toggle-list-button::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    position: absolute;
    top: 50%; right: -15px;
    transform: translateY(-75%) rotate(45deg);
    transition: inherit;
}
.toggle-list-button.open::after {transform: translateY(-25%) rotate(-135deg)}

.toggle-list {
    margin: 0;
    transition: .4s;
}
.toggle-list {margin-top: 10px}

.toggle-list li {
    height: 22px;
    opacity: 1;
    transition: inherit;
}
button:not(.open) + .toggle-list li:not(.active) {
    height: 0;
    opacity: 0;
    overflow-y: hidden;
    pointer-events: none;
}

.display-posts {padding-bottom: 50px}

/* ---------- "See also" section */

.see-also button {
    padding: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    border: none;
}
.see-also button:hover {color: var(--main-color)}

/* ---------- Image gallery */

.main-content.image-gallery {padding: var(--col-padding)}

.image-gallery {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.image-gallery img {
    width: 100%;
    margin-bottom: 2%;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow);
}

/* ---------- "No results" text */

.no-results {
    text-align: center;
    width: 100%;
    margin-top: 200px;
    font-size: 20px;
    transition: .4s;
}
.no-results.fade-in {
    padding-top: 50px;
    opacity: 0;
}

/* ---------- Round date */

.round-date {
    width: 64px;
    height: 64px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 200;
    line-height: 1;
    border: 1px solid currentColor;
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.round-date .day {font-size: 24px}
.round-date .month,
.round-date .year {font-size: 12px}

/* ---------- Single page template */

.single-aside-content {margin-top: var(--spacing)}

/* ---------- Text presets for WP regular content */

.content-container h2,
.woocommerce #tab-description h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 26px;
}
.content-container h3,
.woocommerce #tab-description h3 {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 22px;
}
.content-container h4,
.woocommerce #tab-description h4 {
    margin-top: 4px;
    margin-bottom: 8px;
    font: normal 20px/1.25 var(--text-font);
    text-decoration: underline;
}

.content-container p,
.woocommerce #tab-description p
{margin-bottom: 10px}

.content-container ul,
.content-container ol,
.content-container figure,
.woocommerce #tab-description ul,
.woocommerce #tab-description ol,
.woocommerce #tab-description figure {
    margin-top: 10px;
    margin-bottom: 10px;
}
.content-container li, .woocommerce #tab-description li {margin-bottom: 4px}
.content-container li p, .woocommerce #tab-description li p {margin: 0}

.content-container > :first-child {margin-top: 0}
.content-container > :last-child {margin-bottom: 0}

.content-container figure > a {
    border-radius: 5px !important;
    display: inline-block;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.content-container figure > a:hover {transform: scale(1.02)}

/* ---------- Post tags */

.post-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}
.big-title-after + .post-tags {margin: 0 0 10px 0}

.post-tags > div {
    margin-bottom: 10px;
    padding: 5px 15px;
    background-color: var(--light-color);
    font-size: 15px;
    font-weight: 200;
    border-radius: 50px;
    display: flex;
    align-items: center;
}
.post-tags > div:not(:last-child) {margin-right: 10px}

.post-tags svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}