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

@import '../gallery';

.c-gallery {
    @include section-margins;

    padding-left: 0;
    padding-right: 0;

    @include tablet-size {
        padding-left: $TABLET_SIDE_GUTTER;
        padding-right: $TABLET_SIDE_GUTTER;
    }

    @include desktop-size {
        padding-left: $DESKTOP_SIDE_GUTTER;
        padding-right: $DESKTOP_SIDE_GUTTER;
    }

    &:hover {
        .c-gallery__btn {
            @extend %btn-single--dark--hover;
        }
    }
}

.c-gallery__btn {
    @include font('GRAPHIK', 13px);

    box-sizing: border-box;
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;

    @include gallery-slice-at-medium() {
        bottom: 40px;
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
        width: auto;
    }
}

.c-gallery__byline {
    @include byline;
    margin-bottom: 5px;
    margin-top: 15px;
}

.c-gallery__byline-name {
    @include byline-name;
}

.c-gallery__byline-prefix {
    @include byline-prefix;
}

.c-gallery__desc {
    @include font('GRAPHIK', 15px, 'NORMAL', 20px);
    margin-bottom: 15px;

    @include min-screen($FEATURE_LARGE_BREAKPOINT) {
        @include font('GRAPHIK', 17px, 'LIGHT', 23px);
        margin-bottom: 15px;
        margin-top: 8px;
    }
}

.c-gallery__image-strip--small {
    display: table-header-group;


    @include gallery-slice-at-medium() {
        display: none;
    }
}

.c-gallery__image-strip-item {
    position: relative;

    &::after {
        bottom: 0;
        content: '';
        display: block;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
    }
}

.c-gallery__image-strip-item__remaining {
    background-color: $COLOUR_BG_GALLERY_REMAINING;
    border-radius: 50%;
    color: $COLOUR_MAIN;
    height: 70%;
    margin: 15%;
    width: 70%;

    @include gallery-slice-at-large() {
        height: 60%;
        margin: 20%;
        width: 60%;
    }
}

.c-gallery__image-strip-item__remaining-text {
    white-space: nowrap;
}

.c-gallery__image-strip-item__remaining-prefix {
    @include font-size(23px);
    @include font-weight(500);
    margin-right: -2px;

    @include gallery-slice-at-large() {
        @include font-size(25px);
        margin-right: -1px;
    }
}

.c-gallery__image-strip-item__remaining-value {
    @include font('GRAPHIK', 23px, 'SEMI BOLD');

    @include gallery-slice-at-large() {
        @include font-size(25px);
    }
}

.c-gallery__images {

    img {
        width: 100%;
    }

    @include gallery-slice-at-large() {
        width: 50%;
    }
}

.c-gallery__meta {
    @include meta-default;
    line-height: 18px;
}
li.c-gallery__meta-item {
    @include meta-item;
    @include global-meta-item;

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


.c-gallery__separator {
    display: none;
}

.c-gallery__text {
    background-color: $COLOUR_SECTION_GALLERY;
    display: table-footer-group;
    color: $COLOUR_MAIN;
    text-align: center;

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

    @include gallery-slice-at-large() {
        text-align: left;
        width: 50%;
    }

}

.c-gallery__text__wrapper {
    padding: 30px 20px;

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

.c-gallery__title {
    @include title-feature;
    margin-top: 0;
    margin-bottom: 10px;

    svg {
        display: block;
        height: 19px;
        margin: 0 auto;
        margin-bottom: 13px;
        padding-top: 5px;
        vertical-align: top;
        width: 24px;
    }
    path {
        fill: $COLOUR_MAIN;
    }

    @include gallery-slice-at-large() {
        @include title-feature-desktop;
        margin-bottom: 8px;

        svg {
            height: 21px;
            display: inline;
            margin-bottom: 0;
            padding-right: 5px;
            width: 21px;
        }

    }
}


.c-gallery__wrapper-table {
    background-color: $COLOUR_BG_SECONDARY;
    display: table;
}
