@import '@cnbritain/wc-variables/sass/themes/wired';
@import '@cnbritain/wc-sass-mixins/sass/page';
@import '@cnbritain/wc-sass-fonts/sass/themes/wired';
@import '@cnbritain/wc-sass-globals/sass/page';
@import '@cnbritain/wc-buttons/sass/themes/wired';

@import "../gallery";

$_FONT_BRUTAL: map-get($FONT_GROUPS, 'BRUTAL');
$_FONT_EXCHANGE: map-get($FONT_GROUPS, 'EXCHANGE WEB');
$_FONT_GROTESK: map-get($FONT_GROUPS, 'NEW GROTESK SQUARE');

.c-gallery {
    margin-top: $MOBILE_SLICE_MARGIN;
    margin-bottom: $MOBILE_SLICE_MARGIN;
    padding-left: 0;
    padding-right: 0;

    @include min-screen($TABLET_SIDE_GUTTER_BREAKPOINT) {
        margin-top: $TABLET_SLICE_MARGIN;
        margin-bottom: $TABLET_SLICE_MARGIN;
        padding-left: $TABLET_SIDE_GUTTER;
        padding-right: $TABLET_SIDE_GUTTER;
    }

    @include min-screen($DESKTOP_SIDE_GUTTER_BREAKPOINT) {
        margin-top: $DESKTOP_SLICE_MARGIN;
        margin-bottom: $DESKTOP_SLICE_MARGIN;
        padding-left: $DESKTOP_SIDE_GUTTER;
        padding-right: $DESKTOP_SIDE_GUTTER;
    }

    &:hover {
        .c-gallery__title span {
            @include fancy-underlines(#000, #fff, #fff, transparent);
        }
        .c-gallery__btn {
            @extend %btn-single--dark--hover;
        }
    }
}

.c-gallery__btn {
    box-sizing: border-box;
    display: inline-block;
    font-family: map-get($_FONT_BRUTAL, 'FAMILY');
    @include font-size(13px);
    line-height: map-get($_FONT_BRUTAL, 'LINE HEIGHT');
    margin-top: 30px;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;

    @include gallery-slice-at-medium() {
        bottom: 40px;
        left: 50%;
        position: absolute;
        width: auto;
        @include vendor-prefix(transform, translateX(-50%));
    }
}
.c-gallery__byline {
    margin-bottom: 10px;
    margin-top: 15px;
}
.c-gallery__byline-name {
    font-family: map-get($_FONT_BRUTAL, 'FAMILY');
    text-transform: uppercase;
}
.c-gallery__byline-prefix {
    font-family: map-get($_FONT_EXCHANGE, 'FAMILY');
    font-style: italic;
}
.c-gallery__desc {
    display: none;
}
.c-gallery__image-main,
.c-gallery__image-strip {
    img {
        width: 100%;
    }
}
.c-gallery__image-strip--large {}
.c-gallery__image-strip--medium {}
.c-gallery__image-strip--small {}
.c-gallery__image-strip-item {}
.c-gallery__image-strip-item__remaining {
    background-color: rgba(0,0,0,0.5);
    color: #fff;
}
.c-gallery__image-strip-item__remaining-prefix {
    @include font-size(28px);

    @include gallery-slice-at-large(){
        @include font-size(30px);
    }
}
.c-gallery__image-strip-item__remaining-value {
    font-family: map-get($_FONT_BRUTAL, 'FAMILY');
    @include font-size(31px);
    font-weight: map-get($FONT_WEIGHTS, 'BOLD');

    @include gallery-slice-at-large(){
        @include font-size(35px);
    }
}
.c-gallery__images {}
.c-gallery__images-table {}
.c-gallery__link {}
.c-gallery__link--article {}
.c-gallery__meta {
    font-family: map-get($_FONT_EXCHANGE, 'FAMILY');
    @include font-size(11px);
    letter-spacing: 0.02em;

    .c-gallery__meta-item {
        padding-right: 10px;

        & + .c-gallery__meta-item{
            border-left: 1px solid rgba(255, 255, 255, 0.4);
            padding-left: 10px;
        }

        &:last-child {
            padding-right: 0;
        }
    }
}

.c-gallery__meta-item--date {}
.c-gallery__meta-item--tag {}
.c-gallery__separator {
    border: none;
    border-bottom: 1px solid #fff;
    margin: 0 auto 10px auto;
    width: 20px;

    @include gallery-slice-at-large(){
        margin-bottom: 25px;
        width: 50px;
    }

}
.c-gallery__text {
    background: #000;
    color: #fff;
    padding: 30px 30px;
    text-align: center;

    @include gallery-slice-at-medium(){
        position: relative;
    }

    @include gallery-slice-at-large(){
        padding: 50px;
    }

}
.c-gallery__title {
    font-family: map-get($_FONT_GROTESK, 'FAMILY');
    @include font-size(40px);
    font-weight: map-get($FONT_WEIGHTS, 'LIGHT');
    letter-spacing: 0.020em;
    line-height: map-get($_FONT_GROTESK, 'LINE HEIGHT');
    // This is 13px due to grotesk visually looking a bit weird
    margin: 0 0 13px 0;

    svg {
        display: block;
        height: 17px;
        margin: 0 auto 20px auto;
        width: auto;
        path {
            fill: #fff;
        }
    }

    @include min-screen( $FEATURE_LARGE_BREAKPOINT ){
        @include font-size(45px);
    }

    @include gallery-slice-at-large(){
        @include font-size(45px);
        margin: 0 0 20px 0;

        svg {
            height: 20px;
            margin-bottom: 30px;
        }

    }

}
.c-gallery__visible--medium {}
.c-gallery__visible--small {}
.c-gallery__wrapper-table {
    background-color: #000;
}
