/**
 * Info Room Browse Navigation Styles
 * Consolidated and de-duplicated.
 */

/* 1. Fonts */
@font-face {
    font-family: hn65;
    src: url("../fonts/afd20/hn65.woff");
}

@font-face {
    font-family: aReg;
    src: url("../fonts/afd20/aRegular.woff");
}

@font-face {
    font-family: "aM";
    src: url("../fonts/afd20/aM.woff");
}

/* 2. Browse Section Container */
section.browse {
    position: relative;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    padding-top: 90px;
    min-height: 75vh;
}

@media screen and (min-width: 769px) {
    section.browse {
        padding-top: 0;
    }
}

@media screen and (min-height: 590px) {
    section.browse {
        min-height: 75vh;
        height:calc(80vh + 45px);
    }
}

/* 3. Ticker Background */
/* section.browse .band, */
section.browse .browse__ticker,
section.browse .infiniteslide_wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    color: rgba(0,0,0,0);
}

section.browse .browse__ticker{
  opacity: 0.05;
}

section.browse .band {
    top: 15%;
    font-family: hn65, serif;
    line-height: 1.1em;
    white-space: nowrap;
    will-change: transform;
    transition: transform 0ms linear;
}

section.browse .band:before,
section.browse .browse__ticker > ul {
    content: "\0000a0";
    width: 100%;
    height: 100%;
    background-image: url('https://alliedfeather.com/wp-content/uploads/2023/06/afd-logotype.min_.svg');
    background-size: contain;
    background-position: left 90px;
    background-repeat: no-repeat;
    display: inline-block;
}

section.browse .browse__ticker > ul {
    height: 80%;
    width: 420%;
    margin-right: 7.5vw;
    white-space: nowrap;
    display:block;
}

/* 4. Navigation Layout */
section.browse nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    text-align: center;
    z-index: 10;
}

@media screen and (min-width: 960px) {
    section.browse nav {
        width: 85%;
    }
    .page-template-page-info section.browse nav {
        text-align: left;
        align-items: flex-end;
    }
}

@media screen and (min-width: 1024px) {
    section.browse nav {
        width: 70%;
    }
}

section.browse ul {
    font-family: hn65, serif;
    position: relative;
    z-index: 10;
    width: 100%;
    margin: auto;
    padding: initial;
    list-style-type: none;
    display: block;
    font-size: 1.15rem;
    columns: 1;
}

@media screen and (min-width: 769px) {
    section.browse ul {
        columns: 2;
        column-gap: 120px;
    }
}

/* 5. Navigation Items */
section.browse ul li {
    margin: initial;
    margin-bottom: 1.2em;
    line-height: initial;
    display: flex;
    justify-content: center;
    color: #949494;
    transition: color 250ms ease;
}

section.browse ul li.active,
section.browse ul li:hover {
    color: #fff;
    cursor: pointer;
}

section.browse ul li a {
    color: inherit;
    text-decoration: none;
}

@media screen and (min-width: 769px) {
    section.browse ul li:nth-child(1),
    section.browse ul li:nth-child(2),
    section.browse ul li:nth-child(3),
    section.browse ul li:nth-child(4),
    section.browse ul li:nth-child(5),
    section.browse ul li:nth-child(6),
    section.browse ul li:nth-child(7),
    section.browse ul li:nth-child(8) {
        justify-content: flex-end;
    }

    section.browse ul li:nth-child(9),
    section.browse ul li:nth-child(10),
    section.browse ul li:nth-child(11),
    section.browse ul li:nth-child(12),
    section.browse ul li:nth-child(13),
    section.browse ul li:nth-child(14),
    section.browse ul li:nth-child(15) {
        justify-content: flex-start;
    }
}

/* 6. Background Images (Figure) */
section.browse figure {
    position: absolute;
    height: 100%;
    width: 100%;
    margin: auto;
    z-index: 0;
    top: 0;
    left: 0;
}

section.browse figure img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, visibility 0s .5s;
}

section.browse figure img.active {
    opacity: 0.65;
    visibility: visible;
    transition: opacity .75s ease;
}

/* 7. Headings */
section.browse heading {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

@media screen and (min-width: 960px) {
    section.browse heading {
        bottom: -15%;
    }
}

section.browse heading h3 {
    width: 115px;
    margin: auto;
    font-size: 14px;
    font-weight: normal;
    line-height: 1em;
    font-family: hn65, sans-serif;
    text-transform: uppercase;
    text-align: justify;
}

section.browse heading h3.solo {
    text-align: center;
}

section.browse heading h3.wide {
    width: 300px;
}

section.browse heading h3:after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 0;
}
