/* =========================================
   THE GOODS ACTORS
   Page stylesheet
   ========================================= */

:root {
    --magenta: #820e54;
    --blue: #9ac8ff;
    --pink: #f0bcda;
    --green: #2D7653;

    --page-padding: 6.7%;
    --content-max-width: 1180px;
}


/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--magenta);
    color: var(--pink);
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   PAGE
   ========================================= */

.goods-page {
   position: relative;

    min-height: 100vh;
    background: var(--magenta);
    padding: 100px var(--page-padding) 30px;

    display: flex;
    flex-direction: column;
}


/* =========================================
   HEADER
   ========================================= */

.goods-header {
    width: 80%;
    margin: 0 auto 45px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* =========================================
   LOGO
   ========================================= */

.goods-logo {
    display: block;

    width: 600px;
    height: auto;
}


/* =========================================
   CATEGORY BUTTONS
   ========================================= */

.goods-categories {
    /* margin-right: 3%; */
}

.goods-category {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 58px;
    padding: 0 25px;

    background: var(--pink);
    color: var(--magenta);

    border-radius: 40px;

    font-size: 30px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.goods-category + .goods-category {
    margin-top: 15px;
}

.goods-category:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--green);
}


/* =========================================
   PAGE TITLE
   ========================================= */

.goods-title {
    margin: 20px 0 26px;

    color: var(--blue);

    font-size: 44px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
}


/* =========================================
   GENERAL CONTENT
   ========================================= */

.goods-content {
    width: 100%;
    max-width: var(--content-max-width);

    margin: 0 auto;
    padding: 0 35px;
}

.goods-content p {
    width: 100%;

    margin: 0 0 34px;

    font-size: 24px;
    line-height: 1.38;
}


/* =========================================
   HOME PAGE CONTENT
   ========================================= */

.goods-page-content {
    display: block !important;

    width: 80% !important;
    max-width: none !important;

    margin: 0 auto !important;
    padding: 0 !important;
}


/* HOME PAGE TITLE */

.goods-page-content .goods-title {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 20px 0 100px !important;

    color: var(--blue) !important;

    font-size: 44px !important;
    line-height: 1 !important;

    text-align: center !important;
}


/* HOME PAGE PARAGRAPHS */

.goods-page-content > p {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 0 34px !important;
    padding: 0 !important;

    color: var(--pink) !important;

    font-size: 24px !important;
    line-height: 1.38 !important;

    text-align: justify !important;
}

.goods-page-content > p:last-child {
    margin-bottom: 80px !important;
}


/* =========================================
   FOOTER / CONTACT
   ========================================= */
.goods-contact {
    width: 80%;
    margin: 80px auto 0;

    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;

    color: var(--blue);
    font-size: 23px;
    font-weight: 700;
}

.goods-contact-item {
    display: block !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    white-space: nowrap;
}

.goods-contact-item:nth-child(1) {
    justify-self: start;
}

.goods-contact-item:nth-child(2) {
    justify-self: center;
}

.goods-contact-item:nth-child(3) {
    justify-self: end;
}


.goods-contact a {
    color: var(--blue);
    text-decoration: none;
}

.goods-contact a:hover {
    text-decoration: underline;
}


/* =========================================
   ACTOR NAME
   ========================================= */

.actor h4 {
    margin-top: 6px;

    color: var(--blue);

    text-align: center;

    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

    line-height: 19px;
}


/* =========================================
   ACTOR PROFILE PAGE
   ========================================= */

body:has(.profile) {
    background: var(--magenta);
    color: var(--pink);
}


/* BACK TO ACTORS */

body:has(.profile) > .container:first-child {
    margin-top: 90px;
}

body:has(.profile) > .container:first-child a {
    color: var(--blue);

    font-size: 20px;

    text-decoration: underline;
}


/* PROFILE */

.profile {
    color: var(--pink);
}


/* =========================================
   PROFILE COLUMNS
   ========================================= */

.profile > .col-sm-4,
.profile > .col-sm-8 {
    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================
   PROFILE SECTION HEADINGS
   ========================================= */

.profile h3 {
    margin-top: 0;
    margin-bottom: 10px;

    padding-bottom: 2px;

    border-bottom: 1px solid;

    color: var(--pink);

    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
}


/* =========================================
   MAIN ACTOR PHOTO
   ========================================= */

.profile img {
    width: 100%;
    height: auto;
}

#gallery-image {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;

    transition: 0.3s ease-in-out;
}


/* =========================================
   THUMBNAILS
   ========================================= */

.thumb {
    margin-top: 15px;
}

.thumb:nth-child(3n+1) {
    clear: both;
}

.profile .thumb {
    padding-left: 15px;
    padding-right: 15px;
}

.thumb img {
    width: 100%;
    height: auto;

    cursor: pointer;

    opacity: 0.8;

    transition: 0.3s ease-in-out;
}

.thumb img:hover {
    transform: scale(1.1);
    opacity: 1;
}


/* =========================================
   PROFILE DETAILS
   ========================================= */

.profile ul {
    list-style: none;

    padding: 0;
}

.profile ul b {
    margin-right: 10px;
}

.profile .col-sm-4 ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.profile .col-sm-4 li {
    margin: 0;
    padding: 0;

    color: var(--pink);

    font-size: 20px;
    line-height: 1.4;
}

.profile .col-sm-4 li strong {
    font-weight: 400;
}

.profile .col-sm-4 li a {
    color: var(--blue);

    text-decoration: underline;
}

.profile .details {
    font-size: 18px;
}


/* =========================================
   ACTOR NOTES
   ========================================= */

.actor-notes > div {
    color: var(--pink);
}


/* =========================================
   CREDITS
   ========================================= */

.credits {
    margin: 0;
    padding: 0;

    list-style: none;
}

.credits li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--pink);

    font-size: 18px;
    line-height: 1.4;
}

.credits .year,
.credits .type,
.credits .company,
.credits .director,
.credits .role {
    color: var(--pink);
}

.credits .production {
    color: var(--blue);
}


/* =========================================
   VIDEO
   ========================================= */

#player {
    max-width: 640px;
    height: 360px;

    float: left;

    background-color: #000;
}

#playlist {
    width: 225px;
    height: 360px;

    float: left;

    padding: 0;

    background-color: #000;

    color: #c3c3c3;

    border-left: 1px solid #333;

    font-size: 18px;
}

#playlist li {
    padding: 10px;

    border-bottom: 1px solid #333;

    cursor: pointer;

    transition: all 0.3s ease-in-out;
}

#playlist .active {
    color: #E8B201;
}


/* =========================================
   VIDEO PLACEHOLDER
   ========================================= */

#placeholder {
    position: relative;

    width: 100%;
    height: 165px;

    background-color: #000;

    cursor: pointer;
}

#placeholder .glyphicon-play {
    position: absolute;

    top: 60px;
    left: 160px;

    color: #FFF;

    font-size: 40px;

    transition: 0.2s ease-in-out;
}

#placeholder:hover .glyphicon-play {
    transform: scale(1.2);
}


/* =========================================
   FADE
   ========================================= */

.fadeOut {
    opacity: 0;
}


/* =========================================
   TABLET
   768px – 992px
   ========================================= */

@media (min-width: 768px) and (max-width: 992px) {

    .profile .thumb:nth-child(3n+1) {
        clear: both;
    }

    .right-md {
        text-align: right;
    }
}


/* =========================================
   MEDIUM DESKTOP
   992px – 1200px
   ========================================= */

@media (min-width: 992px) and (max-width: 1200px) {

    .profile .thumb:nth-child(3n+1) {
        clear: both;
    }

    .right-md {
        text-align: right;
    }
}


/* =========================================
   LARGE DESKTOP
   1200px+
   ========================================= */

@media (min-width: 1200px) {

    .profile .thumb:nth-child(4n+1) {
        clear: both;
    }

    .right-md {
        text-align: right;
    }
}


/* =========================================
   TABLET / SMALL DESKTOP
   max-width: 900px
   ========================================= */

@media (max-width: 900px) {

    .goods-page {
        padding: 35px 5%;
    }

    .goods-logo {
        width: 80%;
        max-width: 600px;
    }

    .goods-categories {
        width: 180px;
    }

    .goods-category {
        height: 50px;

        font-size: 24px;
    }

    .goods-title {
        font-size: 38px;
    }

    .goods-content p {
        font-size: 20px;
    }

    .goods-contact {
        font-size: 18px;
    }

    .profile .credits {
        font-size: 14px;
    }

    #playlist {
        width: 100%;
        height: initial;

        border-top: 1px solid;
    }

    #placeholder .glyphicon-play {
        left: 130px;
    }
}


/* =========================================
   MOBILE
   max-width: 650px
   ========================================= */

@media (max-width: 650px) {

    body {
        text-align: center;
    }


    /* PAGE */

    .goods-page {
        padding: 35px 5%;
    }


    /* HEADER */

    .goods-header {
        width: 100%;

        margin-bottom: 30px;

        display: flex;
        flex-direction: column;
        align-items: center;
    }


    /* LOGO */

    .goods-logo {
        width: 85%;
        max-width: 330px;

        height: auto;

        margin: 0 auto 25px;
    }


    /* CATEGORIES */

    .goods-categories {
        width: 100%;
        max-width: 220px;

        align-self: center;
    }

    .goods-category {
        font-size: 23px;
    }


    /* HOME CONTENT */

    .goods-page-content > p {
        font-size: 18px !important;
    }


    /* FOOTER */

   
    .goods-contact {
        width: 100%;
        margin-top: 50px;

        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;

        font-size: 16px;
    }

    .goods-contact-item {
        white-space: normal;
        text-align: center;
    }


    /* PROFILE */

    body:has(.profile) > .container:first-child {
        margin-top: 10px;

        padding-left: 25px;
        padding-right: 25px;
    }

    .profile {
        margin-top: 10px;
    }

    .profile > .col-sm-4,
    .profile > .col-sm-8 {
        width: 100%;

        margin-left: 0;

        padding-left: 15px;
        padding-right: 15px;
    }

    #gallery-image {
        width: 100%;
    }

    .profile .thumb {
        padding-left: 7px;
        padding-right: 7px;
    }

    .profile .credits {
        font-size: 14px;

        text-align: left;
    }

    .profile .credits li {
        white-space: normal;

        overflow: visible;
    }
}


/* =========================================
   SMALL MOBILE
   max-width: 400px
   ========================================= */

@media (max-width: 400px) {

    .goods-page {
        padding-left: 18px;
        padding-right: 18px;
    }


    .goods-logo {
        width: 80%;
        max-width: 250px;
    }


    .goods-category {
        font-size: 20px;
    }


    .goods-title {
        font-size: 30px;
    }


    .goods-content p {
        font-size: 16px;
    }


    .goods-contact {
        font-size: 16px;

        padding-left: 18px;
        padding-right: 18px;
    }


    .goods-page-content > p {
        font-size: 17px !important;
    }
}
