/* -------------------------------------------------------------------------- */
/* RTB-MAIN.CSS (c) richardthebrave.com ------------------------------------- */

:root {

    --ratio: auto;

    --primary-bg:       #EFF5EF;
    --primary-light:    #BAD4BB;
    --primary-mid:      #6EA672;
    --primary:          #49774c;
    --primary-dark:     #2F4C31;

    --secondary-bg:     #F7FAFB;
    --secondary-light:  #C7DBE3;
    --secondary-mid:    #95BACA;
    --secondary:        #5c95ae;
    --secondary-dark:   #406D80;

    --accent-bg:        #FFEFD4;
    --accent-light:     #FFD48A;
    --accent-mid:       #FCB877;
    --accent:           #F89B64;
    --accent-dark:      #D57B45;

    --neutral-bg:       #F7F1EA;
    --neutral-light:    #D8B893;
    --neutral-mid:      #AC783E;
    --neutral:          #7C572D;
    --neutral-dark:     #5A3F20;

    --white: #fff;
    --black: #000;

    /* 360px -> 1440px */
    --space-1:      clamp(0.375rem, 0.3333rem + 0.1852vw, 0.5rem);  /*  6->8px  */
    --space-2:      clamp(0.5625rem, 0.5rem + 0.2778vw, 0.75rem);   /*  9->12px */
    --space-3:      clamp(0.75rem, 0.6667rem + 0.3704vw, 1rem);     /* 12->16px */
    --space-4:      clamp(1rem, 0.9167rem + 0.3704vw, 1.25rem);     /* 16->20px */
    --space-5:      clamp(1.3125rem, 1.25rem + 0.2778vw, 1.5rem);   /* 21->24px */
    --space-6:      clamp(1.6875rem, 1.5833rem + 0.463vw, 2rem);    /* 27->32px */
    --space-7:      clamp(2.0625rem, 1.75rem + 1.3889vw, 3rem);     /* 33->48px */
    --space-8:      clamp(2.8125rem, 2.4167rem + 1.7593vw, 4rem);   /* 45->64px */
    --space-9:      clamp(3.375rem, 2.8333rem + 2.4074vw, 5rem);    /* 54->80px */
    --space-10:     clamp(3.9375rem, 3.25rem + 3.0556vw, 6rem);     /* 63->96px */

    /* @link https://utopia.fyi/clamp/calculator?a=360,1440,11—13|13—16|15—18|17—20|21—25|27—40|36—55|44—80&p=foo */
    /* 360px -> 1440px */

    --text-xxs: clamp(0.6875rem, 0.6458rem + 0.1852vw, 0.8125rem);  /* 11->13px  footer stuff */
    --text-xs: clamp(0.8125rem, 0.75rem + 0.2778vw, 1rem);          /* 13->16px  h6 */
    --text-sm: clamp(0.9375rem, 0.875rem + 0.2778vw, 1.125rem);     /* 15->18px  h5 */
    --text-base: clamp(1.0625rem, 1rem + 0.2778vw, 1.25rem);        /* 17->20px  body copy, h4 */
    --text-md: clamp(1.3125rem, 1.2292rem + 0.3704vw, 1.5625rem);   /* 21->25px  h3, ledes */
    --text-lg: clamp(1.6875rem, 1.4167rem + 1.2037vw, 2.5rem);      /* 27->40px  h2 */
    --text-xl: clamp(2.25rem, 1.8542rem + 1.7593vw, 3.4375rem);     /* 36->55px  h1 */
    --text-xxl: clamp(2.75rem, 2rem + 3.3333vw, 5rem);              /* 44->80px  h1 */

    --radius-xs: var(--space-1);
    --radius-sm: var(--space-2);
    --radius-base: var(--space-3);
    --radius-md: var(--space-4);
    --radius-lg: var(--space-5);
    --radius-xl: var(--space-6);

    --gutter: clamp(1rem, -0.6667rem + 7.4074vw, 6rem); /* 16px->96px */
    --gutter-neg: calc(-1 * var(--gutter));

    --max-narrow:   50rem;  /* 800px */
    --max-wide:     75rem;  /* 1200px */
    --max-full:     90rem;  /* 1440px */

    --shadow-neutral-sm: 0 0.125rem var(--space-1) rgba(90, 63, 32, 0.15);
    --shadow-neutral-md: 0 0 var(--space-2) rgba(90, 63, 32, 0.1);
    --shadow-neutral-xl: 0 var(--space-4) var(--space-4) rgba(90, 63, 32, 0.2);

}

/* -------------------------------------------------------------------------- */
/* MARK: Reset
*/

*, *::before, *::after            { box-sizing: border-box; }
*                                 { margin: 0; }
html                              { font-size: 100%; scrollbar-gutter: stable; background-color: var(--neutral-bg); padding: 0; }
body                              { padding: 0; color: var(--neutral-dark); font-family: 'font-primary', system-ui, sans-serif; font-size: var(--text-md); font-style: normal; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg  { aspect-ratio: var(--ratio); display: block; height: auto; max-width: 100%; }
input, button, textarea, select   { font: inherit; }
p, h1, h2, h3, h4, h5, h6         { overflow-wrap: break-word; }
hr                                { background-color:var(--neutral-light); border: 0; box-sizing: content-box; height: 1px; margin: 0; overflow: visible; width: 100%; }
#root, #__next                    { isolation: isolate; }
strong                            { font-weight: 600; }
em                                { font-style: italic; }
:focus:not(:focus-visible)        { outline: none; box-shadow: none; }
:focus-visible                    { outline: none; box-shadow: 0 0 0 6px var(--neutral-light); }

@view-transition {
    navigation: auto;
}

/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
/* https://moderncss.dev/pure-css-smooth-scroll-back-to-top/ */
@media screen and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}


/* -------------------------------------------------------------------------- */
/* MARK: Fonts
*/

/* EB Garamond Var */
@font-face {
    font-family: 'font-primary';
    src:    url('/assets/fonts/eb-garamond-var/eb-garamond-var.woff2') format('woff2-variations'),
            url('/assets/fonts/eb-garamond-var/eb-garamond-var.ttf') format('truetype-variations');
    font-weight: 400 800;
    font-display: swap;
        
}
.font-primary { font-family: 'font-primary', sans-serif; font-style: normal; }
.font-primary-400 { font-family: 'font-primary', sans-serif; font-style: normal; font-weight: 400; }
.font-primary-500 { font-family: 'font-primary', sans-serif; font-style: normal; font-weight: 500; }
.font-primary-600 { font-family: 'font-primary', sans-serif; font-style: normal; font-weight: 600; }
.font-primary-700 { font-family: 'font-primary', sans-serif; font-style: normal; font-weight: 700; }
.font-primary-800 { font-family: 'font-primary', sans-serif; font-style: normal; font-weight: 800; }

/* EB Garamond Var Italic */
@font-face {
    font-family: 'font-primary';
    src:    url('/assets/fonts/eb-garamond-var/eb-garamond-var-italic.woff2') format('woff2-variations'),
            url('/assets/fonts/eb-garamond-var/eb-garamond-var-italic.ttf') format('truetype-variations');
    font-weight: 400 800;
    font-display: swap;
    font-style: italic; 
}
.font-primary-i { font-family: 'font-primary', sans-serif; font-style: italic; }
.font-primary-400i { font-family: 'font-primary', sans-serif; font-style: italic; font-weight: 400; font-style: italic; }
.font-primary-500i { font-family: 'font-primary', sans-serif; font-style: italic; font-weight: 500; font-style: italic; }
.font-primary-600i { font-family: 'font-primary', sans-serif; font-style: italic; font-weight: 600; font-style: italic; }
.font-primary-700i { font-family: 'font-primary', sans-serif; font-style: italic; font-weight: 700; font-style: italic; }
.font-primary-800i { font-family: 'font-primary', sans-serif; font-style: italic; font-weight: 800; font-style: italic; }

/* Copperplate Gothic 400 */
@font-face { font-family: 'font-secondary'; src: url('/assets/fonts/copperplate-gothic/copperplate-gothic-400.woff2?v=2') format('woff2'), url('/assets/fonts/copperplate-gothic/copperplate-gothic-400.woff?v=2') format('woff'), url('/assets/fonts/copperplate-gothic/copperplate-gothic-400.ttf?v=2') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
.font-secondary-400 { font-family: 'font-secondary', sans-serif; font-style: normal; font-weight: 400; }

/* -------------------------------------------------------------------------- */
/* MARK: Colours
*/

.bg-neutral-bg      { background-color: var(--neutral-bg); }
.bg-neutral-light   { background-color: var(--neutral-light); }
.bg-neutral-mid     { background-color: var(--neutral-mid); }
.bg-neutral         { background-color: var(--neutral); }
.bg-neutral-dark    { background-color: var(--neutral-dark); }
.bg-primary-bg      { background-color: var(--primary-bg); }
.bg-primary-light   { background-color: var(--primary-light); }
.bg-primary-mid     { background-color: var(--primary-mid); }
.bg-primary         { background-color: var(--primary); }
.bg-primary-dark    { background-color: var(--primary-dark); }
.bg-secondary-bg    { background-color: var(--secondary-bg); }
.bg-secondary-light { background-color: var(--secondary-light); }
.bg-secondary-mid   { background-color: var(--secondary-mid); }
.bg-secondary       { background-color: var(--secondary); }
.bg-secondary-dark  { background-color: var(--secondary-dark); }
.bg-accent-bg       { background-color: var(--accent-bg); }
.bg-accent-light    { background-color: var(--accent-light); }
.bg-accent-mid      { background-color: var(--accent-mid); }
.bg-accent          { background-color: var(--accent); }
.bg-accent-dark     { background-color: var(--accent-dark); }
.bg-white           { background-color: var(--white); }
.bg-black           { background-color: var(--black); }

.neutral-bg         { color: var(--neutral-bg); }
.neutral-light      { color: var(--neutral-light); }
.neutral-mid        { color: var(--neutral-mid); }
.neutral            { color: var(--neutral); }
.neutral-dark       { color: var(--neutral-dark); }
.primary-bg         { color: var(--primary-bg); }
.primary-light      { color: var(--primary-light); }
.primary-mid        { color: var(--primary-mid); }
.primary            { color: var(--primary); }
.primary-dark       { color: var(--primary-dark); }
.secondary-bg       { color: var(--secondary-bg); }
.secondary-light    { color: var(--secondary-light); }
.secondary-mid      { color: var(--secondary-mid); }
.secondary          { color: var(--secondary); }
.secondary-dark     { color: var(--secondary-dark); }
.accent-bg          { color: var(--accent-bg); }
.accent-light       { color: var(--accent-light); }
.accent-mid         { color: var(--accent-mid); }
.accent             { color: var(--accent); }
.accent-dark        { color: var(--accent-dark); }
.white              { color: var(--white); }
.black              { color: var(--black); }

.object-top-left{object-position:top left;}.object-top-center{object-position:top center;}.object-top-right{object-position:top right;}.object-center-left{object-position:center left;}.object-center{object-position:center center;}.object-center-right{object-position:center right;}.object-bottom-left{object-position:bottom left;}.object-bottom-center{object-position:bottom center;}.object-bottom-right{object-position:bottom right;}

/* -------------------------------------------------------------------------- */
/* MARK: Patterns
*/




/* -------------------------------------------------------------------------- */
/* MARK: Typography
*/

h1, h2, h3, h4, h5, h6 {
    font-family: 'font-secondary';
    font-weight: 400;
    font-size: var(--text-md);
    line-height: 1.2;
}

h2, h3, h4 {
    letter-spacing: 0.05em;
}

p {
    /* max-width: 60ch; */
}

.note {
    border: 1px solid rgb(255, 194, 187);
    background-color: rgb(255, 231, 235);
    padding: var(--space-1);
}

.note p {
    max-width: none;
}

ul, ol {
    padding: 0 0 0 var(--space-6);
}

ul ::marker {
    color: var(--primary-mid);
}

.text-xxl   { font-size: var(--text-xxl); }
.text-xl, h1    { font-size: var(--text-xl); }
.text-lg, h2    { font-size: var(--text-lg); }
.text-md, h3    { font-size: var(--text-md); }
.text-base, h4  { font-size: var(--text-base); }
.text-sm    { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }

.list-none { list-style: none; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* -------------------------------------------------------------------------- */
/* MARK: Links
*/

a           { color: var(--neutral-dark); text-decoration-color: var(--primary-mid); text-underline-offset: 0.2em; text-decoration-thickness: 0.05em; }
a:hover     { color: var(--primary); }
a:active    { color: var(--primary-light); }

.white-links a       { color: var(--white); }
.white-links a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* MARK: Buttons
*/


.btns {
    display: flex;
    gap: var(--space-2) var(--space-4);
    flex-wrap: wrap;
}

.btn    {
    background-color: var(--primary-mid);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    color: var(--white);
    cursor: pointer;
    display: inline-block;
    font-size: inherit;
    font-weight: 500;
    padding: var(--space-1) var(--space-6);
    text-decoration: none;
}

.btn:hover { background-color: var(--primary); color: var(--white); }

.btn--light { background-color: var(--white); color: var(--neutral) }
.btn--light:hover { background-color: var(--neutral-mid); }

.btn--primary { background-color: var(--primary); }
.btn--primary:hover { background-color: var(--primary-dark); }
.btn--primary.btn--light { background-color: var(--primary-light); }
.btn--primary.btn--light:hover { background-color: var(--primary-mid); }

.btn--secondary { background-color: var(--secondary); }
.btn--secondary:hover { background-color: var(--secondary-dark); }
.btn--secondary.btn--light { background-color: var(--secondary-light); }
.btn--secondary.btn--light:hover { background-color: var(--secondary-mid); }

.btn--accent { background-color: var(--accent); }
.btn--accent:hover { background-color: var(--accent-dark); }
.btn--accent.btn--light { background-color: var(--accent-light); }
.btn--accent.btn--light:hover { background-color: var(--accent-mid); }

.btn--neutral { background-color: var(--neutral); }
.btn--neutral:hover { background-color: var(--neutral-dark); }
.btn--neutral.btn--light { background-color: var(--neutral-light); }
.btn--neutral.btn--light:hover { background-color: var(--neutral-mid); }

.btn--small { font-size: var(--text-sm); padding: var(--space-1) var(--space-3); }
.btn--block { display: block; text-align: center; }

.btn--outline { background-color: transparent; color: var(--primary); border-color: currentColor; }
.btn--outline:hover { background-color: transparent; border-color: currentColor; color:  var(--primary-dark); }

/* -------------------------------------------------------------------------- */
/* MARK: Content & Layout Grid
*/

.main {
    padding: var(--space-8) var(--gutter);
}

/**
* AUTO-GRID LAYOUT
*
* This CSS utility creates a responsive grid layout that automatically adjusts the number of columns
* based on the available space and specified constraints. It aims to fit as many cells as possible
* in a single row, while respecting minimum cell width and maximum columns constraints.
*
* Customizable Properties:
* --auto-grid-min-size: Sets the minimum width for each cell in the grid.
*                       Default is 10rem.
* --auto-grid-max-columns: Sets the maximum number of columns in the grid.
*                          Default is 'infinity' (as many as can fit).
* --auto-grid-gap: Sets the horizontal gap between grid cells. It also sets
*                  the vertical gap if --auto-grid-gap-vertical is not defined.
*                  Default is 1rem.
* --auto-grid-gap-vertical: Specifically sets the vertical gap between rows
*                           of cells. If not set, it falls back to the value
*                           of '--auto-grid-gap'.
*
* The grid utilizes CSS 'display: grid' with the 'auto-fit' feature and the 'minmax()'
* function to ensure that cells expand to fill available space while maintaining
* the set minimum size.
*
* Example Usage:
* <div class="auto-grid" style="--auto-grid-min-size: 10rem; --auto-grid-max-columns: 3; --auto-grid-gap: 0.5rem;">
*   <!-- grid items here -->
* </div>
*
* The above example will create a grid with a minimum cell width of 10rem, a maximum
* of 3 columns, and a gap of 0.5rem between both rows and columns.
*/

.auto-grid {
    --max-column-width: 100% / var(--auto-grid-max-columns, infinity) - var(--auto-grid-gap);
    --column-width: max(var(--max-column-width), min(var(--auto-grid-min-size, 10rem), 100%));

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(var(--column-width), 1fr));

    /* vertical gap falls back to general gap then falls back to 1rem*/
    gap: var(--auto-grid-gap-vertical, var(--auto-grid-gap, 1rem)) var(--auto-grid-gap, 1rem);
}

/* -------------------------------------------------------------------------- */
/* MARK: Display
*/

.block 			{ display: block; }
.none 			{ display: none; }
.inline-block 	{ display: inline-block; }
.overflow-hide  { overflow: hidden; }
.pos-rel        { position: relative; }

.stacked {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.stacked-more {
    gap: var(--space-8);
}
.stacked-loose {
    gap: var(--space-10);
}
.stacked-tight {
    gap: var(--space-4);
}

.stacked > * {
    margin: 0;
}

.layout-row { width: 100%; }

.layout-row > * { width: 100%; }

.layout-row.pad-top-lots { padding-top: var(--space-8); }
.layout-row.pad-bot-lots { padding-bottom: var(--space-8); }
.layout-row.pad-top-some { padding-top: var(--space-6); }
.layout-row.pad-bot-some { padding-bottom: var(--space-6); }
.layout-row.pad-top-little { padding-top: var(--space-4); }
.layout-row.pad-bot-little { padding-bottom: var(--space-4); }

.max-narrow     { max-width: var(--max-narrow); }
.max-wide       { max-width: var(--max-wide); }
.max-full       { max-width: var(--max-full); }
.mauto          { margin-inline: auto; }


.justify-content-start          { justify-content: start; }
.justify-content-center         { justify-content: center; }
.justify-content-end            { justify-content: end; }

.justify-items-start            { justify-items: start; }
.justify-items-center           { justify-items: center; }
.justify-items-end              { justify-items: end; }

.align-items-center             { align-items: center; }
.align-items-end                { align-items: end; }
.align-items-start              { align-items: start; }


.align-items-center > .side-x-side             { align-items: center; }
.align-items-end > .side-x-side                { align-items: end; }
.align-items-start > .side-x-side              { align-items: start; }


/* -------------------------------------------------------------------------- */
/* MARK: Header
*/

.header {
    align-items: start;
    background-color: var(--primary);
    display: grid;
}

.mobile-nav__btn {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-base);
    padding: var(--space-2);
    margin-right: calc(-1 * var(--gutter) + var(--space-2));
}

.site-nav {
    /* border: 2px solid red; */
    align-items: stretch;
    font-family: 'font-secondary';
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) var(--gutter);
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    position: relative;
    z-index: 10;
}
.site-nav::after {
    content: '';
    position: absolute;
    left: var(--gutter); right: var(--gutter); bottom: 0;
    height: 0;
    background-color: var(--primary);
}


.logo {
    display: block;
    margin-left: calc(-1 * var(--space-2));
}


.logo:hover {
    color: white;
}
.logo > svg {
    fill:  var(--neutral-bg);
    max-width: 100%;
    height: 10rem; /* actual is 224px */
    width: 12rem; /* actual is 256px */
}


.logo:hover > svg {
    fill: white;
}

/* -------------------------------------------------------------------------- */
/* MARK: Page Title
*/

.page-title {
    color: white;
    justify-content: end;
    grid-row: 2 / 3;
    margin-top: var(--space-8);
    padding: var(--space-8) var(--gutter) var(--space-4) var(--gutter);
    grid-column: 1 / -1;
    min-height: 50vh;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.page-title.is-hero {
    min-height: 60vh;
}

.page-title-h1 {
    color:  var(--neutral-bg);
    padding-bottom: var(--space-8);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.page-title-h1 em {
    font-family: 'font-primary';
    font-weight: 400;
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    display: block;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.page-title a {
    color: white;
    text-decoration-color: var(--primary-bg);
}

.page-title-trees {
    grid-row: 2 / 3;
    grid-column: 1 / -1;
    z-index: 2;
    align-self: flex-end;
    overflow: hidden;
}

.page-title-trees svg {
    fill: var(--neutral-bg);
    margin-bottom: -3px;
    min-width: 300%;
    margin-left: -100%;
}

.page-title-img-wrap {
    grid-row: 1 / 3;
    grid-column: 1 / -1;
    z-index: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.page-title-img {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) saturate(1.1) contrast(0.9);
}

/* gradient to improve readability */
.page-title-img-wrap::after,
.page-title-img-wrap::before {
    position: absolute;
    left: 0; right: 0;
    content: '';
    z-index: 2;
}

.page-title-img-wrap::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0) 75%); 
    top: 0;
    height: 50%;
}
.page-title-img-wrap::after {
    background: radial-gradient(at center bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%);
    left: -100%;
    right: -100%;
    width: 300%;
    bottom: 0;
    height: 50%;
}

.page-deck-wrap {
    padding: var(--space-6) var(--gutter) var(--space-6) var(--gutter);
    text-align: center;
}

.page-deck {
    max-width: var(--max-narrow);
    font-size: var(--text-lg);
    margin-inline: auto;
}

.page-title-btns {
    
}


/* -------------------------------------------------------------------------- */
/* MARK: Contact Page
*/

.contact-cols {
    row-gap: var(--space-10);
    width: 100%;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-info-location {
    margin-top: var(--space-4);
}

.map-wrapper {
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-xl);
    min-height: calc( var(--space-10) * 6 ) ;
    overflow: hidden;
    position: relative;
}

.map-wrapper > iframe {
    position: absolute;
    left: 0; top: 0; bottom: 0; right: 0;
    width: 100%;
    height: 100%;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-1);
}

.contact-social a {
    align-items: center;
    display: flex;
    font-style: italic;
}

.contact-social svg {
    fill: currentColor;
    width: var(--space-7);
}

/* -------------------------------------------------------------------------- */
/* MARK: Images
*/

figure[data-ratio=""] img {
    object-fit: contain;
    max-width: 100%;
}

figure[data-crop=""][data-ratio=""] img {
    object-fit: cover;
    width: 100%;
}

figcaption {
    font-size: var(--text-base);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

figcaption em {
    font-style: normal;
}

/* -------------------------------------------------------------------------- */
/* MARK: Details Disclosures
*/

details {
    box-shadow: var(--shadow-neutral-sm);
    border-radius: var(--radius-sm);
    width: 100%;
}

details summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-wrap: nowrap;
    font-weight: 600;
    padding: var(--space-4);
    justify-content: space-between;
}

details .summary {
    width: calc(100% - var(--space-6))
}

details .svg {
    height: var(--space-5);
    transform: rotate(-90deg);
    transition: transform 0.4s ease-in-out;
    width: var(--space-5);
}

details .svg svg {
    fill: var(--neutral);
}

details[open=""] {
    background-color: white;
    box-shadow: var(--shadow-neutral-md);
}

details[open=""] .svg {
    transform: rotate(90deg);
}

summary::-webkit-details-marker {
    display: none;
}

summary {
    list-style: none;
}

details .drawer {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: 0 var(--space-4) var(--space-6) var(--space-4);
}

/* -------------------------------------------------------------------------- */
/* MARK: Lodging & Amenities (LA)
*/


.portal-item {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 var(--space-2) rgba(90, 63, 32, 0.1);
    overflow: hidden;
    text-align: center;
}

.portal-item-img-link {
    display: block;
}

.portal-item-title-link {
    text-decoration: none;
}

.portal-item-img-wrap {
    position: relative;
}

.portal-item-trees {
    position: absolute;
    left: 0; bottom: -2px;
    width: 200%;
}

.portal-item:nth-child(2n) .portal-item-trees {
    left: auto; right: 0;
}

.portal-item-trees > svg {
    fill: white;
}

.portal-item-img {
    width: 100%;
}

.portal-item-copy {
    padding: var(--space-6) var(--space-6) var(--space-8) var(--space-6);
}

.portal-item-btns {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    padding-top: var(--space-3);
}

/* -------------------------------------------------------------------------- */
/* MARK: Albums Block
*/

.album-paging {
    color: var(--neutral-light);
    line-height: 1;
    display: grid;
    grid-template-columns: 1fr 1rem 1fr;
    margin: 0 auto;
    max-width: 24rem;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.album-paging > * {
    display: block;
    text-decoration: none;
    width: 100%;
}

.album-paging .prev {
    text-align: left;
}

.album-paging .next {
    text-align: right;
}

.albums {
    --auto-grid-min-size: 12.5rem; --auto-grid-max-columns: 4; --auto-grid-gap: var(--space-6);
    width: 100%;
} 

.max-3-albums > .albums {
    --auto-grid-max-columns: 3;
}
.max-5-albums > .albums {
    --auto-grid-max-columns: 5;
}

.album-card {
    background-color: white;
    box-shadow: var(--shadow-neutral-md);
    border-radius: 2px;
    overflow: hidden;
    padding: var(--space-2);
    text-align: left;
    transform: rotate(1deg);
    transition: all 0.2s ease-in-out;
}
.album-card:nth-child(3n+1) {
    transform: rotate(-2deg);
    text-align: center;
}
.album-card:nth-child(3n+2) {
    transform: rotate(2deg);
    text-align: right;
}

.album-card-link {
    text-decoration: none;
}

.album-card-title {
    color: var(--secondary-dark);
    font-family: 'font-primary';
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
    padding: var(--space-4) var(--space-2);
}

.album-card img {
    border-radius: 2px;
    width: 100%;
}

.album-card:hover {
    box-shadow: var(--shadow-neutral-xl);
    transform: rotate(0deg);
}


/* -------------------------------------------------------------------------- */
/* MARK: Album Images
*/

.album-images {
    --auto-grid-min-size: 12.5rem; --auto-grid-max-columns: 4; --auto-grid-gap: var(--space-4);
    max-width: 100%;
}

.album-image-link {
    background-color: white;
    border-radius: 2px;
    box-shadow: var(--shadow-neutral-md);
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    padding: var(--space-2) var(--space-2) var(--space-8) var(--space-2);
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    transform: rotate(1deg);
    z-index: 1;
}

.album-image-link.has-caption {
    padding-bottom: var(--space-2);
}

.album-image-caption {
    line-height: 1.2;
    font-size: var(--text-base);
    font-style: italic;
    padding: 0 var(--space-2);
    color: var(--secondary-dark);
    transform: rotate(1deg);
}

.polaroids-block {
    width: 100%;
}

.polaroids-block .album-image-caption {
    font-size: var(--text-lg);
    padding: var(--space-2);
}

.polaroids-block .album-image-link {
    cursor: pointer;
}

.album-image {
    filter: brightness(0.9);
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.album-image-link:nth-child(3n+1) {
    transform: rotate(-2deg);
}
.album-image-link:nth-child(3n+2) {
    transform: rotate(2deg);
}

.album-image-link:hover {
    box-shadow: var(--shadow-neutral-xl);
    transform: rotate(0deg);
    z-index: 5;
}

.album-image-link:hover .album-image {
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

/* -------------------------------------------------------------------------- */
/* MARK: Video Block
*/

.video__wrap {
    border-radius: var(--radius-base);
    overflow: hidden;
}


/* -------------------------------------------------------------------------- */
/* MARK: Image Block
*/

.block-image-figure img {
    border-radius: var(--radius-md);
}

/* -------------------------------------------------------------------------- */
/* MARK: Polaroids Block
*/

.polaroids {
    list-style: none;
    padding: 0;
}

.polaroid-link {
    display: block;
    border: 1px solid red;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* MARK: Wild Site
*/

.wild-site {
    /* background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-neutral-md);
    padding: var(--space-6); */
}

.wild-site h2 {
    text-align: center;
}

.wild-site .illustration {
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    max-width: calc(2 * var(--space-8));
    margin-inline: auto;
}

.wild-site .block-image-figure img {
    border-radius: var(--radius-xs);
}

/* -------------------------------------------------------------------------- */
/* MARK: Gallery Block
*/

.gallery__ul {
    --galleryGap: var(--space-6);
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--galleryGap);
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.gallery__li {
    /* default to 1 per row, mobile-first stylez */
    --itemsPerRow: 1;
    --itemWidth: calc(100% / var(--itemsPerRow));
    --itemGap: calc(( var(--galleryGap) * (var(--itemsPerRow) - 1) / var(--itemsPerRow) ));
    width: calc( var(--itemWidth) - var(--itemGap));
}

.gallery__ul.count-3 .gallery__li {
    --itemsPerRow: 1;
}

.gallery__img {
    border-radius: var(--radius-xs);
}

/* -------------------------------------------------------------------------- */
/* MARK: Forms
*/

.uniform__potty {
    position: absolute;
    left: -9999px;
}

.uniform-errors {
    background-color: rgb(255, 233, 237);
    border: 1px solid rgb(255, 189, 189);
    border-radius: var(--radius-xs);
    padding: var(--space-3);
}

.rtbform label {
    display: block;
    margin-bottom: calc(var(--space-1) * 0.5);
}

.rtbform {
    display: grid;
    gap: var(--space-2);
}

.rtbform > .row:last-of-type {
    margin-top: var(--space-4);
}

.rtbform > header {
    margin-bottom: var(--space-4);
}

.rtbform input:not([type="submit"]),
.rtbform textarea {
    -webkit-appearance: none;
    appearance: none;
    background: var(--white);
    border-radius: var(--radius-xs);
    border: 1px solid var(--neutral-light);
    display: block;
    font-family: 'font-primary';
    font-weight: 400;
    font-size: var(--text-base);
    height: auto;
    line-height: 1.5;
    margin: 0;
    padding: var(--space-1) var(--space-2);
    width: 100%;
    box-shadow: none;
}
.rtbform textarea {
    min-height: var(--space-10);
}

.rtbform .uniform__captcha {
    max-width: 20rem;
}

.rtbform input::placeholder,
.rtbform textarea::placeholder {
    color: var(--neutral-light);
}

.rtbform input[type="submit"] {
    display: block;
    max-width: 50%;
}

/* -------------------------------------------------------------------------- */
/* MARK: Footer CTA
*/

.footer-cta {
    background: linear-gradient(180deg, rgba(247,241,234,1) 0%, rgba(255,255,255,1) 100%); 
    padding: var(--space-10) var(--gutter) calc(var(--space-8) * 4) var(--gutter);
    position: relative;
    text-align: center;
}

.footer-cta-title {
    max-width: 20ch;
    margin: 0 auto;
}

.footer-cta-logo {
    margin: 0 auto;
    min-width: 7rem;
}

.footer-cta-logo > svg {
    fill: var(--neutral-dark);
}

.footer-cta-btns {
    gap: var(--space-1);
    align-items: center;
    padding-top: var(--space-2);
}

.footer-trees {
    fill: var(--primary-dark);
    position: absolute;
    left: 0; right: 0; bottom: -2px;
}

/* -------------------------------------------------------------------------- */
/* MARK: Footer
*/

.footer {
    background: linear-gradient(180deg, rgba(47,76,49,1) 0%, rgba(73,119,76,1) 100%); 
    color: #fff;
    padding: var(--space-8) var(--gutter) 0 var(--gutter);
}

.footer a {
    color: #fff;
}

footer h3 {
    color: var(--primary-mid);
    margin-bottom: var(--space-2);
}

.footer-logo {
    margin-top: var(--space-4);
}

.footer-logo > svg {
    fill: var(--primary-dark);
    width: 100%;
    opacity: 0.25;
}

.footer-nav ul, .footer-contact ul {
    padding: 0;
}

.footer .search-form {
    max-width: 30rem;
}

.footer input[type="search"] {
    background-color: var(--primary-bg);
    border-color: var(--primary-dark);
    border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.footer input[type="search"]:focus {
    background-color: white;
    border-color: var(--primary-dark);
}
.footer input[type="submit"] {
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    justify-content: start;
    margin-top: var(--space-2);
}

.footer-social a {
    background: var(--primary-dark);
    border-radius: var(--radius-xs);
    display: block;
    padding: 4px;
}

.footer-social svg {
    fill: var(--primary-light);
    width: var(--space-7);
}

.footer-social a:hover svg {
    fill: var(--white);
}

/* -------------------------------------------------------------------------- */
/* MARK: Search Modal
*/

.search-modal {
    cursor: zoom-out;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000ee;
}
.search-modal-content {
    cursor: default;
    background-color: var(--neutral-bg);
    border-radius: 0;
    margin: auto;
    padding: var(--space-4);
    position: relative;
    width: 40%;
    min-width: 18.75rem;
    max-width: 37.5rem;
}
.search-close {
    background-color: var(--neutral-light);
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    color: var(--neutral);
    font-size: 30px;
    height: 30px;
    width: 30px;
    font-weight: bold;
    line-height: 28px;
    cursor: pointer;
    text-align: center;
    border-radius: 0;
}
.modal-hidden {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* MARK: Search Forms
*/

.search-form {
    display: flex;
    gap: 2px;
    justify-content: start;
    width: 100%;
}
.search-form-text {
    width: 80%;
    font-size: var(--text-md);
}
.search-form-btn {
    width: 20% !important;
    padding-left: 0; padding-right: 0;
}

.footer-search-wrap .search-form-text {
    font-size: var(--text-base) !important;
}

.results-ul {
    margin-top: var(--space-4);
}


/* -------------------------------------------------------------------------- */
/* MARK: Helpers
*/

#top-link	{
	background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--neutral-dark);
	border-radius: 0;
	bottom: var(--space-1);
	color: #fff;
	display: none;
	height: 40px;
	line-height: 1 !important;
	padding: 10px;
	position: fixed;
	right: var(--space-4);
	text-decoration: none;
	transition: background-color 0.3s ease-in-out;
	width: 40px;
	z-index: 100;
}

#top-link:hover	{
	background-color: rgba(0,0,0,0.9);
}

.trim > :first-child    { margin-top: 0; }
.trim > :last-child     { margin-bottom: 0; }

.screen-reader-text     { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }