:root {
    --background-color: rgba(64, 111, 83, 0.1);
    --background-color-2: rgba(243, 241, 237, 1);
    --title-font: 40px;
    --title-line-height: 45px;
    --sub-title-font: 30px;
    --sub-title-line-height: 35px;
    --generic-font: 14px;
    --generic-line-height: 20px;
    --generic-font-two: 12px;
    --generic-line-height-two: 18px;
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 800;
    --border-radius-one: 30px;
    --border-radius-two: 20px;
    --header-font-size: 15px;
    --main-color: #29292d;
    --dark-color: #29292d;
    --dark-color-two: #757575;
    --light-color: #e4e0da;
    --light-color-two: #f3f1ed;
    --cms-background-color: rgb(255 255 255) !important;
    --cms-section-background-color: rgb(246 246 246) !important;
    --cms-section-handle-background-color: rgb(192 192 192) !important;
    --cms-box-background-color: rgb(244 244 244) !important;
    --cms-box2-background-color: rgb(234 234 234) !important;
    --cms-table-background-color-even: rgb(244 244 244) !important;
    --cms-input-border-color: rgb(235 235 235) !important;
    --cms-selected-row-color: rgb(220 220 220);
    --navbar-width: 256px;
    --navbar-width-min: 100px;
}


.fa {
    font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
    font-weight: var(--fa-style, 900)
}

.fa-classic,
.fa-regular,
.fa-solid,
.far,
.fas {
    font-family: "Font Awesome 6 Free" !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
}



/* ========================================
   Main Gallery Variables & Styles
   ======================================== */

:root {
    /* â€” Gallery Colors â€” */
    --main-gallery-bg: #f5f3ef;
    --main-gallery-card-bg: #ffffff;
    --main-gallery-dark: #1a1a1a;
    --main-gallery-grey: #6b6b6b;

    --main-gallery-category-font: var(--font-family-primary);
    --main-gallery-category-color: grey;
    --main-gallery-category-size: 11px;

    --main-gallery-title-font: var(--font-family-primary);
    --main-gallery-title-color: #1a1a1a;
    --main-gallery-title-size: clamp(12px, 3vw, 16px);

    --main-gallery-read-more-font: var(--font-family-primary);
    --main-gallery-read-more-color: var(--main-color);
    --main-gallery-read-more-size: 14px;

    --main-gallery-indicator-active: var(--main-color);
    --main-gallery-indicator-inactive: #d5d0c8;
    --main-gallery-overlay-curve: var(--light-color-two);

    /* â€” Gallery Sizing â€” */
    --main-gallery-height: 520px;
    --main-gallery-radius: 18px;
    --main-gallery-transition-speed: 0.55s;
    --main-gallery-curve-width: 40%;
    --main-gallery-fillet-size: 50px;
}

/* ---- Wrapper ---- */
#main-gallery-wrapper {
    width: 90%;
    margin: 0 auto;
    font-family: var(--main-gallery-font-body);
    color: var(--main-gallery-dark);
    position: relative;
}

/* ---- Slide container ---- */
#main-gallery-viewport {
    position: relative;
    width: 100%;
    border-radius: var(--main-gallery-radius);
    overflow: hidden;
    background: var(--main-gallery-bg);
    aspect-ratio: 16 / 6;
}

/* ---- Single slide ---- */
.main-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--main-gallery-transition-speed) ease;
    pointer-events: none;
    z-index: 1;
}

.main-gallery-slide.main-gallery-slide--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ---- Image container ---- */
.main-gallery-image-container {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.main-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-gallery-slide--active .main-gallery-image {
    transform: scale(1.0);
}

.main-gallery-slide--active:hover .main-gallery-image {
    transform: scale(1.03);
}

/* ---- Text overlay (rectangle + fillets) ---- */
.main-gallery-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--main-gallery-curve-width);
    z-index: 3;
    pointer-events: none;
}

/* White rectangle â€“ the text box */
.main-gallery-text-box {
    position: relative;
    background: var(--main-gallery-overlay-curve);
    border-top-right-radius: var(--main-gallery-fillet-size);
    padding: 24px 36px 32px 20px;
    pointer-events: auto;
}

/* ---- Fillet shapes (concave inverse-radius corners via radial-gradient) ---- */
.main-gallery-fillet {
    position: absolute;
    width: var(--main-gallery-fillet-size);
    height: var(--main-gallery-fillet-size);
    pointer-events: none;
    z-index: 1;
}

/* Fillet above the box on the left edge â€” circle at top-right, white in bottom-left */
.main-gallery-fillet--top {
    bottom: 100%;
    left: 0;
    background: radial-gradient(circle at 100% 0%, transparent var(--main-gallery-fillet-size), var(--main-gallery-overlay-curve) var(--main-gallery-fillet-size));
}

/* Fillet to the right of the box on the bottom edge â€” circle at top-left, white in bottom-right */
.main-gallery-fillet--right {
    bottom: 0;
    left: 100%;
    background: radial-gradient(circle at 100% 0%, transparent var(--main-gallery-fillet-size), var(--main-gallery-overlay-curve) var(--main-gallery-fillet-size));
}

/* ---- Category badges ---- */
.main-gallery-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.main-gallery-category {
    display: inline-block;
    font-family: var(--main-gallery-category-font);
    font-size: var(--main-gallery-category-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--main-gallery-category-color);
    line-height: 1.4;
}

/* ---- Title ---- */
.main-gallery-title {
    color: var(--main-gallery-title-color);
    font-family: var(--main-gallery-title-font);
    font-size: var(--main-gallery-title-size);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px 0;
    /* Clamp to 4 lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Divider ---- */
.main-gallery-divider {
    width: 100%;
    height: 1px;
    background: #8e8e8e;
    opacity: 0.35;
    margin-bottom: 12px;
}

/* ---- Read more ---- */
.main-gallery-read-more {
    display: inline-block;
    font-family: var(--main-gallery-read-more-font);
    font-size: var(--main-gallery-read-more-size);
    color: var(--main-gallery-read-more-color);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.main-gallery-read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--main-gallery-read-more-color);
    transition: width 0.25s ease;
}

.main-gallery-read-more:hover::after {
    width: 100%;
}

/* ---- Indicators (right side, vertical) ---- */
.main-gallery-indicators {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
    overflow: unset;
    width: unset;
}

.main-gallery-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.main-gallery-indicator:hover {
    transform: scale(1.3);
    border-color: #ffffff;
}

.main-gallery-indicator.main-gallery-indicator--active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.5);
}

/* ---- Text animation ---- */
.main-gallery-text-box .main-gallery-categories,
.main-gallery-text-box .main-gallery-title,
.main-gallery-text-box .main-gallery-divider,
.main-gallery-text-box .main-gallery-read-more {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.main-gallery-slide--active .main-gallery-text-box .main-gallery-categories {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.main-gallery-slide--active .main-gallery-text-box .main-gallery-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.main-gallery-slide--active .main-gallery-text-box .main-gallery-divider {
    opacity: 0.35;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.main-gallery-slide--active .main-gallery-text-box .main-gallery-read-more {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* ---- Link reset ---- */
a.main-gallery-slide-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.main-gallery-border-helper {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 35px;
    height: 35px;
    background: var(--main-gallery-overlay-curve);
    z-index: 2;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    :root {
        --main-gallery-height: 440px;
        --main-gallery-curve-width: 75%;
    }

    .main-gallery-text-box {
        padding: 20px 24px 24px 24px;
    }

    .main-gallery-title {
        font-size: 20px;
    }

    .main-gallery-indicators {
        right: 14px;
        gap: 10px;
    }

    .main-gallery-indicator {
        width: 8px;
        height: 8px;
    }

    #main-gallery-viewport {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    :root {
        --main-gallery-height: 380px;
        --main-gallery-curve-width: 90%;
    }

    .main-gallery-title {
        font-size: 18px;
    }
}




/* ========================================
   Post Cards Variables & Styles
   ======================================== */

:root {
    --blog-post-grey: #6B6B6B;
    --blog-post-light-grey: #F5F5F5;
    --blog-post-overlay: rgba(0, 0, 0, 0.55);
    --blog-post-card-radius: 16px;
    --blog-post-badge-radius: 20px;
    --blog-post-card-min-w: 280px;
    --blog-post-card-max-w: 420px;
    --blog-post-image-ratio: 66.66%;
    --blog-post-transition-speed: 0.35s;

    --blog-post-category-font: var(--font-family-primary);
    --blog-post-category-color: white;
    --blog-post-category-background-color: var(--main-color);
    --blog-post-category-size: 11px;
    --blog-post-date-font: var(--font-family-primary);
    --blog-post-date-color: grey;
    --blog-post-date-size: 12px;
    --blog-post-title-font: var(--font-family-primary);
    --blog-post-title-color: var(--dark-color);
    --blog-post-title-size: 13px;
    --blog-post-read-more-font: var(--font-family-primary);
    --blog-post-read-more-color: var(--main-color);
    --blog-post-read-more-size: 14px;
}


/* ---- Content wrapper ---- */
#blog-post-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    font-family: var(--blog-post-font-body);
    color: var(--blog-post-dark);
}

/* ---- Section heading ---- */
.blog-post-section-title {
    font-family: var(--blog-post-font-heading);
    font-weight: 900;
    font-size: clamp(28px, 4vw, 42px);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 40px 0;
    color: var(--blog-post-dark);
}

/* ---- Grid ---- */
.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--blog-post-card-min-w), 1fr));
    gap: 32px;
}

/* ---- Card ---- */
.blog-post-card {
    min-width: var(--blog-post-card-min-w);
    max-width: var(--blog-post-card-max-w);
    display: flex;
    flex-direction: column;
    /* animation entrance */
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: blog-post-appear 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* stagger delays injected via JS, but define base keyframe */
@keyframes blog-post-appear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Image container ---- */
.blog-post-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--blog-post-card-radius);
    overflow: hidden;
    background: var(--blog-post-light-grey);
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.blog-post-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform var(--blog-post-transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
    overflow: unset;
    outline: unset;
}

.blog-post-image-container:hover .blog-post-image {
    transform: scale(1.05);
}

/* ---- Categories ---- */
.blog-post-categories {
    position: absolute;
    top: 7px;
    right: 2px;
    display: block;
    width: 100%;
}

.blog-post-category {
    display: block;
    padding: 5px 14px;
    font-family: var(--blog-post-category-font);
    color: var(--blog-post-category-color);
    background: var(--blog-post-category-background-color);
    font-size: var(--blog-post-category-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--blog-post-badge-radius);
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    width: fit-content;
    float: right;
    margin-right: 10px;
    margin-top: 5px;
}

/* ---- Hover overlay with action buttons ---- */
.blog-post-overlay {
    position: absolute;
    inset: 0;
    background: var(--blog-post-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transition: opacity var(--blog-post-transition-speed) ease;
    z-index: 3;
    border-radius: var(--blog-post-card-radius);
}

.blog-post-image-container:hover .blog-post-overlay {
    opacity: 1;
}

.blog-post-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 28px;
    background: transparent;
    border: none;
    color: var(--blog-post-white);
    font-family: var(--blog-post-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transition:
        background 0.2s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.blog-post-image-container:hover .blog-post-action {
    opacity: 1;
    transform: translateY(0);
}

.blog-post-image-container:hover .blog-post-action:nth-child(1) {
    transition-delay: 0.05s;
}

.blog-post-image-container:hover .blog-post-action:nth-child(2) {
    transition-delay: 0.1s;
}

.blog-post-image-container:hover .blog-post-action:nth-child(3) {
    transition-delay: 0.15s;
}

.blog-post-action:hover {
    background: rgba(255, 255, 255, 0.12);
}

.blog-post-action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-action-icon svg {
    width: 100%;
    height: 100%;
}

/* ---- Card body (below image) ---- */
.blog-post-body {
    padding: 16px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-post-date {
    font-family: var(--blog-post-date-font);
    color: var(--blog-post-date-color);
    font-size: var(--blog-post-date-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.blog-post-title {
    font-family: var(--blog-post-title-font);
    color: var(--blog-post-title-color);
    font-size: var(--blog-post-title-size);
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
}

.blog-post-read-more {
    font-family: var(--blog-post-read-more-font);
    color: var(--blog-post-read-more-color);
    font-size: var(--blog-post-read-more-size);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    border: none;
    background: none;
    padding: 0;
    position: relative;
}

.blog-post-read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--dark-color-two);
    transition: width 0.25s ease;
}

.blog-post-read-more:hover::after {
    width: 100%;
}

/* ---- Divider line above Read more ---- */
.blog-post-divider {
    width: 100%;
    height: 1px;
    background: #8e8e8e;
    opacity: 0.35;
    margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .blog-post-card {
        max-width: 100%;
    }
}




/* Drive Search */


#driveSearchBodyContainer {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
    opacity: 0;
}

#driveSearchBodyContainerBorder {
    height: 45px;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius-two);
    margin: 0px auto;
    width: 80%;
    max-width: 1000px;
}

#driveSearchBodyContainerBackground {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    background-color: white;
    opacity: 0.2;
}

#driveSearchBodyIcon {
    width: 15px;
    float: left;
    margin-top: 19px;
    margin-left: 20px;
}

#driveSearchBodyField {
    width: calc(100% - 60px);
    float: left;
    margin-left: 15px;
    font-size: var(--generic-font);
    height: 100%;
    color: var(--dark-color);
    background-color: transparent;
}

.driveSearchPopupSearchResultIconContainer {
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
}

.driveSearchPopupSearchResultIcon {
    position: absolute;
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
}

.blog-post-card .crop-button {
    left: 5px;
}