﻿/* ==========================================================================
   13_SNIPPETS AND HELPER CLASSES
   --------------------------------------------------------------------------
   * README

   * MODIFICATOR SUFFIX: --BOXED
   * MODIFICATOR SUFFIX: --HR-TOP
   * MODIFICATOR SUFFIX: --HR-BOTTOM
   * MODIFICATOR SUFFIX: --SEMI-NARROW
   * MODIFICATOR SUFFIX: --NARROW
   * MODIFICATOR SUFFIX: --NARROWER

   * HELPER CLASSES: CLEARING
   * HELPER CLASSES: MARGINS AND PADDINGS
   * HELPER CLASSES: VISIBILITY

   * TEXT: ELLIPSIS
   * TEXT: LINK LIKE
   * TEXT: PARAGRAPH

   * ACCORDION: SECTION AND/OR ARTICLE LEVEL

   * SNIPPET: ALERTS
   * SNIPPET: DROPDOWN LIKE
   * SNIPPET: MESSAGE BOX
   * SNIPPET: PAGE BUSY
   * SNIPPET: PARTIAL SAVE
   * SNIPPET: PRELOADER
   * SNIPPET: POP-UP ON HOVER
   * SNIPPET: RATING STARS
   * SNIPPET: SWITCHER
   * SNIPPET: VERTICAL CENTERING
   * SNIPPET: VIDEO EMBEDDING
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * X
 */

/* MODIFICATOR SUFFIX: --BOXED
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   --boxed modificator suffix > to add a solid box appareance to any element,
   usually a first level element (.section or .article) It does not include a
   padding, as it tends to not always be the same, so it's better to define it
   in every case.
   --------------------------------------------------------------------------

    <div class="X X--boxed"></div>

   -------------------------------------------------------------------------- */

[class*="--boxed"] {
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #D8D8D8; /* var(--color--borders) */
    background-color: #FFFFFF;
}

/* MODIFICATOR SUFFIX: --HR-TOP
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   to add even space and a divisory line from the previous/next element
   --------------------------------------------------------------------------

    <div class="X X--hr-top"></div>

   -------------------------------------------------------------------------- */

[class*="--hr-top"] {
    margin-top: 24px !important;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D8D8D8; /* var(--color--borders) */
    padding-top: 24px;
}
[class*="--hr-top-alt"] {
    margin-top: 0 !important;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D8D8D8; /* var(--color--borders) */
    padding-top: 24px;
}

/* MODIFICATOR SUFFIX: --HR-BOTTOM
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   to add even space and a divisory line from the previous/next element
   --------------------------------------------------------------------------

    <div class="X X--hr-bottom"></div>

   -------------------------------------------------------------------------- */

[class*="--hr-bottom"] {
    margin-bottom: 24px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #D8D8D8; /* var(--color--borders) */
    padding-bottom: 24px;
}

/* MODIFICATOR SUFFIX: --SEMI-NARROW
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   to limit the width of any block element and center it in the available space.
   --------------------------------------------------------------------------

    <div class="X X--narrow"></div>

   -------------------------------------------------------------------------- */

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    [class*="--semi-narrow"] {
        margin-left: auto;
        margin-right: auto;
        max-width: 1050px;
    }
}

/* MODIFICATOR SUFFIX: --NARROW
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   to limit the width of any block element and center it in the available space.
   --------------------------------------------------------------------------

    <div class="X X--narrow"></div>

   -------------------------------------------------------------------------- */

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    [class*="--narrow"] {
        margin-left: auto;
        margin-right: auto;
        max-width: 675px;
    }
}

/* MODIFICATOR SUFFIX: --NARROWER
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   to limit the width of any block element and center it in the available space.
   --------------------------------------------------------------------------

    <div class="X X--narrower"></div>

   -------------------------------------------------------------------------- */

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    [class*="--narrower"] {
        margin-left: auto;
        margin-right: auto;
        max-width: 435px;
    }
}

/* HELPER CLASSES: CLEARING
   ========================================================================== */

.clear {
    clear: both;
}

/*
 * 1. The space content is one way to avoid an Opera bug when the
 * `contenteditable` attribute is included anywhere else in the document.
 * Otherwise it causes space to appear at the top and bottom of elements
 * that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 * `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* HELPER CLASSES: MARGINS AND PADDINGS
   ========================================================================== */

.margin-t--10 {
    margin-top: 10px;
}

.margin-t--40 {
    margin-top: 40px;
}

.padding-t--10 {
    padding-top: 10px;
}

/* HELPER CLASSES: VISIBILITY
   ========================================================================== */

/*
 * Hide/show visually and from screen readers
 */
.visibility--hidden {
    display: none !important;
}

.visibility--visible {
    display: block !important;
}

/* Media query to target mobile and desktop */
@media all and (max-width:750px) and (min-width:1025px) {
    .visibility--only-tablet {
        display: none !important;
    }

}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {
    .visibility--only-desktop {
        display: none !important;
    }
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    .visibility--tablet-and-desktop {
        display: none !important;
    }

}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    .visibility--only-mobile {
        display: none !important;
    }
}

/* Media query to target only tablet */
@media all and (min-width:751px) and (max-width:1024px) {
    .visibility--mobile-and-desktop {
        display: none !important;
    }

}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .visibility--mobile-and-tablet {
        display: none !important;
    }
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 * causes content to wrap 1 word per line:
 * https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */
.visibility--visually-hidden,
.screenReaderVisibility {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.visibility--visually-hidden.focusable:active,
.visibility--visually-hidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */
.visibility--invisible {
    visibility: hidden;
}

/* TEXT: ELLIPSIS
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation. Mention the width setting.
   --------------------------------------------------------------------------

    <span class="ellipsis"></span>

   -------------------------------------------------------------------------- */

.ellipsis {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* TEXT: LINK LIKE
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <a class="link" href="X"></a>

   -------------------------------------------------------------------------- */

.link {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.link:hover {
    border-bottom-color: inherit;
}

.link__has-icon {
    position: relative;
    font-size: 16px;
}
.link__has-icon i {
    width: auto !important;
    font-size: .8em;
    position: absolute;
    top: 6px;
    font-weight: normal;
}

.link__has-icon--right {
    margin-right: 26px;
}
.link__has-icon--right i {
    right: -26px;
}
.link__has-icon--left {
    margin-left: 26px;
}
.link__has-icon--left i {
    left: -26px;
}

.link-light {
    color: #CDC4BA;
    font-weight: 600;
    border-bottom: none;
}
.link-light:hover {
    color: #3d3d3d;
}

.link--small {
  font-size: 13px;
}

.link--lightgray {
    color: #818181;
}

.link--actions {
    color: #3D3D3D;
    border-bottom-color: #3D3D3D;
    font-weight: 600;
}

.link--back {
    font-size: 16px;
    color: #D3CBC1;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.link--back i {
    margin-right:15px
}

.link--underline {
    text-decoration: underline;
    border-bottom: none;
}
.link--underline:hover,
.link--underline:active,
.link--underline:focus {
    text-decoration: none;
    border-bottom: none;
}

/* TEXT: PARAGRAPH
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation. Mention the reset.
   --------------------------------------------------------------------------

    <p class="paragraph"></p>

   -------------------------------------------------------------------------- */

.paragraph {
    padding-bottom: 8px;
    line-height: 150%;
}

:not(.fluid-cols)>.paragraph:last-of-type {
    padding-bottom: 0;
}

.paragraph--default {
    font-size: 16px;
    letter-spacing: 0.8px;
}

.paragraph--note {
    font-size: 14px;
    letter-spacing: 0.7px;
}

/* ACCORDION: SECTION AND/OR ARTICLE LEVEL
   ========================================================================== */
[class*="--accordion"] {
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #D8D8D8; /* var(--color--borders) */
    background-color: #FFFFFF;
}

.section--accordion {
    padding: 20px 20px 10px 20px;
}

.section--accordion > [class*="__header"] {
    height: 50px;
    padding: 14px 0;
}

.article--accordion > [class*="__header"] {
    min-height: 70px;
    padding: 14px 20px;
}

[class*="--accordion"] > [class*="__header"] > [class*="__header__toggle"] {
    display: none;
}

.article--accordion > [class*="__header"] > [class*="__header__text"] > [class*="__header__text__title"] {
    font-weight: 500;
}

[class*="--accordion"] > [class*="__header"] + * {
    margin-top: 0;
}

[class*="--accordion"] > [class*="__content"] {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D8D8D8; /* var(--color--borders) */
}

[class*="--accordion"] > [class*="__content"] > [class*="__content__module"] {
    padding-top: 20px;
    padding-bottom: 20px;
}

.article--accordion > [class*="__content"] > [class*="__content__module"] {
    padding-left: 20px;
    padding-right: 20px;
}

[class*="--accordion"] > [class*="__content"] > [class*="__content__module"]:nth-of-type(n+2) {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D8D8D8; /* var(--color--borders) */
}

[class*="--accordion"] > [class*="__footer"] {
    margin-top: 0;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D8D8D8; /* var(--color--borders) */
}

.section--accordion > [class*="__footer"] {
    padding: 10px 0;
}

.article--accordion > [class*="__footer"] {
    padding: 10px 20px;
}

/* Media query to target only mobile */
@media all and (max-width:750px) {
    [class*="--accordion"] > [class*="__header"] {
        position: relative;
        padding-right: 70px;
    }

    [class*="--accordion"] > [class*="__header"] > [class*="__header__toggle"] {
        display: block;
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
    }

    .section--accordion > [class*="__header"] > [class*="__header__toggle"] {
        height: 50px; /* This is the .article__header height */
        line-height: 50px;
    }

    [class*="--accordion"] > [class*="__header"] > [class*="__header__toggle"]:before {
        content: "\f106";
        font: normal normal normal 24px/24px FontAwesome;
        position: absolute;
        top: calc(50% - 12px);
        left: calc(50% - 12px);
        width: 20px;
        height: 20px;
        line-height: 20px;
        color: #000000; /* var(--color--site) */
    }

    [class*="--accordion"][class*="--accordion__open"] [class*="__header"] > [class*="__header__toggle"]:before {
        content: "\f107";
    }

    [class*="--accordion"]:not([class*="--accordion__open"]) > [class*="__content"] {
        display: none;
    }

}

/* Media query to target tablet and desktop */
@media all and (min-width:751px) {
    [class*="--accordion-always"] > [class*="__header"] {
        position: relative;
        padding-right: 70px;
    }

    [class*="--accordion-always"] > [class*="__header"] > [class*="__header__toggle"] {
        display: block;
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
    }

    [class*="--accordion-always"] > [class*="__header"] > [class*="__header__toggle"]:before {
        content: "\f106";
        font: normal normal normal 24px/24px FontAwesome;
        position: absolute;
        top: calc(50% - 12px);
        left: calc(50% - 12px);
        width: 20px;
        height: 20px;
        line-height: 20px;
        color: #000000; /* var(--color--site) */
    }

    [class*="--accordion-always"][class*="--accordion__open"] [class*="__header"] > [class*="__header__toggle"]:before {
        content: "\f107";
    }

    [class*="--accordion-always"]:not([class*="--accordion__open"]) > [class*="__content"] {
        display: none;
    }

}

/* SNIPPET: ALERTS
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    {% if X %}
        <div class="alert alert--X">{{ X }}</div>
    {% endif %}

   -------------------------------------------------------------------------- */

.alert {
    margin-bottom: 20px;
    border-left-width: 8px;
    border-left-style: solid;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 150%;
    font-weight: 500;
    border:none;
    text-align: center;
    color: #F93535;
}

.errorMessageIcon {
    display: inline-block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    vertical-align: middle;
    position: relative;
}
.errorMessageIcon:before {
    content: "\f071";
    font-family: 'FontAwesome';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #fff;
    top: 0;
    left: 0;
    text-align: center;
    padding-top: 1px;
}

/* SNIPPET: DROPDOWN: GENERAL
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <div class="dropdown">
        <a class="dropdown__placeholder" href="#" aria-haspopup="true" aria-expanded="false">X</a>

        <ul class="dropdown__list">
            <li class="dropdown__list__item">X</li>

            <li class="dropdown__list__item">X</li>
        </ul>
    </div>

   -------------------------------------------------------------------------- */

.dropdown {
    display: inline-block;
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: normal;
    font-weight: 400;
}

.dropdown--open {
    z-index: 2;
}

.dropdown__placeholder {
    position: relative;
    z-index: 3;
    display: block;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #D8D8D8; /* var(--color--borders) */
    background-color: #FFFFFF;
    padding: 6px 20px 6px 10px;
    white-space: nowrap;
}

.dropdown__placeholder:hover {
    color: #000000; /* var(--color--site) */
}

.dropdown__placeholder:focus {
    color: #59AFE4; /* var(--color--secondary--65) */
}

.dropdown--open .dropdown__placeholder {
    border-radius: 5px 5px 0 0;
}

.dropdown__placeholder:before {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 6px;
    border-top: 4px solid #000000;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
}

.dropdown__list {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    right: -9999px;
    z-index: 2;
    border-radius: 0 0 5px 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #D8D8D8; /* var(--color--borders) */
    width: auto;
    min-width: 100%;
    max-width: 100%;
    background-color: #FFFFFF;
    overflow: hidden;
}

.dropdown--open .dropdown__list {
    display: block;
    right: 0;
}

.dropdown__list__item a {
    display: block;
    padding: 6px 10px;
}

.dropdown__list__item + .dropdown__list__item {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D8D8D8; /* var(--color--borders) */
}

.dropdown:hover .dropdown__list__item:hover a {
    background-color: #000000; /* var(--color--site) */
    color: #FFFFFF;
}

.dropdown__list__item--active a {
    color: #000000; /* var(--color--site) */
    cursor: default;
}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .dropdown:hover {
        z-index: 2;
    }

    .dropdown:hover .dropdown__placeholder {
        border-radius: 5px 5px 0 0;
    }

    .dropdown__list {
        margin-bottom: 10px;
    }

    .dropdown:hover .dropdown__list {
        display: block;
        right: 0;
    }
}

/* SNIPPET: DROPDOWN: IN SORT
   ========================================================================== */
.list-controls__sort .dropdown--open .dropdown__placeholder {
    border-bottom-color: #FFFFFF;
}

.list-controls__sort .dropdown__list {
    border-radius: 5px 0 5px 5px;
    min-width: calc(100% + 5px);
    max-width: none;
}

.list-controls__sort .dropdown__list .sort__item {
    position: relative;
    padding: 12px 10px 12px 20px;
    white-space: nowrap;
}

.list-controls__sort .dropdown:hover .dropdown__list .sort__item:hover {
    color: #000000; /* var(--color--site) */
}

.list-controls__sort .dropdown__list .sort__item--active {
    color: #000000; /* var(--color--site) */
    cursor: default;
}

.list-controls__sort .dropdown__list .sort__item__icon {
    position: absolute;
    left: 5px;
    line-height: inherit;
}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
  .list-controls__sort .dropdown:hover .dropdown__placeholder {
      border-bottom-color: #FFFFFF;
  }
}

/* SNIPPET: DROPDOWN: IN ASIDE
   ========================================================================== */
.aside .article--actions .dropdown {
    width: 100%;
}

.aside .article--actions .dropdown__placeholder {
    padding: 11px 20px 11px 10px;
}

/* Media query to target mobile and tablet */
@media all and (max-width:1024px) {

    .aside .article--actions .dropdown--open .dropdown__placeholder {
        border-radius: 0 0 5px 5px;
    }

    .aside .article--actions .dropdown__list {
        top: auto;
        bottom: calc(100% - 1px);
        border-radius: 5px 5px 0 0;
    }

}

/* SNIPPET: DROPDOWN: IN TABLES
   ========================================================================== */
.table .dropdown {
    width: 100%;
    min-width: 150px;
    letter-spacing: -0.20px;
    word-spacing: -0.20px;
}

.table .dropdown__placeholder {
    padding: 6px 16px 6px 8px;
}

.table .dropdown__list__item a {
    padding: 6px 8px;
}

/* SNIPPET: MESSAGE BOX
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    {% if X %}
        <div class="message message--X">{{ X }}</div>
    {% endif %}

   -------------------------------------------------------------------------- */

.message {
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #D8D8D8; /* var(--color--borders) */
    border-left-width: 8px;
    border-left-style: solid;
    background-color: #FFFFFF;
    padding: 20px;
}

.message--error {
    border-left-color: #F93535;
}

.message--info {
    border-left-color: #000000; /* var(--color--site) */
}

.message--warning {
    border-left-color: #F1BE32;
}

/* SNIPPET: PAGE BUSY
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation. Mention JS.
   --------------------------------------------------------------------------

    <body class="X tpt_pageBusy">
        [...]
    </body>

   -------------------------------------------------------------------------- */

.tpt_pageBusy,
.tpt_pageBusy input,
.tpt_pageBusy button,
.tpt_pageBusy a {
    cursor: wait;
}

/* SNIPPET: PARTIAL SAVE
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <div class="partially-saved">
        <span class="partially-saved__dot"></span>
    </div>

   -------------------------------------------------------------------------- */
.partially-saved {
    position: relative;
}

.partially-saved:hover {
    background-color: #FCF6EA;
}

.partially-saved__bar {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: #F1BE32;
}

/* SNIPPET: PRELOADER
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation. Clean JS.
   --------------------------------------------------------------------------

    <div class="will-load-content awaiting-content"></div>

    <script>
        tpt.queue.add(
            function () {
                "use strict";
                (function ($) {
                    $.get(
                        "{{ url|raw }}",
                        function (data) {
                            $('{{ selector }}').append(data).removeClass('awaiting-content');
                            tpt.queue.next();
                        }
                    );
                }($ || avajQuery));
            }
        );
    </script>

   -------------------------------------------------------------------------- */

.will-load-content {
    background-position: center center;
    -webkit-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.will-load-content.awaiting-content {
    background-image: var(--spinner);
}

.list-controls--loadmore img {
    max-width: 25px;
    max-height: 10px;
    margin-left: 5px;
}

/* SNIPPET: POP-UP ON HOVER
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <div class="popup-on-hover">
        <a class="popup-on-hover__link">X</a>

        <div class="popup-on-hover__popup">
            [...]
        </div>
    </div>

   -------------------------------------------------------------------------- */

.popup-on-hover {
    display: inline;
    position: relative;
}

.popup-on-hover__link {
    font-weight: 500;
    color: #000000; /* var(--color--site) */
}

.popup-on-hover__popup {
    display: none;
    position: absolute;
    z-index: 2;
    top: 10px;
    left: -9999px;
    width: 366px;
    padding-top: 22px;
    font-weight: normal;
}

/* Media query to target only desktop */
@media all and (min-width:1025px) {
    .popup-on-hover:hover .popup-on-hover__popup {
        display: block;
        left: calc(50% - 183px);
    }
}

/* SNIPPET: RATING STARS
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <span class="rating">★★★★☆</span>

   -------------------------------------------------------------------------- */

.rating {
    font-size: 125%;
    line-height: inherit;
    letter-spacing: -2px;
    color: #EFCE4A;
}

/* SNIPPET: SWITCHER
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <div class="switcher">
        {{ txt["viewAs"][abc]|raw }}:

        <span class="switcher__toggling">
            <a class="switcher__toggling__option switcher__toggling__option--active">
                <i class="fv fv-th-large fa-lg" aria-hidden="true"></i>
            </a>

            <a class="switcher__toggling__option">
                <i class="fv fv-table fa-lg" aria-hidden="true"></i>
            </a>
        </span>

        <span class="switcher__pointing">
            <a class="switcher__pointing__option switcher__pointing__option--active" href="#">
                <i class="fv fv-th-large fa-lg" aria-hidden="true"></i>
            </a>

            <a class="switcher__pointing__option" href="#">
                <i class="fv fv-table fa-lg" aria-hidden="true"></i>
            </a>
        </span>
    </div>

   -------------------------------------------------------------------------- */

.switcher {
    font-size: 14px;
}

.switcher [class*="__option"]:hover,
.switcher [class*="__option"]:active,
.switcher [class*="__option"]:focus {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.switcher [class*="__option--active"] {
    cursor: default;
}

.switcher--as-icons > span > * {
    margin-left: 10px;
}

.switcher--as-icons [class*="__option--active"] {
    color: #000000; /* var(--color--site) */
}

.switcher--as-slide .switcher__pointing {
    display: inline-block;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #000000; /* var(--color--buttons) */
}

.switcher--as-slide .switcher__pointing__option {
    display: inline-block;
    float: left;
    margin: -1px;
    outline: 0;
    border-radius: 5px;
    padding: 6px 10px; /* We achieve 32px height trough padding */
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    text-transform: initial;
    text-decoration: none;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
    color: #000000; /* var(--color--buttons) */
}

.switcher--as-slide .switcher__pointing__option--active {
    background-color: #000000; /* var(--color--buttons) */
    color: #FFFFFF;
}

/* SNIPPET: VERTICAL CENTERING
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation.
   --------------------------------------------------------------------------

    <div class="valign--center">
        [...]
    </div>

   -------------------------------------------------------------------------- */

.valign--center {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

/* SNIPPET: VIDEO EMBEDDING
   ========================================================================== */

/* HTML Snippet
   --------------------------------------------------------------------------
   Brief explanation. Link to generator.
   --------------------------------------------------------------------------

    <div class="embed-container">
        <iframe src='X' frameborder='0' allowfullscreen></iframe>
    </div>

   -------------------------------------------------------------------------- */

.embed-container {
    position: relative;
    max-width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

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

/* Text Colors */
.t-color--darkgray {
  color: #3D3D3D;
}

.t-color--lightgray {
  color: #595959;
}
.t-color--lightgray-1 {
  color: #4E4E4E;
}
.t-color--lightgray-2 {
  color:rgba(61, 61, 61, 0.5)
}

/* Margin Padding */
.t-mar--0 {
    margin-top: 0;
}

.t-mar--50 {
    margin-top: 50px;
}

.t-mar--40 {
    margin-top: 40px;
}

.t-mar--20 {
    margin-top: 20px
}

.t-pad--100 {
    padding-top: 100px;
}
.b-mar--30 {
    margin-bottom: 30px;
}

.b-mar--50 {
    margin-bottom: 50px;
}

.b-mar--17 {
    margin-bottom: 17px;
}

.r-mar--30 {
  margin-right: 30px;
}

/* borders */
.border-radius-0 {
  border-radius: 0 !important;
}
