body {
    background-color: black
}

h1 {
    font-size: 2.4em;
    font-weight: normal;
    margin-bottom: 20px
}

h2 {
    font-size: 1.8em
}

h3 {
    font-size: 1.6em
}

h4 {
    font-size: 1.2em;
    font-weight: normal;
    text-transform: uppercase
}

h5 {
    font-size: 1.1em
}

.alert h3 {
    margin-top: 0;
    line-height: 25px
}

.alert > p, .alert > ul {
    margin-bottom: 10px
}

#header {
    background-color: white
}

#content {
    color: #CCC
}

.btn {
    white-space: normal;
}

.btn#tagthisphoto {
    white-space: nowrap;
}

.navbar-inverse {
    background-color: #339933;
    background-image: -moz-linear-gradient(top, #339933, #267326);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#339933), to(#267326));
    background-image: -webkit-linear-gradient(top, #339933, #267326);
    background-image: -o-linear-gradient(top, #339933, #267326);
    background-image: linear-gradient(to bottom, #339933, #267326);
    background-repeat: repeat-x;
    border-color: #000;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff339933', endColorstr='#ff267326', GradientType=0);
    border-radius: 0;
}

.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-brand {
    color: #FFF
}

.navbar-inverse .navbar-toggle {
    background-color: darkgreen
}

.navbar-inverse .navbar-nav > li > a:hover {
    background-color: #267326
}

.navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus {
    background-color: #000
}

.panel {
    background-color: #111
}

.navbar-form .form-control {
    width: 100%
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(110px, 1fr));
}
.image-grid a {
    padding: 5px;
}

.marginB20,
.span4 h3,
.span8 h3 {
    margin: 0 0 20px;
    line-height: 25px;
}

table th.text-right,
table td.text-right {
    text-align: right
}

.table tbody tr.info > td {
    color: #000
}

.span4 form {
    margin-bottom: 5px
}

#footer {
    font-size: 0.8em;
    margin: 30px 0;
    padding: 10px 0 0;
    border-top: 1px solid #222
}

.buyall {
    background: url(/ui/images/buyall.png) no-repeat;
    padding: 20px 10px 40px;
    width: 80px;
    height: 40px;
    font-size: 30px;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides li {
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100%;
    left: 0;
    top: 0;
}

.rslides li:first-child {
    position: relative;
    display: block;
    float: left;
}

.rslides img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    border: 0;
}

.calendar hr {
    margin: 10px 15px;
}

.calendar .text-right {
    margin-top: 5px
}

.calendar .navbar-form input {
    margin-top: 0
}

#discount {
    display: none
}

#floatPreview.affix {
    position: static
}


.cart_table hr {
    margin: 10px 15px
}

#update_cart,
#tagit {
    margin-bottom: 15px
}


.navbar-form .form-group {
    float: right;
    margin-right: 5px;
    width: 30%;
}

.navbar-nav > li {
    float: left;
    width: 50%
}

ul.thumbnails img {
    margin-bottom: 30px
}

@media (max-width: 440px) {
    h1 {
        font-size: 1.8em
    }

    h2 {
        font-size: 1.4em
    }

    h3 {
        font-size: 1.2em
    }
}

#scrollToPreview {
    display: block;
}

#floatAndThumbs {
    display: flex;
}
#floatPreview {
    width: 500px;
    flex: 0 0 500px;
}
#floatPreview + #floatPreviewPlaceholder {
    display: none;
}
#thumbnails {
    padding-left: 20px;
}
#thumbnails h3 {
    margin-top: 0;
}
#previewImg {
    width: 500px;
}

@media (min-width: 768px) {

    #floatPreview.affix {
        top: 20px;
        position: fixed
    }
    #floatPreview.affix + #floatPreviewPlaceholder {
        display: block;
        width: 560px;
    }

    #scrollToPreview {
        display: none;
    }
}

@media (min-width: 992px) {
    .navbar-form {
        width: 53%
    }

    .navbar-form .form-group {
        width: 25%;
    }

    .navbar-nav > li {
        width: auto
    }
}

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin: 7.5px -15px;
    }

    .navbar-nav > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-text {
        float: none;
        margin: 15px 0;
    }

    /* since 3.1.0 */
    .navbar-collapse.collapse.in {
        display: block !important;
    }

    .collapsing {
        overflow: hidden !important;
    }
}

/* photos on the delivery page */
#photos {
    background-color: #fff;
    border-radius: 4px;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    padding: 10px;
    text-align: center;
}

#photos p {
    border: 2px solid #333;
    margin: 0;
}

#photos .photos {
    border: 2px solid #333;
    border-top: 0;
    margin-bottom: 20px;
}

#photos .photos:last-child {
    margin-bottom: 0;
}

#photos a, #photos img {
    border: 0;
}

#photos img {
    margin: 4px 2px;
}

/* --- 500px preview styles using flex etc --- */

#searchHeading {
    padding: 0 0 0 10px;
    margin: 0 auto 10px;
    max-width: 1170px;
    text-align: left;
}
#previewAndThumb {
    display: flex;
    margin: auto;
    max-width: 1170px;
}
#previewContainer {
    flex: 1 1 auto;
    width: 520px;
    padding: 10px;
}
#preview {
    max-width: 500px;
    position: sticky; top: 10px;
}
#thumbsContainer {
    margin: 0 10px;
    width: calc(100% - 510px);
}
#thumbsContainer .alert {
    margin-top: 10px;
}
#thumbs {
    display: flex;
    flex-wrap: wrap;
}
.thumb {
    width: calc(16.6% - 10px);
    margin: 0 10px 10px 0;
}
@media (max-width: 1114px) {
    .thumb {
        width: calc(20% - 10px);
    }
}
@media (max-width: 991px) {
    .thumb {
        width: calc(25% - 10px);
    }
}
@media (max-width: 884px) {
    .thumb {
        width: calc(33.3% - 10px);
    }
}
.thumb img {
    width: 100%;
}
@media (max-width: 767px) {
    #previewContainer, #previewContainer img {
        max-width: 100%;
    }
    #thumbsContainer, #thumbsContainer .alert {
        width: calc(100% - 10px);
    }
    #preview {
        position: initial;
    }
    #previewAndThumb {
        display: initial;
    }
}

/* --- Media Type Tabs (Photos / Videos) --- */

#mediaTypeTabs {
    display: flex;
    margin: 0 auto 10px;
    max-width: 1170px;
    padding: 0 10px;
}

.media-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin-right: 4px;
    background-color: #222;
    border: 2px solid #333;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.media-tab:hover {
    background-color: #2a2a2a;
    color: #aaa;
}

.media-tab.active {
    background-color: #339933;
    background-image: linear-gradient(to bottom, #339933, #267326);
    border-color: #267326;
    color: #fff;
}

.media-tab.active:hover {
    background-color: #3da63d;
}

.tab-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.tab-label {
    font-size: 1.15em;
}

/* Mobile styles for tabs */
@media (max-width: 767px) {
    #mediaTypeTabs {
        padding: 0 5px;
    }

    .media-tab {
        flex: 1;
        padding: 10px 12px;
        margin-right: 2px;
    }

    .tab-icon {
        margin-right: 6px;
        font-size: 1.1em;
    }

    .tab-label {
        font-size: 1.0em;
    }
}

/* Very small screens - stack icon above text */
@media (max-width: 400px) {
    .media-tab {
        flex-direction: column;
        padding: 8px 10px;
    }

    .tab-icon {
        margin-right: 0;
        margin-bottom: 4px;
    }

    .tab-label {
        font-size: 0.9em;
    }
}