* {
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif, serif;
    font-size: 18pt;
    background-color: #fffffc;
    color: #631;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 10px;
}

a,
span.ajax_button {
    text-decoration: none;
    color: #631;
}

a,
span.ajax_button:hover {
    cursor: pointer;
}

span.edit_button {
    float: right
}

h1,
h1 a {
    font-size: 32pt;
    font-variant: small-caps;

}

h2,
h2 a {
    font-size: 22pt;
}

h3 {
    font-size: 20pt;
}

#feature_photo {
    /*border: 1px solid silver;*/
    margin: 5px;
    padding: 5px;
    width: calc(50% - 10px);
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /*background-color: #fafafa;*/
}

#left_click,
#right_click {
    position: absolute;
    width: 10%;
    height: 50%;
    opacity: 0;
    cursor: pointer;
    z-index: 30;
}

#left_click {
    left: 0;
}

#right_click {
    right: 0;
}

.arrow {
    position: absolute;
    top: 47.5%;
    width: 7.5%;
    height: 10%;
    background-color: white;
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: opacity .2s linear;
}

#feature_photo:hover .arrow {
    opacity: .4;
}


#left_arrow {
    left: 2.6%;
}

#right_arrow {
    right: 2.6%;
}


#left_arrow.arrow::before {
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    left: 20%;
}

#right_arrow.arrow::before {
    clip-path: polygon(100% 50%, 0% 0%, 0% 100%);
    left: 30%;
}

.arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 50%;
    height: 50%;
    background-color: #631;
    transform: translateY(-50%);
    z-index: 20;
}

#feature_photo img,
#feature_photo video {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start
}

.container.home .item,
.container.category .item {
    margin: 5px;
    border: 1px solid silver;
    padding: 5px;
    flex-basis: calc(20% - 10px);
    background-color: #fafafa;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    font-size: 18pt;
}

.container.product {
    width: calc(50% - 10px);
    margin: 0 5px;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow-x: scroll;
}

.container.product .item {
    margin-right: 5px;
    background-color: #fafafa;
    cursor: pointer;
    font-size: 0;
    width: auto;
    height: 40px;
}

.item a,
.item img,
.item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container.home .item img,
.container.home .item video,
.container.category .item img,
.container.category .item video {
    aspect-ratio: 4 / 3;
}

.container.product .item a,
.container.product .item img,
.container.product .item video {
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 600px) {
    #feature_photo {
        width: calc(100% - 10px);
    }

    .container.product {
        width: calc(100% - 10px);
    }

    .container.home .item,
    .container.category .item {
        flex-basis: calc(50% - 10px);
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {

    .container.home .item,
    .container.category .item {
        flex-basis: calc(33% - 10px);
    }
}

@media (pointer: coarse) {
    #feature_photo:hover .arrow {
        opacity: 0;
    }
}

.text {
    padding: 0 20px;
    max-width: 450px;
}

#footer {
    text-align: center;
    font-size: 12pt;
    color: silver;
    margin-top: 50px;
}

#footer hr {
    border: none;
    border-top: 1px solid silver;
    margin: 20px;
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader:before {
    content: "";
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #820;
    width: 100px;
    height: 100px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}