/*
 Theme Name:     Plexx Child Theme
 Theme URI:      http://themeforest.net/user/mallini
 Description:    A child theme for use with Plexx Theme.
 Author:         mallini
 Author URI:     http://themeforest.net/user/mallini/portfolio
 Template:       plexx
 Version:        1.0.0
 Tags: translation-ready,theme-options,custom-menu
*/

/* Add Custom CSS after this line */
/* .archive #page-title{display: none!important;} */

/* ===================================== */
/* LIGHTBOX: Prevent background shift    */
/* when Fancybox hides the scrollbar     */
/* ===================================== */
html {
    scrollbar-gutter: stable;
}

.portfolio-link:hover,
.item-filter{
    color: #fff!important;
}

.portfolio-item-slug .thumb::before, .portfolio-item-slug .thumb::after, .portfolio-gallery-item .thumb::before, .portfolio-gallery-item .thumb::after, .slick-slide .justified-cross::before, .slick-slide .justified-cross::after, .masonry-cross::before, .masonry-cross::after {
    background: #fff!important;
}

body.archive .portfolio-link::after{
  background: rgba(0, 0, 0, .7);
}

.top-navigation ul ul li a:hover, .top-navigation ul ul li.current-menu-item a {

    color:#fff!important;
}

/* .portfolio-link:after:hover {
  opacity: 0.8!important;
} */


/* ===================================== */
/* RESET ALL SUBMENU POSITIONING */
/* ===================================== */

.top-navigation ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    transition: opacity 0.2s ease !important;
    z-index: 9999 !important;
    display: block !important;
}

/* Show on hover */
.top-navigation ul li:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===================================== */
/* SECOND LEVEL (standard dropdown) */
/* ===================================== */

.top-navigation > ul > li > ul {
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
}

/* ===================================== */
/* THIRD LEVEL + (FLYOUT TO LEFT) */
/* ===================================== */

.top-navigation ul ul ul {
    top: 0 !important;
    left: auto !important;
    right: 100% !important;
    transform: none !important;
    background: #000 !important;
}

/* ===================================== */
/* REMOVE ANY THEME TRANSFORMS */
/* ===================================== */

.top-navigation ul ul,
.top-navigation ul ul ul {
    transform: none !important;
}

/* ===================================== */
/* CARETS */
/* ===================================== */

/* Top level caret */
.top-navigation ul.sub-menu:before{
  display: none!important;
}
/* Submenu caret (points LEFT) */
.top-navigation ul ul li.menu-item-has-children > a::after {
    content: " ◂" !important;
    float: right !important;
    font-size: 0.7em !important;
}

/* Prevent layout shift */
.top-navigation li.menu-item-has-children > a {
    position: relative !important;
}

/* ===================================== */
/* SAFETY: Ensure parent LI allows flyout */
/* ===================================== */

.top-navigation ul ul li {
    position: relative !important;
}


.masonry-item .picture{
  height: 100%;
}

/* Prevent masonry items from being too short (landscape/video) on desktop
   or too tall (portrait) on mobile */
.portfolio-item-slug.masonry-item {
  min-height: 180px;
}

@media only screen and (max-width: 959px) {
  .portfolio-item-slug.masonry-item {
    max-height: 380px !important;
    overflow: hidden;
  }
}

@media only screen and (max-width: 479px) {
  .portfolio-item-slug.masonry-item {
    max-height: 320px !important;
  }
}

.fancy-title{
  font-size: 20px;
}

/* Keep TREMARCTOS + PHOTOGRAPHY on one line now that <strong> is inside <a> */
h1.logo a {
  display: flex !important;
  align-items: baseline;
}
h1.logo a > strong {
  margin-left: 0.4rem;
}

@media only screen and (max-width: 767px) {
    .container {
        width: 90% !important;
    }
}

@media (max-width: 767px) {
  h1.logo a {
    font-size: 18px !important;
  }

  h1.logo strong {
    font-size: 12px;
  }

  #site-navigation {
      padding: 0;
  }

}

@media (min-width: 768px) {
  h1.logo a {
    font-size: 35px !important;
  }

  h1.logo strong {
    font-size: 20px;
  }
}

@media only screen and (max-width: 767px) {
    .portfolio_container {
        width: 90% !important;
    }
}


/* ===================================== */
/* BUG 2: MOBILE MENU READABILITY        */
/* ===================================== */

@media only screen and (max-width: 959px) {

    /* Hamburger icon: visible on any background */
    .menu-dropdown span,
    .menu-dropdown span:before,
    .menu-dropdown span:after {
        background-color: #fff !important;
    }

    .menu-dropdown.toggled-on span {
        background-color: transparent !important;
    }

    /* Mobile nav dropdown background */
    #navigation .nav-menu {
        background: #1a1a1a !important;
    }

    /* All nav links: white for readability */
    #navigation ul li a,
    #navigation ul li ul li a,
    #navigation ul li ul li ul li a {
        color: #fff !important;
        opacity: 1 !important;
    }

    /* Submenu items: slightly dimmer but still readable */
    #navigation ul li ul li a {
        color: rgba(255, 255, 255, 0.8) !important;
        opacity: 1 !important;
    }

    /* Hover state */
    #navigation ul li a:hover,
    .top-navigation li a:hover {
        color: #33b996 !important;
    }

    /* Focus state: keyboard accessibility */
    #navigation ul li a:focus,
    .top-navigation li a:focus {
        color: #33b996 !important;
        outline: 1px solid rgba(255, 255, 255, 0.3) !important;
        outline-offset: 2px;
    }

    /* Active/tapped state: must remain visible */
    #navigation ul li a:active,
    .top-navigation li a:active {
        color: #2a9d7e !important;
        opacity: 1 !important;
    }
}


/* ===================================== */
/* BUG 4: REMOVE "+" AND GRAY OVERLAY    */
/* ===================================== */

/* Hide the dark overlay on hover */
.portfolio-link:after {
    display: none !important;
}

/* Hide the "+" crosshair bars */
.portfolio-item-slug .thumb::before,
.portfolio-item-slug .thumb::after,
.portfolio-gallery-item .thumb::before,
.portfolio-gallery-item .thumb::after,
.slick-slide .justified-cross::before,
.slick-slide .justified-cross::after,
.masonry-cross::before,
.masonry-cross::after {
    display: none !important;
}

/* Species name: keep original text style, just remove overlay behind it */

/* Hide the filter/category tags below title */
.item-filter {
    display: none !important;
}


/* ===================================== */
/* BUG 7: SEARCH BUTTON VISIBILITY       */
/* ===================================== */

.search-form input.search-submit {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23273140' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    border: none !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    text-indent: -9999px !important;
}

/* ===================================== */
/* MOBILE MENU TOGGLES (+ / -)           */
/* ===================================== */

.submenu-toggle {
    display: none !important;
}

@media only screen and (max-width: 959px) {
    #navigation .nav-menu li.menu-item-has-children {
        position: relative !important;
    }

    /* Hide parent theme's FontAwesome "+" pseudo-element — we use our own toggle buttons. */
    #navigation .nav-menu li.menu-item-has-children > a:after {
        display: none !important;
    }

    /* Left tree layout: keep one text column for all items. */
    #navigation .nav-menu,
    #navigation .nav-menu li > a,
    #navigation .nav-menu li ul li > a,
    #navigation .nav-menu li ul li ul li > a {
        text-align: left !important;
    }

    #navigation .nav-menu li > a {
        padding-left: 22px !important;
        padding-right: 0 !important;
    }

    #navigation .nav-menu ul.sub-menu {
        margin-left: 8px !important;
        padding-left: 12px !important;
        border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    #navigation .nav-menu ul.sub-menu li > a {
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    #navigation .nav-menu ul.sub-menu ul.sub-menu {
        margin-left: 8px !important;
        padding-left: 12px !important;
        border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
    }

    /* Mobile must use vertical expansion, not desktop flyout positioning. */
    #navigation ul li ul,
    #navigation .top-navigation ul ul,
    #navigation .top-navigation ul ul ul {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 0 14px !important;
        background: transparent !important;
        text-align: right !important;
    }

    #navigation .nav-menu.toggled-on ul.sub-menu {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #navigation .nav-menu.toggled-on ul.sub-menu.opened {
        display: block !important;
    }

    #navigation .nav-menu .submenu-toggle {
        display: flex !important;
        position: absolute;
        left: 2px;
        top: 8px;
        width: 14px;
        height: 14px;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        text-align: center;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 3;
        /* Optical centering for +/- glyph metrics */
        padding: 0;
        padding-bottom: 1px;
    }

    /* Top-level items have larger font (22px) and padding (10px) than nested items */
    #navigation .nav-menu > li > .submenu-toggle {
        top: 16px;
    }

    #navigation .nav-menu .submenu-toggle:focus {
        outline: 2px solid #33b996;
        outline-offset: 1px;
    }
}

/* ── Match Tremarctos black colour scheme ── */

/* Page background */
body,
#wrapper,
.nav_container,
#site-navigation,
.menu-dropdown {
    background-color: #000 !important;
}

/* Nav links */
.top-navigation li a,
#navigation ul li a,
#navigation ul li ul li a,
#navigation ul li ul li ul li a {
    color: #fff !important;
}

/* Nav hover */
.top-navigation li a:hover,
#navigation ul li a:hover {
    color: rgba(255,255,255,0.6) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a {
    color: #fff !important;
}

/* General links */
a { color: #fff !important; }
a:hover, a:focus { color: rgba(255,255,255,0.6) !important; }

/* Filter category labels */
.filters-container span,
.filters-container .filter-item {
    color: #fff !important;
}

/* Mobile nav background */
.menu-alt #site-navigation,
.menu-dropdown {
    background: #000 !important;
}

/* Hide the large centered page title block entirely */
.title-container {
    display: none !important;
}

/* Subtitle next to logo */
#logo {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap;
}

#logo a.logo-image {
    display: flex;
    align-items: center;
}

#logo-subtitle {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-left: 6px;
    padding-left: 6px;
	padding-bottom: 4px;
	margin-bottom: 4px;
    border-left: 1px solid rgba(255,255,255,.8);
    font-weight: 300;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: flex-end;
}

#site-navigation .three.columns {
    padding-right: 0 !important;
    width: auto !important;
}
#site-navigation .four.columns {
    padding-right: 0 !important;
    width: auto !important;
}

#logo img {
    height: auto !important;
    width: 150px !important;
}

#logo a.logo-image {
    height: auto !important;
    width: 150px	 !important;
}

.top-navigation li a {
    padding: 0 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    font-weight: 300 !important;
    padding-bottom: 4px;
	margin-bottom: 4px;
    border-left: 1px solid rgba(255,255,255,.8);
}

.top-navigation li a:hover {
    color: rgba(255,255,255,0.9) !important;
}

.top-navigation ul ul,
.top-navigation ul ul ul {
    max-width: 200px !important;
    width: 200px !important;
    right: auto !important;
    overflow: hidden !important;
}

/* Prevent the nav column from expanding beyond its bounds */
#site-navigation .thirteen.columns {
    overflow: visible;
    position: relative;
}

/* Clip the overall nav container to prevent horizontal scroll */
.nav_container {
    overflow: hidden !important;
}

.top-navigation li a::after,
.top-navigation li a::before {
    display: none !important;
}

#site-navigation .thirteen.columns,
#navigation,
.top-navigation,
.top-navigation > ul {
    display: flex !important;
    align-items: flex-end !important;
    height: 100% !important;
}

.top-navigation > ul {
    padding-bottom: 4px !important;
}

/* Hide empty portfolio text container */
.portfolio-text:empty,
.hentry.portfolio-text.blog-nosidebar:empty {
    display: none !important;
}

/* Hide footer */
#footer {
    display: none !important;
}

.title-container + * {
    margin-top: 0 !important;
}

.portfolio_container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Dropdown background and width */
.top-navigation ul ul {
    background: #000 !important;
    min-width: 180px !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
}

.top-navigation ul ul li a {
    background: #000 !important;
    color: rgba(255,255,255,0.8) !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
}

.top-navigation ul ul li a:hover {
    color: #fff !important;
    background: #111 !important;
}

#site-navigation,
#site-navigation .thirteen.columns,
#navigation,
.top-navigation {
    overflow: visible !important;
}

.nav_container,
#wrapper {
    overflow: visible !important;
}

/* Style # links as non-clickable category headers in dropdown */
.top-navigation ul ul li a[href="#"] {
    color: rgba(255,255,255,0.3) !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    pointer-events: none !important;
    cursor: default !important;
    padding-top: 16px !important;
}

.top-navigation ul ul li.sub-item > a {
    padding-left: 28px !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.6) !important;
}

.top-navigation ul ul li.sub-item > a::before {
    content: "–  " !important;
    color: rgba(255,255,255,0.25) !important;
}

.floating-social a {
    font-size: 10px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    font-weight: 300 !important;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.floating-social a:hover {
    color: rgba(255,255,255,0.9) !important;
}