
:root {
    --light-color: #81bffe;
    --dark-color: #0165ce;
    --dark-grey: #353535;
    --light-grey: #585858;
    --default-margin: 5px;
    --default-margin-2x: calc(var(--default-margin) * 2);
    --default-margin-3x: calc(var(--default-margin) * 3);
}

@media (max-width: 767px) {
    :root {
        --default-margin: 3px;
    }
}

/* ===== GLOBAL ===== */
html, body {
    background: var(--dark-grey);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    margin: 0;
}

/* ===== MOBILE: offset body for fixed navbar ===== */
@media (max-width: 991px) {
    body {
        background: var(--light-grey);
        padding-top: 50px;
    }
}

/* ===== MOBILE NAVBAR ===== */
#mobile-navbar {
    background-color: #000000;
    border-bottom: 1px solid var(--light-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0;
    min-height: 50px;
    margin-bottom: 0;
}

#mobile-navbar .navbar-brand {
    color: var(--light-color);
    font-size: 18px;
    line-height: 20px;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    padding: 15px;
}

#mobile-navbar .navbar-toggler {
    border-color: var(--light-color);
    border-radius: 4px;
    padding: 9px 10px;
    margin-left: 0;
}

#mobile-navbar .navbar-toggler:focus {
    box-shadow: none;
}

#mobile-navbar .navbar-toggler:hover {
    background-color: var(--dark-color);
}

#mobile-navbar .toggler-icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: rgba(255, 255, 255, 0.85);
}

#mobile-navbar .toggler-icon-bar + .toggler-icon-bar {
    margin-top: 4px;
}

#mobile-navbar .navbar-collapse {
    background-color: #000000;
    padding: 0;
}

#mobile-navbar .navbar-nav {
    margin-top: 7.5px;
}

#mobile-navbar .nav-link {
    color: var(--light-color) !important;
    font-weight: bold;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 15px;
}

#mobile-navbar .nav-link:hover,
#mobile-navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: var(--dark-color);
}

#mobile-navbar .dropdown-menu {
    background-color: var(--dark-grey);
    border: 1px solid var(--dark-color);
    border-radius: 0;
    margin: 0;
    padding: 5px 0;
}

#mobile-navbar .dropdown-item {
    color: var(--light-color);
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    padding: 5px 15px 5px 25px;
    font-family: Arial, Helvetica, sans-serif;
}

#mobile-navbar .dropdown-item:hover,
#mobile-navbar .dropdown-item:focus {
    background-color: var(--dark-color);
    color: #ffffff;
}

#mobile-navbar .container-fluid {
    justify-content: flex-start !important;
}

/* ===== DESKTOP CONTAINER ===== */
#main-wrap {
    width: 1200px;
    max-width: 1200px;
    padding-left: 0;
    padding-right: 0;
    background-color: var(--light-grey);
    border: none;
}

/* ===== HEADER ===== */
#header_top {
    height: 30px;
    background: #000 url('/images/banner/lake_top.jpg') right no-repeat;
}

#header {
    height: 85px;
    background: #000 url('/images/banner/lake_mid.jpg') right no-repeat;
    padding: 0 10px 5px 10px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

#header h1 {
    margin: 0;
    font-size: 250%;
}

#header a {
    color: #ffffff;
    text-decoration: none;
}

#header small {
    color: var(--light-color);
    font-size: 14px;
    font-weight: bold;
}

/* ===== ROW ===== */
.row.g-0 {
    margin-left: 0;
    margin-right: 0;
}

/* Outer sidebar+content row only (inner photo-grid rows are plain .row.g-0) */
.row.g-0.align-items-start {
    margin: var(--default-margin-2x);
    gap: var(--default-margin-2x);
}

/* ===== DESKTOP SIDEBAR ===== */
#sidebar {
    width: 130px;
    min-width: 130px;
    flex: 0 0 130px;
    background-color: var(--light-grey);
    font-size: 12px;
    font-weight: bold;
}

/* ===== MENU ===== */
#menu p {
    margin: 0;
    padding: 2px 3px;
    background-color: #000;
    font-weight: bold;
    color: #ffffff;
    text-align: left;
}

#menu a {
    display: block;
    margin-top: 2px;
    padding: 2px 3px;
    color: var(--light-color);
    background-color: var(--dark-grey);
    font-weight: bold;
    text-decoration: none;
}

#menu a:hover {
    background-color: var(--dark-color);
    color: #ffffff;
}

/* ===== MAIN CONTENT ===== */
#content {
    flex: 1;
    min-width: 0;
    background-color: var(--light-grey);
    min-height: 580px;
}

h2 {
    margin: 0;
    background-color: #000;
    padding: 5px 10px;
    font-size: 12pt;
    font-weight: bold;
    color: #ffffff;
}

@media (max-width: 991px) {
    h2 {
        text-align: center;
    }
}

h1 {
    color: #428986;
    font-size: 18pt;
    font-weight: bold;
    padding: 0 0 5px 0;
    margin: 0 0 5px 0;
}

h3 {
    font-size: 125%;
    font-weight: bold;
}

h4 {
    color: var(--light-color);
    padding: 0;
    margin: 0;
    font-weight: bold;
    font-size: 100%;
}

strong {
    color: var(--light-color);
    font-weight: bold;
}



a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

.row.g-0 img {
    border: 1px solid var(--light-grey);
    padding: 2px;
    background: var(--dark-grey);
    margin-top: 5px;
    margin-bottom: 5px;
}

.row.g-0 p {
    text-align: center;
    margin: 0;
    color: #C0C0C0;
}

/* ===== FOOTER ===== */
#footer {
    margin: 0 !important;
    padding: 0 var(--default-margin-2x) var(--default-margin) var(--default-margin-2x) !important;
    clear: both;
    color: #ffffff;
    font-size: 85%;
    font-weight: bold;
    text-align: center;
    border-top: 2px solid var(--light-color);
    width: 100%;
    background: var(--light-grey);
}

#footer a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: bold;
}

#footer a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    #footer {
        text-align: center;
        border-top: 2px solid var(--light-color);
    }
}

/* ===== CONTENT CLASSES ===== */
.results td {
    margin: 0;
    padding: 0;
    border: 1px solid var(--dark-grey);
    width: 190px;
}

.comments {
    color: #C0C0C0;
}

.comments h4 {
    border-top: 1px solid var(--light-color);
    color: #ffffff;
    padding: 10px 0 0 0;
    margin: 0 0 10px 0;
    font-size: 100%;
    font-weight: normal;
}

.comments p {
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    color: #C0C0C0;
}

.biog {
    margin: var(--default-margin) 0 0 0 !important;
    padding: var(--default-margin) var(--default-margin-2x) !important;
    background-color: var(--dark-grey);
    color: #C0C0C0;
    text-align: left !important;
}

.biog p {
    font-size: 100% !important;
    margin: 0 0 10px 0 !important;
    text-align: left !important;
}

.biog h3 {
    color: var(--light-color);
}

.biog_thumbnail {
    border: 1px solid #C0C0C0;
    padding: 5px;
    float: right;
    width: 200px;
    text-align: center;
    margin: 0 0 var(--default-margin-2x) var(--default-margin-2x);
    clear: right;
    background-color: var(--dark-grey);
}

.biog_thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.biog_thumbnail p {
    margin: 0 !important;
    padding: 0;
    color: #ffffff !important;
    font-size: 90% !important;
    line-height: 1.2;
    text-align: center !important;
}

.thumbnail, .main_thumbnail {
    border: 1px solid var(--light-grey);
    padding: 2px;
    float: left;
    min-width: 193px;
    min-height: 130px;
    text-align: center;
    margin: 3px;
}

.thumbnail {
    min-height: 180px;
}

.thumbnail p, .main_thumbnail p {
    text-align: center;
    margin: 0;
    color: #C0C0C0;
}

.thumbnail img, .main_thumbnail img {
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline;
}

img {
    border: none;
}

.box {
    border: 1px solid #C0C0C0;
    padding: 2px;
    max-width: 400px;
    min-height: 100px;
    margin: auto;
}

.box p {
    text-align: center !important;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
    #main-wrap {
        width: 100%;
        max-width: 100%;
        border: none;
        background-color: var(--light-grey);
    }

    #content {
        min-height: auto;
    }

    .row.g-0 {
        flex-wrap: wrap;
    }
}

/* ===== IMAGE GRID ===== */
.row.g-0 > div {
    padding: var(--default-margin);
    text-align: center;
}

/* Row edges flush without breaking column-width uniformity: keep every
   column's padding equal (so squares stay equal size), and instead pull
   the row itself out by that same amount so it cancels at the outer edge. */
#content .row.g-0 {
    padding-top: var(--default-margin);
    margin-left: calc(-1 * var(--default-margin));
    margin-right: calc(-1 * var(--default-margin));
}

/* 1. Square "stage": only the image link is clickable, caption (which may hold its
      own link, e.g. a map link) sits alongside it, not nested inside it */
#content .row.g-0 .grid-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: var(--dark-grey);
    border: 0;
    margin: 0;
    overflow: hidden;
}

/* The inner link wraps only the image; give it the box's full size so the
   image's max-height/max-width: 100% resolve against a definite height */
#content .row.g-0 .grid-box > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#content .row.g-0 .grid-box p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: var(--default-margin-2x) var(--default-margin);
    line-height: 12px;
}

#content .row.g-0 .grid-box p a {
    font-weight: normal;
}

#content .row.g-0 .grid-box.portrait p {
    left: auto;
    top: 0;
    bottom: 0;
    padding: var(--default-margin) var(--default-margin-2x);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* 2. Apply "Shrink to Fit" to the images */
#content .row.g-0 img {
    max-height: 100%;          /* Shrinks tall images to fit the 160px height */
    max-width: 100%;           /* Shrinks wide images to fit the column width */
    width: auto;               /* Maintains aspect ratio */
    height: auto;              /* Maintains aspect ratio */
    box-sizing: border-box;    /* So the % padding below is reserved as mount space, not added on top */
    padding: 8%;               /* Scales with the slide's own size, like a slide mount */
    margin: 0;
    border: none !important;   /* We moved the border to the 'a' tag container */
    background: none !important;
}

/* 3. Keep captions aligned */
#content .row.g-0 p {
    text-align: center;
    margin: 0;
    color: #C0C0C0;
    font-size: 11px;
}

/* This forces the image to fill the 170px box and crop the top/bottom */
#content .row.g-0 > div a.glightbox img.zoom-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* This is the magic: it zooms and crops instead of shrinking */
    object-position: center; /* Keeps the center of the photo visible */
    max-height: none;    /* Overrides your fit-to-stage rule */
    max-width: none;
    padding: 0;          /* Usually looks better without the 2px gap when filling */
}
