/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

html {
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

main {
    display: block;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    text-decoration: underline dotted;
    /* 2 */
}

b,
strong {
    font-weight: bolder;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* 1 */
    font-size: 100%;
    /* 1 */
    line-height: 1.15;
    /* 1 */
    margin: 0;
    /* 2 */
}

button,
input {
    /* 1 */
    overflow: visible;
}

button,
select {
    /* 1 */
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

textarea {
    overflow: auto;
}

[hidden] {
    display: none;
}

/* ORIGINAL SOURCE CODE */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    letter-spacing: 0.01px;
}

body {
    background-size: cover;
    background-repeat: no-repeat;
}

main {
    margin-top: 6rem;
}

main img {
    width: 17.2rem;
    height: 18.5rem;
    box-shadow: 3px 3px 8px #111;
    border: 1px solid #111;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: hsla(0, 0%, 100%, 1);
    width: 100%;
    text-align: center;
}

.header-brand img {
    height: 6.6rem;
    margin: 0.5rem 4.8rem 0 0;
}

h2 {
    font-family: 'Catamaran', Arial, sans-serif;
    font-size: 1.7rem;
    margin: 1.5rem 0;
}

p {
    font-family: 'Cormorant Garamond', Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 2rem;
}

.icon-menu-size {
    height: 2.6rem;
    width: 2.2rem;
    float: left;
}

.dt-link {
    display: none;
}

.sidepanel {
    width: 0;
    position: fixed;
    z-index: 1;
    height: 100%;
    top: 0;
    left: 0;
    background: #3494E6;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #EC6EAD, #3494E6);
    background: linear-gradient(to right, #EC6EAD, #3494E6);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar-logo {
    height: 6.2rem;
    width: 6.2rem;
    border-radius: 10px;
    margin: auto;
    filter: brightness(0);
}

.sidepanel a {
    font-family: 'Pacifico', Arial, sans-serif;
    text-transform: capitalize;
    padding: 1rem 0.7rem 0.7rem 1.5rem;
    font-size: 1.3rem;
    color: #111;
    display: block;
    transition: 0.3s;
    white-space: nowrap;
}

.sidepanel a:active {
    color: #f1f1f1;
}

.sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

.openbtn {
    font-size: 20px;
    padding: 10px 15px;
    border: none;
}

.openbtn:active {
    background-color: #f2f2f2;
}

header nav ul {
    /* DISPLAY BLOCK CAN HELP TO CENTRE ELEMENTS */
    margin: 0 auto;
    display: block;
    width: fit-content;
}

header nav ul li {
    display: inline-block;
    list-style: none;
    padding: 0 1.1rem;
    text-align: center;
}

header nav ul li a {
    font-family: 'Catamaran';
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
}

figure {
    text-align: center;
}

figcaption {
    font-family: 'Trebuchet MS';
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0.8rem 0 4.5rem 0;
}

.descriptive-figcaption-text {
    font-size: 1.1rem;
    font-style: oblique;
}

.laptop-only {
    display: none;
}

.project-img {
    text-align: center;
    margin-top: 10rem;
}

.about-stairs {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 320px;
    font-weight: 500;
}

.stair-1,
.stair-3 {
    margin: 0 1rem;
}

.stair-2,
.stair-4 {
    margin: 3rem 1rem;
}

.stair-1 {
    background: rgb(222, 202, 176);
}

.stair-2 {
    background: rgb(193, 193, 193);
}

.stair-3 {
    background: lightsteelblue;
}

.stair-4 {
    background: rgb(194, 192, 220);
}

.stair-1,
.stair-2,
.stair-3,
.stair-4 {
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

/* INDEX PAGE */

.index-banner {
    width: 100%;
    height: 60vh;
    background: #3494E6;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #EC6EAD, #3494E6);
    background: linear-gradient(to right, #EC6EAD, #3494E6);
    margin-top: 8.5rem;
    display: table;
    margin: 0;
}

.vertical-center {
    display: table-cell;
    vertical-align: middle;
}

.index-banner h2 {
    font-size: 60px;
    font-weight: 900;
    text-shadow: 2px 2px 8px #111;
    font-family: 'Lobster', Arial, sans-serif;
    line-height: 70px;
    color: #000;
    text-align: center;
}

.index-banner h1 {
    font-size: 28px;
    font-weight: 100;
    text-shadow: 2px 2px 8px #111;
    font-family: 'Catamaran', Arial, sans-serif;
    line-height: 40px;
    color: #000;
    text-align: center;
}

.styled-heading {
    display: inline-block;
    padding: 1rem 1rem;
    margin-top: 1rem;
    background-color: rgb(194, 192, 220);
    font-size: 3rem;
    font-family: 'Lobster', Arial, sans-serif;
}

.b-shadow {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.mobile-only,
.tablet-only {
    margin-top: 5.5rem;
}

.tablet-only {
    display: none;
}

.dt-sm {
    display: none;
}

.closebtn2,
.overlay-content,
.overlay-logo {
    display: none;
}

/* GENERAL / INDEX PAGE TABLET BREAKPOINT */

@media only screen and (min-width: 768px) {
    nav {
        float: right;
    }

    .icon-menu-size {
        float: left;
        height: 2.3rem;
    }

    .index-banner {
        height: 40vh;
    }

    .mobile-only,
    .dt-sm {
        display: none;
    }

    .tablet-only {
        display: block;
    }

    .work-header {
        font-size: 2.6rem;
    }

    main img {
        height: 18rem;
        width: 18rem;
    }

    .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        align-items: center;
    }

    .column {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        flex: 1;
        align-items: center;
    }

    .image-column {
        margin: 0 2rem 4rem 3rem;
    }

    .text-column {
        margin: 2rem;
    }

    figcaption {
        font-size: 1.9rem;
        font-family: 'Pacifico', Arial, sans-serif;
    }

    .closebtn2,
    .overlay-content,
    .overlay-logo {
        display: none;
    }

    .stair-1,
    .stair-3 {
        position: relative;
        right: 40px;
    }

    .stair-2,
    .stair-4 {
        position: relative;
        left: 40px;
    }
}

/* GENERAL / INDEX PAGE DESKTOP BREAKPOINT */

@media only screen and (min-width: 992px) {
    header {
        text-align: center;
    }

    header .header-brand {
        float: left;
        margin-left: 2.5rem;
    }

    .header-brand img {
        margin: 1rem 0 0 0.8rem;
    }

    .rotate:hover {
        transition: all 1s ease;
        transform: rotateY(360deg);
    }

    nav {
        float: right;
    }

    .openbtn {
        display: none;
    }

    .dt-link {
        font-family: 'Raleway', Georgia, sans-serif;
        color: #111;
        font-weight: 500;
        font-size: 1.8rem;
        display: inline-block;
        margin: 4rem 0 0 1rem;
        padding-left: 1.2rem;
    }

    .work-nav {
        text-decoration: underline;
    }

    .dt-sm {
        margin-right: 2.5rem;
        display: inline-block;
        margin-top: 30%;
        height: 1.8rem;
        width: 1.8rem;
    }

    header nav ul {
        margin: 20px 0 0 20px;
        float: left;
    }

    header nav ul li a {
        line-height: 6.5rem;
    }

    .index-banner h1 {
        font-size: 42px;
        line-height: 70px;
    }

    .index-banner h2 {
        font-size: 80px;
        line-height: 100px;
    }

    .overlay-DT-only {
        height: 0%;
        width: 100%;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background: #3494E6;
        /* fallback for old browsers */
        background: -webkit-linear-gradient(to right, #EC6EAD, #3494E6);
        background: linear-gradient(to right, #EC6EAD, #3494E6);
        overflow-y: hidden;
        transition: 0.8s;
    }

    .overlay-content {
        position: relative;
        top: 25%;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }

    .overlay-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: -5rem;
        height: 8rem;
        width: 8rem;
        filter: brightness(0);
    }

    .overlay-DT-only a {
        font-family: 'Pacifico', Arial, sans-serif;
        text-transform: capitalize;
        padding: 1.5rem;
        font-size: 1.425rem;
        color: #111;
        transition: 0.3s;
    }

    .overlay-DT-only a:hover,
    .overlay a:focus {
        color: #f1f1f1;
        background-color: #111;
    }

    .overlay-DT-only .closebtn2 {
        position: absolute;
        top: 20px;
        right: 45px;
        font-size: 3.8rem;
        line-height: 0;
    }

    .overlay-DT-only .closebtn2:hover {
        background-color: unset;
    }

    header img {
        height: 7rem;
    }

    .index-banner {
        height: 450px;
    }

    .index-banner h1 {
        width: 560px;
        display: block;
        margin: 0 auto;
    }

    .index-links {
        overflow: hidden;
    }

    .index-links div {
        margin: 20px 10px 0;
        height: 230px;
        background-color: #f2f2f2;
        float: left;
    }

    .closebtn2,
    .overlay-content,
    .overlay-logo {
        display: block;
    }

    .mobile-only,
    .tablet-only {
        display: none;
    }

    .laptop-only {
        display: block;
    }

    main img {
        box-shadow: none;
        border: none;
    }

    .center-grid-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .grid-gallery-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(auto, 27rem));
        grid-template-rows: repeat(4, 42vh);
        margin: 5.5rem 2.5rem;
    }

    .grid-gallery-container img {
        width: 100%;
        height: 100%;
    }

    .gallery-pic-10 {
        grid-area: 4 / 2 / 4 / 3;
    }
}

@media only screen and (min-width: 1200px) {
    .grid-gallery-container {
        grid-template-rows: repeat(4, 50vh);
    }
}

/* FOOTER */

footer {
    width: calc(100% - 80px);
    padding: 20px 40px;
    margin-top: 7rem;
    background-color: #111;
    overflow: hidden;
    /* FLOATING ELEMENTS CAN CAUSE BROWSER TO NOT RECOGNISE ANYTHING IS IN CONTAINER!
    FIX WITH OVERFLOW: HIDDEN */
}

footer ul {
    padding-left: 20px;
    float: left;
}

footer ul li {
    display: block;
    list-style: none;
}

footer ul li a {
    font-family: 'Catamaran';
    font-size: 1.2rem;
    color: #fff;
    line-height: 40px;
}

.footer-links-cases {
    display: none;
}

.footer-sm {
    width: 50px;
    float: right;
}

.footer-sm img {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
}

@media only screen and (min-width: 768px) {
    footer ul li a {
        font-size: 1.5rem;
    }

    .footer-links-cases {
        display: block;
        margin-left: 1rem;
    }

    .footer-links-main {
        margin-left: 1.2rem;
    }

    .footer-sm img {
        margin-bottom: 2rem;
    }
}

@media only screen and (min-width: 992px) {
    .footer-links-cases {
        display: block;
        float: left;
        margin-left: 2rem;
    }

    .footer-links-main {
        margin-left: 2rem;
        float: left;
    }

    .footer-sm img {
        width: 2.6rem;
        height: 2.8rem;
        margin-bottom: 2.5rem;
    }

    footer ul li span {
        font-family: 'Catamaran';
        font-size: 24px;
        color: #fff;
        line-height: 40px;
        text-transform: uppercase;
    }

    footer ul {
        padding-right: 30px;
    }
}

@media only screen and (min-width: 1200px) {
    .footer-links-cases {
        margin-left: 6.5rem;
    }

    .footer-links-main {
        margin-left: 6.5rem;
    }

    footer ul {
        padding-right: 30px;
    }
}

/* CONTACT PAGE, FORM & ABOUT */

main.content-center {
    text-align: center;
}

.contact-heading {
    display: inline-block;
    padding: 1rem 1rem;
    margin-top: 5rem;
    background-color: lightblue;
    font-size: 3rem;
    font-family: 'Lobster', Arial, sans-serif;
}

.text-about-contact {
    display: inline-block;
    background-color: #f2f2f2;
    padding: 1.5rem 0;
    margin: 5rem 0.8rem;
    border-radius: 25px;
}

.text-about-contact h1,
p {
    font-family: 'Raleway', sans-serif;
}

.contact-email {
    font-size: 1.4rem;
}

.enlarge-on-hover:hover {
    transform: scale(1.1);
}

input,
textarea {
    padding: 10px;
    margin: 0.5rem;
    border: 1px solid #e5e5e5;
    width: 190px;
    color: #999999;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 8px;
    -moz-box-shadow: rgba(0, 0, 0, 0.1) 0 0 8px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 0 8px;
}

textarea {
    width: 250px;
    height: 150px;
    max-width: 600px;
    max-height: 300px;
    line-height: 1rem;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus {
    border: 1px solid dodgerblue;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 8px;
    -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 0 8px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 0 8px;
}

.form label {
    margin-left: 1rem;
    color: #999999;
}

.submit input {
    width: 100px;
    height: 40px;
    background-color: #474e69;
    color: #fff;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
}

/* CONTACT / ABOUT TABLET BREAKPOINT */

@media only screen and (min-width: 768px) {
    .contact-email {
        font-size: 1.8rem;
    }

    input,
    textarea {
        width: 400px;
        height: 40px;
        font-size: 1.2rem;
    }

    textarea {
        width: 500px;
        height: 170px;
    }

    .submit input {
        width: 100px;
        height: 40px;
    }

    .text-about-contact {
        width: 650px;
        font-size: 1.4rem;
    }

    .about-stairs {
        width: 550px;
        text-align: justify;
    }
}

/* CONTACT FORM / ABOUT DESKTOP BREAKPOINT */

@media only screen and (min-width: 992px) {
    .contact-heading {
        font-size: 4rem;
    }

    .contact-email {
        font-size: 2.2rem;
    }

    input,
    textarea {
        width: 500px;
        height: 50px;
        font-size: 1.4rem;
    }

    textarea {
        width: 600px;
        height: 200px;
    }

    .submit input {
        width: 200px;
        height: 60px;
    }

    .text-about-contact {
        width: 800px;
        text-align: center;
        font-size: 1.6rem;
    }

    .about-stairs {
        width: 700px;
    }
}

@media only screen and (min-width: 1200px) {
    .text-about-contact {
        width: 1100px;
        margin: 5rem 2rem;
    }

    .about-stairs {
        width: 1000px;
    }
}

@media only screen and (min-width: 1440px) {
    .text-about-contact {
        width: 1300px;
    }

    .about-stairs {
        width: 1050px;
    }
}

/* GALLERY PAGES - SELINA BIRMINGHAM, FASHION COLLAGE, ALPHABET, HOLIDAYS, CONGRATS. */

/* MOBILE */

.carousel {
    background: #111;
    margin-top: 8rem;
}

.carousel-cell {
    width: 78%;
    height: 29rem;
    /* flex-box, center image in cell */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

.carousel-cell img {
    display: block;
    width: 17rem;
    height: 20rem;
    /* dim unselected */
    opacity: 0.7;
    -webkit-transform: scale(0.85);
    transform: scale(0.85);
    -webkit-filter: blur(5px);
    filter: blur(5px);
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s, transform 0.3s, -webkit-filter 0.3s, filter 0.3s;
    transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}

/* brighten selected image */
.carousel-cell.is-selected img {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-filter: none;
    filter: none;
}

/* buttons, no circle */
.flickity-prev-next-button {
    width: 60px;
    height: 60px;
    background: transparent;
    opacity: 0.6;
}

.flickity-prev-next-button:hover {
    background: transparent;
    opacity: 1;
}

/* arrow color */
.flickity-prev-next-button .arrow {
    fill: white;
}

.flickity-prev-next-button.no-svg {
    color: white;
}

/* closer to edge */
.flickity-prev-next-button.previous {
    left: 0;
}

.flickity-prev-next-button.next {
    right: 0;
}

/* hide disabled button */
.flickity-prev-next-button:disabled {
    display: none;
}

.project-info {
    display: inline-block;
    background-color: #f2f2f2;
    padding: 1.3rem;
    margin: 5rem 1.2rem 3rem 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    text-align: start;
}

@media screen and (max-height: 450px) {
    .overlay-DT-only {
        overflow-y: auto;
    }

    .overlay-DT-only a {
        font-size: 20px
    }

    .overlay-DT-only .closebtn2 {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

/* TABLET */

@media only screen and (min-width: 768px) {
    .carousel-cell {
        height: 450px;
        width: 60%;
    }

    .carousel-cell img {
        width: 19rem;
        height: 23rem;
    }

    .project-info {
        width: 600px;
    }
}

/* DESKTOP */

@media only screen and (min-width: 992px) {
    .carousel-cell {
        width: 60%;
        height: 600px;
    }

    .carousel-cell img {
        height: 28rem;
        width: 25rem;
    }

    .project-info {
        width: 800px;
    }
}

@media only screen and (min-width: 1200px) {
    .carousel-cell {
        width: 60%;
    }

    .project-info {
        width: 1000px;
    }
}
