/* MAIN TAG AND SUB CONTAINERS */

/* SECTION AND ASIDE TAG DEFAULTS */
    main > section, main > aside {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: fit-content;
        width: var(--trackWidth);
    }

/* SECTION AND ASIDE CHILD CONTAINER DEFAULTS */
    section > div, aside > div {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: fit-content;
        min-height: 5rem;
        width: 100%;
        gap: 1rem;
    }
    span {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
    }
    img {
        -webkit-user-drag: none;
    }

/* GALLERY PAGE */
    .galleryGrid {
        position: relative;
        display: grid;
        gap: 2vh 2vw;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: auto;
    }
    .galleryGrid.card {
        grid-template-columns: repeat(auto-fit, var(--cardCellSize));
        grid-auto-rows: auto;
    }
    .galleryGrid.art {
        grid-template-columns: repeat(auto-fit, var(--artCellSize));
        grid-auto-rows: auto;
    }
    .galleryGridSeries, .galleryGridItem {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .galleryGridSeries {
        height: var(--lineHeight);
    }
    .card .galleryGridItem {
        height: var(--cardCellSize);
    }
    .art .galleryGridItem {
        height: var(--artCellSize);
    }
    .galleryGridItem a {
        width: 100%;
    }

/* PRODUCT PAGE */
    .infoCtr {
        border-bottom: 0.1rem solid var(--colorFade);
        padding-bottom: 3rem;
    }
    .productSlideCtr, .similarSlideCtr {
        overflow: hidden;
        overflow-x: scroll;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }
    .productSlideCtr::-webkit-scrollbar, .similarSlideCtr::-webkit-scrollbar {
        display: none;
    }
    .productSlideCtr {
        aspect-ratio: 1;
    }
    .similarCtr {
        border-bottom: 0.1rem solid var(--colorFade);
    }
    .similarSlideCtr {
        height: 18rem;
    }
    .productSlideItem, .similarSlideItem {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 100%;    /* NEEDED FOR OLD SAFARI - PREVENTS FLEX BOX SHRINKAGE */
        scroll-snap-align: center;
        z-index: 1;
        transition: all 0.5s;
    }
    .productSlideItem.active {
        opacity: 1;
    }
    .similarSlideItem {
        width: 20rem;
        min-width: 20rem;
    }
    .infoCtr > *, .similarCtr > *, .productReviewsCtr > *, .productReviewsCtr p, #description > *  {
        width: 100%;
    }
    #variantsCtr, #variantsCtr select {
        width: 100%;
    }
    .productReviewsCtr {
        padding-bottom: 5rem;
    }
    .productReviewsCtr > div {
        flex-flow: wrap;
        align-content: space-between;
        min-height: 12rem;
    }
    #ratingsCtr {
        display: flex;
        height: 15px;
    }
    
/* CART */
    .cartCtr > div {
        flex-flow: wrap;
        padding: 0.5rem 0;
        column-gap: clamp(1rem, 5vw, 7rem);
        border-bottom: 0.1rem solid var(--colorLight);
    }
    .imageArea {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 130px;
        aspect-ratio: 1;
    }
    .infoArea {
        margin-right: auto;
        width: 150px;
    }
    .infoArea > h3 {
        line-height: 1.8rem;
    }
    .priceBar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        /* min-width: 100px;
        flex: 1 1 auto;*/
        width: 100%;
    }
    .cartSummary h4 {
        width: 100%;
    }

/* ACCOUNT AREA */
    .accountHeader {
        align-items: center;
        width: 6rem;
        padding-left: 0.2rem;
        border-left: 0.15rem solid var(--colorFont);
        border-right: 0.15rem solid var(--colorFont);
        cursor: pointer;
    }
    .accountHeader h1:hover {
        color: var(--colorFade);
    }
    #accountTitle {
        cursor: pointer;
    }
    #accountTitle:hover {
        color: var(--colorFade);
    }
    
/* FORM STYLES*/
    .formCtr {
        width: var(--formWidth);
    }
    form {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-evenly;
        height: auto;
        width: 100%
    }
    input {
        height: 2.6rem;
        width: 100%;
    }
    .formFieldCtr {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 4rem;
        width: 100%;
    }
    .nameFields {
        height: auto;
    }
    .pwdCheck {
        position: absolute;
        right: 1rem;
        height: 30px;
        width: 30px;
        z-index: 1;
    }

@media screen and (min-width: 768px) {
    form {
        margin-top: 5rem;
    }
    .nameFields {
        flex-direction: row;
        justify-content: space-between;
    }
    .halfWidth {
        width: 48%;
    }
}
