html,
body {
    height: 100%;
}

@media (max-width: 1599px) {

    #g-container-main,
    .g-default-navigation {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0 !important;
    }
}

.g-content {
    padding: 0 !important;
}

@media (min-width: 768px) {
	.g-content {
		padding: 1rem !important;
	}
}

.item-content img {
	max-width: 50%;
}

.g-offcanvas-toggle {
    top: 1.5rem;
}

.clear-items>* {
    clear: both;
}

.list-spaced li {
    margin-bottom: 20px;
}

.g-main-nav li a,
.g-main-nav li span,
.g-offcanvas-toggle {
    color: #fff !important;
    font-size: 1rem !important;
}

.g-main-nav .g-selected li.g-menu-item:hover {
    background-color: #a31010;
}

@media (max-width: 767px) {
    .g-logo {
        margin-top: 2rem;
    }
}

h3 .icon {
    font-size: 1.5rem;
    margin-top: 1rem;
}

h2,
h3 {
    font-weight: normal;
    line-height: normal;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.2rem;
}
h5 {
	font-size: 1.1rem;
}

a.cb-popup {
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
}

body.cb-popup-in {
    overflow: hidden;
}

#cb-popup-box {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all .5s;
    cursor: pointer;
    /* iOS click event bugfix */
}

#cb-popup-box.in {
    background-color: #000;
}

#cb-popup-box .cb-popup-loading,
#cb-popup-box .cb-popup-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 0;
    height: 0;
    background-size: contain;
    transition: all .5s;
}

#cb-popup-box .cb-popup-loading {
    width: 20vw;
    height: 20vw;
    opacity: 0;
    transition: all .5s;
}

#cb-popup-box .cb-popup-inner {
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all .25s;
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
}

#cb-popup-box .cb-popup-inner.in,
#cb-popup-box.in .cb-popup-loading {
    opacity: 1;
}

.cb-popup-exif {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: rgba(0, 0, 0, .7);
    color: rgba(255, 105, 180, 1);
    text-shadow: 0 0 3px #000;
    -webkit-backface-visibility: hidden;
}

.cb-popup-exif a {
    color: rgba(255, 105, 180, 1);
    border-bottom: 1px dotted;
}

.cb-popup-exif-toggler,
.cb-popup-fs-toggler {
    display: none;
    position: absolute;
    left: 15px;
    top: 10px;
    padding: 10px;
    font-size: 24px;
    color: rgba(255, 105, 180, 1);
    opacity: .7;
    cursor: pointer;
    transition: opacity .3s;
}

.cb-popup-fs-toggler {
    left: auto;
    right: 30px;
    font-size: 1.3rem;
}

.cb-popup-exif-toggler:hover,
.cb-popup-fs-toggler:hover {
    opacity: 1;
}

.cb-bird-bar {
    display: flex;
    gap: 2px;
	margin-bottom: .5rem;
}

.cb-bird-segment {
    min-height: 1rem;
    background: #ddd;
    flex: auto;
	position: relative;
}

.cb-bird-segment.end {
	background: #bbb;
}

.cb-bird-segment.middle {
	background: #999;
}

.cb-bird-segment::after {
    font-size: .65rem;
    position: absolute;
    top: -0.95rem;
    left: 0;
}

.cb-bird-segment:nth-child(1)::after {
    content: 'Jan';
}

.cb-bird-segment:nth-child(5)::after {
    content: 'Feb';
}

.cb-bird-segment:nth-child(9)::after {
    content: 'Mar';
}

.cb-bird-segment:nth-child(13)::after {
    content: 'Apr';
}

.cb-bird-segment:nth-child(17)::after {
    content: 'May';
}

.cb-bird-segment:nth-child(21)::after {
    content: 'Jun';
}

.cb-bird-segment:nth-child(25)::after {
    content: 'Jul';
}

.cb-bird-segment:nth-child(29)::after {
    content: 'Aug';
}

.cb-bird-segment:nth-child(33)::after {
    content: 'Sep';
}

.cb-bird-segment:nth-child(37)::after {
    content: 'Oct';
}

.cb-bird-segment:nth-child(41)::after {
    content: 'Nov';
}

.cb-bird-segment:nth-child(45)::after {
    content: 'Dec';
}

.cb-bird-segment:nth-child(4n-3) {
    border-top: 2px solid black;
}

.cb-sighting-bar {
    position: relative;
    height: 4px;
    margin-top: 10px;
    margin-bottom: 30px;
    background: linear-gradient(to right, #7ab6ff 0%, #ff981c 50%, #7ab6ff 100%);
    opacity: .75;
}

.cb-sighting-dot {
    position: absolute;
    display: inline-block;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    background: darkred;
    opacity: .5;
    filter: blur(2px);
    transition: all .3s;
}

.cb-sighting-dot:hover {
    background: darkblue;
    opacity: 1;
    width: 12px;
    height: 12px;
    filter: blur(0);
}

.cb-sightings-toggle {
    opacity: .5;
    cursor: pointer;
    transition: opacity .3s;
}

.cb-sightings-toggle:hover {
    opacity: 1;
}

.photo-slider {
    margin-bottom: 35px;
}

.flickity-slider img {
    width: calc(99% / 2);
    margin-right: 1%;
    transition: opacity 0.4s;
    opacity: 0;
	cursor: zoom-in;
}

@media (min-width: 1195px) {
	.flickity-slider img {
		width:  calc(98% / 3);
	}
}

@media (min-width: 2595px) {
	.flickity-slider img {
		width:  calc(97% / 4);
	}
}

.flickity-slider .flickity-lazyloaded,
.flickity-slider .flickity-lazyerror {
    opacity: 1;
}

.index-section {
    padding-left: 20px;
    position: relative;
}

.index-section:before {
    content: attr(data-index);
    width: 16px;
    height: calc(100% - 4px);
    position: absolute;
    left: 0;
    text-align: center;
    background: #ddd;
    font-weight: bold;
}

.offscreen {
    position: absolute;
    left: -999em;
}

.jcemediabox-zoom-span {
    width: auto !important;
}

.jcemediabox-zoom-span img {
    padding: 4px !important;
    margin: 4px !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    transition: box-shadow 0.3s;
    max-width: 300px;
    /* IE10 */
}

.jcemediabox-zoom-span:hover img {
    box-shadow: 0 0 4px #777;
}

.jcemediabox-zoom-span img.plain-jce-thumb {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rt-article img[style*="float: right"],
.roktabs-container-wrapper img[style*="float: right"],
.rt-article .jcemediabox-zoom-span[style*="float: right"],
.roktabs-container-wrapper .jcemediabox-zoom-span[style*="float: right"] {
    margin: 0 0 5px 10px;
}

.rt-article img[style*="float: left"],
.roktabs-container-wrapper img[style*="float: left"],
.rt-article .jcemediabox-zoom-span[style*="float: left"],
.roktabs-container-wrapper .jcemediabox-zoom-span[style*="float: left"] {
    margin: 0 10px 5px 0;
}

span#jcemediabox-popup-numbers {
    margin: 0 30px;
}

span#jcemediabox-popup-numbers a {
    vertical-align: middle;
}

span#jcemediabox-popup-numbers a.active {
    border: 1px solid #aaa;
    border-radius: 12px;
}

.upgFlickrSuitePlugin-Photo-Shadow {
    transition: box-shadow 0.2s ease 0s;
}

.upgFlickrSuitePlugin-Photo-Shadow:hover {
    box-shadow: 1px 1px 8px #555555;
}

.cmp_buttons_container {
    float: right;
    clear: right;
}

#disqus_thread {
    margin-top: 20px;
}

.item-page.birds h3+p,
.cb-sighting-bar+p {
    margin-top: -15px;
}

.item-page.birds h3 {
	position: relative;
}

.item-page.birds h3 a {
    position: absolute;
    left: -1.9rem;
    top: -0.6rem;
    opacity: 0;
    transition: opacity .3s;
}

.item-page.birds h3:hover a {
    opacity: 1;
}

.item-page.birds .cb-popup {
    display: inline-block;
    width: 49%;
    background-image: url(/images/gears.svg);
    background-repeat: no-repeat;
    background-position: center center;
    height: 0;
    vertical-align: top;
    padding-bottom: 32.7%;
}

.item-page.birds .cb-popup img {
    width: 100%;
}

.bird-category-menu h5 {
    margin: 0;
    display: inline-block;
}

.bird-menu a,
.bird-category-menu a {
    display: inline-block;
    background: #ddd;
    padding: 0 4px;
    margin-bottom: 4px;
}

.bird-menu a:hover,
.bird-category-menu a:hover {
    background: #777;
    color: #fff;
}

.bird-menu br,
.bird-category-menu br {
    display: none;
}

.bird-category-menu h5 a,
.bird-category-menu h5 a:hover {
    background: none;
    padding: 0;
}

.bird-category-menu h5 a:hover {
    color: #777;
}

.embed {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media(min-width: 768px) {
    .bird-menu.stuck {
        position: fixed;
        display: block;
        box-sizing: border-box;
        top: 0;
        max-height: 100vh;
        overflow: auto;
        margin-top: 0;
        padding-top: 5px !important;
        z-index: 99;
    }

    .bird-menu-sibling.hidden {
        display: none;
    }
}
