:root {
    /* Colors */
    --accent: 3, 181, 210;
    --accent-solid: rgb(3, 181, 210);
    --menu: #012d35;
    --menu-rgb: 37, 35, 41;
    --headfoot: #012d35;
    --text-dark: #666;
    --text-light: white;
    --menu-bg: #012d35;
    --outside-body: #131216;
    --main-bg: #fdfdfd;
    --sidebar-bg: #f2f2f2;
    --table-fill: #eee;
    --light-grey: #ddd;

    /* Layout */
    --page-padding: 40px;
    --max-width: 1600px;

    /* Typography */
    --h1-size: 16pt;
    --h2-scale: 0.85;
    --h3-scale: 0.85;
    --body-size: 10.5pt;

    /* Transitions */
    --transition-fast: 0.25s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
}

/* ========================================
   BASE STYLES
======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background: var(--outside-body);
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    color: var(--text-dark);
    font-size: var(--body-size);
    line-height: 1.5;
    background-image: url("../img/other/wallpaper.jpg");
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: bold;
    padding: 0.5em 0;
}

h1 {
    font-size: var(--h1-size);
    color: var(--text-light);
}

h2 {
    font-size: calc(var(--h1-size) * var(--h2-scale));
}

h3 {
    font-size: calc(var(--h1-size) * var(--h2-scale) * var(--h3-scale));
}

a {
    color: var(--accent-solid);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Utility Classes */
.text-dark {
    color: var(--text-dark);
}

.text-light {
    color: var(--text-light);
}

.text-accent {
    color: var(--accent-solid);
}

form, input, textarea {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: calc(var(--body-size) * 0.9);
}

/* ========================================
   LAYOUT
======================================== */

.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    background-color: white;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
}

.col-1 {
    padding: 10px 5px 20px var(--page-padding);
}

.col-2 {
    padding: 10px 15px 20px 15px;
    display: flex;
    flex-direction: column;
}

.col-3 {
    padding: 10px var(--page-padding) 20px 5px;
}

/* ========================================
   HEADER
======================================== */

header {
    background: var(--headfoot) url(../img/other/wallpaper-header.jpg) no-repeat;
    height: 120px;
    padding: 0 var(--page-padding);
    color: var(--accent-solid);
    flex-shrink: 0;
}

.logo,
.slogan {
    padding: 10px 0;
    height: 95%;
    display: flex;
    justify-content: space-between;
}

.logo {
    float: left;
}

.slogan {
    float: right;
}

/* ========================================
   MAIN CONTENT
======================================== */

main {
    flex: 1;
    display: flex;
    flex-direction: row;
    background: var(--main-bg);
    color: var(--text-dark);
    line-height: 16pt;
}

main a {
    color: rgb(var(--accent), 1);
    transition: all 0.3s ease;
}

main a:hover {
    color: rgb(var(--text-dark), 1);
}

/* Article (Like Main but with content only, no sidebar) */
article {
    flex: 1;
    padding: var(--page-padding);
    background: var(--main-bg);
    line-height: 16pt;
}

article a {
    color: rgb(var(--accent), 1);
    transition: all 0.3s ease;
}

article a:hover {
    color: var(--text-dark);
}

/* Primary content */
.content {
    display: flex;
    width: 67%;
    padding: var(--page-padding);
    flex-direction: column;
}

aside.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: 33%;
    padding: var(--page-padding);
    background-color: var(--sidebar-bg);
    line-height: 16pt;
}

.main p,
.content p,
article p {
    margin-bottom: 10px;
}

.content h2 {
    padding-top: 25px;
}

.list {
    display: list-item;
    margin-left: 1em;
    padding-bottom: 0.4rem;
}

/* Drop Cap */
.dropcap {
    margin: 5px 7px -3px -3px;
    text-transform: uppercase;
    float: left;
    font-size: 42px;
    line-height: 36px;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
}

.dropcap_accent {
    margin: 8px 7px 5px -3px;
    text-transform: uppercase;
    float: left;
    font-size: 62px;
    line-height: 36px;
    font-weight: 800;
    text-align: center;
    color: var(--accent-solid);
}

/* Blockquote */
blockquote {
    margin: 20px 0;
    position: relative;
    right: 0;
    float: right;
}

blockquote::before {
    content: "";
    display: block;
    width: 34px;
    height: 22px;
    position: absolute;
    left: 0;
    top: 4px;
    background: url(../img/other/frame_buttons_blue.png) no-repeat -80px -40px;
}

blockquote p,
blockquote div {
    padding-left: 49px;
    font-style: italic;
    color: var(--accent-solid);
}

/* Images */
.image {
    width: 99%;
    padding: 20px 0;
}

.portrait1,
.portrait2 {
    border: 1px solid var(--text-dark);
    height: 400px;
}

.portrait1 {
    float: right;
    margin: 4px 20px 20px 30px;
}

.portrait2 {
    float: left;
    margin: 0 30px 20px 0;
}

/* Tables */
.table {
    text-align: center;
    color: #fff;
    line-height: 15pt;
    background-color: rgba(var(--accent), 0.75);
    padding: 8px;
}

.table-data {
    background-color: var(--table-fill);
    color: #888;
    line-height: 15pt;
    text-align: center;
}

.results-bar,
.results-bar2 {
    background-color: var(--accent-solid);
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    height: 40px;
    z-index: 1000;
    padding: 0 var(--page-padding);
}

.results-bar {
    margin: auto calc(-1 * var(--page-padding)) calc(-1 * var(--page-padding));
}

.results-bar2 {
    width: 100%;
}

.results-bar a,
.results-bar2 a {
    color: var(--text-light);
    transition: color var(--transition-slow);
}

.results-bar a:hover,
.results-bar2 a:hover {
    color: var(--text-dark);
}

.page404 {
	background: url(/img/other/404.png) no-repeat;
	position: relative;
	right: 0;
	bottom: 0
}

.page410 {
	background: url(/img/other/410.png) no-repeat;
	position: relative;
	right: 0;
	bottom: 0
}

/* ========================================
   FOOTER
======================================== */

footer {
    background: var(--headfoot);
    color: #aabbcb;
    flex-shrink: 0;
    display: flex;
    align-items: top;
    z-index: 4;
}

footer p {
    font-size: 9pt;
}

footer a {
    color: var(--accent-solid);
    transition: color var(--transition-medium);
}

footer a:hover {
    color: var(--text-light);
}

/* Social Icons */
[class^="social-"] {
    margin: 25px 0 0 0;
    width: 40px;
    height: 40px;
    display: inline-block;
    transition: opacity 0.4s;
    opacity: 0.5;
    background: url(../img/other/icons_social.png) no-repeat;
}

[class^="social-"]:hover {
    opacity: 1;
}

.social-bs {
    background-position: 0 0;
}

.social-vi {
    background-position: -40px 0;
}

.social-as {
    background-position: -80px 0;
}

.social-li {
    background-position: -120px 0;
}

.social-rb {
    background-position: -160px 0;
}

.social-yt {
    background-position: -200px 0;
}

/* ========================================
   ACCORDION
======================================== */

.accordion-item {
    border-bottom: 1px solid var(--main-bg);
}

.accordion-item button[aria-expanded="true"] {
    border-bottom: 1px solid rgba(var(--accent), 0.25);
}

.accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 0.3em 0;
    color: #7288a2;
    font-size: 1.15rem;
    font-weight: 400;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color var(--transition-medium);
}

.accordion button:hover,
.accordion button:focus {
    color: var(--accent-solid);
}

.accordion button:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 4px;
}

.accordion-title {
    padding: 0.5em 1.5em 1em 0;
    display: inline-block;
}

/* Plus/Minus Icon */
.icon {
    display: inline-block;
    position: absolute;
    top: 18px;
    right: 0;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.icon::before,
.icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.icon::before {
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
}

.icon::after {
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
}

button[aria-expanded="true"] {
    color: var(--accent-solid);
}

button[aria-expanded="true"] .icon::after {
    width: 0;
}

/* Content Animation */
.accordion-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.accordion-content p {
    font-size: 1rem;
    font-weight: 300;
    margin: 1em 0;
}

.accordion-content p a {
    color: var(--accent-solid);
}

button[aria-expanded="true"]+.accordion-content {
    opacity: 1;
    max-height: 5000px;
    /* Much larger to accommodate tables */
    margin: 10px 20px 10px 0;
    transition: max-height 0.6s ease-in-out, opacity 0.4s ease;
}

/* ========================================
   MOBILE MENU
======================================== */

.menu-mobile {
    display: none;
}

@media (max-width: 900px) {
    .menu-full {
        display: none;
    }

    .menu-mobile {
        display: block;
        position: relative;
    }

    /* Hamburger */
    .hamburger {
        position: relative;
        margin-right: -15px;
        width: 70px;
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 10000;
    }

    .hamburger span {
        width: 40%;
        height: 3px;
        background: var(--accent-solid);
        margin: 2px 0;
        transition: all 0.4s ease;
        transform-origin: center;
        display: block;
    }

    .mobile-input {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-input:checked+.hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(0, 10px);
    }

    .mobile-input:checked+.hamburger span:nth-child(2) {
        opacity: 0;
    }

    .mobile-input:checked+.hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(0, -10px);
    }

    /* Overlay */
    .mobile-overlay {
        position: fixed;
        inset: 0;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.95);
        opacity: 0;
        transform: translateX(-105%);
        transition: transform 0.6s cubic-bezier(0.25, 1.5, 0.5, 1),
            opacity 0.6s ease;
        z-index: 9999;
    }

    /* make the list flow in the overlay, not absolutely centered */
    .mobile-overlay .mobile-list {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        list-style: none;
        text-align: center;
        padding: 2em 1em;
        /* space but allow scrolling */
        margin: 0 auto;
        max-width: 92%;
    }

    .mobile-overlay .mobile-list li {
        margin: 0.6em 0;
        /* tighter spacing */
    }

    .mobile-overlay .mobile-list a,
    .mobile-overlay .submenu-label {
        color: #fff;
        font-size: 5vmin;
        text-decoration: none;
        transition: color var(--transition-fast);
        cursor: pointer;
        display: inline-block;
        margin: 5px 0;
    }

    .mobile-overlay.active {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-overlay.closing {
        opacity: 0;
        transform: translateX(-105%);
        transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.74, 0.05),
            opacity 0.6s ease;
    }

    .mobile-overlay .submenu li a {
        font-size: 3vmin;
        display: block;
        margin-top: 0.25em;
    }

    /* Menu List */
    .mobile-list {
        position: relative;
        /* instead of absolute */
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        padding: 2em 0;
    }

    @keyframes textBounceIn {
        0% {
            transform: translate(-50%, -60%) scale(0.95);
            opacity: 0;
        }

        60% {
            transform: translate(-50%, -48%) scale(1.05);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -50%) scale(1);
        }
    }

    .mobile-list li {
        margin: 1em 0;
        /* ↓ reduced from 2.5em */
    }

    .mobile-list a,
    .submenu-label {
        color: #fff;
        font-size: 5vmin;
        /* ↓ reduced from 7vmin */
        text-decoration: none;
        transition: color var(--transition-fast);
        cursor: pointer;
        display: inline-block;
        margin: 5px 0;
        /* ↓ reduced vertical space */
    }

    .current-menu-item {
        color: var(--accent-solid);
    }

    .mobile-list a:hover,
    .submenu-label:hover {
        color: var(--accent-solid);
        animation: textBounce 0.5s ease;
    }

    @keyframes textBounce {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }
    }

    /* Submenu */
    .submenu {
        list-style: none;
        max-height: 0;
        line-height: 30px;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .submenu-toggle {
        display: none;
    }

    .submenu-toggle:checked+.submenu-label+.submenu {
        max-height: 500px;
    }

    /* Submenu links smaller and tighter */
    .submenu li a {
        font-size: 4.8vmin;
        /* ↓ slightly smaller for hierarchy */
        color: white;
        display: block;
        margin-top: 0.3em;
        /* ↓ reduced spacing */
        transition: color 0.25s ease;
    }

    /* Submenu hover */
    .submenu li a:hover,
    .submenu li a.current-menu-parent {
        color: rgb(var(--accent), 1);
    }
}

/* ========================================
   DESKTOP MENU
======================================== */

.menu-container {
    background: var(--menu);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 0 var(--page-padding);
    height: 35px;
}

.menu-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: none;
}

.menu-full {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: bolder;
    font-size: 10pt;
}

.menu-full>li {
    position: relative;
    margin: 0;
}

.menu-full a,
.dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 12px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.menu-full a.current-menu-parent,
.menu-full>li.current-menu-parent>a,
.menu-full .dropdown-content a.current-menu-parent {
    color: var(--accent-solid);
}

.menu-full a:hover,
.dropdown:hover .dropbtn {
    color: var(--accent-solid);
}

/* Dropdown */
.dropdown-content {
    position: absolute;
    top: 41px;
    left: 0;
    min-width: 140px;
    background: var(--menu-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: normal;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transition-delay: 0.25s;
}

.dropdown-content a {
    color: var(--text-light);    
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    background: var(--menu-bg);
    transition: background var(--transition-fast);
}

.dropdown-content a:hover {
    background-color: rgba(var(--accent), 0.1);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.menu-full a::after {
    content: "";
    display: block;
    height: 2px;
    background: transparent;
    transition: background var(--transition-fast);
}

.menu-full a:hover::after {
    background: var(--accent-solid);
}

/* ========================================
   SEARCH PAGE
======================================== */

.searchmatch {
    color: var(--accent-solid);
}

.searchdescr {
    height: 60px;
    overflow: hidden;
    line-height: 15pt;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.keywords {
    overflow: hidden;
    font-size: 9pt;
    height: 20px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.searchthumb {
    margin: 5px 25px 5px 0;
    float: left;
    width: 110px;
    height: 110px;
    border: 1px solid var(--accent-solid);
    overflow: hidden;
    display: inline-block;
}

.searchthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.searchthumb:hover img {
    transform: scale(1.2);
}

/* Search Button */
.search-button {
    padding: 8px 10px 10px 5px;
    margin-top: -12px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 0 10px 10px 0;
    background-color: var(--accent-solid);
    border: none;
    color: white;
    text-align: center;
    width: 90px;
    height: 35px;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.search-button:hover {
    width: 110px;
    color: var(--text-dark);
}

.search-button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Search Box */
input.searchbox {
    height: 35px;
    width: 100%;
    border-radius: 10px 0 0 10px;
    padding: 10px 2%;
    background-color: var(--sidebar-bg);
    margin: 8px 0 20px 0;
    color: #7f7f7f;
    border: 1px solid var(--light-grey);
    transition: background 0.3s ease-in-out;
}

input.searchbox:focus {
    background: rgba(var(--accent), 0.25);
    outline: none;
}

/* Radio Buttons */
input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #bbb;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-right: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background-color: var(--accent-solid);
}

hr {
    border: 1px solid var(--sidebar-bg);
    margin-bottom: 10px;
}

.results-bar {
    background-color: rgb(var(--accent), 1);
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    padding: 5px var(--page-padding) 5px var(--page-padding);
    margin: auto calc(-1 * var(--page-padding)) calc(-1 * var(--page-padding)) calc(-1 * var(--page-padding));
    height: 30px;
}

.results-bar a {
    color: var(--text-light);
    transition: all 0.5s ease;
}

.results-bar a:hover {
    color: var(--text-dark);
}

/* ========================================
   HOME PAGE (index.php)
======================================== */

/* Slideshow */
#slideshow {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#slideshow div {
    position: absolute;
    z-index: 2;
    width: 105%;
    height: 105%;
    top: -5%;
    left: -5%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 3s, transform 8s;
    transform-origin: bottom left;
}

#slideshow div:nth-of-type(2n + 1) {
    transform-origin: top right;
}

#slideshow div:nth-of-type(3n + 1) {
    transform-origin: top left;
}

#slideshow div:nth-of-type(4n + 1) {
    transform-origin: bottom right;
}

#slideshow .fx:first-child+span+div~div,
#slideshow .fx1 {
    z-index: 1;
}

#slideshow .fx,
#slideshow .fx1 {
    transform: scale(1.35) translate(2.5%);
    opacity: 1;
}

/* Captions */
#slideshow span {
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
    display: inline-block;
    padding: 2% 3%;
    margin: 5%;
    color: transparent;
    border-radius: 25px;
}

#slideshow .fx:first-child+span+div~div+span,
#slideshow .fx1+span {
    z-index: 1;
}

#slideshow .fx+span,
#slideshow .fx1+span {
    background: rgba(var(--accent), 0.7);
    color: var(--text-light);
    font-weight: bold;
    font-size: 12pt;
    animation: caption 5s 1s both;
}

@keyframes caption {
    0% {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    20% {
        opacity: 1;
        transform: none;
    }

    70% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: translate3d(-500%, 0, 0);
    }
}

/* Welcome Blurb */
.welcome-blurb-overlay {
    z-index: 3;
    position: absolute;
    top: 155px;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--max-width);
    padding: 15px 40px 25px 40px;
    background-color: rgba(var(--menu-rgb), 0.3);
    overflow-y: auto;
}

.welcome-blurb-text {
    padding-top: 20px;
    color: var(--text-light);
    text-shadow: 4px 4px 8px #000;
    line-height: 15pt;
    column-count: 2;
    text-align: left;
    width: 500px;
}

/* ========================================
   GALLERY PAGE
======================================== */

.grid {
    column-count: 5;
    column-gap: 5px;
}

.grid-item {
    position: relative;
    background-color: var(--sidebar-bg);
    margin-bottom: 5px;
    border-radius: 6px;
    overflow: hidden;
    break-inside: avoid;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-medium);
    border: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(var(--accent), 0.85);
    opacity: 0;
    transition: all var(--transition-medium);
    color: white;
    font-weight: bold;
}

.overlay h3 {
    text-align: center;
    margin-top: 10px;
    transform: scale(1.05);
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item:hover .overlay {
    opacity: 1;
}

/* Thumbnail Row */
.thumb-row {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 5px;
}

.thumb-row img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    opacity: 0.5;
    transition: all 0.35s ease;
}

.thumb-row img:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Overlay Icons */
#icon_overlay_new {
    /* NEW icon */
    z-index: 9999;
    width: 35px;
    height: 17px;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.5;
    background: url(../img/other/sprites_blue.png) no-repeat 0 -78px;
}

#icon_overlay_vidR {
    /* Movie-clip icon right */
    z-index: 1;
    width: 35px;
    height: 17px;
    position: absolute;
    top: 10px;
    left: 55px;
    opacity: 0.5;
    background: url(../img/other/sprites_blue.png) no-repeat 0 -96px;
}

#icon_overlay_vidL {
    /* Movie-clip icon left */
    z-index: 1;
    width: 35px;
    height: 17px;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.5;
    background: url(../img/other/sprites_blue.png) no-repeat 0 -96px;
}

/* Welcome Message Modal */
#my-welcome-message {
    background-color: #131216;
    box-shadow: 0 0 10px #000001;
    display: none;
    z-index: 500;
    position: fixed;
    width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-49%, -49%);
}

/* Custom Checkbox */
.checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    transition: all 0.15s ease;
}

.checkbox:hover input~.checkmark {
    background-color: var(--sidebar-bg);
    transform: scale(1.25);
}

.checkbox input:checked~.checkmark {
    background-color: var(--headfoot);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox input:checked~.checkmark::after {
    display: block;
}

.checkbox .checkmark::after {
    left: 6px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Filter Bar */
.filterbar {
    background-color: rgba(var(--accent), 0.75);
    padding: 10px 20px;
    margin: 0;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 30px);
    gap: 0;
    width: 100%;
    max-width: var(--max-width);
}

.cell {
    height: 30px;
}

.prev-next {
    display: inline-block;
    padding: 3px 8px 0 8px;
    transition: var(--transition-slow);
    color: var(--text-light);
}

.prev-next:hover {
    color: var(--text-dark);
}

.results-bar2 {
    background-color: rgb(var(--accent), 1);
    display: flex;
    justify-content: space-between;
    /* push children to far left and right */
    width: 100%;
    vertical-align: middle;
    height: 30px;
    padding: 0px var(--page-padding) 10px var(--page-padding);
}

.results-bar2 a {
    color: var(--text-light);
    transition: all 0.5s ease;
}

.results-bar2 a:hover {
    color: var(--text-dark);
}

/* ========================================
   IMAGE PAGE
======================================== */

.image-main {
    max-width: 1600px;
    position: relative;
    align-content: center;
    background-color: var(--main-bg);
    padding: 0;
    margin-bottom: -14pt;
    max-height: 500px;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s;
}

.image-main img:hover {
    cursor: url("../img/other/icon_view.png"), auto;
}

.zoom-container {
    display: block;
    overflow: hidden;
    position: relative;
}

.zoom-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--transition-medium);
}

.zoom-container:hover img {
    transform: scale(1.1);
}

.prints {
    z-index: 5;
    position: absolute;
    left: 0;
    height: 150px;
    width: 150px;
    opacity: 0.85;
    background: url(../img/other/sprites_blue.png) no-repeat 0 -300px;
    transition: all 0.3s;
}

.prints:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tags {
    border-radius: 6px;
    background: rgba(var(--accent), 0.7);
    padding: 3px 7px;
    line-height: 30px;
    white-space: nowrap;
    margin: 0 2px;
    transition: all 0.3s;
}

.tags:hover {
    background: #2f2d34;
}

.tags a {
    color: var(--main-bg);
}

.ital {
    font-style: italic;
}

.related-thumb {
    margin: 0 5px 5px 0;
    width: 64px;
    height: 64px;
    border: 1px solid var(--accent-solid);
    overflow: hidden;
    display: inline-block;
    float: left;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.related-thumb:hover img {
    transform: scale(1.2);
}

/* ========================================
   CONTACT FORM
======================================== */

form {
    display: block;
    width: 100%;
    overflow: hidden;
}

.cf-turnstile-wrapper {
    text-align: left;
    margin-top: 10px;
}

.cf-turnstile {
    transform: scale(0.95);
    transform-origin: left;
    margin-top: 10px;
}

input.name,
input.email,
input.subject {
    border-radius: 10px;
    width: 31.8%;
    padding: 10px 1%;
    float: left;
    background-color: var(--sidebar-bg);
    margin: 5px 2% 5px 0;
    color: #7f7f7f;
    border: 1px solid var(--light-grey);
    transition: background 0.3s ease-in-out;
}

input.subject {
    width: 32%;
    margin-right: 0;
}

textarea.message {
    border-radius: 10px;
    width: 99.5%;
    padding: 10px 1%;
    height: 210px;
    background-color: var(--sidebar-bg);
    float: left;
    color: #7f7f7f;
    border: 1px solid var(--light-grey);
    transition: background 0.3s ease-in-out;
    margin: 5px 0 20px 0;
}

input.name:focus,
input.email:focus,
input.subject:focus,
textarea.message:focus {
    background: rgba(var(--accent), 0.25);
    outline: none;
}

.form-button {
    padding: 8px 10px 8px 5px;
    margin-top: 15px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 4px;
    background-color: var(--accent-solid);
    border: none;
    color: white;
    text-align: center;
    width: 80px;
    transition: all var(--transition-slow);
    cursor: pointer;
    float: left;
}

.form-button:hover {
    width: 110px;
    color: var(--text-dark);
}

.message_error {
    color: red;
    margin-top: 10px;
}

.message_success {
    color: var(--accent-solid);
    margin-top: 10px;
}

/* ========================================
   FANCYBOX OVERRIDES
======================================== */

.fancybox-caption__body {
    color: #fff;
}

.fancybox-content {
    border: 2px solid var(--accent-solid);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* 1200px */
@media (max-width: 1200px) {
    :root {
        --page-padding: 20px;
        --h1-size: 15pt;
    }

    .grid {
        column-count: 4;
    }

    .filterbar {
        grid-template-columns: repeat(4, 1fr);
    }

    header {
        height: 100px;
    }

    .welcome-blurb-overlay {
        padding: 35px 20px 25px 20px;
        top: 115px;
    }
}

/* 900px */
@media (min-width: 901px) {
    .hide-show {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --h1-size: 15pt;
    }

    .menu-full {
        display: none !important;
    }

    /* Force hide desktop menu */

    .dropcap_accent {
        margin: 0 7px 0 -3px;
        font-size: 40px;
        line-height: 36px;
    }

    .hide-show {
        display: flex;
    }

    .sidebar_mobile_menu {
        display: block;
        z-index: 10000;
    }

    .filterbar {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .grid {
        column-count: 3;
    }

    .content {
        width: 60%;
    }

    .sidebar {
        width: 40%;
    }

    .layout {
        grid-template-columns: 59% 41%;
        grid-template-rows: auto auto;
        grid-template-areas:
            "a b"
            "c b";
    }

    .col-1 {
        grid-area: a;
    }

    .col-2 {
        grid-area: b;
        padding-right: 25px;
    }

    .col-3 {
        grid-area: c;
        padding-left: var(--page-padding);
    }

    .prints {
        height: 75px;
        width: 75px;
        background-position: 0 -225px;
    }

    .portrait1,
    .portrait2 {
        height: 300px;
    }
    .portrait1 {
        margin-bottom: 10px;
        margin-left: 15px;
    }

    .portrait2 {
        margin-right: 20px;
        margin-bottom: 10px;
    }    
    
    .welcome-blurb-text {
    height: auto;
    line-height: 14pt;
    width: 100%;
}

    .welcome-blurb-overlay {
        padding: 15px 20px 25px 20px;
        top: 135px;
    }

    .searchthumb {
        margin: 5px 15px 5px 0;
    }
}

/* 700px */
@media (max-width: 700px) {
    :root {
        --h1-size: 14pt;
    }

    .welcome-blurb-overlay {
        padding: 15px 20px 25px 10px;
        top: 115px;
    }

    header {
        height: 80px;
    }

    .prints {
        height: 75px;
        width: 75px;
        background-position: 0 -225px;
    }

    .filterbar {
        grid-template-columns: repeat(2, 1fr);
    }

    main {
        flex-direction: column;
    }

    .content {
        width: 100%;
        flex: 0 0 auto;
    }

    .sidebar {
        width: 100%;
        margin-top: auto;
    }

    .grid {
        column-count: 2;
    }

    .results-bar {
        margin-top: auto;
    }

    .layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "a"
            "b"
            "c";
    }

    .col-1 {
        padding-bottom: 0;
        padding-right: 20px;
    }

    .col-3 {
        padding-bottom: 20px;
    }

    .col-2 {
        padding-left: var(--page-padding);
        padding-bottom: 20px;
    }
}

/* 550px */
@media (max-width: 550px) {

    .portrait1,
    .portrait2 {
        height: 200px;
    }

    blockquote {
        width: 350px;
    }

    .welcome-blurb-text {
        column-count: 1;
    }
}